interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / docs / plans / atemporal / AT1_RESULT_V1.md

147 lines · 13539 bytes Raw Blame History Source

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

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||.

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_namequantity compared with its tolerancefailure code on FAIL
1bound_kind_sufficientbound_kind at least min_bound_kindBOUND_KIND_INSUFFICIENT
2values_finiteno nonfinite tokenNONFINITE_VALUE
3physical_state_nontrivialphysical_state_kernel_dim >= 1 and Psi nonzeroTRIVIAL_PHYSICAL_STATE
4constraint_residualvs tol_constraint_residualCONSTRAINT_RESIDUAL_EXCEEDED
5povm_normalizationpovm_residual vs tol_povm_residualPOVM_NORMALIZATION_EXCEEDED
6clock_probability_sumsum_k p(k) - 1 vs tol_probabilityPROBABILITY_SUM_EXCEEDED
7probability_rangeevery clock_probability and pauli value (reference lines excluded), signed form, vs tol_probabilityPROBABILITY_OUT_OF_RANGE
8pauli_pair_sumeach defined label and axis, PLUS + MINUS - 1 vs tol_probabilityPROBABILITY_SUM_EXCEEDED
9conditional_definedno label UNDEFINEDCONDITIONAL_UNDEFINED
10target_agreementfor 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 INTERACTINGSCHRODINGER_DEVIATION_EXCEEDED when the target is IDEAL; INTERACTING_DEVIATION_EXCEEDED when it is INTERACTING
11oracle_cross_checkonly 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
12label_status_agreementfor each k: FAIL if label and reference_label are both determinate (DEFINED or UNDEFINED) and differ; INDETERMINATE if either is INDETERMINATE; else PASSORACLE_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

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.