aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / specs / microjob / collective-fixtures / GAPS.md
| 1 | # Contract gaps found while preparing the matmul_u32 packet |
| 2 | |
| 3 | Each item is something the task asked to be frozen that the current sources do not define, or define in two |
| 4 | ways. Each needs owner acceptance before a fixture can exist. None was filled in by this packet. Sources |
| 5 | are cited as `file:line` in the tree this packet was written against (aien-protocols-mv main at the head |
| 6 | recorded in the run receipt). |
| 7 | |
| 8 | | # | Gap | Evidence | Fixture status | |
| 9 | |---|---|---|---| |
| 10 | | G1 | No attempt identity, lease generation or epoch on the wire. MJR1 has only an `attempt` byte (1 to `max_attempts`); the AN0 profile fixes `max_attempts` 1 and retry NEVER, and replay is by `dag_digest` only. Epoch and attempt exist only in a receiver-local action record (`omega-mv seed/authority/action.om`, as read in `docs/orchestra/MICROJOB.md` O12), not in any MJB1, MJR1 or AN0B field. | SPEC.md 5; PROFILE.md "Worker admission" 8; `aienet0.rs` `build_document` | none: stale-attempt, lease and epoch cases cannot be written | |
| 11 | | G2 | No compiler, profile, OS or target-ABI binding, and no compiled-cache identity. MJR1 `source_hash` is "the program / `.om` source that ran" (SPEC 5); PROFILE.md fills it with the worker binary hash. A source digest alone therefore stands in for source, compiler, profile, target and options. The exercised worker binary is itself unbound to a source commit. | SPEC.md 5; PROFILE.md "Worker admission"; historical source-binding findings retained with the phase evidence | none: cache-mismatch cases cannot be written | |
| 12 | | G3 | Only three carrier frames exist (bundle, receipt, refusal text) in open-humanity, outside this repository. No submit/accept/reject/artifact/status/heartbeat message, no durable-ack encoding; cancellation is a receiver-local `LedgerEvent`, "not a stable byte encoding". | PROFILE.md "Carrier"; SPEC.md 5.3 | none | |
| 13 | | G4 | Check order and refusal naming differ between consumers. Omega `matmul_u32_recompute.om`: length (exit 2), kind (3), dimensions (4). Rust `MatmulU32::decode`: kind (`AN0_NOT_ALLOWLISTED`), then length (`AN0_BAD_BUNDLE`), with dimensions refused later as `AN0_OVER_BUDGET`. No document says which is the contract, or how exit 2/3/4 map to `AN0_*` codes. | `vectors/payload-negative.tsv` columns 3 and 4; both consumers observed agreeing with their own column | both orders recorded; neither promoted | |
| 14 | | G5 | The profile bound (each dimension 1 to 256, payload at most 256 bytes) is a fixed size with no stated reason and no alarm test measuring it. The Omega consumer's arrays are sized for it (65536 words). Standing rule 2026-11-11 asks for a measured alarm instead of an arbitrary cap, or a stated machine boundary. | PROFILE.md "The job"; `aienet0.rs` `MAX_DIM`, `MAX_PAYLOAD`; consumer `.om` | cases at the bound (256) and just over (257, 65535) are fixtured as the current behavior only | |
| 15 | | G6 | Integer semantics, input generator (splitmix64) and result digest domain are defined only in PROFILE.md and the Rust source, not in SPEC.md. The sole version marker is the `V1` suffix of the digest domain. No rule for how a later operation, a changed generator or a different digest domain is versioned or negotiated, and no profile for "subsequent pure tasks" exists. | PROFILE.md "The job"; `aienet0.rs` `MATMUL_DOMAIN` | the one existing operation only | |
| 16 | | G7 | MJR1 and AN0V behavior (signature, binding, output digest, verdict commitment, replay, double commit, cancellation, wrong-artifact) is not fixtured here. It is specified and has Rust tests, but golden receipt bytes need executor keys and signatures and a decision on which signer set they trust. | SPEC.md 5; `aienet0.rs` tests | NOT fixtured; not claimed | |
| 17 | | G8 | Native Omega parity on MJB1/MJR1 bytes is NOT_RUN. Existing Omega readers are `aien src/goal_microjobs/canon.om` and `aien-train native/omegese45/mjr1.om`. `canon.om` derives identities with its own domains (`AIEN-ALLEN-AN0-JOB-V1`, `AIEN-ALLEN-AN0-IDEM-V1`), so its documents are not byte-equal to the Rust profile builder's, and its build adapter pins an older compiler. `mjr1.om` says the signature is not verified. Only the payload/digest path has Omega parity here. | `canon-build.sh`; `canon.om` header; DRA-666 `MICROJOB.md` O15 | NOT_RUN | |
| 18 | | G9 | Multi-node and header-sum-overflow behavior (SPEC 4.4 rule 28) cannot arise from a one-node profile document, so there is no matmul fixture for it. `oracle.py` implements the rule and two-node cases appear in `bundle.tsv` only as profile refusals. | SPEC.md 4.4 | partial by construction | |
| 19 | | G10 | SPEC.md line 3 still says "Not yet produced or read by any runtime"; the Rust crate, `canon.om` and `mjr1.om` read and write it. Owner text, not edited here. | SPEC.md:3 | n/a | |