GeezerVison is showing github.com — id: F12.13 phase 5 slice 4 — operator replica follow/serve CLI (#806) by dezren39 · Pull Request #9806 · developing-today/code
Conversation
dezren39
commented
Nov 14, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What
Slice 4 of F12.13 phase 5 for #806 (task 15853): the operator CLI for durable replicas. Slices 1–3 (lease primitive #9389, admission enforcement #9400, durable-open admission + ReplicaStatus #9407) had no CLI caller; this slice wires them together.
Library (id-worlds, world_replication_net) — the test-only feed client pattern is promoted into a real client:
sync_replica_once(endpoint, addr, world, admin_token, receiver) — one replication session, absorbs the writer's snapshot into a DurableReceiver, returns the verified chain cursor. Any failure aborts the session and leaves the previous committed cursor standing.
follow_replica_session(...) — same session kept open for live tail batches, on_commit per durable cursor; a session that committed at least once returns its count instead of the stream error, so follow loops can reconnect (every new session re-snapshots — a reconnect cannot lose a batch).
- Fresh non-zero session nonce per session; 30 s frame-silence timeout matching the server's frame-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) — new id world replica <NODE>:
- Syncs
--dir from the pinned writer (--source defaults to the writer's node ID, the key it signs the feed with), opens it via open_replica_with_admission with an optional --lease <FILE> (JSON SignedAdmissionLease), and prints one status JSON object: source, world, cursor (entries/sequence/header_version), chain cursor (ordinal/digest), lease expiry + remaining admission window, admits_new_spectators.
- Default mode then serves the replica's world sessions (
WorldProtocol over a single-world hub) until Ctrl-C. The replica deliberately does not re-export the replication ALPN — it cannot sign for the pinned source.
--once syncs + reports only; --follow keeps the journal current across reconnects, one JSON line per commit, without serving.
Oracle / tests
- New test
sync_replica_once_absorbs_the_writer_snapshot (oracle: acceptance item 1 of id: F12.13 journal replication (read replicas over a signed stream) #806 phase 5): a client session absorbs a live writer's snapshot into a durable receiver; a wrong admin token commits nothing and the prior cursor stands.
- Full suites:
cargo test -p id-worlds --lib — 640 passed; cargo test -p id-cli --lib — 671 passed.
- Live end-to-end (this branch's binary): writer
id serve --world --world-name lobby + id world replica <node> --once →
{"admits_new_spectators":false,"chain_cursor":{"digest":"df4f4a42…","ordinal":1},"cursor":{"entries":1,"header_version":1,"sequence":0},…,"source":"322034fb…","world":"lobby"} — gated with no lease held, exactly the policy-B posture; a second run resyncs in place to the identical cursor; a wrong admin token fails with replication stream closed by the writer and commits nothing.
Remaining on #806 (stays open)
- Item 2: authenticated provision/refresh of module artifacts +
effective_scopes directory facts tied to the pinned source/cursor (today open_replica consumes local sidecars fixed at open).
- Item 3: resilience exercises on the durable path (writer outage, restart, reconnect, compaction/reset).
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ❌ Failed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
❌ Failed 2026-11-14T06:29:46.313227Z We couldn’t complete this review. Comment @codex review to try again. |
dedf133 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
agent-note:v1 — Codex gate disposition for PR #9806 (task 15853)
The Codex code review on commit dedf133 FAILED TO RUN (Codex usage limits, per the connector's own summary comment: status failed, review not completed) and produced ZERO findings — there are no review comments on any file (verified via the pulls comments API: []). Nothing exists to disposition. Same failure mode and disposition as slices 2 (PR #9400) and 3 (PR #9407) of this task. Merging on the strength of: id-worlds lib 640/640, id-cli lib 671/671, and a live writer/replica end-to-end run recorded in the PR body.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 14, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 14, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|