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 tagomega.at1.verdict.v1, evidence tagomega.at1.evidence.v1. - The single
referenceline family becomes four oracle families:reference_label,reference_clock_probability,reference_idealandreference_interacting. - Check 10 compares against the case's
prediction_target(Pauli values and clock marginal); new check 11oracle_cross_check; new check 12label_status_agreement; two new failure codesINTERACTING_DEVIATION_EXCEEDEDandORACLE_DISAGREEMENT. - Provenance
<text>,<path>and<owner/name>grammars are stated (section 1). AT0_RESULT_V2.md(sha256bd0f9eb8cf3ef7226c3ea18c1c9fbd4db62e0c23a0481afa519830fc1f514b5e) 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-inputNOT_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)withE_j + e_{j,s} = 0, exact from the rational energies per level.constraint_residual:|| H_total Psi_hat ||_2(withVincluded);undefined 0@0on 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:
UNDEFINEDifp(k) + bound <= tol_zero_probability;DEFINEDifp(k) - bound > tol_zero_probability; elseINDETERMINATE. pauli k AXIS SIGN: for aDEFINEDlabel, the outcome probabilities of the Pauli onrho_k = phi_k phi_k^dagger / ||phi_k||^2, each computed directly fromrho_k. Engine quantity.reference_clock_probability k: the oracle's ownp(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/Nfor every label wheneverPsiis nonzero (AT0_SPEC.md section 13.1); check 10 uses the exact rationalw/Nas the ideal reference for the clock marginal, so no line is written for it. reference_ideal k AXIS SIGN: the same probabilities forexp(-i H_S (t_k - t_r)) |psi_0> / ||psi_0||,H_Salone, noV. 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_verevery line frombegin verdictthroughend verdictinclusive, each followed by LF. Claim identity of the run. Two honest runs on different machines reach the sameverdict_idwhen 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,artifactdigests: 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.