Repository navigation
nf.evidence.cdc
Contract ID:
nf.evidence.cdc| Family:evidence| Index Status:draft| AuthorityEffect:None
⬅ Back to Wiki Home | View SVG Diagram
CDC Evidence Form (CDCEF) enforces structural normalization and explicit defect routing in the evidence regime.
| Property | Value |
|---|---|
| Canonical ID | nf.evidence.cdc |
| Short Name | CDCEF |
| Full Name | CDC Evidence Form |
| Family |
evidence (Cryptographic Receipts, Dual Witnesses, Loss Ledgers, CDC Logs & Schema Totality) |
| Qualification | Extended Form Contract (Normal Form Contract) |
| Data / Math Posture | at_rest |
| Index Status | draft |
| Theory Status | proposed |
| Verification Status | absent |
| Contract Version | v0 |
| Governance Fence |
AuthorityEffect: None (certified_implies_authorized: false) |
| Stage | Carrier / Operator | Concrete State / Invariant |
|---|---|---|
| 1. Before / Candidate Input | Input Carrier (CDCEF Candidate) |
Anomaly risk: uncertified write ; events |
| 2. Normalization / Gate | CDCEF Verification Gate |
every write event carries... (certified_implies_authorized: false) |
| 3. After / Certified Output | Certified CDCEF Output |
Invariant: ['old_row', 'new_row', ; 'changed_attributes', ; 'predicate_before_after',... |
Every contract in simplex-normal-forms is evaluated against the Four-Pillar Quadrilateral defined in contracts/_golden_nfs/standard.yaml:
| Pillar | Requirement | Contract Specification for nf.evidence.cdc
|
|---|---|---|
| Pillar I: Excludes Anomaly | Name and eliminate a specific class of data or state defects. | uncertified write events |
| Pillar II: Preserves Invariant | State the structural invariant and protected skeleton preserved across transitions. |
Invariant: every write event carries old row, new row, changed attributes, predicate membership, and group key before/after Protected Skeleton: ['old_row', 'new_row', 'changed_attributes', 'predicate_before_after', 'group_key_before_after'] |
| Pillar III: Lossless Reconstruction | State the non-loss reconstruction operator (join, direct sum, pullback, or replay). | Lossless reconstruction under declared projection, direct sum, or pullback operators. |
| Pillar IV: Syntactic Decidability | State how conformance is decided from declared constraints without unbudgeted scans. | Decidable from declared schema and witness metadata within bounded evaluation budgets. |
- does not ensure under declared assumptions physical disk-level ordering without a serializing verifier
- relation_name
- write_timestamp
- changed_attributes
- old_row_values
- new_row_values
| Criterion ID | Name | Condition |
|---|---|---|
criterion |
Check | changed attributes are non-empty for updates |
criterion |
Check | group key changes must contain both before and after keys |
criterion |
Check | predicate transitions must declare prior and post states |
Every evaluation terminates in a declared local route mapped to a canonical terminal in standard.yaml:
| Local Terminal Route | Canonical Terminal |
|---|---|
EvidenceComplete |
Preserve |
EvidenceMissing |
BudgetUnknown |
Refuse |
Refuse |
- symptom: cache update attempted with missing status or customer ID columns in CDC event, diagnosis: uncertified write events, terminal: EvidenceMissing
AuthorityEffect: None.
Level: Level 11 (Data in Motion / CDC Stream Compaction & Monotonicity)
Evidential Grade: NATIVE IMPLEMENTED
Contract Reference: nf.evidence.cdc
Mathematical Posture: Monotonic Stream Log Algebra & Tombstone Consistency
Data Posture: In Motion
Change Data Capture Normal Form (CDC-NF) disciplines event streams emitted by transaction logs:
- ensures under declared assumptions monotonic sequencing of log records via strict LSN / sequence numbers.
- Defines exact semantics for tombstone records during deletion.
- Formalizes log compaction: folding multiple updates to the same key into a single canonical delta without altering downstream observer convergence.
Raw CDC Event Stream
┌──────┬────────┬────────┬─────────────────────────┐
│ LSN │ Key │ Op │ Payload │
├──────┼────────┼────────┼─────────────────────────┤
│ 1001 │ Cust:5 │ INSERT │ {name: "Bob", bal: 100} │
│ 1002 │ Cust:5 │ UPDATE │ {bal: 150} │
│ 1003 │ Cust:5 │ DELETE │ null (Tombstone) │
└──────┴────────┴────────┴─────────────────────────┘
│
CDC-NF Stream Compaction
▼
Tombstone at LSN 1003 supersedes LSN 1001-1002.
Compacted stream retains tombstone until epoch frontier clears!
-
Monotonicity & Total Ordering: Every event
$e \in \mathcal{E}$ carries a sequence identifier$\operatorname{seq}(e)$ such that for any two events$e_1, e_2$ on key$K$ :$$e_1 <_{\text{log}} e_2 \iff \operatorname{seq}(e_1) < \operatorname{seq}(e_2)$$ -
Compaction Operator
$\odot$ : For a stream segment$S_K = [e_1, \dots, e_m]$ on key$K$ :$$\operatorname{compact}(S_K) = e_m \quad \text{if } e_m.\text{op} \in {\text{UPDATE}, \text{DELETE}}$$ with intermediate delta accumulation for commutative balance counters. -
The Quadrilateral Invariants:
- Anomaly Excluded: Out-of-order event replay, resurrecting deleted tuples via stale updates, unbounded log bloat.
- Protected Skeleton: Entity keys, final state payloads, and tombstone sequence commitments.
- Erased Structure: Overridden intermediate state transitions prior to the compaction frontier.
- Reconstruction: Monotonic log replay matching point-in-time database snapshots.
CDC Event Stream & Invalidation Frontier
│
├── Sequence strictly monotonic & tombstones valid ──► Preserve (StreamValid)
│
├── Out-of-order sequence detected ──────────────────► Reject (MonotonicityViolation)
│
├── Stale update arriving after tombstone ───────────► Refuse (ZombieUpdateRejected)
│
└── Uncompacted log exceeds retention ceiling ───────► Repair (CompactStream)
-
Preserve: Stream adheres to monotonic sequence ensures under declared assumptions. -
Reject: Out-of-order delivery indicates broker or pipeline failure. -
Refuse: Event attempts to resurrect an explicitly deleted record. -
Repair: Safely compacts stream up to the active replication water mark.
Verified in test_bqnf_cdc_property.py:
-
test_cdc_stream_monotonicity: Asserts that any decrement in LSN triggers immediate pipeline refusal. -
test_cdc_tombstone_compaction: Verifies that tombstone records correctly extinguish preceding insert/update deltas.
-
What it supports:
- Deterministic event sourcing and reproducible streaming database replication.
- Formal ensures under declared assumptions against zombie row resurrection.
-
What it does not support:
- Multi-writer conflict-free replication across partitioned networks (requires CRDT / distributed consensus).
-
The narrowest defensible claim:
- CDC-NF ensures under declared assumptions that replay of the compacted stream yields the identical final state as the uncompacted stream.
-
The next test needed:
- Property tests under randomized concurrent partition delays asserting that the tombstone water mark is monotonic.
In accordance with the repository's epistemic claim discipline:
-
What it supports:
- Supports syntactic and operational checking of
nf.evidence.cdc(CDCEF) against its declared schema, boundary constraints, and witness obligations in this model. - Supports deterministic terminal routing (
EvidenceComplete, EvidenceMissing, Refuse) when required declarations or invariants fail.
- Supports syntactic and operational checking of
-
What it does not support:
- Does not confer operational authority (
AuthorityEffect: None,certified_implies_authorized: false). - Does not claim semantic truth of undeclared external processes or unverified upstream inputs beyond the declaredprotected skeleton.
- Does not confer operational authority (
-
The narrowest defensible claim:
- Within the declared substrate
at_rest, this contract enforces thatuncertified write eventsis either excluded underevery write event carries old row, new row, changed attributes, predicate membership, and group key before/afteror routed to an explicit refusal/recovery terminal.
- Within the declared substrate
-
The next test needed:
- Property-based falsification and mutation testing across boundary edge cases and composed multi-step pipelines for
nf.evidence.cdc.
- Property-based falsification and mutation testing across boundary edge cases and composed multi-step pipelines for
Click to expand full canonical YAML contract (contracts/nf.evidence.cdc.yaml)
schema_version: smplx.nf.contract.v0
contract_kind: normal_form_contract
identity:
id: nf.evidence.cdc
name: CDC Evidence Form
short_name: CDCEF
version: v0
status: draft
family: evidence
theory_status: proposed
contract_status: draft
verification_status: absent
classification:
hierarchy_level: form
subject_kind:
- certificate_packet
data_posture: at_rest
mathematical_posture: operational
purpose:
excludes_anomaly: uncertified write events
preserves_invariant: every write event carries old row, new row, changed attributes,
predicate membership, and group key before/after
protected_skeleton:
- old_row
- new_row
- changed_attributes
- predicate_before_after
- group_key_before_after
erased_structure: []
non_claims:
- does not ensure under declared assumptions physical disk-level ordering without a serializing verifier
declarations_required:
- relation_name
- write_timestamp
- changed_attributes
evidence_required:
- old_row_values
- new_row_values
validation_criteria:
- changed attributes are non-empty for updates
- group key changes must contain both before and after keys
- predicate transitions must declare prior and post states
proof_obligations: []
terminal_routes:
- EvidenceComplete
- EvidenceMissing
- Refuse
certification:
certificate_required: false
certificate_kind: null
obstruction_class_required: false
loss_ledger_required: false
verifier_required: true
authorization:
authorized_by: null
certified_implies_authorized: false
failure_modes:
- symptom: cache update attempted with missing status or customer ID columns in CDC
event
diagnosis: uncertified write events
terminal: EvidenceMissing
references:
- ../1_normal_forms.md
- ../1a_bqnf_incremental_repair.md
terminal_route_map:
EvidenceComplete: Preserve
EvidenceMissing: BudgetUnknown
Refuse: Refuse
definition:
source: coda_all_universe/mssn_sn_tower/definitions.md
formal_statement: uncertified write events. every write event carries old row, new
row, changed attributes, predicate membership, and group key before/after
quadrilateral:
qualifies_as_true_normal_form: false
qualification_gap: reconstruction_is_not_a_relational_project_join
anomaly_exclusion: uncertified write events
lossless_join:
status: declared_reconstruction
statement: every write event carries old row, new row, changed attributes, predicate
membership, and group key before/after
dependency_preservation:
status: declared_with_the_invariant
statement: The preserved invariant stays on the declared schema. This form does
not state a functional-dependency projection of a flat relvar decomposition.
syntactic_decision:
status: declaration_decidable
statement: The check reads the declared constraints and validation criteria.
One unrecorded runtime image is not the decider.
schema_ref: ./normal_form_contract_schema.yamlSimplex Normal Forms • 112 Canonical Contracts & SVG Diagrams • CODA_MUR Transport • certified_implies_authorized: false • AuthorityEffect: None
- Home (Master Index)
- Project Status & Evidence
- Theory & Cochain Substrate
- Observer-Relative Ontology
- Concrete Worked Examples
- Geometrodynamics & Physics
shape (17)
- 0NF (
nf.classical.0nf) - 1NF (
nf.classical.1nf) - 2NF (
nf.classical.2nf) - 3NF (
nf.classical.3nf) - 4NF (
nf.classical.4nf) - 5NF (
nf.classical.5nf) - 6NF (
nf.classical.6nf) - BCNF (
nf.classical.bcnf) - DKNF (
nf.classical.dknf) - EKNF (
nf.classical.eknf) - ETNF (
nf.classical.etnf) - NF2 (
nf.classical.nf2) - RFNF (
nf.classical.rfnf) - SKNF (
nf.classical.sknf) - DHNF (
nf.cochain.dhnf) - HCNF (
nf.ddc.hodge_canonical) - MSSNF (
nf.mssn)
change (6)
representation (5)
compilation (1)
epistemic (15)
- EQNF (
nf.coda.eqnf) - ANF (
nf.epistemic.authority) - CNF (
nf.epistemic.cnf) - EFNF (
nf.epistemic.efnf) - ENF (
nf.epistemic.enf) - FNF (
nf.epistemic.freshness) - LNF (
nf.epistemic.location) - NAR-NF (
nf.epistemic.nar_nf) - ObsNF (
nf.epistemic.observer) - ODNF (
nf.epistemic.odnf) - ONF (
nf.epistemic.onf) - PvNF (
nf.epistemic.pvnf) - RNF (
nf.epistemic.replica) - SnNF (
nf.epistemic.snnf) - StNF (
nf.epistemic.state)
authority (1)
evidence (8)
derivation (12)
- AONF (
nf.derivation.aonf) - APNF (
nf.derivation.apnf) - IGNF (
nf.derivation.ignf) - IRNF (
nf.derivation.irnf) - LSNF (
nf.derivation.lsnf) - OBNF (
nf.derivation.obnf) - PDNF (
nf.derivation.pdnf) - RPNF (
nf.derivation.rpnf) - SCNF (
nf.derivation.scnf) - SERNF (
nf.derivation.sernf) - AINF (
nf.ontology.ainf) - WDNF (
nf.wdp.wdnf)
topology (2)
physics (20)
- RBNF (
nf.physics.bianchi_regge) - BQNF-REGGE (
nf.physics.bqnf_regge) - CDT-FSIGN-NF (
nf.physics.cdt_fermion_sign) - CDT-KD-DOUBLING-NF (
nf.physics.cdt_kd_doubling) - CDT-MATTER-NF (
nf.physics.cdt_matter_coupling) - CDT-OVERLAP-NF (
nf.physics.cdt_overlap_fermions) - CDT-SPEC-NF (
nf.physics.cdt_spectral_dimension) - CDT-SUSY-WITTEN-NF (
nf.physics.cdt_susy_witten) - CDT-TOPO-CHARGE-NF (
nf.physics.cdt_topological_charge) - CDT-WMC-NF (
nf.physics.cdt_wick_mc) - CDT-ZOLOTAREV-NF (
nf.physics.cdt_zolotarev_overlap) - DFNF (
nf.physics.dfnf) - L1CCNF (
nf.physics.l1_constraint_closure) - LCNF (
nf.physics.lorentzian_cdt) - L1PSNF (
nf.physics.pachner_lp_scaling) - PWNF (
nf.physics.pwnf) - RCNF (
nf.physics.rcnf) - RPCNF (
nf.physics.rpcnf) - SIDNF (
nf.physics.schlafli_nf) - WDWNF (
nf.physics.wdwnf)