docs: record nominal property review and query guidance
This commit is contained in:
1 parent
cef944d30e
commit
b2a0251376
3 files changed
+8
-1
No files matched your search
@@ -103,7 +103,7 @@ The repaired process-level 32,768-declaration query returns one byte, and both p
|
||||
|
||||
At 897f538, each of nine direct queries over 32,768 nested nominal records ending in u8 aborts with exit -6 and recursive property frames on the ordinary 8-MiB stack: linearity, Zeroable, Copy, Local, Send, Share, IslandSafe, endpoint and forbidden content. These constructed resolved graphs test the query API, not acceptance by the complete verifier. Only child core capture is disabled; no timeout terminates a probe. All nine repaired probes return their expected booleans.
|
||||
|
||||
Public property queries now take a host allocator and propagate metadata OutOfMemory. An iterative classifier retains the original anonymous edges, Send/Share transitions and terminal rules. Cached facts and anonymous terminal paths allocate nothing. A cache-free nominal query runs the existing monotone property worklist in a temporary arena and releases it before returning; it neither mutates the caller's module nor installs a cache. Zeroable rejects an enum without preparing its payload graph. Explicit prepared queries serve internal stages whose preceding type verification supplies immutable caches and value types. Public generic-argument validation and result-type helpers use fallible queries where that precondition does not hold.
|
||||
Public property queries now take a host allocator and propagate metadata OutOfMemory. An iterative classifier retains the original anonymous edges, Send/Share transitions and terminal rules. Cached facts and anonymous terminal paths allocate nothing. A cache-free nominal query runs the existing monotone property worklist in a temporary arena and releases it before returning; it neither mutates the caller's module nor installs a cache. Zeroable rejects an enum without preparing its payload graph. Explicit prepared queries serve internal stages whose preceding type verification supplies immutable caches and value types. Public generic-argument validation uses fallible queries where that precondition does not hold. The private derivedType helper already receives the prepared module; its fallible calls therefore read cached facts without allocating.
|
||||
|
||||
The preserved invariant is that ownership/transfer/aliasing decisions use the same structural facts, independently of whether the caller retained verifier caches (spec 02/03/04). Property preparation retains its fixed points, universal/existential aggregation, declaration dependencies, phantom edges and saturated summaries. Invalid recursive layouts still reject E1003. Valid `source/generics/constraints_positive.aji` and the `nominal_queries/cycle` AIR/source rejection pair remain conformance examples; raw and prepared `own_array<Plain>` arguments accept, while `own_array<Owner>` arguments retain the same E1001 envelope. Verifier rules, runtime ownership, authority, fuel and deterministic scheduling are unchanged. There is no new Aji allocation, code, trap, feature, flag, syntax limit or bundle text. Only the internal Zig allocator/error API changes.
|
||||
|
||||
@@ -111,6 +111,8 @@ Tests compare both raw and prepared queries against 9,216 independent shallow pr
|
||||
|
||||
Q-059 remains open for the closing public-call-path audit and source AST traversal inspection. The earlier full per-instruction collection suite is still running; no incomplete suite or unavailable Claude review is counted as a pass. Phase 6 and contract decisions remain open.
|
||||
|
||||
A subsequent read-only Claude review, relayed by the owner, examined the property diff against 897f538, including frontend/lower.zig. No defects were reported in the nine classifications, fixed-point preparation, cache preconditions, allocator/error lifetime or test construction. Nothing was built or run, and the expanded suite was not observed; this is code-review evidence only, not independent test confirmation or review of later source-parser work. The resultType/derivedType wording above is corrected, and query's API comment now directs repeated callers to prepare once rather than rebuilding the entire module for each nominal query.
|
||||
|
||||
## Source type-syntax parser
|
||||
|
||||
At 3563560, an 82,013-byte monomorphic source file containing 16,384 nested length-one arrays aborts in `typeExpr` with 8,704 symbolized frames and exit -6. Depths 63, 64 and 4,096 accept. Spec 15 §15's depth-64 generic traversal guard is not a universal parser limit: specialization returns an unchanged module when there are no generic declarations or uses. Applying that guard to every parsed annotation would change existing acceptance. Only child core capture is disabled during probes; no timeout terminates them.
|
||||
|
||||
Reference in new issue
Block a user