diff --git a/.crumb b/.crumb index 4e2f80947..7283cafc8 100644 --- a/.crumb +++ b/.crumb @@ -75,8 +75,8 @@ "purpose": "Directory polyglot. Purpose not yet described by a human." }, { - "digest": "4e374992454cc8512b69113c69fa0ec0067cb3418ab30ca4b90e37571206fb9b", - "last_commit": "ff814662", + "digest": "88f5ac7f17da410a362532e01860ed3651d94bbf69e36cbf6e178648f375888a", + "last_commit": "9d4e867c", "name": "research", "purpose": "Directory research. Purpose not yet described by a human." }, @@ -105,15 +105,15 @@ "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:57ea61a3894e3453961889e0a62dd10987c5dd5b34c01af115a23183d6a34ab5", - "compiled_at": "2026-10-10T05:35:38Z", + "children_root": "sha256:26662c36b49dbb302c8bc0b717f2c46b37836460634b406116677021f2e06647", + "compiled_at": "2026-10-10T05:42:42Z", "compiler": "crumb-compile/1", - "digest": "sha256:efadf9eca7b82adc332d48643d3276763aa88d5b34e131993c548095467b140b", + "digest": "sha256:94ff4e9fb806ea345f45c25e6b55178c5a5169b39e366fc3b18ea9222cc93b34", "evidence_files": 6817, "evidence_root": "sha256:54453c7ebc6592ac350b25e96417606ea7b1274f0e36dabb5b3aebc284a5e4a4", "files": 9222, - "generated_at_commit": "2523b7fc21a2105d86174dfbad9d7650e470a855", - "source_tree": "sha256:84d76ca3f493aaae37689b246fcd5c26d2befef78313388508b516730a652b43" + "generated_at_commit": "6dd3626dd3d664e645949c7dd4218dc9789b0749", + "source_tree": "sha256:91d2df848a174ee13a4e90bdea860e4a9fff726befb7348157e182d60569491b" }, "owner_lane": "", "provenance": { diff --git a/research/.crumb b/research/.crumb index fe4960a61..5c77294e5 100644 --- a/research/.crumb +++ b/research/.crumb @@ -21,8 +21,8 @@ "generated": { "children": [ { - "digest": "b891f976e96365b755f795de3703b1f7980cde1c73aead7862b163f4b395513f", - "last_commit": "59223a1f", + "digest": "6b9d29265d825334f4ea1aadbb0286f7bfd8ad1f08d5b8519957fd60b210fe03", + "last_commit": "9d4e867c", "name": "atemporal", "purpose": "AT-0 Clock-Free Universe research program: relational (Page-Wootters) quantum models with no ext" }, @@ -33,15 +33,15 @@ "purpose": "Directory research/dirac-oracle. Purpose not yet described by a human." } ], - "children_root": "sha256:a7743d6cd46c5d70f02aacb98fcffeef0917d3b719cd10c439ebf96a60e434ad", - "compiled_at": "2026-10-10T04:57:14Z", + "children_root": "sha256:d9f5fd4330544aa442be2ba9507c416a631ec9a6919bf1fcc0858931a44e69bf", + "compiled_at": "2026-10-10T05:20:45Z", "compiler": "crumb-compile/1", - "digest": "sha256:4e374992454cc8512b69113c69fa0ec0067cb3418ab30ca4b90e37571206fb9b", + "digest": "sha256:88f5ac7f17da410a362532e01860ed3651d94bbf69e36cbf6e178648f375888a", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 538, - "generated_at_commit": "59223a1fbb03e41f76a55b9cedb0fe0f79fce8ac", - "source_tree": "sha256:768a2ffa5c06db8f3118b974dd7914b751dc1862d8c80e4f0ee64d575cd2d847" + "generated_at_commit": "9d4e867c573e67d36a64b1da6ec6937e086aaaa2", + "source_tree": "sha256:48d6d146251914c9b0b4cd9a1415a66a705a919b84135ec53c0d198747aa7df6" }, "owner_lane": "", "provenance": { diff --git a/research/atemporal/.crumb b/research/atemporal/.crumb index 9b445480e..ccd9daa2f 100644 --- a/research/atemporal/.crumb +++ b/research/atemporal/.crumb @@ -10,14 +10,14 @@ } ], "children_root": "sha256:f7bd1d7019a69ef57140cd019f86634f3cb80c1e31ca3063dfdf73ac9deef7c6", - "compiled_at": "2026-10-10T04:57:14Z", + "compiled_at": "2026-10-10T05:20:45Z", "compiler": "crumb-compile/1", - "digest": "sha256:b891f976e96365b755f795de3703b1f7980cde1c73aead7862b163f4b395513f", + "digest": "sha256:6b9d29265d825334f4ea1aadbb0286f7bfd8ad1f08d5b8519957fd60b210fe03", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 392, - "generated_at_commit": "59223a1fbb03e41f76a55b9cedb0fe0f79fce8ac", - "source_tree": "sha256:becea0507f7888323946821d1d3b0320a41f79a39339d2f954163c0adf15a7da" + "generated_at_commit": "9d4e867c573e67d36a64b1da6ec6937e086aaaa2", + "source_tree": "sha256:162ef866a28a6359d8fa4988b88e46fcc70b074d6416997820c6760efa200afa" } }, "name": "atemporal", diff --git a/research/atemporal/at1/integration/.crumb b/research/atemporal/at1/integration/.crumb index 7d946720c..c272275bf 100644 --- a/research/atemporal/at1/integration/.crumb +++ b/research/atemporal/at1/integration/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-10T04:46:46Z", + "compiled_at": "2026-10-10T05:20:45Z", "compiler": "crumb-compile/1", - "digest": "sha256:94c5ecaf81c3ca7bd44ae2e4e0ca1f9c2a734049198561dfb18cc17e17dfbc20", + "digest": "sha256:b22f47d5bbafca31b15590e214d92639f416bc2780cf34febf27b50743db9446", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 5, - "generated_at_commit": "c76013ce71e76a26ffe30cf2dcca2ecbf0573abb", - "source_tree": "sha256:c108da480d00b817430cd24e8539b0fa7627aeec7d59a434960049cf092e5837" + "generated_at_commit": "9d4e867c573e67d36a64b1da6ec6937e086aaaa2", + "source_tree": "sha256:041a273c0ce2751b7a12a1221e82decf39b30b07f6066fc13efc4b68cd9092dc" } }, "name": "at1-integration", diff --git a/research/atemporal/at1/integration/QUALIFICATION.md b/research/atemporal/at1/integration/QUALIFICATION.md index 3abd06252..b478b8ba0 100644 --- a/research/atemporal/at1/integration/QUALIFICATION.md +++ b/research/atemporal/at1/integration/QUALIFICATION.md @@ -1,6 +1,6 @@ # AT-1 qualification report (Agent 5): first run and G1 rerun -**Status: QUALIFIED ON SPEC CONFORMANCE. On omega `f2b9e33` (run 2): G1 PASS (refusals 72/72), G2, G3, G4 (12/12), G5 (12/12) and G6 PASS, G0 REFERENCE, G7 and G8 NOT_RUN, 23 controls with 0 failing, runner exit 0. On omega `29e3c37` (run 1): G2 to G6 PASS and G1 FAIL on X7 alone (D1, since FIXED by the ruled oracle change in `f2b9e33`). D1 FIXED; D2 OPEN, informational.** +**Status: QUALIFIED ON SPEC CONFORMANCE. On omega `f2b9e33` (run 2): G1 PASS (refusals 72/72), G2, G3, G4 (12/12), G5 (12/12) and G6 PASS, G0 REFERENCE, G7 and G8 NOT_RUN, 23 controls with 0 failing, runner exit 0. On omega `29e3c37` (run 1): G2 to G6 PASS and G1 FAIL on X7 alone (D1, since FIXED by the ruled oracle change in `f2b9e33`). D1 FIXED; D2 FIXED (post-freeze follow-up, see table).** This is software conformance of the AT-1 implementation to its frozen contracts (AT1_CHARTER.md section 1). It is not a result about time or physics. PASS means spec conformance only. The run covers one platform (aarch64 Linux, glibc, gcc 13.3.0, rustc 1.98.1, GNU Make 4.3, dash). The evaluator runs UNISOLATED (same host and same account as the candidates), so nothing here is blinded. @@ -81,7 +81,7 @@ All 23 rows PASS in both runs. They are: - C8 engine mutants (Q3). - C9 to C13 isolation: - the strict engine set `at1_case.o at1_exact.o at1_numeric.o at1_result.o sha256.o` is clean; - - `at1_bn.o` has only `fwrite` exempt (D2) and `at1_io.o` only `fopen`/`fread`; + - `at1_bn.o` had only `fwrite` exempt (D2, since FIXED: strict after the follow-up below) and `at1_io.o` only `fopen`/`fread`; - `at1_main.o` is recorded only; - the oracle rlib member is clean; - mutants are caught, and the gate controls behave as intended. @@ -97,7 +97,7 @@ All 23 rows PASS in both runs. They are: | D | Status | What | Evidence | |---|---|---|---| | D1 | **FIXED** (f2b9e33, #378) | Refusal row X7 (`clock_dim 0`, `clock_energies none`). Run 1: engine and evaluator manifest said CASE_INVALID_PARAMETER, the oracle said CASE_PARSE_ERROR. Agent 0 ruled CASE_INVALID_PARAMETER on omega#371 (issuecomment-6093816127). The oracle reading changed in omega `f2b9e33` (#378: `split_list` reads `none` as the empty list), landed by the orchestrator; I did not patch the oracle | Run 2 G1 PASS: refusal PASS 72 FAIL 0 (`evidence/AT1/20261010T044344Z-18e1786/receipts/gates.tsv`) | -| D2 | OPEN, informational | `model/at1_bn.o` references `fwrite` (gcc lowers its out-of-memory `fputs` to stderr to `fwrite`). Agent 4's gate bans `fwrite`, so a strict scan of that object fails. C9 scans it with only `fwrite` exempt and every other engine compute object strictly | `receipts/isolation-engine-bn.log`. Posted for Agents 3 and 4 on omega#371 (issuecomment-6093822760) | +| D2 | FIXED (follow-up after the ff81466 freeze; G7 ran on the frozen commit) | `model/at1_bn.o` references `fwrite` (gcc lowers its out-of-memory `fputs` to stderr to `fwrite`). Agent 4's gate bans `fwrite`, so a strict scan of that object fails. C9 scans it with only `fwrite` exempt and every other engine compute object strictly | `receipts/isolation-engine-bn.log`. Posted for Agents 3 and 4 on omega#371 (issuecomment-6093822760). Fix: `at1_fatal` (one `fprintf` line to stderr, exit 1) defined in `at1_io.c`, the four `fputs`+`exit` sites in `at1_bn.c` call it; `at1_bn.o` joins the strict set in `run.sh` | Also recorded on omega#371 by Agent 0 (no action here): Agent 3's ERROR label token is `UNDEFINED`, and Agent 1's spec 13.6 items 1 to 3 are closed by readings (c), (d) and (e). C4 confirms that all four families are spliced. diff --git a/research/atemporal/at1/integration/run.sh b/research/atemporal/at1/integration/run.sh index 1d19e08ed..efea80c6d 100644 --- a/research/atemporal/at1/integration/run.sh +++ b/research/atemporal/at1/integration/run.sh @@ -342,12 +342,12 @@ allowed() { [ $alrc -eq 0 ] || grep -q '^FAIL: .* references ' "$WORK/al.out" || return 1 [ -z "$bad" ] } -STRICT="$ISO/clean/at1_case.o $ISO/clean/at1_exact.o $ISO/clean/at1_numeric.o $ISO/clean/at1_result.o $ISO/clean/sha256.o" +STRICT="$ISO/clean/at1_bn.o $ISO/clean/at1_case.o $ISO/clean/at1_exact.o $ISO/clean/at1_numeric.o $ISO/clean/at1_result.o $ISO/clean/sha256.o" sh "$GATE" "$EVAL" $STRICT > "$R/isolation-engine-strict.log" 2>&1; i1=$? -allowed "$ISO/clean/at1_bn.o" "fwrite" > "$R/isolation-engine-bn.log" 2>&1; i2=$? +i2=0 # at1_bn is strict since omega D2 follow-up: its fatal exit moved to at1_io.c (at1_fatal) allowed "$ISO/clean/at1_io.o" "fopen fread" > "$R/isolation-engine-io.log" 2>&1; i3=$? sh "$GATE" "$EVAL" "$ISO/clean/at1_main.o" > "$R/isolation-engine-main-record-only.log" 2>&1 -[ $ISOOK = 1 ] && [ $i1 -eq 0 ] && [ $i2 -eq 0 ] && [ $i3 -eq 0 ] && ctrl C9-ISOLATION-ENGINE PASS "evaluator/gates/isolation.sh (nm symbol scan + at1-eval scan-clock instruction scan) on every engine object compiled with the model flags: at1_case, at1_exact, at1_numeric, at1_result, sha256 strictly; at1_bn with only fwrite exempt (D2); at1_io (the file reader) with only fopen, fread exempt; at1_main (CLI) recorded, not judged" "strict set clean ($(tail -1 "$R/isolation-engine-strict.log")); at1_bn: only fwrite (the out-of-memory diagnostic to stderr); at1_io: only fopen, fread; no instruction hit anywhere" \ +[ $ISOOK = 1 ] && [ $i1 -eq 0 ] && [ $i2 -eq 0 ] && [ $i3 -eq 0 ] && ctrl C9-ISOLATION-ENGINE PASS "evaluator/gates/isolation.sh (nm symbol scan + at1-eval scan-clock instruction scan) on every engine object compiled with the model flags: at1_bn, at1_case, at1_exact, at1_numeric, at1_result, sha256 strictly (at1_bn strict since the D2 follow-up moved its fatal exit into at1_io.c); at1_io (the file reader) with only fopen, fread exempt; at1_main (CLI) recorded, not judged" "strict set clean ($(tail -1 "$R/isolation-engine-strict.log")); at1_io: only fopen, fread (plus the at1_fatal diagnostic line via fprintf, not a banned symbol); no instruction hit anywhere" \ || ctrl C9-ISOLATION-ENGINE FAIL "gates/isolation.sh on engine objects" "build=$ISOOK strict rc=$i1 bn rc=$i2 io rc=$i3: $(grep '^FAIL' "$R"/isolation-engine-strict.log "$R/isolation-engine-bn.log" "$R/isolation-engine-io.log" | head -3 | tr '\n' ' ')" # the three gate controls of Agent 4, embedded in a real engine compute object MUTOK=1; MUTMSG="" diff --git a/research/atemporal/at1/model/at1_bn.c b/research/atemporal/at1/model/at1_bn.c index 4bc4e7859..ed210a535 100644 --- a/research/atemporal/at1/model/at1_bn.c +++ b/research/atemporal/at1/model/at1_bn.c @@ -13,19 +13,19 @@ void *at1_xmalloc(size_t n) { void *p = malloc(n ? n : 1); - if (!p) { fputs("AT1_ENGINE_ERROR RESOURCE_LIMIT\n", stderr); exit(1); } + if (!p) at1_fatal("RESOURCE_LIMIT"); return p; } void *at1_xcalloc(size_t n, size_t sz) { void *p = calloc(n ? n : 1, sz ? sz : 1); - if (!p) { fputs("AT1_ENGINE_ERROR RESOURCE_LIMIT\n", stderr); exit(1); } + if (!p) at1_fatal("RESOURCE_LIMIT"); return p; } void *at1_xrealloc(void *p, size_t n) { void *q = realloc(p, n ? n : 1); - if (!q) { fputs("AT1_ENGINE_ERROR RESOURCE_LIMIT\n", stderr); exit(1); } + if (!q) at1_fatal("RESOURCE_LIMIT"); return q; } @@ -156,7 +156,7 @@ static int clz32(uint32_t x) { int n = 0; if (!x) return 32; while (!(x & 0x8000 /* Knuth TAOCP vol. 2, 4.3.1 algorithm D, on magnitudes; truncated signs applied after */ void bn_divmod(bn *q, bn *rem, const bn *a, const bn *b) { - if (b->n == 0) { fputs("AT1_ENGINE_ERROR INTERNAL_ERROR division by zero\n", stderr); exit(1); } + if (b->n == 0) at1_fatal("INTERNAL_ERROR division by zero"); int qneg = a->neg != b->neg, rneg = a->neg; if (bn_cmp_abs(a, b) < 0) { if (rem) { bn_copy(rem, a); } diff --git a/research/atemporal/at1/model/at1_io.c b/research/atemporal/at1/model/at1_io.c index 6a3a684ed..5c96ad00e 100644 --- a/research/atemporal/at1/model/at1_io.c +++ b/research/atemporal/at1/model/at1_io.c @@ -1,4 +1,6 @@ -/* The only file-system access of the engine: read a whole file, up to AT1_FILE_MAX bytes. */ +/* The only stdio of the engine outside at1_main.c: read a whole file (up to + * AT1_FILE_MAX bytes) and the fatal error exit. The compute objects stay free + * of stdio so the isolation gate scans them strictly (AT-1 D2). */ #include "at1_model.h" #include @@ -28,3 +30,13 @@ at1_status at1_read_file(const char *path, uint8_t **bytes, size_t *len) *bytes = b; *len = n; return AT1_OK; } + +/* Fatal engine error: one stderr line, exit 1. Lives here, not in a compute + * object: gcc lowers fputs(constant, stream) to fwrite, which the isolation + * gate bans (omega#371 D2); fprintf is not lowered and at1_io.o is the one + * object the gate exempts for file I/O anyway. */ +void at1_fatal(const char *reason) +{ + fprintf(stderr, "AT1_ENGINE_ERROR %s\n", reason); + exit(1); +} diff --git a/research/atemporal/at1/model/at1_model.h b/research/atemporal/at1/model/at1_model.h index 18e470c4f..c9413fcdb 100644 --- a/research/atemporal/at1/model/at1_model.h +++ b/research/atemporal/at1/model/at1_model.h @@ -57,6 +57,12 @@ const char *at1_status_name(at1_status s); * alias an input. Allocation failure prints AT1_ENGINE_ERROR RESOURCE_LIMIT and exits 1. */ typedef struct { int neg; int n; int cap; uint32_t *d; } bn; +/* Engine error exit: prints one line "AT1_ENGINE_ERROR " on stderr and + * exits 1. Defined in at1_io.c (the I/O object) so that no compute object + * references stdio (AT-1 D2, omega#371 comment 6093971637: gcc lowered the + * former fputs in at1_bn.c to fwrite, which the isolation gate bans). */ +void at1_fatal(const char *reason); + void bn_init(bn *a); void bn_free(bn *a); void bn_copy(bn *r, const bn *a);