docs: define contract AIR bindings and access diagnostics
This commit is contained in:
1 parent
5ed0d86e36
commit
2db752dba9
9 files changed
+479
-6
No files matched your search
@@ -155,9 +155,11 @@ Module invariants need a definition of their roots and observation boundaries. S
|
||||
|
||||
The candidate distinguishes a persistent checked state root owning correlated values from a boundary relation over separately owned roots and an explicit function set. Their audit scopes and coverage claims must differ. The [module/source refinement](../design/contract-source-and-module-state.md) proposes a narrow named binding for caller-owned checked state, collision-safe type.checked syntax, independent type-level audit claims and eager snapshot/capture rules. Its property/position refinement preserves representation properties and recursive transfer gates, prohibits zero manufacture, keeps accounted size separate from ABI and proposes representation-only JSON rendering. The exact type inventory classifies predicates over raw universal representations, separately from make sites and source provenance. Twenty current-language property baselines constrain these rules; no checked feature, type proof or inventory is implemented. It adds no boundary-group or hidden-global abstraction. Rooted state as the module-invariant model remains an owner decision; source-map/mangling, diagnostics/dispatch and vertical integration remain open. Ordinary pre/post reuse alone must not silently redefine module invariants.
|
||||
|
||||
The source refinement also fixes descriptor encodings, collision order, emission categories and exact clause/witness maps; three current-language naming groups and seven proposed descriptors constrain the candidate. The accounting refinement specifies global P-before-S diagnostic subpasses, shortest real-call witnesses with bounded head/tail facts, and isolated post/ordinary-return collection preserving legacy leak and early-return lists. Five current-language return probes and six independent graph vectors check those constraints. This is design evidence; neither new diagnostics nor contract dispatch are implemented.
|
||||
The source refinement also fixes descriptor encodings, collision order, emission categories and exact clause/witness maps; three current-language naming groups and nine proposed descriptors constrain the candidate, including decimal byte-order cases. The accounting refinement specifies global P-before-S diagnostic subpasses, shortest real-call witnesses with bounded head/tail facts, and isolated post/ordinary-return collection preserving legacy leak and early-return lists. Five current-language return probes and six independent graph vectors check those constraints. This is design evidence; neither new diagnostics nor contract dispatch are implemented.
|
||||
|
||||
Remaining decisions: shared observation coverage (Q-057) and invariant-evaluation interactions; complete AIR binding grammar and source diagnostic reason allocations; purity/snapshot diagnostic schemas and format-0 compatibility; final feature/status policy adoption; invariant/module model adoption; traps/run-record schema and tested pending-return dispatch. The RFC stays Draft until these have concrete rules and counterexamples, followed by full vertical delivery.
|
||||
The [AIR binding candidate](../design/contract-air-bindings.md) gives complete prefix/type/operation spellings, discriminated parameter/snapshot/result observations, exact adaptation and candidate E8001 reasons/fields. It preserves ordinary never-call binding forms and distinguishes whole checked observation from representation access. Eighteen current-language view/call/opcode probes constrain the proposal; they do not implement it or settle format-0 compatibility.
|
||||
|
||||
Remaining decisions: shared observation coverage (Q-057) and invariant-evaluation interactions; source diagnostic reason allocations; final purity/snapshot schema adoption and format-0 compatibility; final feature/status policy adoption; invariant/module model adoption; traps/run-record schema and tested pending-return dispatch. The RFC stays Draft until these have concrete rules and counterexamples, followed by full vertical delivery.
|
||||
|
||||
## Compatibility and integration
|
||||
|
||||
|
||||
Reference in new issue
Block a user