aien-train
AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.
Brought by drakestapleton
aien-train / native / collective / fixtures / admission_v0.json
| 1 | { |
| 2 | "schema": "si.sparse.synthetic.admission.v0", |
| 3 | "claim_class": "CONTRACT_FIXTURE", |
| 4 | "issue": "aien-train#26 P0 refusal checklist; Linear DRA-15; Spark hive card t_8cf72aaf (tri015b)", |
| 5 | "precommitted": "This file is committed before native/collective/admit_p0.om exists and before any run. The codes, the check order and every expect_status below are the contract; the Wolfram oracle (evidence/COLLECTIVE-P0-ADMIT/oracle-query.wl) recomputes statuses, outputs and state from these rules and must agree with expect_status.", |
| 6 | "scope": "Synthetic P0 admission of one bank descriptor plus one microjob request, before any adapter arithmetic. Not AEGIS authority, not a router, no model, no checkpoint, no GPU.", |
| 7 | "constants": { |
| 8 | "rows": 2, |
| 9 | "cols": 3, |
| 10 | "rank": 1, |
| 11 | "candidates": 8, |
| 12 | "active_budget_min": 1, |
| 13 | "active_budget_max": 3, |
| 14 | "value_bound": 65536, |
| 15 | "value_bound_note": "every entry of B, x and of U_i, V_i of each planned candidate must lie in [-65536, 65536]; then no intermediate of the response exceeds 3*M^2 + 9*M^3 < 2^63", |
| 16 | "base_matrix": [[2, -1, 3], [1, 0, -2]], |
| 17 | "input": [2, 3, 5], |
| 18 | "adapter_formula": {"u_i": ["i-3", "i+1"], "v_i": [1, "3-i", -1]}, |
| 19 | "scores": [4, 11, 7, 9, 8, 0, 3, 2], |
| 20 | "permissions": [1, 1, 1, 1, 1, 1, 1, 1], |
| 21 | "bank_generation": 7, |
| 22 | "candidate_generations": [7, 7, 7, 7, 7, 7, 7, 7], |
| 23 | "base_identity": "FNV-1a 64 (offset 14695981039346656037, prime 1099511628211) over the 48 bytes of B row-major, each entry as 8 little-endian bytes of its 64-bit two's complement", |
| 24 | "baseline_request": {"rank": 1, "rows": 2, "cols": 3, "base": "identity(B)", "generation": 7, "active": 2, "mode": 0, "indices": [1, 3, 0, 0], "phases": [1, -1, 1, 1]} |
| 25 | }, |
| 26 | "response": "y = B.x + Sum_{j < active} phase_j * U_{a_j} * (V_{a_j} . x), computed only after status 0", |
| 27 | "codes": { |
| 28 | "ok": 0, |
| 29 | "bad_index": -1, |
| 30 | "denied": -2, |
| 31 | "bad_phase": -3, |
| 32 | "bad_rank": -4, |
| 33 | "bad_shape": -5, |
| 34 | "missing_base": -6, |
| 35 | "wrong_base": -7, |
| 36 | "wrong_generation": -8, |
| 37 | "stale_candidate": -9, |
| 38 | "empty_budget": -10, |
| 39 | "over_budget": -11, |
| 40 | "duplicate_candidate": -12, |
| 41 | "permission_invalid": -13, |
| 42 | "all_denied": -14, |
| 43 | "out_of_range": -15, |
| 44 | "bad_mode": -16 |
| 45 | }, |
| 46 | "codes_note": "-1, -2 and -3 keep the meaning they have in golden_v0.json and shared_bank_p0.om.", |
| 47 | "check_order": [ |
| 48 | "bad_rank: descriptor rank != 1, or request rank != descriptor rank", |
| 49 | "bad_shape: descriptor rows != 2, descriptor cols != 3, request rows != descriptor rows, or request cols != descriptor cols", |
| 50 | "missing_base: descriptor base identity == 0 or request base identity == 0", |
| 51 | "wrong_base: request base identity != descriptor base identity", |
| 52 | "wrong_base: identity(B) != descriptor base identity", |
| 53 | "wrong_generation: request generation != bank generation", |
| 54 | "permission_invalid: some permission entry is not 0 or 1 (catches scores stored where permissions belong)", |
| 55 | "bad_mode: request mode not 0 (explicit indices) or 1 (select top-k permitted by score)", |
| 56 | "empty_budget: active == 0", |
| 57 | "over_budget: active > 3", |
| 58 | "plan: mode 0 takes indices[0..active); mode 1 picks, for each slot, the permitted unused candidate with the highest score (ties: lowest index); all_denied when no such candidate remains", |
| 59 | "per planned slot j in order: bad_index (index >= 8), denied (permission != 1), stale_candidate (candidate generation != bank generation), bad_phase (phase not +1/-1), duplicate_candidate (index equals an earlier slot)", |
| 60 | "out_of_range: any entry of x or B, or of U/V of a planned candidate, outside [-65536, 65536]" |
| 61 | ], |
| 62 | "refusal": "nonzero status; no response written; base and adapter counters unchanged. A process that runs one case exits with -status and writes nothing to stdout; an admitted case exits 0 and writes \"Y y0 y1\\n\".", |
| 63 | "type_rule": "score and permission are distinct OM-2 abstract types; passing a score where a permission is needed (or a raw ulong) must be refused by the compiler (omc error 7).", |
| 64 | "cases": [ |
| 65 | {"id": 0, "name": "base-ok", "class": "baseline", "set": {}, "expect_status": 0}, |
| 66 | {"id": 1, "name": "rank-desc", "class": "rank", "set": {"desc.rank": 2, "req.rank": 2}, "expect_status": -4}, |
| 67 | {"id": 2, "name": "rank-req", "class": "rank", "set": {"req.rank": 2}, "expect_status": -4}, |
| 68 | {"id": 3, "name": "shape-desc-rows", "class": "shape", "set": {"desc.rows": 3, "req.rows": 3}, "expect_status": -5}, |
| 69 | {"id": 4, "name": "shape-desc-cols", "class": "shape", "set": {"desc.cols": 2, "req.cols": 2}, "expect_status": -5}, |
| 70 | {"id": 5, "name": "shape-req-rows", "class": "shape", "set": {"req.rows": 1}, "expect_status": -5}, |
| 71 | {"id": 6, "name": "shape-req-cols", "class": "shape", "set": {"req.cols": 4}, "expect_status": -5}, |
| 72 | {"id": 7, "name": "base-missing-desc", "class": "base", "set": {"desc.base": 0, "req.base": 0}, "expect_status": -6}, |
| 73 | {"id": 8, "name": "base-missing-req", "class": "base", "set": {"req.base": 0}, "expect_status": -6}, |
| 74 | {"id": 9, "name": "base-wrong-req", "class": "base", "set": {"req.base": "identity(B) xor 1"}, "expect_status": -7}, |
| 75 | {"id": 10, "name": "base-wrong-content", "class": "base", "set": {"B[4]": 1}, "expect_status": -7}, |
| 76 | {"id": 11, "name": "base-alt-ok", "class": "base", "set": {"B[4]": 1, "desc.base": "identity(B')", "req.base": "identity(B')"}, "expect_status": 0}, |
| 77 | {"id": 12, "name": "gen-wrong", "class": "generation", "set": {"req.generation": 6}, "expect_status": -8}, |
| 78 | {"id": 13, "name": "gen-stale", "class": "stale", "set": {"cgen[3]": 6}, "expect_status": -9}, |
| 79 | {"id": 14, "name": "gen-future", "class": "stale", "set": {"cgen[1]": 8}, "expect_status": -9}, |
| 80 | {"id": 15, "name": "gen-stale-inactive-ok", "class": "stale", "set": {"cgen[5]": 6}, "expect_status": 0}, |
| 81 | {"id": 16, "name": "gen-alt-ok", "class": "generation", "set": {"desc.generation": 9, "req.generation": 9, "cgen[*]": 9}, "expect_status": 0}, |
| 82 | {"id": 17, "name": "budget-zero", "class": "budget", "set": {"req.active": 0}, "expect_status": -10}, |
| 83 | {"id": 18, "name": "budget-over", "class": "budget", "set": {"req.active": 4, "indices": [0, 2, 4, 6], "phases": [1, 1, 1, 1]}, "expect_status": -11}, |
| 84 | {"id": 19, "name": "budget-one-ok", "class": "budget", "set": {"req.active": 1, "indices[0]": 6, "phases[0]": -1}, "expect_status": 0}, |
| 85 | {"id": 20, "name": "budget-ceiling-ok", "class": "budget", "set": {"req.active": 3, "indices": [0, 4, 7, 0], "phases": [1, -1, 1, 1]}, "expect_status": 0}, |
| 86 | {"id": 21, "name": "index-8", "class": "index", "set": {"indices[1]": 8}, "expect_status": -1}, |
| 87 | {"id": 22, "name": "index-max", "class": "index", "set": {"indices[1]": 18446744073709551615}, "expect_status": -1}, |
| 88 | {"id": 23, "name": "index-7-ok", "class": "index", "set": {"indices[0]": 7}, "expect_status": 0}, |
| 89 | {"id": 24, "name": "denied", "class": "denied", "set": {"perm[3]": 0}, "expect_status": -2}, |
| 90 | {"id": 25, "name": "denied-inactive-ok", "class": "denied", "set": {"perm[2]": 0}, "expect_status": 0}, |
| 91 | {"id": 26, "name": "phase-zero", "class": "phase", "set": {"phases[0]": 0}, "expect_status": -3}, |
| 92 | {"id": 27, "name": "phase-two", "class": "phase", "set": {"phases[1]": 2}, "expect_status": -3}, |
| 93 | {"id": 28, "name": "phase-negboth-ok", "class": "phase", "set": {"phases[0]": -1}, "expect_status": 0}, |
| 94 | {"id": 29, "name": "dup-adjacent", "class": "duplicate", "set": {"indices[0]": 3}, "expect_status": -12}, |
| 95 | {"id": 30, "name": "dup-gap", "class": "duplicate", "set": {"req.active": 3, "indices": [1, 3, 1, 0], "phases": [1, 1, 1, 1]}, "expect_status": -12}, |
| 96 | {"id": 31, "name": "perm-swap", "class": "score-permission", "set": {"perm[*]": "scores", "scores[*]": 1}, "expect_status": -13}, |
| 97 | {"id": 32, "name": "perm-two", "class": "score-permission", "set": {"perm[5]": 2}, "expect_status": -13}, |
| 98 | {"id": 33, "name": "select-top2-ok", "class": "score-permission", "set": {"req.mode": 1, "phases": [1, 1, 1, 1]}, "expect_status": 0}, |
| 99 | {"id": 34, "name": "select-deny1-ok", "class": "all-denied", "set": {"req.mode": 1, "req.active": 1, "perm[1]": 0, "phases[0]": 1}, "expect_status": 0}, |
| 100 | {"id": 35, "name": "select-ceiling-ok", "class": "score-permission", "set": {"req.mode": 1, "req.active": 3, "phases": [1, -1, 1, 1]}, "expect_status": 0}, |
| 101 | {"id": 36, "name": "all-denied", "class": "all-denied", "set": {"req.mode": 1, "req.active": 1, "perm[*]": 0}, "expect_status": -14}, |
| 102 | {"id": 37, "name": "select-short", "class": "all-denied", "set": {"req.mode": 1, "req.active": 3, "perm[*]": 0, "perm[0]": 1, "perm[5]": 1}, "expect_status": -14}, |
| 103 | {"id": 38, "name": "mode-bad", "class": "mode", "set": {"req.mode": 2}, "expect_status": -16}, |
| 104 | {"id": 39, "name": "range-x-bound-ok", "class": "range", "set": {"x": [65536, -65536, 65536]}, "expect_status": 0}, |
| 105 | {"id": 40, "name": "range-x-over", "class": "range", "set": {"x[0]": 65537}, "expect_status": -15}, |
| 106 | {"id": 41, "name": "range-x-huge", "class": "range", "set": {"x[2]": 4611686018427387904}, "expect_status": -15}, |
| 107 | {"id": 42, "name": "range-u-over", "class": "range", "set": {"U[6]": -65537}, "expect_status": -15}, |
| 108 | {"id": 43, "name": "range-b-over", "class": "range", "set": {"B[0]": 65537, "desc.base": "identity(B'')", "req.base": "identity(B'')"}, "expect_status": -15}, |
| 109 | {"id": 44, "name": "range-u-inactive-ok", "class": "range", "set": {"U[10]": 70000}, "expect_status": 0}, |
| 110 | {"id": 45, "name": "select-stale", "class": "stale", "set": {"req.mode": 1, "cgen[3]": 6}, "expect_status": -9} |
| 111 | ], |
| 112 | "cases_note": "Every case starts from the baseline descriptor and request. Response and counters persist across cases in one process; a refused case must leave them exactly as the previous admitted case left them. U[k] is element k of the flattened U (candidate k div 2, row k mod 2): U[6] is candidate 3 row 0 (planned in the baseline), U[10] is candidate 5 row 0 (not planned)." |
| 113 | } |