GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: F12.13 journal replication (read replicas over a signed stream) · Issue #806 · developing-today/code

id: F12.13 journal replication (read replicas over a signed stream) #806

New issue
Copy link
New issue
Copy link
Closed
Closed
id: F12.13 journal replication (read replicas over a signed stream)#806
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmode/onlineFully doable remotely: design, config, code, cloudnextOrg Project gate: queued next — orchestrator adds to the boardpriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Oct 24, 2026
Issue body actions

From .opencode/plans/phase-12-platform-flexibility.md (workstream E, F12.13), which has no tracking issue. Phase 12 stack (PR #801).

What and why

Read replicas that follow a world's journal over a signed stream. A world keeps a single writer, so there are no write conflicts. Replicas serve spectators and survive the writer being offline. The rollback and format rules from F11.12 apply to the stream.

Dependencies

  • F11.12 journal format/version header (Define rollback compatibility for world profile journal entries #227).
  • F12.6 structured audit log (epic id: Phase 12 designs to run through the research workflow #534 D1-024) for the stream framing.

Acceptance

  • A replica reproduces the writer's records.
  • A tampered stream is refused.

Acceptance criteria

  • The body's ## Acceptance bullets hold: a read replica reproduces the writer's journal records from the signed stream, and a tampered stream is refused.
  • Replicas serve spectators while the writer is offline.
  • Stream framing follows the F11.12 journal format/version rules (Define rollback compatibility for world profile journal entries #227) and the F12.6 audit-log framing (epic id: Phase 12 designs to run through the research workflow #534).

Activity

Next
  1. github-actions
    assigned
    dezren39
    on Oct 24, 2026
  2. dezren39
    added
    kind/featureNew feature or capability request
    status/needs-triageNot yet triaged; needs a first look
    priority/lowNice to have; do when convenient
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 26, 2026
  3. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    Intake review

    Related: Phase 12 stack PR #801 (merged); dependencies #227 (F11.12 journal format) and epic #534 (F12.6). No merged PR resolves this (verified 2026-10-26).

    Notes: Large, dependency-gated feature scope (effort l, priority low until its dependencies are scheduled). The body already had an ## Acceptance list; the criteria above restate it in the standard section.

    Risks: Signed-stream replication is security-sensitive; tamper-refusal needs a negative test, not just a happy-path replica test.

    Suggested approach: Design the stream framing against F11.12/F12.6 first, then a single-writer replica with record-for-record parity and tamper tests.

  4. dezren39
    added
    nextOrg Project gate: queued next — orchestrator adds to the board
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 27, 2026
  5. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane D
    • Session / ID: queue task 2245
    • Found via: queue claim
    • Task: Triage id: F12.13 journal replication (read replicas over a signed stream) #806 (F12.13 journal replication / read replicas) against current main — verify, then route or close with evidence
    • Expectation: effort l feature; triage done = verdict comment + routing
    • Links: task 2245 in queue repo-health-code-pilot
  6. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane D
    • Session / ID: queue task 2245
    • Found via: queue claim
    • Task: Triage verdict for id: F12.13 journal replication (read replicas over a signed stream) #806 (F12.13 journal replication) against current main
    • Expectation: verdict below; issue stays open — confirmed, not implemented as specified, dependencies unmet
    • Links: dependencies Define rollback compatibility for world profile journal entries #227 (closed, narrower than F11.12), epic id: Phase 12 designs to run through the research workflow #534 (open)

    Triage verdict: CONFIRMED — not implemented as specified; both named dependencies are unmet

    Verified at main HEAD 35726e8e9d93698e9922e85ba5d072d557edb36d (2026-10-28T18:50:35Z):

    • What exists is a different mechanism. The replica code at HEAD is world records replication over iroh-docs: pkgs/id/src/world_records.rs ("World records in iroh-docs: persistent, replicated structured data"), the Replica::start + world_records::replicate path in commands/world.rs:149-171, and the id world replicate CLI (cli.rs:1476). directory_log.rs replicas are in-memory convergence of directory records. None of this is a read replica following a world's journal over a signed stream, and none of it serves spectators from the journal while the writer is offline — the F12.13 acceptance bullets do not hold.
    • F12.6 dependency absent: code search for a structured audit log (audit_log / AuditLog) at HEAD returns nothing in pkgs/id, and epic id: Phase 12 designs to run through the research workflow #534 (which carries F12.6) is still OPEN — so the stream framing this feature is specified to follow does not exist yet.
    • F11.12 dependency only partial: Define rollback compatibility for world profile journal entries #227 is closed, but it defined rollback compatibility for world profile journal entries; PR id: Phase 13 first slice — shell contract (F13.1), SSH transports (F13.2/F13.3), F13.7 design #842's gate note records that F11.12 journal-format management itself "has NOT landed (only the JOURNAL_VERSION refusal exists)". The format/version rules the stream must follow are therefore not in place either.

    Route: L feature gated on #534/F12.6 and the F11.12 journal-format work — no scoped small_fix is enqueueable from this triage. #806 stays open and is re-queued (queue/queued + status/needs-triage) to re-enter triage once its dependencies land; the records-over-iroh-docs replication above is the adjacent substrate a future implementation should evaluate first, but it does not satisfy this issue as written.

  7. 433 remaining items

    Load more actions
  8. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Agent note — picked up (lane any-a)

    • Agent: queue worker (repo-worker-code), lane any-a; task 15853 for issue id: F12.13 journal replication (read replicas over a signed stream) #806 (F12.13 phase 5 remainder — follow-on to task 6699, whose lease-primitive slice merged as PR feat(id-worlds): policy-B writer-signed admission lease for replicas (#806) #9389).
    • Lane assignment: direct (lane row 7293). Fresh check 2026-11-13: issue id: F12.13 journal replication (read replicas over a signed stream) #806 is OPEN, no hard-stop labels, no competing open PR for this scope.
    • Scope this claim: wire the policy-B lease into the replica admission path. Recon finding: open_replica / serve_replica have no production caller yet (the operator CLI item is what will call them), and every spectator session on a served replica begins at WorldHandle token admission (participant_id / authorize) — so the lease gate lands on the read-only handle admission path: participants already present at the verified cursor are existing sessions (unaffected, per the ruling); a token resolving to anyone else is a NEW spectator and must pass SignedAdmissionLease::verify at admission time.
    • Remaining after this claim (stays on id: F12.13 journal replication (read replicas over a signed stream) #806): operator follow/serve CLI with source/world/cursor/staleness reporting, authenticated module/directory refresh, and the outage/restart/reconnect/compaction-reset resilience exercises.
  9. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Agent note — done (slice merged; final phase-5 remainder re-queued)

    • Agent: queue worker (repo-worker-code), lane any-a; task 15853 for issue id: F12.13 journal replication (read replicas over a signed stream) #806 (F12.13 phase 5 remainder, lease-wiring slice).
    • Outcome: PR feat(id-worlds): enforce policy-B admission lease at replica spectator admission (#806) #9400 merged (merge commit fa5a286) — ReplicaAdmissionGate is now enforced by the world actor at every token-admission entry point (participant lookup, scope authorization, snapshot) for replicas served via serve_replica_with_admission / spawn_read_only_with_admission. Participants present at the verified cursor are never gated; new spectators need a lease that verifies at the current time; an expired or absent lease stops new admissions only. No gate keeps the phase-4 posture.
    • Tests: cargo test -p id-worlds admission — 12 passed; full id-worlds lib suite — 620 passed. Codex review on PR feat(id-worlds): enforce policy-B admission lease at replica spectator admission (#806) #9400 failed on Codex usage limits with zero findings produced (disposition posted on the PR, comment 6849307118).
    • Remainder (stays on id: F12.13 journal replication (read replicas over a signed stream) #806, which remains OPEN): operator follow/serve CLI with source/world/cursor/staleness reporting and lease holding/refresh; authenticated module/directory refresh tied to the pinned source and verified cursor; outage/restart/reconnect/compaction-reset resilience exercises. A follow-on queue task is enqueued immediately after task 15853 completes (dedupe key held until then) and named in a follow-up note here.
    • Worktree/branch: /home/user/git/fleet/15853-806-phase5-remainder, branch queue/15853-806-phase5-lease-wiring (merged; safe to clean up).
  10. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Picked up by repo-worker-any-a — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-any-a posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  11. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Released by repo-worker-any-a (outcome: done). Task 15853 (lane any-a) outcome fixed_merged: PR #9400 merged fa5a286 — ReplicaAdmissionGate enforced at replica token admission (participant lookup, scope authorization, snapshot) via serve_replica_with_admission; tests: admission 12 passed, full id-worlds suite 620 passed; Codex quota-failed zero findings (disposition PR comment 6849307118). The broker claim on task 15853 was lost mid-shift (complete/heartbeat verdict: not claimed by repo-worker-code), so this fallback release plus issue notes 6849316608/6849334609 record the outcome per the runbook terminal-failure rule. Slice only: operator CLI, authenticated refresh, and resilience exercises remain on #806 (stays OPEN) and are re-enqueued as the phase-5 remainder.

  12. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Correction to the follow-on wording in notes 6849316608 / 6849350866 (lane any-a): the phase-5 remainder does not need a new queue task. Task 15853 is back at status queued (its broker claim was reaped mid-shift, which is why the terminal verbs returned not-claimed verdicts) and its packet already carries the full remainder scope — operator follow/serve CLI with reporting, authenticated module/directory refresh, and the resilience exercises — alongside the two items now merged (lease primitive PR #9389, admission enforcement PR #9400). A revive enqueue with the same dedupe key confirmed: dedupe hit on task 15853, status queued. The next claimer of task 15853 owns the remainder; #806 stays open.

  13. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    Agent note — lane code-d, queue task 15853 (park): phase-5 slice 3 merged; the remainder stays on this issue.

    PR #9407 merged (2026-11-13T09:57:16Z). What landed: the policy-B admission gate and operator status on the durable replica open path — world_store::open_replica_with_admission (actor spawned via spawn_read_only_with_admission with a ReplicaAdmissionGate built from the restore's presence set; expired/not-yet-valid leases open and serve with new admissions stopped; non-time verification failures fail the open as misconfiguration) and world_store::ReplicaStatus (pinned source, world, verified cursor, lease expiry + remaining admission window, admits-new-spectators). open_replica unchanged. Tests: 4 new durable-open tests; full id-worlds suite 624/624. Codex gate: review failed to run (account usage limits), no findings exist to disposition.

    Exact remainder for the next claimer of task 15853 (#806 stays open):

    1. id-cli operator command/config surface: follow a pinned source into a durable replica directory and run/serve it, reporting from ReplicaStatus (source ID, world, cursor, staleness) — the library API from PR id(world): gated durable replica open + operator status (#806 phase 5) #9407 is the seam; no CLI caller exists yet.
    2. Authenticated provision/refresh of active module artifacts and effective_scopes directory facts tied to the pinned source and verified journal cursor — today open_replica consumes the replica directory's local modules/ and directory.jsonl sidecars, fixed at open.
    3. Resilience exercises on the durable path: writer outage, restart, reconnect, compaction/reset, without journal loss or Records drift (lease-expiry on the durable path is covered by PR id(world): gated durable replica open + operator status (#806 phase 5) #9407's tests).

    Task 15853 parked 1h; resume at item 1.

    — lane code-d worker, 2026-11-13

  14. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: parked — slice 4 (operator CLI) seam-mapped, not started; resume at item 1
    worker: repo-worker-any-d (task 15853)

    Fresh check 2026-11-14T05:08Z: issue #806 OPEN, no hard-stop labels. Slices 1–3 are merged (PR #9389 lease primitive, PR #9400 admission enforcement, PR #9407 durable-open admission + ReplicaStatus). This lane verified the exact seams for remainder item 1 (id-cli operator follow/serve) against current main and did not start the build — the slice is a full network-client feature in a security-sensitive area and prior slices each took a dedicated shift; a rushed partial build helps nobody.

    Seam map for the next claimer (all verified in source this shift):

    • Library open path is complete: open_replica_with_admission(dir, world_id, pinned_source, limits, runtime, service, lease, now_unix_ms) at pkgs/id/crates/id-worlds/src/world_store.rs:725 returns (WorldService, OpenReport, ReplicaCursor, ReplicaStatus). ReplicaStatus (world_store.rs:682): world_id, source [u8;32], cursor, lease_expires_at_unix_ms, lease_remaining_ms, admits_new_spectators — the CLI report fields (source, world, cursor, staleness) map 1:1.
    • Durable sink is complete: DurableReceiver (pkgs/id/crates/id-worlds/src/world/replication_receiver.rs:173): open(dir, world, pinned_source), begin_session(nonce), accept_frame(bytes) -> ReceiverProgress, committed_cursor(), read_journal(). No production caller exists yet — world_store.rs and tests are the only users.
    • Feed client pattern exists ONLY in tests: request_frame at pkgs/id/crates/id-worlds/src/world_replication_net.rs:~403 builds the ReplicationRequest (world, hub admin_token, session nonce) against WorldReplicationProtocol (server side, same file). The CLI follow command must promote this into a real client: connect to the writer endpoint, request frames from the replica's committed cursor, pump accept_frame, then open/serve.
    • CLI surface: commands live in pkgs/id/crates/id-cli/src/commands/ (world.rs, serve.rs) with arg structs in src/cli/ (world.rs). No replica/follow command exists in either.
      Suggested first step: a world replica follow (or serve --replica) subcommand taking --dir, --world, --source (pinned key), --admin-token, optional --lease file; sync once to the writer's current cursor, open with admission, print ReplicaStatus as JSON, then serve. Oracle tests: point it at a test-hub writer (patterns in world_replication_net tests), assert the printed status cursor equals the writer's committed cursor and admits_new_spectators matches the lease state.

    Parked 1h per this task's established slice cadence; items 2 (authenticated refresh) and 3 (resilience exercises) follow item 1.

  15. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: parked — slice 4 (operator CLI) not started by this lane; resume at remainder item 1
    task: 15853
    lane: code-c
    Fresh check 2026-11-14: issue #806 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent). Slices 1-3 verified merged fresh via gh: PR #9389 (lease primitive), PR #9400 (admission enforcement, merged fa5a286), PR #9407 (durable-open admission + ReplicaStatus).
    Remainder (unchanged, per lane code-d / any-d notes on this issue): (1) id-cli operator follow/serve command promoting the test-only feed client in world_replication_net.rs into a real client against DurableReceiver + open_replica_with_admission, reporting ReplicaStatus; (2) authenticated module/effective_scopes refresh tied to pinned source + verified cursor; (3) resilience exercises on the durable path.
    This lane did not start the build: item 1 is a full network-client feature in a security-sensitive area that each prior slice took a dedicated shift to land, and lane any-d seam-mapped it at 2026-11-14T04:27Z. Parked 1h per the task's established slice cadence; no branch, no edits, no competing PR.

  16. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: claimed — lane any-c resuming task 15853 at remainder item 1 (id-cli operator follow/serve)
    worker: repo-worker-code (lane any-c)
    task: 15853

    Fresh check 2026-11-14T06:10Z: issue #806 OPEN, no hard-stop labels. Slices 1-3 merged (PR #9389, #9400, #9407). This lane takes slice 4 (operator CLI) as its dedicated build this shift: promote the test-only feed client into an id-cli follow/serve command over DurableReceiver + open_replica_with_admission, reporting ReplicaStatus. Labels synced to queue/claimed + status/in-progress.

  17. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15853 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.

  18. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: parked — slice 4 (operator CLI) MERGED via PR #9806; resume at remainder item 2
    worker: repo-worker-code (lane any-c)
    task: 15853

    PR #9806 merged (2026-11-14, merge commit c208fc0). Slice 4 of phase 5 is landed: the operator CLI for durable replicas.

    What landed:

    • Library (id-worlds, world_replication_net): the test-only feed-client pattern is now a real client — sync_replica_once (one session, absorb snapshot into DurableReceiver, return verified chain cursor; any failure aborts the session and the previous committed cursor stands) and follow_replica_session (live tail across a session, on_commit per durable cursor; reconnect-safe because every session re-snapshots). Fresh non-zero nonce per session; 30s frame-silence bound matching the server write bound (id(world-replication): frame writes have no timeout — a stalled peer holds the world lease and session permit indefinitely (PR #4589) #4726).
    • CLI (id-cli): id world replica — syncs --dir from the pinned writer (--source defaults to the writer node ID), opens via open_replica_with_admission with optional --lease (JSON SignedAdmissionLease), prints one status JSON (source, world, cursor entries/sequence/header_version, chain ordinal/digest, lease expiry + remaining window, admits_new_spectators). Default mode serves world sessions until Ctrl-C (sessions ALPN only — a replica cannot sign for the pinned source, so it never re-exports the replication feed). --once = sync+report only; --follow = keep the journal current across reconnects without serving.
    • Tests: new oracle sync_replica_once_absorbs_the_writer_snapshot; id-worlds lib 640/640, id-cli lib 671/671.
    • Live e2e (this branch's binary, writer id serve --world lobby): replica --once printed admits_new_spectators=false with cursor entries=1/sequence=0 and source = writer node id — the policy-B gated posture with no lease held; a second run resynced in place to the identical cursor; a wrong admin token failed clean and committed nothing.
    • Codex gate: review failed to run (usage limits) with zero findings produced — disposition posted on PR id: F12.13 phase 5 slice 4 — operator replica follow/serve CLI (#806) #9806 (comment 6873148748), same as slices 2/3.

    Exact remainder for the next claimer of task 15853 (#806 stays OPEN):

    1. Authenticated provision/refresh of active module artifacts and effective_scopes directory facts tied to the pinned source and verified journal cursor — today open_replica consumes the replica directory's local modules/ and directory.jsonl sidecars, fixed at open.
    2. Resilience exercises on the durable path: writer outage, restart, reconnect, compaction/reset, without journal loss or Records drift (lease-expiry on the durable path is covered by PR id(world): gated durable replica open + operator status (#806 phase 5) #9407 tests; reconnect on the follow path is now implemented by follow_replica_session + the CLI reconnect loop and wants an exercise test).

    Task 15853 parked 1h per the established slice cadence.

  19. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: picked up — resuming task 15853 at remainder item 1 (authenticated module/directory refresh)
    worker: repo-worker-code (lane code-c)
    task: 15853

    Resumed from the parked checkpoint on issue #806: PR #9806 (slice 4, operator replica follow/serve CLI) verified MERGED fresh this shift (merge commit c208fc0, merged 2026-11-14T06:30:27Z). Issue #806 is OPEN with no hard-stop labels (no held, user/owned, do-not-merge, do-not-auto-edit).

    This slice targets remainder item 1 from the 2026-11-14T06:30:58Z note: authenticated provision/refresh of active module artifacts and effective_scopes directory facts tied to the pinned source and verified journal cursor (today open_replica consumes the replica directory's local modules/ and directory.jsonl sidecars, fixed at open). Resilience exercises (remainder item 2) stay for a following slice unless time permits.

    Labels synced for the claim: queue/claimed + status/in-progress + work/assigned; queue/parked + status/parked removed.

  20. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: parked — slice 5 (authenticated sidecars) MERGED via PR #9837; resume at remainder item 2 (resilience exercises)
    worker: repo-worker-code (lane code-c)
    task: 15853

    PR #9837 merged (2026-11-14, merge commit df6de6c). Slice 5 of phase 5 is landed: authenticated provision/refresh of module artifacts and directory facts.

    What landed:

    • Protocol (id-worlds, world/replication.rs): new ReplicationKind::Directory and ::Module frames. A sidecar frame carries no journal entries and must sit exactly at the chain cursor its batch has already reached (new ReplicationError::SidecarCursorMismatch), so the frame-digest chain binds the sidecars to the verified cursor they were captured at. Signer-side local validation mirrors the tracker (id(world/replication): SignedReplicationEnvelope::sign signs envelopes every receiver rejects — version, header version, payload digest, cursor chain, terminal and snapshot-base rules unchecked #6469 pattern).
    • Receiver (world/replication_receiver.rs): sidecar payloads stage beside the journal bytes and install only at the batch's terminal commit — directory facts atomically replace directory.jsonl (chunks pre-validated as complete DirectoryEntry lines before the tracker sees them), module bytes stored content-addressed under modules/. Truncated/refused/aborted batches leave the previous committed sidecars untouched; sidecars install before the journal, which remains the commit point.
    • Feed (world_replication_net.rs, world/actor.rs, world/handle.rs): at every snapshot (initial sync and compaction/header resets) the writer serves the directory facts for the snapshot journal's subjects (one actor round trip, WorldCommand::ReplicaSidecars -> Directory::replica_facts_for) and the active module's bytes loaded from its content-addressed store under the actor's active hash; a load failure aborts the stream. The facts frame is always sent (empty replaces); the module only when held.
    • Tests: replication suite 57/57 (new oracle tests: sidecars sit at the reached cursor and move nothing; off-cursor refusal; signer refusal; sidecars commit only at terminal; aborted batch leaves committed sidecars byte-identical; malformed facts refused pre-tracker). Full lib suites: id-worlds 797 passed, id-cli 671 passed, 0 failed; cargo fmt applied. Clippy unrunnable against the pooled target (E0514 rustc mismatch in the broker pool — pre-existing infra, not this change).
    • Live e2e (this branch's binary, writer id serve --world lobby): replica --once printed admits_new_spectators=false with cursor entries=1/sequence=0 and source = writer node id (policy-B gated posture, no lease held); the replica directory gained a directory.jsonl installed by the signed Directory sidecar (empty — lobby's journal has no directory subjects); a second run resynced in place to the identical chain cursor/digest; a wrong admin token was refused and committed nothing.
    • Codex gate: review failed to run (usage limits) with zero findings produced — disposition posted on PR id: F12.13 phase 5 slice 5 — authenticated replica sidecars (#806) #9837 (comment 6874300784), same as slices 2/3/4.

    Exact remainder for the next claimer of task 15853 (#806 stays OPEN):

    1. Resilience exercises on the durable path: writer outage, restart, reconnect, compaction/reset, without journal loss or Records drift. (Lease-expiry on the durable path is covered by PR id(world): gated durable replica open + operator status (#806 phase 5) #9407 tests; reconnect on the follow path is implemented by follow_replica_session + the CLI reconnect loop and wants an exercise test. Sidecar refresh rides every snapshot, so a compaction/reset exercise now also proves facts/module refresh.)

    Task 15853 parked 1h per the established slice cadence.

  21. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: picked up - resuming task 15853 at remainder item 2 (resilience exercises)
    worker: repo-worker-code (lane code-d)
    task: 15853

    Resumed from the parked checkpoint on issue #806: PR #9837 (slice 5, authenticated replica sidecars) verified MERGED fresh this shift (merge commit df6de6c, merged 2026-11-14T08:07:18Z). Issue #806 is OPEN with no hard-stop labels (no held, user/owned, do-not-merge, do-not-auto-edit).

    This slice targets the sole remaining item from the slice-5 note: resilience exercises on the durable path - writer outage, restart, reconnect, compaction/reset, without journal loss or Records drift. Compaction/reset is already exercised at the receiver/protocol level (reset_snapshot_replaces_the_journal_and_bumps_the_version; snapshot_rebases_the_chain_on_a_header_bump); this slice adds the missing net-level exercises in world_replication_net.rs: outage leaves the committed replica byte-identical and a restarted writer resyncs in place; a reopened replica stands at the synced cursor and resync is idempotent; a follow session ends cleanly on writer shutdown and a reconnected follow session catches up to the same verified cursor.

    Branch: queue/15853-806-resilience (worktree on the laptop). Labels synced for the claim: queue/claimed + status/in-progress + work/assigned; queue/parked + status/parked removed.

  22. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: done - F12.13 phase 5 COMPLETE; no remainder remains
    worker: repo-worker-code (lane code-d)
    task: 15853

    PR #9858 merged (2026-11-14, merge commit f8a79cd). Final slice of phase 5: resilience exercises on the durable replica path.

    What landed (tests-only, +305 lines in world_replication_net.rs):

    • writer_outage_and_restart_resync_without_journal_drift: a sync against a dead writer does not succeed and leaves the committed cursor and journal bytes untouched; the writer restarted from the same directory under the same pinned source resyncs the replica in place to the identical verified cursor, byte for byte.
    • replica_restart_reopens_synced_state_and_resync_is_idempotent: a reopened DurableReceiver stands at the synced cursor with the journal intact; resyncing a current replica drifts nothing.
    • follow_session_reconnects_after_a_writer_restart: a follow session whose writer dies mid-session ends Ok with its absorbed commits; a fresh follow session against the restarted writer (the CLI reconnect loop's posture) catches up to the same verified cursor with no drift.

    Verification: world_replication_net suite 10/10; full id-worlds lib 657/657 pass. Codex gate: review failed to run (usage limits) with zero findings - disposition posted on PR #9858 (comment 6875308695), same as slices 2-5.

    Phase 5 acceptance now holds in full: (1) pinned-source CLI follow/persist/open/serve with source, world, cursor and staleness reporting (PR #9806); (2) policy-B SignedAdmissionLease::verify wired into new-spectator admission (PRs #9389/#9407); (3) authenticated module/directory refresh tied to the pinned source and verified cursor (PR #9837); (4) outage, restart, reconnect and compaction/reset exercised without journal loss or Records drift (this PR; compaction/reset at the receiver/protocol level, lease-expiry by PR #9407). The issue-level acceptance (replica reproduces the writer's records from the signed stream; a tampered stream is refused; replicas serve spectators while the writer is offline) is demonstrated across the slice suites. Closing issue #806 as complete; task 15853 completes as fixed_merged.

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

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmode/onlineFully doable remotely: design, config, code, cloudnextOrg Project gate: queued next — orchestrator adds to the boardpriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.