Skip to content

Capability workers and durable jobs ​

Move a library from a Mac to a Linux machine without its image processor. A reader should still be able to inspect evidence the library already contains and see why a new job is waiting.

Two plywood modules pull apart to reveal their blue connecting dowels.

LinkedIn opens a draft you can review before posting.

The proposed design separates what the library can read from what the current machine can compute. A worker may supply a capability for transcription, embeddings or another bounded operation. The store remains responsible for deciding which result belongs to an authorized job.

Proposed contracts. Existing Ordo executor behavior is a donor, not evidence that native plugins are already implemented here.

Capability versus implementation ​

A workflow requests a versioned capability, not an Apple class or CUDA library. CPU, NVIDIA and native Mac workers can implement that capability with declared model and resource requirements. Compatible interface shape does not guarantee equal inference quality or embedding compatibility.

Rust owns coordination and state. Swift is useful for Apple-native frameworks; such a worker is not expected to execute unchanged on Linux. Keep the application usable without a GPU through deterministic fixtures, structured imports, manual review and available retrieval paths.

One result contract ​

Reconcile the historical Rust envelope, current TypeScript envelope and private executor envelope before importing any of them. They currently differ in statuses, identity and output shape. The target contract needs these fields:

GroupRequired information
Version/identitySchema, capability/backend, job/task, worker, attempt/lease epoch
InputsImmutable artifact IDs/hashes, parameter/model fingerprints and scope
ExecutionDeadline, cancellation, bounded resources, tool/model versions and outcome
OutputsByte-verified artifacts, typed source locations, evidence links and limitations
AcceptanceAuthenticated worker identity, current lease, allowed outputs and idempotency receipt

Do not fill a missing byte digest from an artifact label. Failed/blocked outcomes may have diagnostics without successful output evidence; successful evidence-producing capabilities must meet their explicit evidence contract. A worker cannot grant itself permission by setting a field in its result.

State and transport boundary ​

Workers never write canonical tables. In the hosted profile they call the private Rust store's scoped acceptance command; in local mode the same contract may use an embedded adapter. The store checks the receipt and commits state/events in one transaction.

Review the existing HTTP/JSON host-worker proposal before choosing a different serialization transport. Language-neutral contracts matter more than Protobuf versus JSON. Do not expose Rust's native trait-object ABI as a stable public plugin interface. Rust ABI reference.

Native process isolation is not a sandbox by itself. Define permitted directories/artifact handles, device access, network egress, executable identity and cancellation limits. Remote worker attachment requires explicit authorization; it is not an arbitrary public command runner.

Durable task state ​

Suppose both attempts use the worker name worker-a for the same extraction task and input. In this proposed sequence the store issues the second lease after the first expires.

Receipt arriving at the storeExpected decision
Attempt 1, epoch 1, returned after its deadline and after epoch 2 was issuedReject the stale result. Leave the current task available to attempt 2.
Attempt 2, epoch 2, returned before its deadline while the task is runningAccept the matching result once. Record its completion in the same transaction.

The lease exercise checks attempt identity and expiry with synthetic timestamps. A-10 describes the additional crash and recovery checks for the store.

Plans are versioned snapshots. Validate dependency cycles, missing keys and required stages before creating a job. Human review is durable waiting state, not a worker holding an open transaction.

Claims carry an epoch and deadline. Completion checks job, task, worker, epoch, expiry, input digest and expected status atomically. Retry classes distinguish safe deterministic processing from paid generation with partial output. A stale result cannot regain authority just because its worker name matches a newer attempt.

Bound queue depth, attempts, concurrency, output size and temporary storage. Use heartbeats and explicit blocked/dead-letter inspection. Preserve diagnostic failure events without converting corrupt evidence into an empty successful result. Historical kernel/event symbols and their missing tests are mapped in the audit.

Readiness and large media ​

Report missing tool/model, unsupported host, unbound source, missing credential, policy block and user disablement separately. No compatible encoder means no compatible semantic query—not permission to silently switch vector spaces.

Control messages refer to durable artifacts; large media uses files or negotiated local buffers. GPU handles and shared memory are ephemeral execution details. Future video runs use bounded segments, source hashes and explicit timestamps. Record sampling/skipped intervals, and pause or spool within quotas under overload. Never claim full analysis of intervals that were dropped.

See the lease lab, factor gates and S1/S6 in the roadmap.

IS373 · Documentation and contract labs available · Research runtime planned