From 0387405d48c710b5561ec7f6692349c4ad67f449 Mon Sep 17 00:00:00 2001 From: "A.Shakhmatov" Date: Sat, 10 Oct 2026 16:07:19 +0300 Subject: [PATCH] tests: flush conformance progress and correct live GC evidence --- docs/design/runtime-value-depth-audit.md | 24 +++++++++++++++++++++++- tools/conformance.zig | 3 +++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/design/runtime-value-depth-audit.md b/docs/design/runtime-value-depth-audit.md index 34e6e5a..ed9e816 100644 --- a/docs/design/runtime-value-depth-audit.md +++ b/docs/design/runtime-value-depth-audit.md @@ -89,7 +89,7 @@ Unit tests compare exact bytes with the ordinary Zig encoder in 112 combinations The verified 32,768-level returned-array programme now produces the complete 65,568-byte CLI record, including its newline, in both deterministic and hosted profiles under fuel 8. Unit tests write its outcome after execution-heap release under ordinary and per-instruction collection. Hosted tests also compare both new shallow examples with the old CLI, using fuel rather than wall-clock termination. -Validation: all units, format checks, test-extended and the complete current set of 1,791 ordinary conformance cases pass (the prior 1,789-case full run plus the two added cases). Both added cases pass in Debug with collection before every instruction. Forty-four old/new shallow run records are byte-identical. The earlier full Debug per-step collector run ended without a completion result after 785 passing records; its missing process handle and process inventory were checked before starting a replacement full ReleaseSafe run. The replacement retains safety checks and is still in progress; neither incomplete run is counted as a full pass. +Validation: all units, format checks, test-extended and the complete current set of 1,791 ordinary conformance cases pass (the prior 1,789-case full run plus the two added cases). Both added cases pass in Debug with collection before every instruction. Forty-four old/new shallow run records are byte-identical. At this checkpoint the earlier Debug per-step run had no completion result after 785 passing records and its process handle was missing; a namespace-limited process check failed to identify it before a replacement ReleaseSafe run was started. The later host-process inspection below corrects the mistaken inference that the Debug run had ended. Neither incomplete run is counted as a full pass. Q-060 remains open for a closing call-path audit. Inspection shows that the public verify wrapper returns diagnostics without replacing the caller's module with verifyModule's derived-cache result, while interp.run accepts a verified module without rebuilding those caches. Runtime nominal size queries can therefore reach the uncached fallback tracked by Q-059. Whether this yields a failure on a verified cache-free library input is unverified; the mixed codec test above is not evidence for that path. No fresh Claude review was available for this increment. @@ -98,3 +98,25 @@ Q-060 remains open for a closing call-path audit. Inspection shows that the publ The [nominal size-query increment](air-type-depth-audit.md#cache-free-nominal-accounted-size-queries) removes the recursive fallback reached by runtime size callers when a public verify caller retains its original module. A direct constructed 32,768-declaration query independently reproduces the old fallback failure and now returns one byte. Parsed, verified cache-free programmes at nominal depths 1,024 and 4,096 run successfully both before and after the repair; no old runtime failure at those depths is claimed. The distinction between query-only and fully verified inputs is retained. Runtime queries now pass their host allocator and propagate temporary metadata OutOfMemory before authority charging or result publication. Temporary state is released after each query; arithmetic null, zero-sized content, maximum enum payloads and allocation failure/release rules keep their meanings. A verified quota test compares 54 cached/cache-free outcome pairs (108 runs), including exact fuel boundaries and per-instruction collection. The original verify and run APIs remain usable without derived caches. No normative, bundle, feature, code, trap or accepted-depth change is introduced. Q-060 remains open for the closing traversal audit and additional full per-step validation; Q-059's uncached nominal property queries remain separate work. + +## Live-process and progress-output correction (2026-10-10) + +Host-namespace inspection identifies both full per-step runs as live: Debug +PID 376545 writes `collector-gc-conformance.jsonl` (1,612 complete passing +records at inspection), and ReleaseSafe PID 458411 writes +`value-json-gc-safe-conformance.jsonl` (1,610). `/proc` inside the command +sandbox cannot see these host PIDs, although the approved `ps` command lists +them. A missing tool handle plus that namespace-limited check was insufficient +evidence of termination. Neither process was stopped or restarted in this audit. + +The conformance runner's 4-KiB stdout buffer can also retain completed records +and leave an unrelated final record partially visible while later cases run. +It now flushes after each completed case, preserving record bytes/order and +exit status while exposing progress promptly. A separate current ReleaseSafe +`source/std` per-step run uses this writer; it is additional focused validation, +not a restart or a full-suite pass. No wall-clock timeout ends any run. A GDB +attach for read-only stack inspection was rejected by the host's ptrace policy. + +Q-060 remains open until the traversal/lifetime audit and full validation have +terminal evidence. Q-059's [compiler inventory](type-traversal-inventory.md) +is now resolved; the earlier statements about its open query paths are historical. diff --git a/tools/conformance.zig b/tools/conformance.zig index 7980298..8900654 100644 --- a/tools/conformance.zig +++ b/tools/conformance.zig @@ -127,6 +127,9 @@ pub fn main(init: std.process.Init) !void { if (result.detail.len != 0) try out.print(" ({s})", .{result.detail}); try out.writeByte('\n'); } + // Long instrumented runs must expose each completed case rather than + // leave their last result hidden in a partially filled stdout buffer. + try out.flush(); } if (!json) { try out.print("\n{d} passed, {d} failed, {d} pending\n", .{