rfc: define contract accounting and audit status candidate
This commit is contained in:
1 parent
9a3e135f43
commit
a4181f2d8d
4 files changed
+107
-3
No files matched your search
@@ -349,3 +349,5 @@ The [invariant-boundary research](../design/contract-invariant-boundaries.md) ad
|
||||
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.
|
||||
|
||||
The [accounting/status candidate](../design/contract-accounting-and-status.md) proposes locals plus snapshot plus maximum simultaneous observation-place storage, separately bounded virtual return bindings, and a restricted proof classifier with unchanged predicate execution. Explicit assumed/documented modes retain ordinary legality checks; only assumptions require an unsafe boundary, and documentation grants no truth guarantee. Nine frame/stage baselines and five mode/unsafe baselines match the existing CLI (runs use fuel 10,000); none tests an implemented contract feature. Claude's independent review led to body-independent pre proof costs, explicit Copy/linear make accounting and total pre-types linearity queries, including invalid cycles. Exact proof-cost conventions, diagnostic collection, report/source/module schema and owner adoption remain gates. RFC 0039 stays Draft; P6-6 and its full four-status/invariant exit criterion remain open.
|
||||
Reference in new issue
Block a user