docs: close Q-061 native-stack defect, record Q-063 superlinear lowering
This commit is contained in:
1 parent
3154588490
commit
f00f50f45b
4 files changed
+89
-1
No files matched your search
@@ -524,6 +524,15 @@ The [2026-10-11 per-step observation](runtime-value-depth-audit.md#per-step-vali
|
||||
|
||||
## Q-061 — Source expression/statement nesting and native recursion
|
||||
|
||||
**Closed (2026-10-13) for the native-stack-abort defect**, using the
|
||||
final probe battery and the preceding traversal repairs. The
|
||||
[closing observation](source-expression-depth-audit.md#closing-observation-and-performance-limitation-2026-10-13)
|
||||
records the tested constructions, timings and limits of that evidence. Deep
|
||||
`loop` remains untested because the attempted fixture rejected unreachable
|
||||
code after `break` with E7006. Closure is not a proof of arbitrary-depth
|
||||
acceptance or linear compilation time. Superlinear lowering is separately
|
||||
tracked in Q-063; Q-060's full per-step GC validation remains independent.
|
||||
|
||||
The paragraphs below record chronological checkpoints. Later repairs supersede
|
||||
earlier failure/OOM findings; the [current inventory](source-expression-depth-audit.md#remaining-work)
|
||||
lists the remaining paths.
|
||||
@@ -627,3 +636,19 @@ fn main() -> u64 effects [] {
|
||||
The Q-061 traversal repair deliberately preserves this behavior. A separate
|
||||
spec/parser decision and positive/negative boundary tests are needed before
|
||||
changing acceptance. This does not add a semantic rule or close Q-061.
|
||||
|
||||
## Q-063 — Superlinear lowering on deeply nested control constructs
|
||||
|
||||
**Open; known implementation performance limitation (2026-10-13).** The
|
||||
[final source-depth probes](source-expression-depth-audit.md#closing-observation-and-performance-limitation-2026-10-13)
|
||||
report superlinear elapsed time for nested `match`, `while` and especially
|
||||
`shield`, without native-stack aborts or observed correctness defects. This
|
||||
tracks resilience to adversarial source input separately from Q-061's repaired
|
||||
stack-exhaustion defect. Repeated scans of the remaining AST for live variables
|
||||
are a suspected cause, not a profiled explanation of all three results.
|
||||
|
||||
Defer liveness caching or a broader `lower.zig` refactor until after Q-060's
|
||||
full per-step GC validation. A later optimization needs profiling and exact
|
||||
CFG/SSA, diagnostic-order, host-OOM and runtime/fuel compatibility checks.
|
||||
No source-depth limit, new diagnostic, verifier rule, AIR instruction or
|
||||
language semantic change is introduced by recording this limitation.
|
||||
@@ -191,3 +191,30 @@ current focused coverage of the absent cases; it does not establish terminal
|
||||
success for the historical run or a full current-binary GC suite pass. No live
|
||||
run was restarted or stopped and no wall-clock timeout ended a test.
|
||||
Q-060 and the Phase 6 full-validation gate remain open.
|
||||
|
||||
## Full per-step validation launch (2026-10-13)
|
||||
|
||||
A new full ReleaseSafe run starts from HEAD `3154588` (full revision in
|
||||
`provenance.json`), Zig 0.17.0, and an isolated snapshot of the current build
|
||||
inputs and all 1,793 conformance files. The command is:
|
||||
|
||||
```sh
|
||||
zig build conformance -Doptimize=ReleaseSafe -- --json --collect-every-step
|
||||
```
|
||||
|
||||
The runner compares ordinary and collect-before-every-instruction run records
|
||||
for each runtime test and each configured schedule. Accept/reject cases still
|
||||
participate in full corpus coverage; they do not execute the collector.
|
||||
|
||||
Artifacts are in `/tmp/aji-q060-gc-20261013-x7tp0ee4/`: `provenance.json`,
|
||||
`inputs.sha256.json`, `expected-tests.json`, `conformance.jsonl`, `stderr.log`,
|
||||
and `status.json`. User systemd unit `aji-q060-gc-20261013-x7tp0ee4.service`
|
||||
owns the process independently of the interactive session. On completion,
|
||||
`exit.json` records the command's exit status before coverage auditing;
|
||||
`audit.json` checks exact coverage, duplicates, nonpassing records and unchanged
|
||||
snapshot input hashes. No wall-clock timeout ends the run; test fuel headers
|
||||
and the runner's existing default fuel remain in force.
|
||||
|
||||
Launch is not a full pass. Q-060 remains open until terminal exit 0 and the
|
||||
complete coverage audit are recorded. Phase 6's owner-confirmed exit rescoping
|
||||
is separate from this remaining hardening check.
|
||||
@@ -1276,6 +1276,10 @@ The repaired scalar probes reach later control callbacks on nested-block inputs:
|
||||
|
||||
## Remaining work
|
||||
|
||||
This is the historical inventory at the pruned-SSA checkpoint. The closing
|
||||
observation below supersedes its Q-061-open status and the recorded block/if
|
||||
failures; its unprobed paths are not evidence of a current failure.
|
||||
|
||||
Follow-up checks accept 16 parenthesized/mixed-call levels but abort
|
||||
with empty stdout at 1,024. A qualified enum variant returns E7002 at 16
|
||||
components but aborts in Parser.exprPath at 16,384. Raw evidence is
|
||||
@@ -1300,3 +1304,35 @@ the host-OOM follow-up and intermediate repairs have no separate review.
|
||||
The struct/value-field, array, enum-payload, task.join, task.spawn, mutex and
|
||||
scalar index operand increments have the scoped reviews recorded above. The
|
||||
raw-place increment records its core and final follow-up reviews explicitly.
|
||||
|
||||
## Closing observation and performance limitation (2026-10-13)
|
||||
|
||||
The owner reports completion of the final source-depth probe battery: no
|
||||
native-stack abort on any tested construction, correct results, and no observed
|
||||
correctness defect. These are relayed observations, not new executions by this
|
||||
documentation change. The compiler uses explicit control continuations through
|
||||
`Lowerer.drive`; the earlier block/if failure observations are historical.
|
||||
|
||||
| Construction | 1,024 levels | 8,192 levels |
|
||||
|---|---|---|
|
||||
| let, calls, `-(…)`, `+`, if/else | 0.1–1.1 s | 0.7–1.8 s |
|
||||
| nested scope | 0.19 s | 1.6 s |
|
||||
| nested while | 2.8 s | 154 s, then existing E5101 |
|
||||
| nested shield | 22 s | 1,334 s |
|
||||
| nested match | 1.1 s | 41 s |
|
||||
|
||||
The 65,536-level match probe was stopped by the owner after more than ten
|
||||
minutes and about 1.7 GB; it has no terminal result and is not a pass or a
|
||||
native-stack failure. Attempted deep `loop` fixtures contained unreachable
|
||||
code after `break` and returned E7006, so they establish no deep-loop coverage.
|
||||
Timings characterize this reported battery only; no controlled cross-machine
|
||||
benchmark or exact asymptotic bound is claimed.
|
||||
|
||||
Close Q-061 for its native-stack-abort defect with those coverage limitations
|
||||
explicit. Track the observed superlinear control-lowering time as open Q-063.
|
||||
Repeated remaining-AST liveness scans are a plausible cause, requiring
|
||||
profiling before an optimization. Defer the larger TCB-adjacent caching
|
||||
refactor while Q-060's full per-step GC validation is run. No normative rule,
|
||||
accepted-depth bound, diagnostic, feature, ownership/runtime behavior or
|
||||
agent-reference text changes. Phase 6 was already closed under its separately
|
||||
rescoped exit criterion; these hardening results do not redefine that decision.
|
||||
@@ -883,4 +883,4 @@ Q-060 full per-step GC and Phase 6 exit review remain open.
|
||||
|
||||
Exit criterion (all reference programs and `examples/` authored as `.aji` and passing the corpus through the frontend): met. All five source/AIR reference pairs and every example pass; 1,793/1,793 conformance cases, unit tests and `zig fmt --check` pass at `f419063`; source construct coverage is 121/121 (519 run/accept, 904 reject tests). Codex's iterative lowering of block/if/match/select control is committed (`f419063`); its state-equivalence test tolerates the frozen reference's leaked arm scope on error exits, which is unobservable because `function()` resets scopes.
|
||||
|
||||
Not met and deferred, not claimed: P6-6 (contracts, RFC 0039 Draft) becomes P6-13 and P6-7's literal same-code criterion (97/206 verified; 45 E7xxx analogues, one source-early analogue and 63 AIR-only cases do not meet it, Q-053) becomes P6-14. Q-060 (full per-step GC validation) and Q-061 (remaining lowering-depth callbacks) stay open as hardening, outside the exit criterion. The rescoping was proposed by the agent and confirmed by the owner on 2026-10-13.
|
||||
Not met and deferred, not claimed: P6-6 (contracts, RFC 0039 Draft) becomes P6-13 and P6-7's literal same-code criterion (97/206 verified; 45 E7xxx analogues, one source-early analogue and 63 AIR-only cases do not meet it, Q-053) becomes P6-14. Q-060 (full per-step GC validation) and Q-063 (superlinear control lowering) remain open as hardening, outside the exit criterion. Q-061's native-stack-abort defect is [closed with explicit probe-coverage limitations](../design/source-expression-depth-audit.md#closing-observation-and-performance-limitation-2026-10-13). The exit rescoping was proposed by the agent and confirmed by the owner on 2026-10-13.
|
||||
Reference in new issue
Block a user