Skip to content

Divergence detection and anti-entropy/reconciliation requirements before any later merge #10262

Closed

Description

@dezren39

Problem and goal

Divergence detection and anti-entropy/reconciliation requirements before any later merge as an independently reviewable contract and implementation increment.

Version and design basis

Version: V2. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-b/versioned-design.md#component-dispositions-and-statement-coverage (section: Component dispositions and statement coverage).
Tier: crucial.
Statement IDs: S1.32, S1.33, S1.34, S1.35, S1.36, S1.37, S1.38, S1.39, S1.40
Enables: Detects scoped divergence and exchanges anti-entropy deltas without silent merge.

Scope and ownership

Parent: #9142 (native component/meta parent).

Test / evidence first

Create or validate pkgs/id/crates/id-sync/tests/federation_b09.rs first. Proposed command: cargo test -p id-sync --test federation_b09
Oracle: model — expected Reference inventory delta detects divergence and every resolution follows conflict report; order of reconciliation does not silently merge.; verifier: Independent reference state machine or golden fixture in the dedicated integration test; cryptographic tests use independent vectors, not the implementation under test..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Pause reconciliation jobs; preserve records, tombstones, and conflict reports.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — task 17100 preflight outcome: BLOCKED on native blockers (lane code-a, 2026-11-14)

    Mandatory triage/preflight for slice B09, performed per the task spec — no implementation attempted, no production rollout authorized or started.

    Native blockers read from this issue's GitHub blocked-by graph at 2026-11-14T18:26Z — all OPEN:

    All blockers remain open, so task 17100 has self-blocked exactly as prescribed (fleet queue block 17100 --reason-class blocked with --blocked-by-issue naming all three, blocker: "waiting on native issue blockers"). Work stays paused until every blocker closes; the block re-serves the preflight when they clear.

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — openchamber scheduled lane (code-g), queue task 19195 (triage). Verdict: still blocked. Fresh check 2026-11-17: #10262 OPEN; blocker #10248 still OPEN (#10160 and #10209 are CLOSED). Work stays paused until #10248 closes. Task blocked with reason class blocked.

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    kind: blocked
    lane: openchamber-scheduled-lane (code-h), task 17100
    summary: Native-blocker preflight for B09. Open native blocker: #10248. Closed: #10209, #10160. No implementation performed; task self-blocked. Resume when #10248 is closed.

  5. removed their assignment
    on Nov 20, 2026
  6. 4 remaining items

  7. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 20, 2026
  8. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: oc-code-05 · worker repo-worker-code · queue task 17100
    kind: blocked
    at: 2026-11-20T18:18Z
    summary: Native-blocker preflight for slice B09 re-verified fresh: #10160 CLOSED, #10209 CLOSED, #10248 OPEN. No implementation performed. Task self-blocked with blocked-by-issue on #10248; returns to the pool when it closes.

  9. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Preflight complete: target #10262 remains OPEN; fresh GitHub state shows native blockers #10160, #10209 and #10248 are all CLOSED. No implementation was performed because this queue task is preflight-only; the existing blocked labels were not changed.

  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: done
    worker: repo-worker-code
    lane: code-g
    queue-task: 20952

    Fresh revalidation: target #10262 remains OPEN; native blockers #10160, #10209, and #10248 are CLOSED. The approved B09 deliverable is already merged as #11952 (commit 873bbf3), covering the issue-owned module and model test. No implementation was performed by this preflight task. Completing queue task 20952 as already_done; issue follow-through remains open.

  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · unblocked (stale block released)

  12. added and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 23, 2026
  13. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Agent note — Lane LH claiming the verify/close pass on #10262 (served by fleet agent next shortlist, rank 6).

    Fresh premise check (2026-11-23):

    Remaining work: run the issue's declared oracle — cargo test -p id-sync --test federation_b09 — against current main in a laptop worktree, attach the evidence, and close if it passes.

  14. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Agent note — Lane LH: verify/close pass complete; the declared oracle passes on current main.

    Deliverable (already landed): PR #11952 "id-sync: B09 divergence detection and anti-entropy" (merged 2026-11-18, merge commit 873bbf322a90). Changed files — exactly the two in this issue's declared scope, nothing else:

    • pkgs/id/crates/id-sync/src/federation/slices/b09_anti_entropy.rs (added, +430)
    • pkgs/id/crates/id-sync/tests/federation_b09.rs (added, +686)

    Native blockers #10160, #10209, #10248 are all closed.

    Oracle verification (this pass): cargo test -p id-sync --test federation_b09 run in a fresh laptop worktree at current main 36b93fbb07247b59665934d9e1ae4cc0b83c8deb (nix develop in pkgs/id):

    running 8 tests
    test record_join::tests::a_body_with_an_unrelated_event_id_claims_nothing ... ok
    test record_join::tests::a_body_addressed_by_its_own_digest_claims_the_join ... ok
    test record_join::tests::a_record_shaped_body_under_the_wrong_event_id_is_an_event_id_mismatch ... ok
    test equal_sets_have_equal_digests_and_report_no_divergence ... ok
    test out_of_bounds_versions_are_withheld_with_the_b08_reason ... ok
    test a_refused_version_is_never_offered_again_and_its_children_wait ... ok
    test a_concurrent_edit_is_reported_on_both_sides_and_other_objects_keep_syncing ... ok
    test reconciliation_detects_divergence_reports_first_and_converges ... ok
    
    test result: ok. 8 passed; 0 failed; 0 ignored; finished in 39.51s
    

    The property test drives random reconciliation step sequences against an independent reference state machine (the issue's named model oracle): divergence is detected from the reference inventory delta, every resolution follows the conflict report, and no reconciliation order silently merges. The named cases cover concurrent edits reported on both sides, refused versions never re-offered (children wait), out-of-bounds versions withheld with the B08 reason, and equal sets reporting no divergence.

    Per the issue's Done section (oracle passes + evidence + changed-file summary attached), closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions