interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

[HET-COMPUTE P1] Reuse hosted AIEN execution to run verified CPU jobs on iMac and M2

Open · #637 · open 2026-10-18 07:44 UTC

Imported from GitHub aien-dev/aien-sovereign-core-mv#637, by drakestapleton

drakestapleton wrote on 2026-10-18 07:44 UTC

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

  1. Exact capability discovery: host OS/arch, CPU count, RAM available, supported task types, versions/build/hash, measured local baseline; no fabricated hardware acceleration.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

drakestapleton wrote on 2026-10-18 17:06 UTC

Taken by Claude (orchestrator chat), 2026-10-18. Branch het/637-job-adapter.

Ground check: the M2 MacBook is reachable from the Spark over the existing pinned SSH link (macOS 26.6.2, Apple M2, 8 cores, 8 GiB). The iMac does not answer: it runs the AIENOS lab image and has no hosted OS configured, so its physical run will be reported NOT_RUN and its disk is not touched. There is no Rust M6-A/M6-B peer channel on main; the PST1 reader/writer (aien-pi-spark-task) is in aien-protocols-mv#37, which I am landing first (stack #34, #36, #37).

Cut 1: allowlisted integer-exact tasks (fixed-shape u32 matmul, digest chain) with an independent oracle on the Spark, PST1 frames over SSH stdio with a forced-command key, worker-signed ed25519 receipts against a pinned roster, admission limits, durable idempotence, and deterministic tests for wrong peer, duplicate id, out-of-budget, stale result, timeout, cancel, disconnect and denied task. Cut 2: one useful real workload.

🤖 Generated with Claude Code

drakestapleton wrote on 2026-10-18 17:56 UTC

Progress 2026-10-18 (draft PRs, both shown on real hardware, Spark to MacBook Air M2):

  • #662 cut 1: aien-hetjob, PST1 wire, signed self-attested receipts, Spark recompute, admission, durable idempotence, coordinator deadline, forced-command SSH. Matmul and digest-chain jobs VERIFIED. Wrong peer, over budget, duplicate id and cancel controls behave as specified.
  • #663 cut 2: a useful job. Our BitNet BPE (moved to aien-bitnet-tokenizer) tokenized aien-architecture's docs on the M2: 40,137 lines and 818,046 tokens, VERIFIED against the Spark's recompute. Inputs travel by sha256; missing and tampered inputs are refused before a task starts.

Still open: energy (not measured), the iMac (NOT_RUN, no hosted OS), and a check cheaper than full recompute, so these runs verify remote execution but do not offload yet. Merge waits on aien-protocols #36/#37 (the PST1 reader) and a pin bump.

Sign in to comment