Skip to content

@usine/executor/local

Storage and session settings for Attempts executed on the local machine.

readonly optional harnessReadiness?: HarnessProbe

Probes one rostered brain on this machine; defaults to the @usine/agents/preflight checks, which start no prompt.

readonly instanceDirectory: string & Brand<"InstanceDirectory">

Factory folder under which local Worker caches and Attempt checkouts are stored.

readonly optional interruptGrace?: Input

Grace for the parent task’s cancellation, then for the Attempt to settle; each wait is bounded separately. Defaults to two seconds.

readonly optional repositoryUrl?: (repository) => string

Repository fetch URL override, for example a local mirror; defaults to the GitHub HTTPS clone URL.

Parameter Type
repository string & Brand<"RepositoryName">

string

HarnessProbe = (brain) => Effect.Effect<HarnessReadiness, ExecutorOperationError | WorkerCapabilityError>

Reports one rostered brain’s readiness on a Worker. Only a readiness report proves a capability gap; transport failures and timeouts stay retryable infrastructure errors.

Parameter Type
brain BrainSpec

Effect.Effect<HarnessReadiness, ExecutorOperationError | WorkerCapabilityError>

const layer: (options) => Layer.Layer<Executor, never, AttemptRuntime | CredentialProvider | FileSystem.FileSystem | Path.Path | ChildProcessSpawner.ChildProcessSpawner>

Runs Attempts in isolated checkouts on the local machine, each with its Pi parent as a durable task in this process (AttemptRuntime), so an orchestrator restart reattaches a live Attempt instead of failing it. Requires Node; worker contracts are platform-free.

Parameter Type
options LocalExecutorOptions

Layer.Layer<Executor, never, AttemptRuntime | CredentialProvider | FileSystem.FileSystem | Path.Path | ChildProcessSpawner.ChildProcessSpawner>