docs: close Q-061 native-stack defect, record Q-063 superlinear lowering

This commit is contained in:
dev committed 2026-10-13 14:10:50 +03:00
1 parent 3154588490
commit f00f50f45b
4 files changed
+89 -1

No files matched your search

+25
View File
@@ -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.