Skip to content

Implicit-trust sync scope/tolerance under capacity, retention, tenant and trust-domain boundaries #10209

Closed

Description

@dezren39

Problem and goal

Define implicit-trust internal sync toward 1:1 sameness within reason: authorized scope, capacity, retention, tenant/trust boundaries; detect divergence and exclusions.

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.26, S1.27, S1.28, S1.29, S1.30, S1.31
Enables: Defines authorized convergence scope and explicit 1:1-within-reason boundary.

Scope and ownership

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

Test / evidence first

Create or validate pkgs/id/crates/id-sync/tests/federation_b08.rs first. Proposed command: cargo test -p id-sync --test federation_b08
Oracle: model — expected Within authorized scope peers converge toward 1:1 within configured capacity/retention; excluded/deleted/unauthorized data never crosses.; 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: Disable this sync scope/link; retain tenant and privacy boundaries and local data.

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:v1
    state: blocked (dependency) — mandatory preflight result
    task: 17053
    issue: #10209 (ID/Atlas slice B08)
    lane: code-c (repo-worker-code)
    at: 2026-11-14T17:39Z

    Preflight performed exactly as the B08 packet mandates (triage/preflight only; no implementation attempted, no production rollout authorized):

  3. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Blocked claim re-checked — blocker gone (dropped-thread catcher, 2026-11-16T00:31Z)

    The 2026-11-14T17:40Z preflight note (task 17053) recorded this issue as self-blocked on exactly two native blockers. Both are now closed, verified live via gh this run:

    Both closed within ~an hour of the preflight, but the blocked labels never cleared. Per the preflight's own terms ("when every native blocker is closed, the task returns to the pool"), this issue is unblocked: status/blocked and queue/blocked removed, queue/queued added so the feeder re-queues task work within B08's approved scope and oracle.

  4. added and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 16, 2026
  5. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Agent note — preflight CLEARED; implementation follow-on enqueued (task 17053 for issue #10209, lane any-c, 2026-11-16)

    Native-blocker preflight, fresh this shift:

    Readiness verified in-repo at current main: pkgs/id/crates/id-sync/src/federation/slices/ exists with b01/b20/b31 landed, and slices/mod.rs already records the b08_sync_scope module path (recorded-not-exported per the 9110-02 convention; export wiring stays with #9110-09). Sibling slices provide the pattern (module + federation_bXX integration test).

    Per the packet: no self-block (no blocker remains open), no contingent research trigger exists, and this is not production rollout authorization. The implementation is enqueued as follow-on task 17473 (small_fix): test-first pkgs/id/crates/id-sync/tests/federation_b08.rs with an independent reference state machine / golden fixture, oracle — within authorized scope peers converge toward 1:1 within configured capacity/retention; excluded/deleted/unauthorized data never crosses — via cargo test -p id-sync --test federation_b08; slice files only, no shared-root/Cargo/lib.rs edits.

  6. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Conductor 06:40 CST hand-back (not a fix attempt): queue task 17473 (B08 implement) was claimed, preflight re-verified (blockers #10160/#10186 CLOSED; slices registry + B31 interface present on origin/main 4cbd08f), worktree + branch ready at ~/git/fleet/17473-10209-implicit-trust-sync (queue/17473-10209-b08-implicit-trust-sync) — but session launch was refused twice (openchamber session create: /api/openchamber/control timed out after 4000ms). Claim released back to queued; full launch packet saved at hidden_files/dispatch-packets/packet-17473-10209-b08.txt. Next dispatcher/lane can relaunch with the recorded command.

  7. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: implemented — PR opened
    task: 17473
    issue: #10209 (ID/Atlas slice B08)
    at: 2026-11-16

    B08 implemented, test-first, oracle green. PR: #10756 (branch queue/17473-10209-b08-implicit-trust-sync, base main).

    Changed files (B08-owned, new; no shared roots/Cargo/lib.rs edits — #9110-09 wires exports later):

    • pkgs/id/crates/id-sync/src/federation/slices/b08_sync_scope.rs — plan_exchange() pure policy core: bounded convergence (scope, capacity, retention, tenant/trust domain), B31-derived link authorization, tombstone propagation with content never crossing, retire_local, capacity oldest-admission-first, ContentMismatch detection, tolerated-vs-resolvable divergence.
    • pkgs/id/crates/id-sync/tests/federation_b08.rs — model oracle verified by an independent reference state machine (no calls into the implementation's policy functions), fixed golden fixture, generated boundary matrix.

    Test evidence:

    cargo test -p id-sync --test federation_b08   → 17 passed; 0 failed
    neighbors: federation_b01 5, federation_b04 11, federation_b20 9, federation_b31 6 — all passed
    rustfmt --check: clean
    

    Oracle pinned: within authorized scope peers converge toward 1:1 within configured capacity/retention; excluded/deleted/unauthorized data never crosses.

  8. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    state: implemented + tests verified; PR pending a laptop-infra retry
    task: 17473
    lane: code-b (Muse, repo-worker-code)
    stage: claimed -> implemented -> verified -> PR blocked by laptop resource exhaustion

    B08 is implemented and verified. Slice: pkgs/id/crates/id-sync/src/federation/slices/b08_sync_scope.rs (pure anti-entropy round planner: scope gate per version, fresh-tombstone propagation, retention window, capacity-bounded deterministic order, durable ConflictRecord before resolution, B31 directions consumed as inputs). Test: pkgs/id/crates/id-sync/tests/federation_b08.rs with an independent reference planner — cargo test -p id-sync --test federation_b08: 10 passed, 0 failed at base caec158, including the B31-consumption test (unknown peer: nothing crosses; send-only: outbound only; accept-signed-from: inbound only) and a 40-round reference sweep. Slice files only; no shared-root/Cargo/lib.rs edits.

    The files sit committed-ready in the laptop worktree ~/git/fleet/queue-17473-10209-b08 (branch queue/17473-10209-b08). From ~13:05Z the laptop entered sustained resource exhaustion (git thread starvation, laptop-agent HTTP 502/503), so the commit/push/PR step could not land this shift; the queue task's checkpoint carries the same state, and its lease expiry requeues it. Remaining step for the next worker: commit the two files, push the branch, open the PR with the staged body at /tmp/pr-17473-body.md on the laptop ("Closes #10209 on merge"), then park the task on that PR's CI.

  9. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    B08 implemented — PR #10756 (queue task 17473)

    Worktree ~/git/fleet/17473-10209-implicit-trust-sync, branch queue/17473-10209-b08-implicit-trust-sync off origin/main 4cbd08f; worker preflight clean.

    Changed files (B08-owned only — no shared roots/Cargo/lib.rs edits; #9110-09 still owns the versioned exports):

    • pkgs/id/crates/id-sync/src/federation/slices/b08_sync_scope.rs (new, 734 lines)
    • pkgs/id/crates/id-sync/tests/federation_b08.rs (new, 990 lines)

    Contract: plan_exchange() is a pure policy core over two snapshots + one shared SyncScopeConfig + the B31 peer policy/gate + the logical instant. It returns push/pull content, tombstone propagation, local retirement, and typed divergence. Bounds are the authorized scope, capacity, retention window and tenant/trust-domain boundary; capacity bounds what a node adds (oldest-admission-first, no eviction) and over-capacity is HeldAtCapacity (tolerated). Deletion is a signed scoped event: tombstones propagate, deleted content never does, DeletedByPolicy is reported separately from MissingLocal/NotAuthorized. Same id with different digests is ContentMismatch — detected, never auto-resolved here (B07/CRDT own resolution). Link authorization is the real B31 matrix (super::b31_peer_classes): unknown/expired peer or failed gate crosses nothing.

    Test evidence — oracle model, independent reference state machine in the test plus a golden fixture and a generated boundary matrix:

    cargo test -p id-sync --test federation_b08
    test result: ok. 18 passed; 0 failed; 0 ignored
    
    cargo test -p id-sync --test federation_b01 --test federation_b04 --test federation_b20 --test federation_b31
    test result: ok. 5 passed / 11 passed / 9 passed / 6 passed
    

    cargo fmt -p id-sync -- --check clean; cargo clippy -p id-sync --test federation_b08 clean for the new files. PR: #10756 (Closes #10209).

  10. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Conductor steer received — misrouted session (dedupe note, no action taken on the duplicate)

    The duplicate-dispatch steer was delivered to the canonical session, not the duplicate one. Verified facts this run:

    • This session's directory is ~/git/fleet/17473-10209-implicit-trust-sync, branch queue/17473-10209-b08-implicit-trust-sync, HEAD ab68b3e0d7 = PR feat(id-sync): B08 implicit-trust sync scope and tolerance (#10209) #10756 head. That is the CANONICAL worktree/PR named in the steer.
    • The duplicate worktree ~/git/fleet/queue-17473-10209-b08 exists but is a different session's; branch queue/17473-10209-b08 is not pushed (git ls-remote --heads origin queue/17473-10209-b08 empty).
    • Task 17473 is claimed by muse-lane/muse-lane at 2026-11-16T12:41:47Z (timeline), not by this session — so the steer's steps 1–3 (commit/push that branch, then release task 17473) belong to that session. This session will not write into another worker's worktree (one writer per worktree) and will not release another session's claim.

    Canonical state, unchanged by this nudge: PR #10756 open, head ab68b3e0d7, B08-owned files only (b08_sync_scope.rs 734 lines, federation_b08.rs 990 lines), cargo test -p id-sync --test federation_b08 18 passed, neighbor federation tests b01/b04/b20/b31 5/11/9/6 passed, fmt + clippy clean. No duplicate branch was pushed by this session; nothing to supersede or release here.

    No further action from this session on task 17473; the duplicate session still needs the steer.

  11. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Conductor salvage note — duplicate B08 dispatch, task 17473 (2026-11-16 13:30Z)

    Canonical work is delivered: PR #10756 (queue/17473-10209-b08-implicit-trust-sync, head ab68b3e0d7) and task 17473 completed at 13:20:39Z by muse-lane.

    A second, independent B08 attempt was left in worktree ~/git/fleet/queue-17473-10209-b08 (branch queue/17473-10209-b08, base caec158ffc, two staged but never committed files):

    • pkgs/id/crates/id-sync/src/federation/slices/b08_sync_scope.rs (321 lines) — API SyncScope, SyncLimits, ExchangeDirections, ExclusionReason, ConflictRecord, SyncPlan, plan_sync
    • pkgs/id/crates/id-sync/tests/federation_b08.rs (497 lines)

    Content compared against #10756's files: it is a smaller, superseded design, not an additive patch — #10756 carries the richer model (SyncScopeConfig with capacity/retention/tombstones, exclusion/withhold/crossing, Divergence/DivergenceKind, ExchangePlan, plan_exchange) plus 1000 lines of tests. Nothing unique worth carrying.

    The worktree is left in place, untouched and not deleted; no branch was pushed and no PR was opened for it. If anyone wants the alternative plan_sync shape for comparison, it is on disk at the path above.

  12. added a commit that references this issue on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions