rfc: define contract accounting and audit status candidate

This commit is contained in:
dev committed 2026-10-09 10:06:40 +03:00
1 parent 9a3e135f43
commit a4181f2d8d
4 files changed
+107 -3

No files matched your search

+2
View File
@@ -403,6 +403,8 @@ P6-6 requires contracts and their four audit statuses, but spec 13 §1/spec 08
[Invariant-boundary research](contract-invariant-boundaries.md) compares eager/epoch coverage with a checked representation and explicit in-place callback update. The latter avoids requiring replacement allocation for borrowed linear state, but still needs stable-observation rules, pending-result semantics and exact type/source representation. Current probes confirm a scalar helper mutating an enclosing Range, public fields bypassing a library wrapper and independent-root relation drift (each returns 1), plus E0001 for a new type declaration versus E0004 for an unknown type constructor. Persistent state-root claims and function-boundary relations must have distinct scope; module roots/declarations and full P6-6 proof/status rules remain open.
[Accounting/status research](contract-accounting-and-status.md) proposes pre-SSA activation and virtual-binding bounds, a restricted proof classifier that preserves predicate execution, and explicit unsafe-assumed/documented modes. Nine current-language probes confirm frame/value separation and verifier-stage priority; four proposed mode opcodes reject E0004 alone, while existing unsafe `assume(false)` accepts and traps T0009. These fourteen cases constrain the candidate, not demonstrate contract implementation. Exact proof costs, diagnostic collection, report schema, source/module metadata and adoption remain open.
## Q-055 — Feature-gated AIR headers and frozen rejection codes
Spec 07 §8.7 permits changes to earlier E0004/E0006 rejections, not E0001. Source inspection of the parser before commit `0086549` shows that an unfeatured `trusted "..."` header was parsed as a block label and failed while expecting `:`; current spec 13 §6.3 and the parser require E0006 `feature_not_declared`. RFC 0009 calls the header additive, although this diagnostic transition is outside the literal exception. The historical parser has not been executed in this audit.