docs: specify contract runtime continuations and failure context
This commit is contained in:
1 parent
2db752dba9
commit
c633f23952
6 files changed
+454
-1
No files matched your search
@@ -120,6 +120,8 @@ Each prefix operation costs one fuel/quantum step; helper instructions use ordin
|
||||
|
||||
False pre/post conditions need distinct stable trap codes, not allocated here; a predicate's own arithmetic/bounds trap retains its code. Clause identity/location and invocation context need an exact additive run-record schema. Entry predicates run in the invoked task, including spawned workers. Capability exclusions still permit parameter-free conditions on `@main`, including a false condition. Both profiles enforce the same contracts. Predicate execution consumes fuel and can change schedule interleavings: contracts are not observationally free. Fuel exhaustion during a postcondition produces no successful return; cancellation checks and synchronization remain excluded from predicate code.
|
||||
|
||||
The [runtime/context refinement](../design/contract-runtime-and-context.md) specifies frame continuations, publication after validation, free normalization before quantum checks, explicit helper-depth checks and traced pending roots. It proposes exact false-code identities and additive same-task context, with source/run versus AIR-only explore mapping and byte-identity outcome enumeration. Sixteen current-language CLI runs constrain last-fuel, depth, returned ownership, source traps and child failure; nine ordinary fixture variants also pass GC-every-step comparison. Hypothetical context components pin the proposed schema, not implemented output. Neither runtime dispatch nor new traps/context are implemented.
|
||||
|
||||
## Status and diagnostics
|
||||
|
||||
| Status | Required evidence |
|
||||
@@ -159,7 +161,7 @@ The source refinement also fixes descriptor encodings, collision order, emission
|
||||
|
||||
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.
|
||||
Remaining decisions: shared observation coverage (Q-057) and invariant-evaluation interactions; source diagnostic reason allocations; final purity/snapshot/runtime schema adoption and format-0 compatibility; final feature/status policy adoption; invariant/module model adoption; full vertical implementation and pending-return/GC/scheduler tests. 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