docs: map contract source errors and compatibility rejections

This commit is contained in:
dev committed 2026-10-09 18:36:04 +03:00
1 parent c633f23952
commit b3051f161c
5 files changed
+476

No files matched your search

@@ -165,6 +165,8 @@ Remaining decisions: shared observation coverage (Q-057) and invariant-evaluatio
## Compatibility and integration
The [source rejection/compatibility audit](../design/contract-source-errors-and-compatibility.md) proposes eight precise E7006 reason additions while retaining ordinary source type/name/transfer errors and mapped verifier facts. Ten executed AIR0 rejection vectors distinguish dependent undefined results, unrelated SSA defects and the separate header E0001 issue. They do not settle Q-055: a causal exception policy or AIR1 requires an owner decision. Source reasons and runtime schemas are concrete candidates; adoption and complete vertical delivery remain open.
An AIR0 implementation must preserve all earlier accepted behavior, canonical bytes and rejected codes (spec 07 §8.7). Isolated candidate function operations and the snapshot/post prefix currently reject only E0004; registering them may produce E0006 when their feature is undeclared, matching the named-opcode exception and §8.1. The body-use probe also reports E5001 because the unknown instruction does not define `%old`. That shape remains invalid under the candidate's snapshot restriction; the audit concerns its rejection-code transition, not acceptance of this escape. Establish whether §8.7 covers those dependent errors, and preserve independently invalid cases; precedent alone does not settle that interpretation (Q-055). Full dependency closure and syntax audits are still required. The prefix avoids the header-specific E0001 conflict without changing compatibility policy. New type/module metadata must independently satisfy compatibility or use AIR1.
On acceptance integrate spec 13 §1, spec 08 §8, spec 10 §6.1, spec 11 §7, spec 07/07a, spec 15, grammar, feature/error registries and the Quick Reference together. Delivery requires source/AIR positive and negative coverage, bypass attempts, generic/package/worker cases, borrow/loan/snapshot failures, deterministic profiles/schedules and independently verified audit statuses. No implementation is authorized by this Draft alone.