docs(crdt): CRDT merge over the reasoning-evidence fabric#130
Open
mdheller wants to merge 4 commits into
Open
Conversation
…first ideals 2/4 without regressing 5/6/7 Op-based add-wins OR-graph over EventEnvelope op-log (Fig-18 railroad track). Causal metadata rides in open payload; no schema change. Merge gate binds to SyncCycleReceipt.locus + correctness attestation (the eighth ideal). Conforms to sourceos-spec v2 EventEnvelope/ReasoningRun/ReasoningEvent/SyncCycleReceipt.
Slices 1 (op emitter), 2 (deterministic materialize), 3 (OR-Set merge) shipped in prophet-mesh#13 with 14 tests; suite 74 green. Slice 4 (locus/attestation gate) next.
gate() ships in prophet-mesh#13 — canonical vs. quarantine split, fail-closed on gated loci, untrusted-retract security property, SyncCycleReceipt v2 receipts; 7 tests, suite 81 green. Only Slice 5 (live second-replica ingester) remains.
Slice 5 (live Replica + anti-entropy sync + HellGraph ingester + persist-only- canonical) ships in prophet-mesh#13. 27 CRDT tests, suite 87 green. emit → reconstruct → converge → correctness-gate → live-sync + persist proven-correct only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Design doc: CRDT merge over the reasoning-evidence fabric — closes local-first ideals 2 (multi-device) and 4 (collaboration) without regressing 5 (longevity) / 6 (privacy) / 7 (user-control), and adds an eighth ideal — correctness — as a merge precondition.
Key properties (spec-first, conformant to v2)
EventEnvelope; causal metadata (hash-DAG parents, Lamport, OR-Set tags) rides in the openpayload.SyncCycleReceipt.locus(local | trusted_private | attested_fog | burst_cloud) as the merge gate — the "distance-to-execution" axis already in the spec.burst_cloudwithout a passing correctness receipt land in a quarantine view.occurredAtis display-only, never trusted for ordering.Companion implementation
CRDT Slice 1 (op-emitter) is implemented in
prophet-mesh(branchpersonal-knowledge-graph-spec) — EventEnvelope-conformant, deterministicfold()round-trip, hash-chain verification, 5 tests.Conforms to:
EventEnvelope.json,ReasoningRun.json,ReasoningEvent.json,SyncCycleReceipt.json.