rfc: define rooted module state and source contract elaboration
This commit is contained in:
1 parent
8260d3521e
commit
03614c9bef
6 files changed
+120
-4
No files matched your search
@@ -153,7 +153,7 @@ The [invariant-boundary research](../design/contract-invariant-boundaries.md) de
|
||||
|
||||
Module invariants need a definition of their roots and observation boundaries. Source 0.1 has no module-state declarations or visibility modifiers; neither nonexistent globals nor arbitrary private-state semantics may be inferred from spec 13's example. Loop invariants, if included by P6-6, need an explicit initiation/preservation/exit rule. Implementing function contracts alone leaves these requirements and P6-6 open.
|
||||
|
||||
The candidate distinguishes a persistent checked state root owning correlated values from a named boundary relation over separately owned roots and an explicit function set. Their audit scopes and coverage claims must differ. Source module declarations, root mappings and any hidden-state abstraction still require a decision; ordinary pre/post reuse alone must not silently redefine module invariants.
|
||||
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. It adds no boundary-group or hidden-global abstraction. Rooted state as the module-invariant model remains an owner decision; property/ABI/type-position and report integration remain open. Ordinary pre/post reuse alone must not silently redefine module invariants.
|
||||
|
||||
Remaining decisions: shared observation coverage (Q-057) and invariant-evaluation interactions; source clause elaboration and complete AIR binding grammar; purity/snapshot diagnostics and ordering; proof and assumption modes; invariant boundaries and metadata representation; traps/report schema and tested pending-return dispatch. The RFC stays Draft until these have concrete rules and counterexamples.
|
||||
|
||||
|
||||
Reference in new issue
Block a user