rfc: investigate explicit invariant updates and stable observations
This commit is contained in:
1 parent
d041c07ad2
commit
9a3e135f43
4 files changed
+85
No files matched your search
@@ -343,3 +343,9 @@ The purity increment supplies a closed opcode/type candidate, authority-free Cop
|
||||
RFC 0040 Draft develops Q-057 as a separate vertical prerequisite: selective shared enum dispatch and nested scalar/array owner views. Explicit `match ref place` creates only named payload views; skipped payloads stay owned, with no partial moves or general borrowed block joins. Current probes confirm a legal 65-payload enum returning 0 and E5101 for its value match. Unknown enum-view forms report E0004 alone; isolated owner-view forms report E0004, and a used owner-view result also reports E5001. All seven baseline probes are checked with the existing compiler; executed programs use fuel 10,000. Q-055's dependent-error interpretation remains open. These Draft rules allocate no feature/code and change no normative bundle, compiler or conformance fixture; type/module invariants, contract statuses and full P6-6 delivery remain open.
|
||||
|
||||
Claude independently reviewed RFC 0040; corrections preserve existing E0004 name lookup, distinguish E2102 SSA origins from E2108 frame roots, count unreachable ingress and clarify unchanged complete-state joins and pattern-binder status. Three further source probes independently confirm both ref-parameter place spellings (combined result 6), wrong SSA-root return E2102 and Copy-frame escape E2108. All ten probes confirm only current-language constraints, not the proposed operations' implementation.
|
||||
|
||||
The [invariant-boundary research](../design/contract-invariant-boundaries.md) advances RFC 0039's type/module gate. Five baseline probes confirm projected scalar mutation, a library-wrapper bypass and independent-root drift (all return 1), plus E0001 for a new declaration and E0004 for a new type constructor. Claude's independent review identified the need for explicit in-place update of borrowed linear representations; extraction/replacement alone can require new allocation authority. The checked-type candidate separates unvalidated representation updates from persistent shared claims and requires stable observations, callback effects/loan checks and pending-result validation. Module state-root and boundary-only relations retain distinct scopes; exact metadata, source rules, statuses/proofs and vertical delivery remain open. No feature, normative bundle or implementation changes; P6-6 remains doing.
|
||||
|
||||
Eight further compatibility probes independently reproduce Claude's findings: exact predicate-bearing type spellings in seven positions report E0004 alone, while an opcode-first make/take/result-use shape reports E0004 twice and E5001. All thirteen current-language cases match their recorded outcomes; runs use fuel 10,000. Stable closure membership must be justified separately from point-in-time predicate purity so future interior-mutable reads cannot silently invalidate persistent claims. No complete AIR0 compatibility or implemented invariant is claimed.
|
||||
|
||||
Final review identified the need for instruction-internal observation places: ordinary AIR borrow.ref rejects Copy scalar and Copy struct SSA roots with E1001 (two independently verified probes, fifteen total). The candidate states evaluation-scoped materialization without widening general addressability or frame-content rules; RFC 0039 Copy ref-bindings use the same requirement. Exact activation-slot accounting remains a gate. Copy extraction preserves the original checked claim but gives the plain copy no claim; shared interior-mutable interfaces remain outside stable observations. No implementation is authorized by the research.
|
||||
Reference in new issue
Block a user