Invariant and Evidence Registries
3,024 words1 subsection2 tablesA design document: it describes the 1.0 target, not what runs today.
This table contains exactly twenty top-level invariant IDs. G0 materializes each row as one or more stable subordinate clause records in invariants.toml; subordinate clause keys do not create additional invariant IDs. Every clause records its exact statement, activation predicate, dependencies, resolvable enforcement and negative-test entrypoints, model/proof scope or liveness fairness assumptions, owner, first gate, status, and waiver=forbidden. CI verifies the twenty-ID/table hash, dependency DAG, checker/test existence, and the compiled-plus-negotiated activation closure. Every reachable clause must be live; otherwise the corresponding capability is absent. Statistical, configuration-model, and empirical claims remain in their separate registries.
| ID | Invariant | Enforcement |
|---|---|---|
| FG-INV-01 | Within one database security namespace/incarnation and capability domain, each scoped begin/autocommit key, durable token, and registered attempt maps to at most one immutable semantic terminal outcome and final-effect digest; matching retries return the recorded lineage and conflicting transitions fail. Commit has exactly one marker, while Abort, NeverRegistered, and ReadClosed can never later Commit. W12 reserves the begin key and outcome-capability bytes before response. AttemptFamilyState admits only generation-zero First, exact prior+1 Successor after a prior registered attempt is Terminal and its release/overlap floor is proved, or byte-identical IdempotentRetry; NeverRegistered creates no family/generation/burn. At most one generation is Active or PrepareAdmitted. TerminalReady is exposed only after its exact postcondition bitmap, audit visibility, and independent result detachment are complete; detailed and compacted proofs return byte-identical public outcomes, and no shard creates or reverses the semantic decision. |
Local/Meta begin, family, token, attempt, marker, ownership, outcome, and completion CAS models; lost-response and concurrent first/successor/retry/cancel/read-close/commit tests; NeverRegistered-no-family negatives; participant, leader-loss, crash, partition, compaction, and capability-status oracles. |
| FG-INV-02 | For every exclusive block, constraint-owner reservation, resource hold, allocation offset, final-certification basis, and escrow custody unit, at most one legal live generation owns or may consume it; stale, cancelled, expired, or prior-configuration owners can neither mutate nor release it. Under §14.6's batch-certification law the batch-scoped GlobalFinalCertificationReservation is the single legal live owner of a shared certification basis and carries per-candidate sub-holds; exclusivity is per generation, not per candidate, and no candidate-level owner may coexist with a live batch owner. Escrow custody is a disjoint exhaustive partition, finite-side conservation equations hold at every transition, values remain within bounds, and only registered creation/reconfiguration/quota-epoch/branch-overlay-retirement transitions with exact before/after proof may mint or burn rights. |
Lock/reservation/ownership-transfer models; Lean escrow conservation/bounds lane; independent lock-table, generation reuse, duplicate consume, cancellation, reconfiguration, quota rollover, crash, and topology-transfer oracles. |
| FG-INV-03 | Every physical version chain is finite, acyclic, strictly newer-first by commit order, and every link remains within one owning object generation. | Lean chain model plus arena decode, generation-substitution, debug, property, and fuzz oracles. |
| FG-INV-04 | Visibility obeys system-time snapshot high sequence, selected branch ancestry for each graph-reference role, valid-time slice-set intersection and boundary normalization, create/retire and schema-coordinate rules, own-write/workspace overlays, the erasure-tombstone conjunct (§12.6), and the expiry predicate (§4.8); distinct branch heads or valid-time selectors never alias. Local/Meta applied state may advance ahead of public state only through the rooted gap-free audit visibility pipeline, and every read/result/side channel begins at its visible endpoint; a SnapshotQuery admission reads only the pipeline's visible candidate root and can never observe applied-hidden state. Restore/role-transition state remains unobservable while reconciliation, activation, pipeline release, service preparation, or independent reopen is pending; every request, cursor, capability, and forwarded shard operation matches the current incarnation/service epoch. |
Reference engine plus Lean visibility/slice model; boundary-time, historical-self-join, workspace, branch-head, applied-versus-visible, hidden-restore/direct-endpoint, stale-epoch, erased-subject/expired-element visibility, SnapshotQuery visible-endpoint, and Local/Meta/Shard noninterference oracles. |
| FG-INV-05 | Every committed SERIALIZABLE history has an acyclic logical dependency graph, and dependency metadata remains until no overlapping attempt can add an edge. For the Local SERIALIZABLE default the checked graph additionally contains real-time precedence edges — or applies the registered dangerous-structure rule proved to reject every DSG-union-real-time cycle — so the default Local contract is strict serializable; W12 Meta histories remain plain serializable unless Meta registers the same certification rule. W12 Meta state contains every local, cross-shard, read-only, statement-workspace, positive/negative/gap/path wr, ww, and rw edge. Each statement publication atomically extends the cumulative witness/conflict state; ReadWrite admission and ReadOnly close name the exact statement/delivery/workspace frontier and independently recheck the complete graph; compaction removes detail only after overlap closure. |
Independent local/global SCC and history oracle, checking DSG-union-real-time acyclicity for Local histories; statement-publication/admission/read-close/compaction interleavings; overlap-lifetime model and scoped Lean theorem. |
| FG-INV-06 | Every witness conservatively represents all logically relevant positive, negative, gap, valid-time slice, early-stop, and path-cut observations, and refinement preserves their concretization and may_affect behavior. W12 routing/coarsening, workspace overlays, shard transport, cumulative statement union, and finalization preserve the same contracts; missing routing, prior-touched-shard overlay, time slice, support, or proof causes conservative failure, never a dropped edge. |
Constructor/refinement/optimizer/partition/workspace/temporal transport proofs plus mutation-complete single-shard, multi-shard, multi-statement, and temporal-boundary differential suites. |
| FG-INV-07 | The concrete durable strong/uncut-conditional graph is acyclic; every field, typed reference, transcript digest, and weak identity is registry-resolved and names already identified bytes, and every pre-order input excludes its future command/result/root. command_contracts.toml is bijective with every role command arm/handler and state_payload_fields.toml roots every written state class. Before receipt/order, D1 owns one exact closure under stable prepared ownership. W12 read order is begin reservation -> claimed registration/workspace zero -> optional claimed statement -> certified shard bases -> fixed-point routing/authorization/serialization -> buffered result/workspace -> Meta publication/outcome -> external audit batch/visibility advance -> streaming. W12 write order is registration/workspace -> effect bases/routing -> authorization/resource/outcome/admission -> shard fragments/prepares -> constraints/serialization -> final-certification holds and signer-locked terminal bytes -> Meta command/applied-hidden candidate -> external audit batch/visibility advance -> decision publication -> shard decision and typed visibility projection -> post-visibility acknowledgements -> Global delta publication -> TerminalReady. Cross-group ownership uses only certified remote wrappers; timeout releases no prepared, certificate, audit, result, allocation, escrow, or retention owner. |
Generated kind/field/command/state/reference/construction-DAG/transcript/role checker; D1/D2 and all-role Raft models; complete read/write/ownership/result/audit/recovery crash DAG and remote-retention oracles. |
| FG-INV-08 | Logical-command predecessor order and the transaction-marker subsequence are contiguous at their respective sequences; every marker is independently addressable and every retained checkpoint suffix begins with its exact install command. Every role-tagged Raft snapshot matches its precise visible cut, root, configuration, maintenance state, and applied/visible positions. Local/Meta audit pipeline orders, role orders, and Raft indexes are contiguous; external resolution batches are direct continuity successors over exactly one gap-free prefix, and only AuditVisibilityAdvanceSpec moves the visible endpoint. Provisional cuts authenticate inherited absence but authorize no new release until activation. Fresh Sharded Genesis/Local activation never mix role histories. Transparency claim grades remain distinct and non-equivocation requires the declared intersection, durable-witness, rotation, and freshness premises. |
Sequence/marker/MMR, pipeline-prefix/external-CAS, exact-cut snapshot, checkpoint replacement/activation, role-bootstrap, global-prefix, and witnessed-transparency split-view models and negative fixtures. |
| FG-INV-09 | ObjectId recomputes from the exact keyed, namespaced canonical logical transcript; CiphertextId, complete EncodingId, and non-self-referential PlacementId recompute from their registered descriptors and bytes/inventory. Root bootstrap reconstructs all identities without indexes; child-key AAD and symbol MACs cover their complete noncircular transcripts; collision buckets verify full identity and incompatible encodings never combine. Every stored digest is explicitly Target, Transcript, WeakIdentity, or BodyDigest with one generated include/exclude recipe. |
Full keyed-identity/descriptor/AAD/body-transcript/root-bootstrap oracle; generated digest/field checker; mutation, golden, cross-version, collision, wrong-key/namespace, mixed-symbol, and FEC-wire fuzz campaigns. |
| FG-INV-10 | Under the accepted filesystem/crash profile, the two-slot manifest.root protocol always selects the highest structurally credible authenticated role closure with exact applied/visible/service positions, while one inode-bound publication sequencer plus external incarnation continuity fences every stale writer. Before the ordinary token, only the typed takeover, fresh-creation, or guarded restore publication may occur; every irreversible seal, receipt, Raft action, certificate, and slot write rechecks both authorities. Durable-format writes occur only under an activated FormatCompatibilityState: all current/joint voters and storage readers decode the active closure, first-target-write is irreversible, downgrade is refused after it, and old decoders retire only after exhaustive reachable/backup/restore/replay floors. Closure or capability failure repairs or fails closed, never rolls back or partially interprets. |
Filesystem/lease/takeover/root-slot and external-CAS split-brain models; every-write/fsync-lie/path-replacement/rollback crash matrix; format advertise/activate/first-write/rewrite/rolling-upgrade/downgrade/decoder-retirement conformance gates. |
| FG-INV-11 | Allocation epochs, leases, and canonical spent commitments are monotonic under the registered AllocationContinuityProfile bound 1:1 to the incarnation-continuity posture — externally monotonic under ExternalCas (mandatory for W12/Meta), locally monotonic under DirectoryBound's allocation-continuity journal beneath the same whole-inode fence — and prevent VId/EId/generated-key alias, overlap, or reuse across crash, label change, branch, merge, clone, restore, topology movement, and role activation; the registered residual-risk row applies to the whole closure: under DirectoryBound, block-level volume rollback is outside the declared threat model, allocation included. Any value is durably reserved no later than its first escape to a result, later workspace, procedure/UDF, provenance/audit, or terminal preparation; confined values are reserved by the finalization plan before capsule/effect construction. Rebase preserves prior bindings and may append only; disappearance/conflict/abort creates permanent spent tombstones. Canonical forward incidence, stable IDs, origin/birth/branch orders, properties, ordinal maps, holes, and any reverse materialization agree. |
Per-profile ExternalCas/DirectoryBound continuity allocator and spent-range models; first-escape/finalization crash and lost-response tests; rebase/abort/expiry/restore/topology exhaustion campaigns; reference-graph and forward/reverse compaction metamorphics. |
| FG-INV-12 | Canonical scalar equality, hashing, ordering, and encoding are coherent. Every claimed answer-equivalent seal, compaction, codec/format rewrite, spill, factorize/flatten, workspace materialization, safe replan, and exact derived rebuild preserves logical values, multiplicity, order, visibility, security projection, and AnswerContract. Approximate candidate/topology changes create a new pinned semantic generation; no build progress or physical bulk/index artifact changes schema visibility before its ordinary transactional SchemaOp activation. | Scalar-law property/fuzz suite; digest/reference/workspace equivalence; answer-contract/type/security checker; exact rewrite/rebuild and approximate-generation metamorphic suites. |
| FG-INV-13 | Commits are immutable and branch heads move only by atomic expected-head updates. Fork closes the parent envelope/write epochs before opening independent parent/child successors; every envelope, object-DEK, grant, and wrap is bound to one authenticated root/cut/epoch. In W12, Meta first orders a certificate-free key distribution plan, each shard installs unusable Staged material and certifies it, Meta activates exactly one complete manifest, and only the matching typed shard projection makes material Active; Staged material cannot serve reads/effects/prepares or active backup. Distributed destruction requires current-root zero-reference certificates, durable shard authorization, physical member/KMS receipts and completion from every planned Meta target and shard/range, then Meta completion; any new root invalidates the zero proof. Merge tokens/nonces/capability generations are pre-minted, each has one terminal outcome, imported-range coverage prevents partial or repeated application across drift/cuts/restore/reconfiguration, and effects obey proved ACI algebra or their recorded total order. | Branch/fork/envelope/merge/imported-range and distributed-key phase models; cross-branch denial, wrong plan/manifest, stale-zero-basis, partial KMS, crash, retry, topology, and backup property tests. |
| FG-INV-14 | GC follows every generated strong and currently uncut conditional edge; only registered weak/locator/observation fields are nonretaining. Independent obligations—including state-shaped active result/output owners, allocation/escrow holds, transaction ownership/capability lineage, audit pipeline entries, DP seeds/charges, prepared/certificate state, backup/restore/format/bulk/derived state, remote grants, and keys—remain roots until their exact terminal transfer/release. Provisional cuts authorize no new reclaim. Physical GC uses Requested -> Started -> Completed or all-members CancelledBeforeStart, with signed exact receipts; any Started member makes cancellation impossible. W12 requires bounded preflight, Meta authorization, current-root disjoint quarantine, no resurrection, exact Meta/shard member completion, progress, and aggregate completion; missing participants remain blocking. Heavy detail retires only after visibility and an activated cut. | Generated reachability/mandatory-inventory/remote-release and GC models; state-arm liveness checker; mark-then-resolve, dedupe-resurrection, start-vs-cancel, partial-member, result/output, backup/restore, topology, and RetiredLocal crash storms. |
| FG-INV-15 | For every registered exact derivative, integrating ordered deltas equals batch evaluation, and retained Local/Global batches own each payload exactly once. W12 transaction records never name future batches; only complete post-visibility shard acknowledgements form one acyclic Global batch and its contiguous Meta publication advances Ripple. Every result-producing feature uses one generated, noninterchangeable owner arm and the state-shaped independent-retention machine: PendingVisibility and ReleasedAwaitingActivation retain manifest/policy/resource escrow, ActiveDeliverable additionally owns lease/replay/send authority, and ACK or explicit authenticated release/expiry atomically installs compact terminal evidence with no strong bulk predecessor. QUERY_CANCEL, Drop, disconnect, drain, and process death cannot release it. Resume/ACK/release/expiry CAS one delivery version with deterministic immediate-predecessor retry. Cursor baseline/delta rules forbid delta before baseline ACK and expose every gap. Public digests cover exact authorized canonical bytes/provenance, never keyed object IDs. | Derivative-vs-batch and global-publication differential; generated owner/state reachability; result release/resume/ACK/expiry and sender-death DPOR; public-digest/cursor/lease/gap/status-equivalence and exact/approximate derived-generation suites. |
| FG-INV-16 | No structured task, ownership lease, begin/allocation/finalization reservation, pin, scratch object, result/workspace/cursor/output lease, prepared closure, privacy charge/seed/result, audit freeze/plan/per-signer lock/share/pipeline entry, escrow/resource hold, backup pin, remote transition, GC quarantine, restore-source lease, or TerminalPending postcondition is lost, duplicated, refunded, released, or exposed while obligated. Transaction ownership is generation-fenced, durably reattachable/renewable only under the capability lineage, and becomes PrepareFenced atomically before finalization; expiry can only order the registered rollback/status-safe path. DP has one external charge request/tombstone/receipt lineage and noise is generated only by Meta after the charge is mirrored. Audit candidates remain hidden until their exact batch and gap-free visibility advance. Under declared quorum/storage/network/time/continuity/resource fairness, every obligation reaches one legal terminal or recoverable state. | asupersync leak/quiescence oracle; transaction ownership/reattach/expiry, allocation, result/output, prepared/resource/escrow, DP single-charge, audit signer/pipeline, backup/remote/GC/restore recovery tests; bounded-liveness models with explicit assumptions. |
| FG-INV-17 | Rebase and branch merge execute under capability-stripped deterministic contexts pinned to IntentSemanticsOid. Every semantic drift regenerates effects, workspace/read/write state, constraints, escrow/resource requirements, witnesses, logical deltas, allocation plan, RETURNING bytes, and capsule before final-certification reservation and terminal signing. Incremental rung-1 re-evaluation may reuse a prior intent's results only under unchanged-observation certificates closed transitively over the intra-transaction dependency DAG in intent-ordinal order, and such reuse is legal iff it is extensionally equal to full re-evaluation. Once an Active final-certification reservation freezes the basis, rebase is forbidden; conflicting drift must use the proved pre-signature cancel/restart path, while any terminal audit plan/lock/share requires completion of that selected basis. No mutable clock, entropy, filesystem, network, or policy lookup enters replay. |
Type/capability boundaries; forced-drift and interleaved-head property tests; reserve/sign/cancel ordering model; wrong-semantics/unavailable-input fail-closed tests and final-effect/workspace/allocation/result digest oracle plus a sampled incremental-versus-full differential oracle. |
| FG-INV-18 | Base graph, bitemporal, schema, and constraint semantics remain authoritative: canonical committed effects equal logical before/after state over normalized valid-time slices; workspace finalization equals ordered published statements; synchronous constraints, resource budgets, and escrow bounds must hold before commit. Bulk ingestion commits only canonical logical batches through ordinary transactions, and index/build controls remain invisible until a transactional SchemaOp activates a validated generation. Rebuildable indexes/views/caches and optional staged runs can be discarded without changing exact answers or authorization. | Reference effect/workspace/valid-time differential; synchronous constraint/resource/escrow oracle; bulk row/source/effect bijection tests; index shadow-build/activation races; degraded-recovery and derived-state rebuild drills. |
| FG-INV-19 | A registry-rooted replay manifest derives its structural maximum only from its versioned evidence-slot matrix, and its effective grade may only weaken as leases, resolution, trust, configuration, or authority change. Replayable requires every semantic slot, including answer requirement, realized contract, authority, external inputs, executable artifacts, decisions, workspace-affecting statements, and exact approximate generations, to resolve through exactly LocalStrong, live CertifiedRemote, or active Archived evidence and reproduce canonical logical output. Sharded replay is no stronger than its weakest required group; activation/legacy evidence uses certified transition wrappers, never raw old-group refs. Missing, redacted, revoked, expired, or untrusted evidence yields only the declared weaker grade. Erased subjects downgrade replay through the Redacted arm with the erasure tombstone as typed evidence; an ErasureCutSpec never silently breaks a byte-identity claim — the effective grade weakens attributably instead. Answer-affecting and canonical-state policies are sequenced/pinned; proved physical equivalence cannot change strict output. |
Cross-plan/target/artifact/workspace/approximation replay CI; generated slot-grade/local-remote-archive resolver and expiry/trust doctor; activation/posture-substitution tests and replica logical-digest oracle. |
| FG-INV-20 | Authorization precedes every observation or effect across storage, statistics, routing/scoring, temporal selection, workspace, errors, constraints/witnesses/prepares, derived state, Prism/UDFs, streams, capabilities, replay/export/backup, audit, and observability. SnapshotQuery admission obeys the identical authorization-before-observation rule — coordinator-local admission verifies the complete capability and policy binding before any statement or storage observation — with the same oracle coverage as the durable read classes. Every authority-bearing durable schema binds one complete SecurityStateBinding (or exact certified shard projection); equal epoch scalars with different roots/service epochs never substitute. W12 registration claims operation/statement tickets before observation; shard work carries only exact certified projections. One union-wide authorization decision covers the complete effect set. A protected candidate becomes observable only after its signer-locked terminal event, external resolution batch, and gap-free visibility advance; shard acknowledgements and streaming follow that visibility. Capability lookup/status/release is same-principal, same-or-narrower, current-epoch, and uniformly nonrevealing on failure. Hidden constraints follow one explicit disclosure contract and only named ticketed declassification is legal. |
Generated authority-binding and pre-observation type matrices; raw-cross-group/equal-scalar-different-root/wrong-domain/config/grant/owner negatives; ticket claim, omitted participant, status/release noninterference, pre-visibility observation/ack, SnapshotQuery admission-before-observation, declassification, and continuity tests. |
Statistical, evidence, and configuration gates (not invariants)
| ID | Qualified claim | Required disclosure/gate |
|---|---|---|
| FG-CAL-01 | Adaptive policy evidence versus pinned fallback | null/outcome filtration, alpha, support/overlap, effective sample size, loss and fallback; stream-sequenced promotion only |
| FG-CAL-02 | Cardinality/risk interval coverage | population, selection/window, exchangeability or nonexchangeability method, strata, marginal target, realized coverage and drift |
| FG-CAL-03 | ANN recall/drift evidence | authorized snapshot population, keyed sample, exact baseline, candidate policy, confidence interval and rebuild action |
| FG-EVID-01 | Decision-card/OPE completeness | state/actions/features, logged probabilities, zero-support exclusions, clipping/estimator, policy epoch and fallback |
| FG-EVID-02 | Scrub/corpus-health evidence | population, keyed stratified sampling, dependence assumptions, exhaustive-sweep position and observed corruption |
| FG-CFG-01 | Modeled durability target | CTMC/model version, fitted failure rates, failure domains, sensitivity bounds, repair/backup assumptions, and per-tier fec_profile reconstruction and checkpoint-fold recode paths |
| FG-CFG-02 | Modeled controller stability | model/equilibrium, parameter uncertainty, predicted margin, deterministic hard guards and soak results |
| FG-CFG-03 | View/index staleness SLO feasibility | arrival/service assumptions, resource reservation, predicted envelope, actual watermark and fallback policy |
| FG-CFG-04 | Maintenance-stream capacity model (Appendix G) | per-entry-class arrival/service assumptions, stated scale parameters (branch count, cursor count, delivery cadence, fan-out amplification factor, implied time-observation rate), predicted versus measured head-of-line saturation, reserved-capacity and fallback policy |
| FG-EVID-03 | Endurance-gate evidence (defined-duration sustained load) | duration and cadence, compaction-debt ceiling stated in §6.6 write-amplification-model terms, long-run memory stability bound, steady-state occupancy-model prediction versus observation — divergence is itself a finding |
| FG-EVID-04 | Derived-state freshness (slo-class, never an invariant) | bound expressed in watermark/commit-sequence units, audit-pipeline and time-evidence dependencies named, realized lag distribution, typed FreshnessBreach rate and fallback policy |