Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-protocols-mv/blob/main/specs/microjob/collective-fixtures/README.md # aien-protocols-mv Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-protocols-mv / specs / microjob / collective-fixtures / README.md` 73 lines ยท 5159 bytes Raw Blame History Rendered 1 # matmul_u32 conformance fixture packet (DRA-379 / DRA-666, preparation) 2 3 Status: PROPOSED fixture packet, host only. It is not accepted by any owner and is not a qualification of 4 any runtime, model or device. `GAPS.md` lists what the current contract does not define; nothing in this 5 directory invents semantics for those items. 6 7 ## What is in scope 8 9 Only behavior the current sources already define for the pure `matmul_u32` job, observed in 10 `specs/microjob/SPEC.md` (MJB1 section 4), `specs/aienet/jobpath/PROFILE.md` (AN0B bundle, admission order, 11 job definition), `crates/aien-microjob/src/aienet0.rs` (Rust reference) and 12 `specs/aienet/jobpath/matmul_u32_recompute.om` (the Omega consumer): 13 14 - the 15-byte payload (`kind` 1, `m`,`k`,`n` u16 BE, `seed` u64 BE) and its output digest; 15 - the one-node MJB1 profile document and every static refusal of SPEC section 4.4 reachable from it; 16 - the AN0B bundle framing and the profile's admission order, with refusals. 17 18 Not in scope here: MJR1 receipts, AN0V verdicts, carrier frames, replay, cancellation, attempts, leases. 19 See `GAPS.md`. 20 21 ## Files 22 23 | Path | Role | 24 |---|---| 25 | `vectors/payload-positive.tsv` | payload bytes and expected output digest, work and memory per case | 26 | `vectors/payload-negative.tsv` | malformed, truncated, oversize, wrong-kind, zero and over-bound payloads: expected Omega consumer exit status and expected Rust `decode` result, side by side | 27 | `vectors/document.tsv` | golden one-node MJB1 documents and single-byte mutants with the first refusal code SPEC 4.4 requires | 28 | `vectors/bundle.tsv` | signed AN0B bundles: positive, framing, signature, expiry, allowlist, binding, bound and cap refusals | 29 | `oracle/oracle.py` | independent oracle (test instrument only, Python stdlib + `cryptography` for ECDSA verify). Spec-derived digest/document/signature checks with a third loop order for matmul; refusal order is explicitly observed consumer behavior | 30 | `run-host.sh` | host runner and controls | 31 | `oracle/rust-probe/` | rebuildable external reference instrument with locked dependencies; no production use | 32 33 `oracle.py generate DIR` rewrites the vectors. Documents and payloads are deterministic. Bundle signatures 34 come from OpenSSL ECDSA and are not deterministic, so `bundle.tsv` stores the signatures it was generated 35 with and every check verifies them; regenerating produces different bundle bytes and the same verdicts. 36 37 ## Run 38 39 ``` 40 flock -n taskset -c ./run-host.sh 41 cargo build --offline --locked --release --manifest-path oracle/rust-probe/Cargo.toml 42 RUST_PROBE="$PWD/oracle/rust-probe/target/release/ocf-probe" ./run-host.sh 43 ``` 44 45 The runner takes the compiler (`seed/out/omc`) and the SHA-256 unit from `main` of `~/git/omega-mv.git` 46 (`OMEGA_MV_GIT` overrides) at run time and prints their head and hashes, so no pin is typed in this 47 directory. Exit 0 requires every comparison to agree and every control to be detected; exit 3 is NOT_RUN. 48 49 Comparisons, each independent of the others: 50 51 1. oracle requires the full generated case identity set without missing, extra or duplicate rows, then re-derives every vector; 52 2. Omega consumer (built with that compiler) against every payload row, positive and negative; 53 3. historical Core #662 digests in `evidence/aienet0-`20261028`/xcheck662.log` against the Omega consumer; 54 4. the C reference checker `specs/microjob/tools/mjb_verify.c` against every document row; 55 5. a Rust probe linked to `crates/aien-microjob` against every row (decode, document check, 56 `admit_bundle` with real P-256 verification). 57 58 Controls (each must be detected): a wrong expected digest, a wrong expected refusal, three mutated Omega 59 consumers (domain string, splitmix64 shift, dimension bound), a wrong expected admission for the Rust probe, missing negative cases, and duplicate negative cases. A node-expired/header-live bundle checks node expiry independently. 60 61 ## Observed difference between the two consumers 62 63 For payloads of the wrong length or kind the Omega consumer checks length, then kind, then dimensions 64 (exit 2, 3, 4). The Rust `MatmulU32::decode` checks kind, then length. An empty payload, or a wrong-length 65 payload of another kind, therefore gives exit 2 in Omega and `AN0_NOT_ALLOWLISTED` in Rust. Both orders are 66 recorded in `payload-negative.tsv`; which one is the contract is gap G4. 67 68 ## Evidence classes 69 70 Host fixture and host comparison only. No physical transport, no device, no GPU, no model. Native Omega 71 MJB1/MJR1 document parity is NOT_RUN (G8). 72 73 The existing `tests/gates/run.sh c-vectors` discovers `specs/microjob/tools/check-collective.sh`, which builds the locked reference probe offline in an isolated temporary target and runs this packet. Missing tools or the local Omega source store return NOT_RUN (a nonzero gate result). Python, cryptography, C and Rust are external test instruments only, never dependencies of a trusted production path. The runner prints the source head, dirty-source fingerprint, vector/oracle/runner/probe hashes and tool versions. Rust-builder byte parity remains outside this runner; it compares document admission and digest, not builder output.