docs: refine checked-type properties and invariant audit inventory

This commit is contained in:
dev committed 2026-10-09 16:18:56 +03:00
1 parent 4cda44823d
commit 8df6cacf12
7 files changed
+155 -9

No files matched your search

+2
View File
@@ -358,3 +358,5 @@ The [proof/report refinement](../design/contract-proof-and-report.md) closes the
The [module/source candidate](../design/contract-source-and-module-state.md) develops persistent caller-owned module state without globals or visibility, separate boundary-only relations, narrow checked-type bindings, explicit operations and clause elaboration. Claude's review identified namespace hijacking and old/capture ambiguities; the reserved type.checked prefix preserves accepted checked modules/types, and eager old/document matching is explicit. Nineteen current-language baselines verify names/static applications, namespace collisions and reserved bindings, complete source rejections, Copy/linear/checked witness shapes and flat/tree record packing (runs use fuel 10,000). These constrain the proposal and do not implement contracts. Rooted-state owner selection, checked properties/ABI/positions, mangling/inventory schema, source/diagnostic/dispatch integration and vertical validation remain gates; RFC 0039 stays Draft and full P6-6 remains doing.
The property/type-position audit exposed a pre-existing accounted-size defect ([Q-058](../design/open-questions.md#q-058--finite-anonymous-types-truncated-by-the-size-cycle-guard)): anonymous array/atomic/mutex edges incorrectly consumed a nominal-cycle depth budget. Corrected finite type sizes now enforce existing value/frame and allocation quotas. AIR/source boundary and rejection fixtures, a named-record heap quota pair and cached/uncached/cyclic unit checks cover the fix; a separate unverified native-recursion concern is recorded as Q-059. This correction adds no contract syntax, feature or adoption decision; checked properties and the remaining full P6-6 gates stay open.
The [property/inventory refinement](../design/contract-source-and-module-state.md#representation-properties-and-positions) specifies candidate complete representation/position checks, inherited properties, recursive endpoint gates, dedicated representation traversal, forbidden zero manufacture, size versus ABI and representation-only result rendering. The inventory's universal raw-R proof is distinct from construction-site proofs and supplied declaration provenance. Twelve prior property baselines match `4cda448`; eight new reproducible vectors verify ordinary identity/content restrictions and the Range predicate. The report research component includes six sites, seven boundaries and three checked identities with distinct type/site proofs. These are current-language/design checks, not implemented contracts. Claude's earlier property audit is incorporated; the live Herdr channel is unavailable for fresh review. Mangling/source-map, diagnostics/dispatch, compatibility and owner model selection remain gates; RFC 0039 stays Draft and full P6-6 remains doing.