interplane.Get Omega
Read in your language

aien-protocols-mv

Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem

Brought by drakestapleton

[SI-MICROFORGE C1] Define minimal typed microjob DAG/receipt ABI and token-budget escalation

Open · #50 · open 2026-10-24 16:00 UTC

Imported from GitHub aien-dev/aien-protocols-mv#50, by drakestapleton

drakestapleton wrote on 2026-10-24 16:00 UTC

Problem and owner

SI Fusion and Allen need one portable typed computational microjob envelope, not one prose prompt per agent operation or a second task protocol. Existing related owners: #43 native stream/task ABI and #27 bounded Pi/Spark task/event receipts. Define a versioned additive interface within their canonical contract and integrate through their owner. Do not create an alternate protocol source of truth in the proposed aien-dev/si-fusion repository.

Contract

  • microjob-v1 typed record with job/objective/incarnation IDs, input dependency digests and generations, operation kind, operand references, result type/shape, current subject/authorized capability reference, privacy/tenant scope, model/precision/quantization/allowed substrate, explicit token/time/fuel/memory/work caps, required verification, checkpoint/cancellation semantics and expiry. Receipt binds actual outputs, consumed work and source/model/policy hashes; a proposal is not a receipt or an authorization.
  • Support compute (zero neural tokens) for independently validated .om arithmetic/matmul/reduce/compare/compile/verify steps, alongside finite neural node classes. Pilot profiles: minimal 64 input / 16 output, default 128 / 32, larger 256 / 64, specialist 512 / 128; optimizer may choose smaller within admitted minimum implementation bounds and should choose zero for deterministic math. Per-node contract is not global context or objective-length limit. Essential context is passed as typed content references; missing operand means refuse, not silently truncate.
  • Objective is an explicit durable dependency DAG, with acyclicity, checked node completion, no orphaned required inputs, deterministic recomputation of admissible pure nodes, atomic cancel/receipt binding and dependency-version invalidation. Ensure multistep/long objectives work with tiny nodes, and microjob end-effect permission is no broader than the original user approval.
  • Type-safe routing to existing Omega skill/capability/World authorization and state boundaries; same contract can later be carried through Turing Compute Network but has no wallet, currency, public job market or escrow in this pilot.

Acceptance

  • Source-format schema + seeded .om values and an independent verifier; roundtrip, canonical hash and old-version refusal.
  • Offline sample: a 10+-node DAG with at least one long objective, independent numeric node, two neural route nodes, blocked dependency, success/refusal and restart; all admitted inputs available by digest and the aggregate answer is checked.
  • Mutants detect cycles, missing/replaced operands, cross-tenant mixing, stale generation, forged receipt, unauthorized effects, time/word budget overrun, interrupt/resume double-commit, and unknown ABI version.
  • Demonstrate no silent meaning truncation at the 64/16 profile; explicit refusal/expansion when a minimal contract cannot preserve semantics. Source-bound receipts and consumer integration with Allen/Omega.

Delivery discipline

Parent / new component bootstrap: https://github.com/aien-dev/aien-architecture-mv/issues/306. This is a finite scoped issue, not a new master plan. Recheck exact current commits, branch/worktree owners, AGENTS.md and .crumb, accepted ADRs, PLAN_AUTHORITY.md, CURRENT_EXECUTION_PLAN.md and linked PRs before coding; avoid conflicting writers. Final new first-party executable components, reproducible test runners and training controls use the existing seeded handwritten .om path with an independent oracle as needed. No new compiler, .osc feature, Python/PyTorch/CUDA product fallback, second authority/canonical Cortex writer, second independent judge or shadow scheduler. Existing Rust/C scaffolding is transitional and its retirement requires replacement + consumer qualification rather than deletion on speculation. No service/driver/firmware restart, unqualified GPU work, new public endpoint, private data export, auto-training or auto-promotion is authorized merely by this issue. Keep private 35B loopback 127.0.0.1:18091 untouched and unqualified 27B public route closed. Hardware results require scheduled uncontended Spark run and signed receipts; otherwise mark NOT_RUN/BLOCKED. All claims bind exact source/compiler/model/tokenizer/config/data/measurement digests, commands, exits and verifier. Status: PROPOSED / NOT_RUN.

drakestapleton wrote on 2026-10-24 17:40 UTC

drakestapleton wrote on 2026-10-28 02:06 UTC

ARPANET-0 network bootstrap is now scoped in architecture #311. MJB1 remains the canonical typed work/receipt ABI; do not create a second 'botnet job protocol'. The initial four-node network needs one optional/versioned transport envelope binding existing MJB1 job ID and immutable input/output digests to sender/recipient public keys, signed capability offers, bounded resource/expiry/quote identifiers, and reply kinds PEER_OFFER/JOB_REQUEST/QUOTE/ACCEPT/RESULT/VERIFY/CANCEL/LEAVE. Do not put balances, arbitrary executable uploads, new authority or private trainer inputs into the protocol itself. Unknown versions, unexpected sender, replayed nonce, stale work, missing dependencies and cross-scope jobs must refuse. Host-local two-node request→result and four-node forwarding/failover fixture with independent verifier, negative controls and deterministic receipts; Core #738 alone owns economic escrow. Coordinate with existing draft PR #53 and add to it rather than forking a parallel ABI.

drakestapleton wrote on 2026-10-28 02:15 UTC

AIENET-0 interop draft: PR #63 adds a public four-peer verification-and-TUR profile. It deliberately references existing MJB1/MJR1 draft PR #53, with a versioned identity/offer/quote/receipt mapping and no competing executable job data format. The first verified scenario is pure work on one consenting provider, independent check, Core #738 escrow settlement. Draft, docs-only for this repo, NETWORK_NOT_RUN. Bring under the MJB1 owner's review before any wire freeze. Future A2A and x402 boundary adapters should consume existing protocols instead of inventing core infrastructure.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:15 UTC

Recovered GitHub comment. Original comment 6388016259

C1 microjob ABI: HOST_TESTED (draft v0.1, no runtime consumer yet)

Branch feat/si-microjob-capsule-abi, commit 33e28b9 (base 3e6efc4; merges cleanly with current main 8ee94ed). No PR opened (merge desk owns that).

Files

  • specs/microjob/SPEC.md: MJB1 typed bounded microjob DAG (192-byte header, 448-byte node, at most 64 nodes) and MJR1 receipt (404 bytes, P-256 signed).
  • specs/microjob/tools/mjb_verify.c, check-vectors.sh, mutate-verifier.sh, vectors/ (104 vectors).
  • crates/aien-microjob: reader/writer/checker, canonical Kahn order, DagRun receipt ledger; tests tests/vectors.rs, tests/ledger.rs.
  • crates/aien-provenance: fixed-width low-S P-256 helpers (existing primitive reused; no new cryptosystem).
  • README, CHANGELOG, .crumb files.

What the contract covers: job/idempotence ids, generation, objective, incarnation, tenant, subject, approval ref, effect ceiling, kind COMPUTE (zero neural tokens, model_ref zero) or NEURAL, profiles 64/16, 128/32, 256/64, 512/128 (caps may be smaller), required_*_tokens with MJB_NEEDS_EXPANSION in place of truncation, time/fuel/memory/work caps plus header budgets, required verifier (RECOMPUTE/CHECKER/JUDGE), retry NEVER/IDEMPOTENT/RECONCILE_FIRST (EFFECT may not be IDEMPOTENT), cancel DISCARD/CHECKPOINT, typed operand refs (Cortex, World, content, DCP1 capsule, #699 experience), deps with generations. The receipt binds the DAG digest, job, generation, attempt, used resources, input binding (dependency receipts and operands), output, source/model/policy hashes and verifier verdict. No wallet, price, market or escrow fields.

Tests run (host, aarch64, no GPU)

  • bash specs/microjob/tools/check-vectors.sh: MJB1_VECTORS_REGEN identical, MJB1_CONFORMANCE impl=c pass=104 fail=0, same under ASan/UBSan, MJB1_VERIFIER_MUTANTS total=58 killed=58 survived=0.
  • cargo test -p aien-microjob: 20 passed, 0 failed. Rust and C give the same verdict on all 104 vectors, and every accepted document re-encodes to the same bytes. Ledger tests cover cycles, missing/replaced operands (binding mismatch), cross-tenant, stale generation, forged receipt (untrusted key, edited bytes, edited signature), effects wider than the approval, time and token overruns, interrupt/resume replay vs double commit, retry/exhaustion, UNCERTAIN effect, atomic cancel, dependency-version invalidation, unknown document/receipt version, and 64/16 refusal followed by explicit expansion.
  • Offline sample offline_sample_eleven_nodes_with_restart_and_checked_answer: 11 nodes, an objective longer than 8000 bytes, real integer COMPUTE nodes, an independent VERIFY node, two NEURAL route nodes, a refused node with a BLOCKED dependent, restart by log replay, and an aggregate answer mean_milli=23500;exceeds=1 checked against an independent computation (arithmetic confirmed with the Wolfram evaluator: sums 66 and 75, mean 47/2). The NEURAL outputs are fixture bytes; no model ran.
  • Full repo gates tests/gates/run.sh {fmt,check,clippy,test,anti-slop,zero-disk-secrets,c-vectors,crumb-verify}: all exit 0 (workspace tests: 88 passed, 0 failed; PROTO_C_VECTORS PASS found=7 failed=0; crumb verify: OK: 49 crumbs current).
  • Byte layouts (192/448/28864/404) checked with the Wolfram evaluator.

Remaining / NOT_RUN

  • This repository has no .om sources, so I followed its existing convention (spec + C checker + vectors + Rust reference crate). The issue's seeded .om values and Omega integration belong to omega-mv: NOT_RUN.
  • Allen consumer (allen#13, AllenA1) is aligning a local adapter to these enums; it does not parse MJB1 bytes yet. No Omega or Allen consumer integration yet.
  • The Spark judge has not run this branch, and there is no signed receipt.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:22 UTC

Recovered GitHub comment. Original comment 6647497868

Sweep verification (P-DRA-9), origin/main e1ac336b, host aarch64, no GPU. Not closing.

Re-run on main:

  • bash specs/microjob/tools/check-vectors.sh → MJB1_VECTORS_REGEN identical, MJB1_CONFORMANCE impl=c pass=104 fail=0, same under ASan/UBSan, MJB1_VERIFIER_MUTANTS total=58 killed=58 survived=0, MJB1_VECTORS_PASS.
  • cargo test -p aien-microjob → lib 25 passed, tests/ledger.rs 19 passed (incl. offline_sample_eleven_nodes_with_restart_and_checked_answer), vectors 1 passed; 0 failed.

Met (by inspection + run): schema/spec, independent C verifier, roundtrip, canonical hash, old-version refusal, 11-node offline sample, the listed ledger mutants, 64/16 refusal then explicit expansion.

Unmet acceptance items:

  1. "seeded .om values": specs/microjob/ has no .om (only mjb_verify.c + Rust crate). LTP0 (#71) shows .om is accepted in this repo.
  2. "consumer integration with Allen/Omega": no consumer parses MJB1 bytes; aien-dev/allen#13 is OPEN.
  3. #53's own body asked for independent review before merge; it merged with only the code-scanning bot review.

Gate: Drake decision on whether item 1 needs an .om MJB1 codec here (and who writes it), then Allen#13 integration.

Sign in to comment