Parent: https://github.com/aien-dev/aienix/issues/6 Protocol contract: aien-protocols #27; Fabric semantic lane to be linked from parent. Reuse existing Pi/Spark hosted inference worker #585 where applicable, without competing edits.
Current code
- aien-runtime spine already runs scheduling, world and swarm machinery.
- aien-test worker already runs real sandboxed local-CI gates, pins commits and records signed receipts. It is not a production general-purpose remote workload agent; reuse receipt and resource concepts only at their actual capability boundaries.
- NativeCpuInferenceBackend currently synthesizes token IDs and step timings. It must not qualify as model inference. Actual NativeTransformerBackend and checkpoint-owned reference execution are separate real-compute paths.
Scope
A minimal, unprivileged hosted-machine job adapter executable on macOS x86_64 (2017 iMac with supported host OS) and Apple Silicon M2 (macOS), plus a coordinator-side adapter on the Spark using existing runtime/effects and trusted peer channel. Reuse or extend current executable rather than creating a duplicate daemon. Do not invent an autonomous agent scheduler or remote shell.
Deliver
- Exact capability discovery: host OS/arch, CPU count, RAM available, supported task types, versions/build/hash, measured local baseline; no fabricated hardware acceleration.
- Start with a deterministic bounded CPU task (validated fixed-shape matrix multiplication or digest and independent oracle), then add one useful workload already supported by real code (batch tokenization / model-evaluation / small-model forward pass). No random token backend.
- Consume the existing authenticated/versioned task + receipt envelope (owned by #27) and Omega routing interface. Do not trust unauthenticated LAN packets or software claiming another machine identity.
- Safely admit and run only an explicit allowlist of tasks in least-privilege confinement; enforce memory/CPU/time/IO ceilings, cancellation, ordered result delivery, error reporting and durable result idempotence. No arbitrary command-line payloads from peers.
- Bind each result to input hash, program/implementation hash, executor hardware identity, timing, output digest, verified run id; leverage existing verifier and bundle types where semantically suitable.
- On macOS, document and test the actual safe execution boundary. Do not claim Linux seccomp/user namespace/bwrap exists on macOS; report any weaker sandbox honestly.
Acceptance
- On real iMac and M2 hosted OS: same frozen task dispatched from Spark, matching independently checked outputs, refusal/recovery controls, identical success schema. If iMac has no hosted OS configured, report physical NOT_RUN and do not alter its disk to arrange one.
- At least one actual useful CPU compute workload beyond fake/demo tokens, measured local-vs-remote overhead and resources; energy separately if instrumented.
- Wrong peer, duplicate id, out-of-budget, stale result, timeout/cancel/disconnect and denied task all covered with deterministic tests.
- No modification to live Spark model service or OS boot configuration without explicit operator approval.
- No duplicate work on Sovereign Core #585's Pi-specific streaming path; use a narrow shared boundary and coordinate file ownership.
Agent ownership
Host-side Rust adapter, existing protocol client and host integration tests only. Omega handles Fabric semantics; AIENOS x86 lane handles bare metal; benchmarks team owns independent evidence.