diff --git a/docs/design/open-questions.md b/docs/design/open-questions.md index cd69fa6..45cbbfe 100644 --- a/docs/design/open-questions.md +++ b/docs/design/open-questions.md @@ -530,8 +530,8 @@ The [2026-10-11 per-step observation](runtime-value-depth-audit.md#per-step-vali 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 +`loop` was probed later (2026-10-14, see Q-063): no native-stack failure. +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 is closed separately. @@ -644,10 +644,13 @@ changing acceptance. This does not add a semantic rule or close Q-061. **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 +`shield`; nested `loop` (probed 2026-10-14) behaves the same: 7.2 s at 1,024 +levels, 108 s at 4,096 (then the ordinary E5101), and no result after more than +ten minutes and about 480 MB at 16,384, where the agent stopped it. No +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. +are a suspected cause, not a profiled explanation of all four 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 diff --git a/docs/design/source-expression-depth-audit.md b/docs/design/source-expression-depth-audit.md index 8779792..79e6654 100644 --- a/docs/design/source-expression-depth-audit.md +++ b/docs/design/source-expression-depth-audit.md @@ -1323,8 +1323,15 @@ they are generated by the construction patterns in the table. The compiler uses The 65,536-level match probe was stopped by the agent 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. +native-stack failure. Early deep `loop` fixtures contained unreachable +code after `break` and returned E7006, so they established no coverage. + +Deep `loop` (2026-10-14, agent-run, `loop { k = k + 1; if k > 3 { break; } ... }` +nested n times, `aji check`): n=64, 256 accepted; n=1,024 accepted in 7.2 s; +n=4,096 reached the ordinary E5101 after 108 s; n=16,384 had no result after +more than ten minutes and about 480 MB and was stopped by the agent (neither a +pass nor a native-stack failure). Nested `loop` shows the same superlinear +time as `match`, `while` and `shield` (Q-063); no crash. Timings characterize this battery only; no controlled cross-machine benchmark or exact asymptotic bound is claimed.