aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
GitHub aien-dev/aien-architecture-mv#184 (code only)
Apply it
git checkout -b patch-8c6d7e05e509a117 5638611ded9d559ff70be809c30d2f509bf03219 curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/8c6d7e05e509a117.patch | git am
Provenance
github-import 1
aien-dev/aien-architecture-mv
184
b25aaa74e98b1d1d5ad8a68b310726fa1ebbf7ae
{"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":184,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/184","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:53Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 8cc713a..e564bd4 100644 --- a/.crumb +++ b/.crumb @@ -21,8 +21,8 @@ "generated": { "children": [ { - "digest": "96c8382a97180a54feed74771c076419e3a62184e8068b6d74a24e3cd706ec2a", - "last_commit": "cf2ee7f", + "digest": "5ddd81ec349ad20234ed407f89a2204038f61e208bc91cb275bf7f3d5740c817", + "last_commit": "fd0612f", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, @@ -45,15 +45,15 @@ "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:e72533f1c8149c25a5d9faed41381a469589db1d5e2d6e2d0cf8e872fc50b16e", - "compiled_at": "2026-10-10T01:06:00Z", + "children_root": "sha256:6ba942cbe313aaa3ba08a724cf2f6550e3669f202813fb1723ee0494e97672cc", + "compiled_at": "2026-10-10T01:44:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:62a15a0fb44de9bc6061946bdabe2b0c9eaa47ba94b610a2e25c41dbadb3aed3", + "digest": "sha256:e702ca0d974840f2f9ff80f1f0c463f5af66ca451e49f7364f6a354b0b0ca572", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 245, - "generated_at_commit": "cf2ee7fa9f4ea52b558e1ef2555dccf70d745be5", - "source_tree": "sha256:dfb02debc47a4157674cc181684eb50e7cb3bd395e9f2f82c4d34a43a681c867" + "files": 248, + "generated_at_commit": "fd0612f022820a299d845e9d327247d8fb3a16a7", + "source_tree": "sha256:bf56b7cc59e30b3ecf89f433bedd448fbbc1f2f039e156a53b655571aca399a5" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index 326b9ac..f1c1ad8 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -55,8 +55,8 @@ "purpose": "Directory docs/errata. Purpose not yet described by a human." }, { - "digest": "67324118c0c299d45d8f579652b0a65304736d94e800128ecfc21d4c461460a4", - "last_commit": "cf2ee7f", + "digest": "b558be733aaa40f90e1af0c230594a77c4b54bd1733ee8afcb0de6a5ecb88266", + "last_commit": "fd0612f", "name": "plans", "purpose": "Directory docs/plans. Purpose not yet described by a human." }, @@ -73,15 +73,15 @@ "purpose": "Directory docs/specs. Purpose not yet described by a human." } ], - "children_root": "sha256:58aae9c5f85a7734f03944cc757494748705bc8978ac2cf0f898b87e906e4675", - "compiled_at": "2026-10-10T01:06:00Z", + "children_root": "sha256:a6bc3a7c1e10e625f1f480f4acfd8459954665a540425702a00c0ae7f00056f1", + "compiled_at": "2026-10-10T01:44:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:96c8382a97180a54feed74771c076419e3a62184e8068b6d74a24e3cd706ec2a", + "digest": "sha256:5ddd81ec349ad20234ed407f89a2204038f61e208bc91cb275bf7f3d5740c817", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 137, - "generated_at_commit": "cf2ee7fa9f4ea52b558e1ef2555dccf70d745be5", - "source_tree": "sha256:1d74381c649a5dc9ee391f92fba6112b9753ea8de7676ce07f311701a6a5ada9" + "files": 140, + "generated_at_commit": "fd0612f022820a299d845e9d327247d8fb3a16a7", + "source_tree": "sha256:c7b5bf298cb6f3ba3fe8c42a4b4c5761f872c7108278ea3aa2352bf414514ecf" }, "owner_lane": "", "provenance": { diff --git a/docs/plans/.crumb b/docs/plans/.crumb index 3f2d60c..bfccef2 100644 --- a/docs/plans/.crumb +++ b/docs/plans/.crumb @@ -53,8 +53,8 @@ "purpose": "Directory docs/plans/arena-x. Purpose not yet described by a human." }, { - "digest": "d47ce00df9d802e49b11fb63bfd0f9af14f8543be8ea32c1ac6dfd59f86df7e1", - "last_commit": "cf2ee7f", + "digest": "11b7c20f2f5614e1f8a623d5fbec7d0a9bc5579075033da7e3422334cf9503e0", + "last_commit": "fd0612f", "name": "atemporal", "purpose": "AT-0 Clock-Free Universe research program: charter, frozen AT0_CASE_V1 and AT0_RESULT_V1 contrac" }, @@ -101,15 +101,15 @@ "purpose": "VAC (Verifiable Autonomous Computing) finite workstream plan. NOT A MASTER PLAN." } ], - "children_root": "sha256:e6ff53e773f9959c5b20b10db930d7d1d5fdb57fedc2fbd68d811762c7edd4ae", - "compiled_at": "2026-10-10T01:06:00Z", + "children_root": "sha256:92891de00af6399e9cbcf6132af83548b7eea40dea4d0cb86be87de48e1f6470", + "compiled_at": "2026-10-10T01:44:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:67324118c0c299d45d8f579652b0a65304736d94e800128ecfc21d4c461460a4", + "digest": "sha256:b558be733aaa40f90e1af0c230594a77c4b54bd1733ee8afcb0de6a5ecb88266", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 42, - "generated_at_commit": "cf2ee7fa9f4ea52b558e1ef2555dccf70d745be5", - "source_tree": "sha256:62eb2c6c481c5fb19ceab6b291f7ef9a13f4ae74e9b778c6d9fa4949f134c14b" + "files": 45, + "generated_at_commit": "fd0612f022820a299d845e9d327247d8fb3a16a7", + "source_tree": "sha256:e26cf1c11e72e506935b5999af9489214048af9b86d9b04a23e4d073278b3001" }, "owner_lane": "", "provenance": { diff --git a/docs/plans/atemporal/.crumb b/docs/plans/atemporal/.crumb index 50a7aaf..1b86135 100644 --- a/docs/plans/atemporal/.crumb +++ b/docs/plans/atemporal/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-10T01:06:00Z", + "compiled_at": "2026-10-10T01:44:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:d47ce00df9d802e49b11fb63bfd0f9af14f8543be8ea32c1ac6dfd59f86df7e1", + "digest": "sha256:11b7c20f2f5614e1f8a623d5fbec7d0a9bc5579075033da7e3422334cf9503e0", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 7, - "generated_at_commit": "cf2ee7fa9f4ea52b558e1ef2555dccf70d745be5", - "source_tree": "sha256:2d1e3eea467ee3169e6332995835dda838b4db298583f25230bac95481f0023c" + "files": 10, + "generated_at_commit": "fd0612f022820a299d845e9d327247d8fb3a16a7", + "source_tree": "sha256:a15110781b7baafd0f63812b943a9390cad0e057528f887db5c25cd86ca6f50c" } }, "name": "atemporal", diff --git a/docs/plans/atemporal/AT0_FREEZE.md b/docs/plans/atemporal/AT0_FREEZE.md index 6e735df..8477df8 100644 --- a/docs/plans/atemporal/AT0_FREEZE.md +++ b/docs/plans/atemporal/AT0_FREEZE.md @@ -5,7 +5,7 @@ This file lists every frozen AT-0 interface with the SHA-256 of its file bytes. Verify at any time from the aien-architecture root: ``` -sha256sum docs/plans/atemporal/AT0_CASE_V1.md docs/plans/atemporal/AT0_RESULT_V1.md docs/plans/atemporal/AT0_RESULT_V2.md +sha256sum docs/plans/atemporal/AT0_CASE_V1.md docs/plans/atemporal/AT0_RESULT_V1.md docs/plans/atemporal/AT0_RESULT_V2.md docs/plans/atemporal/AT1_CASE_V1.md docs/plans/atemporal/AT1_RESULT_V1.md ``` | Interface | File | SHA-256 of file bytes | Frozen | @@ -14,6 +14,10 @@ sha256sum docs/plans/atemporal/AT0_CASE_V1.md docs/plans/atemporal/AT0_RESULT_V1 | AT0_RESULT_V1 | `docs/plans/atemporal/AT0_RESULT_V1.md` | `dc52c5730dc52b155ab3c72afac9a26f8db01370804cf25fe6af23dcd0ed90a0` | aien-architecture PR 174, commit `044c9d1`; SUPERSEDED by AT0_RESULT_V2 on 2026-10-09 (trivial-kernel gap, omega issue 358); no evidence was written under it | | AT0_RESULT_V2 | `docs/plans/atemporal/AT0_RESULT_V2.md` | `bd0f9eb8cf3ef7226c3ea18c1c9fbd4db62e0c23a0481afa519830fc1f514b5e` | aien-architecture PR 180, commit `c7a7181`; the current result contract | | (no C header) | none | none | the two text contracts are the only shared interfaces (charter section 8); oracle, model and evaluator each carry their own parser | +| AT1_CASE_V1 | `docs/plans/atemporal/AT1_CASE_V1.md` | `e62018d8deec97fffca5cacaf6452d8fc45c395596517665cd73eb0c777a3e8f` | on merge of the pull request adding this file (AT-1, omega issue 371), after two independent reviews (Codex, Opus) of the draft; worked example `case_id 890980a4...`, `acceptance_id d63246c3...`, file `76e282fe...` | +| AT1_RESULT_V1 | `docs/plans/atemporal/AT1_RESULT_V1.md` | `3e6efd7e641a89bf0e425267525afabc51fe7a5497d3d539cdeaf09ddb6fa92d` | on merge of the pull request adding this file (AT-1), after the same two reviews; the AT-1 result contract; incorporates AT0_RESULT_V2 sections 2, 4, 5, 7 by reference | + +This record serves the whole atemporal line (AT-0, AT-1, ...); its file name is historical. Known-answer digests published inside AT0_CASE_V1 section 6 (computed with `sha256sum` over the exact byte rule of AT0_CASE_V1 section 5): diff --git a/docs/plans/atemporal/AT1_CASE_V1.md b/docs/plans/atemporal/AT1_CASE_V1.md new file mode 100644 index 0000000..824e302 --- /dev/null +++ b/docs/plans/atemporal/AT1_CASE_V1.md @@ -0,0 +1,172 @@ +# AT1_CASE_V1: AT-1 case interchange contract + +**Contract:** `AT1_CASE_V1`. **Domain tags:** `omega.at1.case.v1` (case identity), `omega.at1.acceptance.v1` (acceptance identity). +**Status:** FROZEN on merge of the pull request that adds this file. After that, any change to this file is a contract change and requires `AT1_CASE_V2` (AT1 charter section 8). Typos are not exempt. +**Owner:** Agent 0. **Program status:** NOT_RUN. **Predecessor:** `AT0_CASE_V1` (frozen, unchanged, still the AT-0 contract). + +## 0. Changes from AT0_CASE_V1 + +- Header and tags: `OMEGA-AT1-CASE v1`, `domain omega.at1.case.v1`, `contract AT1_CASE_V1`, identity tags `omega.at1.case.v1` and `omega.at1.acceptance.v1`. +- `model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG`; `interaction CLOCK_DIAGONAL_PAULI`; one new repeated line `interaction_pauli <j> <vx>,<vy>,<vz>` (N entries); `constraint SUM_HC_HS_V`. +- New acceptance line `prediction_target <IDEAL|INTERACTING>` (which reference the engine must agree with). +- Validity rule 4 (rational spectrum) is applied per clock level. +- Everything else is byte-for-byte the AT0_CASE_V1 rule. + +## 1. File shape + +ASCII text, LF line endings, every line terminated by exactly one LF, including the last. Allowed bytes: 0x20 to 0x7E and 0x0A. No CR, no tab, no blank line, no leading or trailing space, exactly one space between tokens. Lines appear in exactly the order below; a line marked "repeated" appears once per item, in ascending index order. Unknown keys, missing keys, duplicate keys and out-of-order keys are errors (`CASE_PARSE_ERROR`), never warnings. A fixed literal that does not match (for example `model_family` or `constraint`), an enumeration token outside its set, a repeated block whose line count does not match its count line, or a repeated line whose index token is not its zero-based position, is a shape error (`CASE_PARSE_ERROR`), per the AT-0 reading "shape before range". `clock_dim` is the count line for both the `clock_energies` entries and the `interaction_pauli` lines; `clock_label_count` is the count line for the `clock_label` lines. One exception, so that version mismatches are reported as such: the three version-bearing lines (`OMEGA-AT1-CASE v1`, `domain ...`, `contract ...`) are checked for key and placement in step 1 and for their value in step 2 of section 4 (`CASE_UNSUPPORTED_VERSION`). + +``` +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name <name> +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim <N> +clock_energies <rational>,<rational>,... (N entries, strictly increasing) +system_dim 2 +system_hamiltonian_pauli <h0>,<hx>,<hy>,<hz> (rationals) +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli <j> <vx>,<vy>,<vz> (repeated, j = 0 .. N-1, rationals) +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label <label> +reference_system_state <complex>,<complex> +clock_povm COVARIANT_DISCRETE +povm_tau_turns <rational> +povm_weight <rational> +clock_label_count <M> +clock_label <k> <label> (repeated, k = 0 .. M-1) +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind <POSITIVE|NEGATIVE> +prediction_target <IDEAL|INTERACTING> +expected_outcome <PASS|FAIL> +expected_failure_codes <code>,<code>,... | none +min_bound_kind <RIGOROUS|ESTIMATED|NONE> +tol_constraint_residual <scaled> +tol_povm_residual <scaled> +tol_probability <scaled> +tol_zero_probability <scaled> +tol_schrodinger <scaled> +end acceptance +case_id <64 lowercase hex> +acceptance_id <64 lowercase hex> +end +``` + +## 2. Canonical encodings (shared by AT1_CASE_V1 and AT1_RESULT_V1) + +Identical to AT0_CASE_V1 section 2, restated so this file stands alone: + +- **Integer:** decimal, optional leading `-`, no leading zeros, no `+`. Zero is `0`. `-0` is invalid (`CASE_NONCANONICAL`). +- **Rational:** `n/d` with `d >= 1`, `gcd(|n|, d) = 1`; integers are written `n/1`; zero is `0/1`. Limits: `|n| <= 1048576`, `1 <= d <= 1048576`. Validators decide rules 3 and 4 of section 4, the kernel test and the zero test of section 3 exactly for every case within these token limits, using arbitrary-precision integers or an equivalent exact method (the sum of three squared rationals can carry a denominator near 2^240). No implementation-defined refusal exists: a validator never refuses a case within the token limits for lack of arithmetic width, and never wraps around. +- **Complex rational:** `(re;im)`, both rationals, no spaces. +- **Scaled decimal:** `N@k` meaning `N / 10^k`, `N >= 0` integer, `0 <= k <= 40`; zero is `0@0`; otherwise `N` not divisible by 10 unless `k = 0`. +- **Lists:** comma separated, no spaces, no trailing comma; the empty list is `none`. +- **Label:** `[a-z][a-z0-9_]{0,31}`. **Name:** `[A-Za-z0-9][A-Za-z0-9_.-]{0,63}`. **Digest:** 64 lowercase hex. +- **No floating-point text anywhere in a case file.** +- A token that parses but is not canonical (`2/4`, `04`, `-0/1`, `10@1`) is `CASE_NONCANONICAL`, decided after the whole shape pass. + +## 3. Field meaning (the physics, fixed for V1) + +Units: hbar = 1, dimensionless energies, times in the reciprocal unit. Pauli matrices in the computational basis with `Z|0> = +|0>`. + +- `clock_energies`: `H_C = sum_j E_j |E_j><E_j|`, `j = 0 .. N-1`, `2 <= N <= 64`, strictly increasing. +- `system_hamiltonian_pauli`: `H_S = h0 I + hx X + hy Y + hz Z`. +- `interaction CLOCK_DIAGONAL_PAULI`, `interaction_pauli j vx,vy,vz`: `V = sum_j |E_j><E_j| (x) (vx_j X + vy_j Y + vz_j Z)`. All-zero vectors are allowed (then the case is an AT-0 ideal case written in AT-1 form). +- `constraint SUM_HC_HS_V`: `H_total = H_C (x) I_S + I_C (x) H_S + V`, clock factor first. Because `V` is diagonal in the clock energy basis, `H_total = sum_j |E_j><E_j| (x) (E_j I + h0 I + (h + v_j).sigma)` with `h = (hx, hy, hz)`. Level `j` has system eigenvalues `e_{j,+-} = h0 +- |h + v_j|` with eigenvectors `|e_{j,+-}>`. Write `n = h + v_j` and `s = +1` or `-1`; the unnormalized eigenvector for eigenvalue `h0 + s|n|` is `(s|n| + n_z, n_x + i n_y)` when that vector is nonzero, else `(n_x - i n_y, s|n| - n_z)`; its components are Gaussian rationals because `|n|` is rational (section 4 rule 4). For `|n| = 0` both eigenvalues equal `h0`, the eigenspace is the whole qubit, and the kernel test below matches both basis vectors `|0>, |1>` or neither. +- `physical_state NULLSPACE_PROJECTION`: `|Psi> = P_0 (|t_r> (x) |psi_0>)`, `P_0` the orthogonal projector onto the kernel of `H_total`, `|t_r>` the clock state of `reference_clock_label`, `|psi_0>` the unnormalized nonzero `reference_system_state`. The kernel is exact: spanned by `|E_j> (x) |e_{j,s}>` with `E_j + e_{j,s} = 0`. +- `clock_povm COVARIANT_DISCRETE`, `povm_tau_turns`, `povm_weight`, `clock_label`, `observables`: as AT0_CASE_V1 section 3 (`|t_k> = N^(-1/2) sum_j exp(-2 pi i E_j k tau) |E_j>`, `t_k = 2 pi k tau`, `F_k = w |t_k><t_k|`, `1 <= M <= 256`, labels unique, `reference_clock_label` among them). +- `Psi` is exactly zero if and only if `<e_{j,s}|psi_0> = 0` for every kernel pair `(j, s)`, decided in exact Gaussian-rational arithmetic with the unnormalized eigenvectors above (the trivial-kernel rule of AT1_RESULT_V1 then applies). +- Conditional vector: `phi_k = (<t_k| (x) I) Psi = (1/N) sum_{(j,s) in K} exp(+2 pi i E_j (k - r) tau) <e_{j,s}|psi_0> |e_{j,s}>`, `r` the index of the reference label. The sign is plus because the bra `<t_k|` conjugates the phase of `|t_k>`; with `E_j = -e_{j,s}` this is `exp(-i e_{j,s} (t_k - t_r))`, forward evolution, and for zero coupling it reduces to AT-0's `exp(-i H_S (t_k - t_r)) Pi_K psi_0`. Its normalization is the conditional state; `p(k) = w ||phi_k||^2 / ||Psi||^2`. Because the `|e_{j,s}>` differ from level to level, `p(k)` is in general label-dependent and the conditional state is in general not `exp(-i H_S (t_k - t_r)) psi_0`. That is the content AT-1 tests. +- `prediction_target`: `IDEAL` means the engine's conditional probabilities are judged against Schrodinger evolution under `H_S` alone; `INTERACTING` means they are judged against the oracle's independent computation of the interacting conditional probabilities (AT1_RESULT_V1 section 4). It is an acceptance rule, so it lives in `acceptance_id`, not in `case_id`: the same question can be judged both ways. + +No field of a case may hold a wall-clock time, a host name, a run number or anything else about a physical execution. + +## 4. Validity rules (exact, before any numerics) + +A validator refuses the case with the AT1_RESULT_V1 refusal code shown, on the first failure, in this order: + +1. Shape and encodings (sections 1, 2): `CASE_PARSE_ERROR` (shape) or `CASE_NONCANONICAL` (parsed, non-canonical token). +2. The values of the three version-bearing lines (`OMEGA-AT1-CASE v1`, `domain omega.at1.case.v1`, `contract AT1_CASE_V1`): `CASE_UNSUPPORTED_VERSION`. +3. Ranges and fixed values of section 3; `reference_system_state` nonzero; `povm_weight > 0`; `povm_tau_turns > 0`: `CASE_INVALID_PARAMETER`. (Counts and index order are shape, step 1.) +4. Rational spectrum per level: for every `j`, `(hx + vx_j)^2 + (hy + vy_j)^2 + (hz + vz_j)^2` is the square of a rational: `CASE_IRRATIONAL_SPECTRUM`. +5. `case_id` and `acceptance_id` equal the recomputed values (section 5): `CASE_ID_MISMATCH`. +6. Acceptance: `expected_failure_codes` is `none` when `expected_outcome PASS`, nonempty, sorted bytewise ascending, no duplicates when `FAIL`, every code an AT1_RESULT_V1 failure code: `CASE_INVALID_PARAMETER`. + +## 5. Identity + +- `case_id = SHA-256( "omega.at1.case.v1" || 0x00 || B_sem )`, `B_sem` every line from `begin semantic` through `end semantic` inclusive, each followed by LF. +- `acceptance_id = SHA-256( "omega.at1.acceptance.v1" || 0x00 || B_acc )`, `B_acc` every line from `begin acceptance` through `end acceptance` inclusive, each followed by LF. +- `case_file_sha256 = SHA-256(whole file bytes)`: artifact digest, not an identity. + +Every hashed byte is exact text. Equal digests are evidence of equal exact content, not the definition of equality. + +## 6. Worked example (known-answer test for codecs) + +Normative for byte layout and digests. The physics table is hand-derived and informational; `AT1_SPEC.md` and the oracle are the authority on values. + +``` +OMEGA-AT1-CASE v1 +domain omega.at1.case.v1 +contract AT1_CASE_V1 +case_name at1-kat-rotated-level-n4 +begin semantic +model_family PAGE_WOOTTERS_FINITE_CLOCKDIAG +energy_unit DIMENSIONLESS_HBAR_1 +clock_dim 4 +clock_energies -3/2,-1/2,1/2,3/2 +system_dim 2 +system_hamiltonian_pauli 0/1,0/1,0/1,1/2 +interaction CLOCK_DIAGONAL_PAULI +interaction_pauli 0 0/1,0/1,0/1 +interaction_pauli 1 0/1,0/1,0/1 +interaction_pauli 2 3/10,0/1,-1/10 +interaction_pauli 3 0/1,0/1,0/1 +constraint SUM_HC_HS_V +physical_state NULLSPACE_PROJECTION +reference_clock_label t0 +reference_system_state (1/1;0/1),(1/1;0/1) +clock_povm COVARIANT_DISCRETE +povm_tau_turns 1/4 +povm_weight 1/1 +clock_label_count 4 +clock_label 0 t0 +clock_label 1 t1 +clock_label 2 t2 +clock_label 3 t3 +observables PAULI_X,PAULI_Y,PAULI_Z +end semantic +begin acceptance +control_kind POSITIVE +prediction_target INTERACTING +expected_outcome PASS +expected_failure_codes none +min_bound_kind ESTIMATED +tol_constraint_residual 1@12 +tol_povm_residual 1@12 +tol_probability 1@12 +tol_zero_probability 1@9 +tol_schrodinger 1@12 +end acceptance +case_id 890980a43bd189494c2c922d2bf0049cbffb07f1090f578e04e1142aee7525f1 +acceptance_id d63246c391296c6cd381f1b654cc625be9f453c77c27c68d9eac240efd5b4d8f +end +``` + +`case_file_sha256` of the 45 lines above, each LF-terminated: `76e282fecf21025c9dd675378244e90ff192822a4c49d6cb812c9fe84b3f9ba4`. + +Hand derivation (informational). Levels 0, 1, 3 are uncoupled: `e = +-1/2` with eigenvectors `|0>`, `|1>`. Level 2 has `h + v_2 = (3/10, 0, 4/10)`, `|h + v_2| = 1/2`, so its eigenvalues are also `+-1/2` but along the axis `n = (3/5, 0, 4/5)`: `|e_{2,-}> = (-1/sqrt(10)) |0> + (3/sqrt(10)) |1>`. Kernel: `(j = 1, e = +1/2)` via `|0>` and `(j = 2, e = -1/2)` via `|e_{2,-}>`; dimension 2; both system components survive. The file's `psi_0 = (1, 1)` is proportional to `|+x>`; the values below use the normalized `|+x>` (`p(k)` does not depend on the scale; with the unnormalized vector `||Psi||^2` is `7/20` instead of `7/40`). With `psi_0 = |+x>`: `<0|psi_0> = 1/sqrt(2)`, `<e_{2,-}|psi_0> = 1/sqrt(5)`, `||Psi||^2 = (1/4)(1/2 + 1/5) = 7/40`, and the cross term `<0|e_{2,-}> = -1/sqrt(10)` makes the clock marginal label-dependent: `||phi_k||^2 = (1/16)(7/10 - (1/5) cos(pi k / 2))`, so + +| label | p(clock) | ideal model would say | +|---|---|---| +| t0 | 5/28 | 1/4 | +| t1 | 1/4 | 1/4 | +| t2 | 9/28 | 1/4 | +| t3 | 1/4 | 1/4 | + +The four values sum to 1 (the POVM is complete for this clock), the clock probabilities alone already refute the ideal prediction (AT1_RESULT_V1 check 10 compares them with `w/N` under `prediction_target IDEAL`), and the same case with `prediction_target IDEAL` is the negative class N1 (expected `SCHRODINGER_DEVIATION_EXCEEDED`). The relative phase between the two kernel levels is real here (`cos`), so this table does not depend on the phase sign of section 3; the Y outcomes do. Conditional Pauli values are left to `AT1_SPEC.md`. diff --git a/docs/plans/atemporal/AT1_CHARTER.md b/docs/plans/atemporal/AT1_CHARTER.md new file mode 100644 index 0000000..9f7bab2 --- /dev/null +++ b/docs/plans/atemporal/AT1_CHARTER.md @@ -0,0 +1,99 @@ +# AT-1 charter: interacting clock-system dynamics and independent replication + +Status: PROPOSED. Program status: NOT_RUN. Tracking issue: aien-dev/omega#371. Predecessor: AT-0 (omega#358, REVIEWED; `AT0_CHARTER.md`, `AT0_RESULTS.md`). Owner of this file: Agent 0. This is a living document; the contracts it names are frozen files (section 8). + +## 1. Purpose and scope + +AT-0 showed that three independent code bases implement the finite ideal Page-Wootters model as specified, on one machine under one account. AT-1 adds the two things AT-0 could not give, under Drake's decision of 2026-10-10 (quoted on omega#371, governing): + +1. **Interacting dynamics.** A clock-system coupling term `V` in the constraint, from a frozen family in which the physical-state kernel, the conditional states and the clock marginals are exactly computable. The ideal relational prediction (Schrodinger evolution under `H_S` alone) is expected to fail in specified ways, and those failures are exact expected outcomes, not surprises. +2. **Replication.** A second operator on a second machine runs the candidate and an evaluator from clean checkouts, with evaluator access genuinely separated from the candidate authors, and the semantic identities (`verdict_id`) must agree across machines. + +Deferred by Drake to a later milestone: automatic clock discovery. Not in scope: any claim about physical time, gravity, cosmology or a new law. AT-1's success criterion, verbatim: "Reproducible, independently evaluated interacting-system results, not proof that time is emergent." + +## 2. Source evidence + +- Drake's decision (omega#371, 2026-10-10). +- `AT0_RESULTS.md` `21119a9`: section 4 (limitations), section 5 (AT-1 scope: interacting regime; second operator on a second platform), section 6 (outside view's required controls: withheld cases under independent control on another machine; checks for nonzero reference readings, complex states, degeneracy, near-matching energies, zero projections, POVM completeness; dependency controls beyond symbol scans). +- `AT0_CHARTER.md` `5638611`: sections 3 (integration decisions, carried over unless changed below), 4 (identity policy), 8 (interface change rule and the three recorded contract readings). +- Frozen AT-0 contracts: `AT0_CASE_V1.md` (`d90af74b...`), `AT0_RESULT_V2.md` (`bd0f9eb8...`). Never edited; AT-1 uses new files. +- omega `research/atemporal/at0/` and `evidence/AT0/` (immutable), `evaluator/results/hidden-run-bff4a428/`. +- Machines on hand (memory, 2026-10-10): the Spark (aarch64 Linux, where AT-0 ran), the MacBook (macOS arm64, Gemini's host), the hub Pi (aarch64 Linux, boots from a USB stick; heavy work is kept off it). + +## 3. Integration decisions + +1. **Interaction family (exact).** `H_total = H_C (x) I + I (x) H_S + V` with `V = sum_j |E_j><E_j| (x) (vx_j X + vy_j Y + vz_j Z)`, one rational Pauli vector `v_j` per clock level, written as `interaction_pauli <j> <vx>,<vy>,<vz>` in the case. Because `V` is diagonal in the clock energy basis, `H_total = sum_j |E_j><E_j| (x) (E_j I + h0 I + (h + v_j).sigma)`, the level-`j` system eigenvalues are `e_{j,+-} = h0 +- |h + v_j|`, and the kernel is spanned by `|E_j> (x) |e_{j,s}>` with `E_j + e_{j,s} = 0`. Rational-spectrum rule per level: `|h + v_j|^2` must be a rational square (else `CASE_IRRATIONAL_SPECTRUM`). All-zero couplings reproduce AT-0 exactly and are allowed (control class P1). +2. **Why this family.** It is the smallest coupling that changes the physics qualitatively while keeping everything exact: the kernel eigenvectors now differ from level to level, so the conditional state at reading `k` is no longer `exp(-i H_S (t_k - t_r)) psi_0` and the clock marginals `p(k)` become label-dependent (worked example in `AT1_CASE_V1.md`: `p = 5/28, 1/4, 9/28, 1/4`). Couplings that are not clock-diagonal are a later version. +3. **Two references per case, plus the oracle's own clock marginal.** The oracle writes `reference_ideal` (Schrodinger under `H_S` alone, as in AT-0), `reference_interacting` (the exact conditional probabilities of the interacting model, by its own code path), `reference_clock_probability` and `reference_label` (its own marginal and status). The case's acceptance block names `prediction_target IDEAL|INTERACTING`. Check 10 compares the engine's `pauli` lines and clock marginal with the target (the ideal marginal is the exact `w/N`); check 11 cross-checks against the oracle whenever the target is `IDEAL` (`ORACLE_DISAGREEMENT`), so an engine that silently drops `V` fails even on a case that targets the ideal prediction; check 12 compares label statuses. Two independent reviews (Codex, Opus) of the first draft found the missing marginal check and a phase-sign error; both fixed before freeze (omega#371). +4. **Carried over from AT-0 unchanged:** exact-text identities, `f64:` values as evidence only, `threads 1`, trivial-kernel rule, per-input `NOT_EVALUATED`, shape-before-range refusal order, Rust `std`-only oracle confined to its directory, C11 engine, evaluator that verifies full result files only, hidden set under commitment, immutable evidence folders, `mk/at1.mk` never in `all`/`test`, crumb compile as the separate last commit, every milestone a comment on omega#371. +5. **Isolation gate extended.** Besides symbol scans: a mutant that reads the CPU counter directly (`CNTVCT_EL0` on aarch64, `rdtsc` on x86_64) and a mutant that issues the clock syscall without libc; both must be caught by the evaluator's gate (binary scan for the instruction pattern plus a run-twice-compare control). What the scans cannot see is stated in the report, as in AT-0. +6. **Replication mechanism (gate G7).** Agent 7 is the replicating operator on the MacBook (different OS, libc, compiler and shell from the Spark). Rules: (a) before candidate freeze, Agent 7 posts on omega#371 the SHA-256 commitment of its own hidden case set (at least six cases), produced on the MacBook; the candidate authors' sessions on the Spark never see those cases before freeze; (b) at freeze, Agent 0 posts the candidate commit; (c) Agent 7 clones omega at that commit on the MacBook, builds engine, oracle and evaluator there, runs `make at1-check` and its hidden set, and opens a PR that touches only `evidence/AT1/replication-<host>/`; (d) G7 passes when the replication folder has `source_tree_clean YES`, every public case's `verdict_id` equals the Spark run's `verdict_id`, the hidden set meets expectation, and the separation facts (machine, OS, toolchain, account, who could write where) are written in the folder. Known limit, stated now: all GitHub activity is one account; the separation is by machine, by commitment digest and by folder ownership, not by identity. A second GitHub identity would strengthen it and is an open item for Drake (section 10), not a blocker. +7. **Agent 7's evaluator is Agent 4's evaluator built on the MacBook**, not a fourth code base; what is independent is the machine, the build, the run and the hidden cases. Agent 6 grades this honestly as "independent execution and withheld cases", not as "independent verifier". + +## 4. Serialization and identity policy + +Unchanged from `AT0_CHARTER.md` section 4. AT-1 tags: `omega.at1.case.v1`, `omega.at1.acceptance.v1`, `omega.at1.verdict.v1`, `omega.at1.evidence.v1`. No digest over floating-point bytes is ever called an identity. + +## 5. Reuse and dependencies + +As AT-0 (`AT0_CHARTER.md` section 5): omega `src/sha256.c` for the C sides, Rust `std` for the oracle, no Cargo, no Python, no GPU, no network. The AT-0 code bases may be copied into `at1/` by their owners as a starting point; they must not be imported from `at0/` paths, so AT-0 stays exactly what was qualified. + +## 6. Case classes and gates + +Case classes (Agent 1 fixes the numbers in `AT1_SPEC.md`): + +- P1 zero coupling: must reproduce the AT-0 known-answer `verdict_id`-equivalent verdict and the same probabilities (continuity control). +- P2 one rotated level (the worked example), target INTERACTING. +- P3 every level coupled, full cover, target INTERACTING. +- P4 complex `psi_0` and nonzero reference reading, target INTERACTING. +- P5 large rationals within limits; P6 nearly matching energies that do not match (exact test must say no). +- N1 the P2 question with target IDEAL: expected FAIL `SCHRODINGER_DEVIATION_EXCEEDED` ("ideal relational prediction fails"). +- N2 coupling that moves every level out of the kernel: `TRIVIAL_PHYSICAL_STATE`. +- N3 label-dependent marginal with one label below `tol_zero_probability`: `CONDITIONAL_UNDEFINED`. +- N4 bad POVM; N5 precision demand; N6 zero projection of `psi_0`. +- R: per-level irrational spectrum; coupling line count not `N`; coupling index out of order; every AT-0 refusal class re-expressed. +- Mutants (Agent 4): drop `V` entirely; flip the sign of `V`; apply `v_j` to the wrong level; AT-0's axis-swap, Y-sign and hidden-clock mutants; counter and raw-syscall clock mutants. + +Gates: AT1-G0 freeze (this charter, both contracts, `AT1_SPEC.md`); G1 codec conformance (three parsers reproduce the worked example and digests; every refusal exact); G2 isolation (symbol scans plus counter and raw-syscall mutants); G3 oracle calibration (both references against the spec hand tables); G4 positive arm; G5 negative arm (exact codes; all mutants caught where observable, blindness explained per case); G6 independent verification on the Spark; G7 replication on the MacBook (section 3 item 6); G8 scientific review (`AT1_RESULTS.md`, PASS/FAIL/INCONCLUSIVE per claim, one outside opinion, limits and failures explicit, no new-physics claim). + +## 7. Ownership matrix + +| Agent | Owns (nothing else) | +|---|---| +| 0 | `AT1_CHARTER.md`, `AT1_CASE_V1.md`, `AT1_RESULT_V1.md`, AT-1 rows of `AT0_FREEZE.md`; contract readings on omega#371 | +| 1 | `AT1_SPEC.md` | +| 2 | omega `research/atemporal/at1/oracle/` (Rust, `std` only) | +| 3 | omega `research/atemporal/at1/model/` (C11) | +| 4 | omega `research/atemporal/at1/evaluator/` incl. hidden set and mutants | +| 5 | omega `mk/at1.mk`, `research/atemporal/at1/integration/`, `evidence/AT1/<run>/` on the Spark | +| 7 | omega `evidence/AT1/replication-<host>/` only, from the MacBook | +| 6 | `AT1_RESULTS.md` | + +Order: 0, then 1, then 2, 3, 4 in parallel, then 5, then 7, then 6. Agent 7's commitment digest is posted before Agent 5's first run. + +## 8. Interface change rule + +`AT0_CHARTER.md` section 8 applies word for word, with `AT1_CASE_V1` and `AT1_RESULT_V1` as the two shared interfaces. The three AT-0 readings (component outputs are not interfaces; per-input `NOT_EVALUATED`; shape before range) are inherited. A reading that cannot be settled from the frozen text is a new version. + +## 9. Handoff + +Each agent reads this charter, the two contracts, `AT1_SPEC.md` once merged, and the AT-0 files named in section 2 before writing anything. Reports go to omega#371 at every milestone. Agent 5's first qualification report is what moves the program from NOT_RUN. + +## 10. Discrepancies and open items + +1. Second GitHub identity for Agent 7 (Drake's call; not blocking; section 3 item 6). +2. Second machine: MacBook chosen; the Pi is excluded (fragile root disk). If the MacBook cannot build the Rust oracle with the pinned toolchain, Agent 7 records the substitution. +3. `AT0_FREEZE.md` is reused as the single freeze record for the atemporal line (rows for AT-1 contracts); its name is historical. + +## 11. Status + +| Item | Status | +|---|---| +| Program AT-1 | NOT_RUN | +| AT1_CASE_V1, AT1_RESULT_V1 | FROZEN on merge of the pull request that adds them | +| AT1_SPEC.md (Agent 1) | NOT_WRITTEN | +| AT1_RESULTS.md (Agent 6) | NOT_WRITTEN | +| Agent 7 commitment | NOT_POSTED | +| Gates AT1-G0 to AT1-G8 | NOT_RUN | +| Code in omega | none | +| Evidence | none | diff --git a/docs/plans/atemporal/AT1_RESULT_V1.md b/docs/plans/atemporal/AT1_RESULT_V1.md new file mode 100644 index 0000000..95a93e7 --- /dev/null +++ b/docs/plans/atemporal/AT1_RESULT_V1.md @@ -0,0 +1,147 @@ +# AT1_RESULT_V1: AT-1 result interchange contract + +**Contract:** `AT1_RESULT_V1`. **Domain tags:** `omega.at1.verdict.v1` (verdict identity), `omega.at1.evidence.v1` (evidence digest). +**Status:** FROZEN on merge of the pull request that adds this file. Any change requires `AT1_RESULT_V2` (AT1 charter section 8). +**Owner:** Agent 0. **Program status:** NOT_RUN. **Predecessor:** `AT0_RESULT_V2` (frozen, unchanged). + +## 0. Changes from AT0_RESULT_V2 + +- Version strings: header `OMEGA-AT1-RESULT v1`, `domain omega.at1.result.v1`, `contract AT1_RESULT_V1`, `case_contract AT1_CASE_V1`, verdict tag `omega.at1.verdict.v1`, evidence tag `omega.at1.evidence.v1`. +- The single `reference` line family becomes four oracle families: `reference_label`, `reference_clock_probability`, `reference_ideal` and `reference_interacting`. +- Check 10 compares against the case's `prediction_target` (Pauli values and clock marginal); new check 11 `oracle_cross_check`; new check 12 `label_status_agreement`; two new failure codes `INTERACTING_DEVIATION_EXCEEDED` and `ORACLE_DISAGREEMENT`. +- Provenance `<text>`, `<path>` and `<owner/name>` grammars are stated (section 1). +- `AT0_RESULT_V2.md` (sha256 `bd0f9eb8cf3ef7226c3ea18c1c9fbd4db62e0c23a0481afa519830fc1f514b5e`) sections 2, 4, 5 and 7 are normative parts of this contract wherever this file says "as AT0_RESULT_V2"; implementers receive that frozen file together with this one. +- Everything else (byte rules, `f64:` tokens, bounds, trivial-kernel rule, per-input `NOT_EVALUATED`, outcome rules, provenance, oracle-record marking) is the AT0_RESULT_V2 rule, restated where it matters. + +A result records one execution of one AT1_CASE_V1 case. Semantic content (exact text, may carry an identity): the case, the acceptance rules, the discrete verdict. Physical execution evidence (no identity): floating-point values, bounds, toolchain, host, wall-clock times, artifact digests. + +## 1. File shape + +Byte rules and encodings of AT1_CASE_V1 sections 1 and 2 apply, plus the `f64:` value token of section 2 below. Lines in exactly this order: + +``` +OMEGA-AT1-RESULT v1 +domain omega.at1.result.v1 +contract AT1_RESULT_V1 +case_contract AT1_CASE_V1 +case_name <name> +<the case's semantic block, byte-identical, begin semantic .. end semantic> +<the case's acceptance block, byte-identical, begin acceptance .. end acceptance> +case_id <digest> +acceptance_id <digest> +case_file_sha256 <digest> +begin numerics +arithmetic <BINARY64|BINARY64_INTERVAL|BINARY64_COMPENSATED|NONE> +bound_kind <RIGOROUS|ESTIMATED|NONE> +threads 1 +end numerics +begin values +physical_state_kernel_dim <integer> +constraint_residual <value> <bound> +povm_residual <value> <bound> +label <k> <label> <DEFINED|UNDEFINED|INDETERMINATE> (repeated, k = 0 .. M-1) +clock_probability <k> <value> <bound> (repeated) +pauli <k> <AXIS> <SIGN> <value> <bound> (repeated) +reference_label <k> <label> <DEFINED|UNDEFINED|INDETERMINATE> (repeated, k = 0 .. M-1) +reference_clock_probability <k> <value> <bound> (repeated) +reference_ideal <k> <AXIS> <SIGN> <value> <bound> (repeated) +reference_interacting <k> <AXIS> <SIGN> <value> <bound> (repeated) +end values +begin verdict +check <check_name> <PASS|FAIL|INDETERMINATE|NOT_EVALUATED> (repeated, fixed order of section 4) +outcome <PASS|FAIL|ERROR|NOT_RUN> +failure_codes <code>,<code>,... | none +error_code <code> | none +expectation_met <YES|NO|NOT_APPLICABLE> +end verdict +verdict_id <digest> +begin provenance +source_repo <owner/name> +source_commit <40 lowercase hex> +source_tree_clean <YES|NO> +contract_commit <40 lowercase hex> +engine_sha256 <digest> +oracle_repo <owner/name> +oracle_commit <40 lowercase hex> +oracle_sha256 <digest> +build_cc <text> +build_flags <text> +host <text> +run_started_utc <YYYY-MM-DDTHH:MM:SSZ> +run_finished_utc <YYYY-MM-DDTHH:MM:SSZ> +artifact <path> <digest> (repeated, sorted by path bytewise; may be absent) +end provenance +evidence_digest <digest> +end +``` + +`AXIS` is `X`, `Y` or `Z`; `SIGN` is `PLUS` or `MINUS`. `pauli`, `reference_ideal` and `reference_interacting` lines are ordered by `k`, then `X, Y, Z`, then `PLUS, MINUS`. For an engine label whose status is not `DEFINED`, its six `pauli` lines carry `undefined` and bound `0@0`. The oracle computes its own clock marginal and status independently: `reference_label` applies the status rule of section 3 to the oracle's own `reference_clock_probability` value and bound, and the six `reference_interacting` lines of a label carry `undefined 0@0` exactly when the oracle's own status for that label is not `DEFINED` (never from the engine's status, which the oracle cannot see). `reference_ideal` never depends on reachability and is always a value. **Trivial kernel** (`physical_state_kernel_dim 0`, or `Psi` exactly zero by the exact rule of AT1_CASE_V1 section 3): every `label` and `reference_label` is `UNDEFINED`; every `clock_probability`, `reference_clock_probability`, `pauli`, `reference_interacting` and `constraint_residual` line is `undefined 0@0`; `povm_residual` and `reference_ideal` still carry values. Line count and order never change. + +Provenance grammar: `<text>` is everything after the key and one space to the end of the line, 1 to 200 bytes of 0x20..0x7E, no leading or trailing space, internal spaces preserved; it is the only token kind that may contain spaces (`build_cc`, `build_flags`, `host`). `<path>` is 1 to 200 bytes of 0x21..0x7E (no spaces); `artifact` paths are unique and strictly increasing bytewise. `<owner/name>` is `[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+`. + +`case_name`, the two blocks, `case_id` and `acceptance_id` are copied from the case; a writer refuses to emit a result whose blocks do not reproduce the copied identities. + +**Oracle-written records** (carried from the AT-0 approval condition): a record written by the oracle itself has `build_cc` beginning with the literal `oracle ` and `engine_sha256` equal to `oracle_sha256`; a writer refuses anything else, and such a record is never a candidate result. The runner splices only the oracle's two reference line families into the candidate result. + +## 2. Numbers in a result + +As AT0_RESULT_V2 section 2: `f64:` plus 16 lowercase hex digits of the binary64 bit pattern, most-significant digit first, `-0.0` written as `f64:0000000000000000`; `nonfinite` for a non-finite value (forces `NONFINITE_VALUE`); `undefined` only where section 1 and section 3 say; bounds are scaled decimals with `bound_kind` `RIGOROUS`, `ESTIMATED` or `NONE` (then every bound `0@0`); `threads 1` fixed. + +## 3. Quantities + +All refer to AT1_CASE_V1 section 3. `Psi_hat = Psi / ||Psi||`. + +- `physical_state_kernel_dim`: number of pairs `(j, s)` with `E_j + e_{j,s} = 0`, exact from the rational energies per level. +- `constraint_residual`: `|| H_total Psi_hat ||_2` (with `V` included); `undefined 0@0` on a trivial kernel. +- `povm_residual`: `|| sum_k F_k - I_C ||_F`. +- `clock_probability k`: `p(k) = w ||phi_k||^2 / ||Psi||^2`, label-dependent in general. +- Label status: `UNDEFINED` if `p(k) + bound <= tol_zero_probability`; `DEFINED` if `p(k) - bound > tol_zero_probability`; else `INDETERMINATE`. +- `pauli k AXIS SIGN`: for a `DEFINED` label, the outcome probabilities of the Pauli on `rho_k = phi_k phi_k^dagger / ||phi_k||^2`, each computed directly from `rho_k`. Engine quantity. +- `reference_clock_probability k`: the oracle's own `p(k)` from the closed form of AT1_CASE_V1 section 3 (kernel pairs, level eigenvectors, phases), never from the engine's code. `reference_label k`: the status rule applied to that value and bound. +- Ideal clock marginal: under the ideal model (zero coupling) `p(k) = w/N` for every label whenever `Psi` is nonzero (AT0_SPEC.md section 13.1); check 10 uses the exact rational `w/N` as the ideal reference for the clock marginal, so no line is written for it. +- `reference_ideal k AXIS SIGN`: the same probabilities for `exp(-i H_S (t_k - t_r)) |psi_0> / ||psi_0||`, `H_S` alone, no `V`. Oracle quantity, separate code path. +- `reference_interacting k AXIS SIGN`: the same probabilities for the interacting conditional state of AT1_CASE_V1 section 3, computed by the oracle from the closed form (kernel pairs, level eigenvectors, phases), never by the engine's code. Oracle quantity. + +No result field is a deviation or a sum. + +## 4. Checks, in this fixed order + +Comparison forms, bounds (a derived quantity carries the summed bounds of its parts, so `pauli - reference` carries both bounds), `INDETERMINATE` and per-input `NOT_EVALUATED` as AT0_RESULT_V2 section 4 and the AT-0 reading: checks quantified over written probabilities or defined labels run on the inputs that exist; `NOT_EVALUATED` only when no input remains, except check 11, which is `NOT_EVALUATED` whenever `prediction_target` is `INTERACTING`. "Both DEFINED" below means the engine's `label` and the oracle's `reference_label` for that `k` are both `DEFINED`; a label that is `DEFINED` on one side only is check 12's business and is skipped by checks 10 and 11. + +| # | check_name | quantity compared with its tolerance | failure code on FAIL | +|---|---|---|---| +| 1 | `bound_kind_sufficient` | `bound_kind` at least `min_bound_kind` | `BOUND_KIND_INSUFFICIENT` | +| 2 | `values_finite` | no `nonfinite` token | `NONFINITE_VALUE` | +| 3 | `physical_state_nontrivial` | `physical_state_kernel_dim >= 1` and `Psi` nonzero | `TRIVIAL_PHYSICAL_STATE` | +| 4 | `constraint_residual` | vs `tol_constraint_residual` | `CONSTRAINT_RESIDUAL_EXCEEDED` | +| 5 | `povm_normalization` | `povm_residual` vs `tol_povm_residual` | `POVM_NORMALIZATION_EXCEEDED` | +| 6 | `clock_probability_sum` | `sum_k p(k) - 1` vs `tol_probability` | `PROBABILITY_SUM_EXCEEDED` | +| 7 | `probability_range` | every `clock_probability` and `pauli` value (reference lines excluded), signed form, vs `tol_probability` | `PROBABILITY_OUT_OF_RANGE` | +| 8 | `pauli_pair_sum` | each defined label and axis, `PLUS + MINUS - 1` vs `tol_probability` | `PROBABILITY_SUM_EXCEEDED` | +| 9 | `conditional_defined` | no label `UNDEFINED` | `CONDITIONAL_UNDEFINED` | +| 10 | `target_agreement` | for each label both DEFINED, axis and sign: `pauli - reference_<target>` vs `tol_schrodinger`; and for each such label: `clock_probability - m` vs `tol_probability`, where `m` is the exact rational `w/N` when `prediction_target` is `IDEAL` and the `reference_clock_probability` value when it is `INTERACTING` | `SCHRODINGER_DEVIATION_EXCEEDED` when the target is `IDEAL`; `INTERACTING_DEVIATION_EXCEEDED` when it is `INTERACTING` | +| 11 | `oracle_cross_check` | only when `prediction_target IDEAL`: for each label both DEFINED, `pauli - reference_interacting` vs `tol_schrodinger` and `clock_probability - reference_clock_probability` vs `tol_probability`; `NOT_EVALUATED` when the target is `INTERACTING` (check 10 already compares those lines) | `ORACLE_DISAGREEMENT` | +| 12 | `label_status_agreement` | for each `k`: `FAIL` if `label` and `reference_label` are both determinate (`DEFINED` or `UNDEFINED`) and differ; `INDETERMINATE` if either is `INDETERMINATE`; else `PASS` | `ORACLE_DISAGREEMENT` | + +Trivial kernel: check 3 `FAIL`, checks 4, 6, 7, 8, 9, 10, 11, 12 `NOT_EVALUATED`, checks 1, 2, 5 evaluated. Any `INDETERMINATE` check or label adds `PRECISION_INSUFFICIENT`. A check that is `FAIL` for several items adds its code once. + +## 5. Outcome, codes and expectation + +`outcome`, `failure_codes` (sorted, unique), `error_code`, `ERROR` and `NOT_RUN` shapes, and `expectation_met` exactly as AT0_RESULT_V2 section 5 (`YES` only when outcome and the failure-code set both equal the expectation; a verifier may not normalize a discrepancy away). + +**Failure codes (closed set for V1):** `BOUND_KIND_INSUFFICIENT`, `CONDITIONAL_UNDEFINED`, `CONSTRAINT_RESIDUAL_EXCEEDED`, `INTERACTING_DEVIATION_EXCEEDED`, `NONFINITE_VALUE`, `ORACLE_DISAGREEMENT`, `POVM_NORMALIZATION_EXCEEDED`, `PRECISION_INSUFFICIENT`, `PROBABILITY_OUT_OF_RANGE`, `PROBABILITY_SUM_EXCEEDED`, `SCHRODINGER_DEVIATION_EXCEEDED`, `TRIVIAL_PHYSICAL_STATE`. + +**Refusal codes (closed set for V1):** `CASE_PARSE_ERROR`, `CASE_NONCANONICAL`, `CASE_UNSUPPORTED_VERSION`, `CASE_INVALID_PARAMETER`, `CASE_IRRATIONAL_SPECTRUM`, `CASE_ID_MISMATCH`. A refused case produces no result file: the tool prints exactly one line `AT1_CASE_REFUSED <code>` to standard error and exits with status 2. + +**Run error codes:** `ORACLE_UNAVAILABLE`, `RESOURCE_LIMIT`, `INTERNAL_ERROR`. + +## 6. Identity and evidence + +- `verdict_id = SHA-256( "omega.at1.verdict.v1" || 0x00 || "case_id " || case_id || LF || "acceptance_id " || acceptance_id || LF || B_ver )`, `B_ver` every line from `begin verdict` through `end verdict` inclusive, each followed by LF. Claim identity of the run. Two honest runs on different machines reach the same `verdict_id` when they reach the same verdict on the same case and rules; AT-1 gate G7 relies on exactly this. +- No semantic identity over computed values. +- `evidence_digest = SHA-256( "omega.at1.evidence.v1" || 0x00 || every line above the evidence_digest line, each followed by LF )`. Evidence, not identity. +- `case_file_sha256`, `engine_sha256`, `oracle_sha256`, `artifact` digests: plain SHA-256, no tag. + +## 7. Provenance rules + +As AT0_RESULT_V2 section 7: `source_tree_clean NO` results may not be cited for a gate; `contract_commit` names the aien-architecture commit of the frozen contracts; `host` is free text and, for a replication run, must name the machine and OS so the replication folder is self-describing.