GeezerVison is showing github.com — id host: inspect, control socket, pins, operator-start-only wake, signed export and restore, and restart crash tests by dezren39 · Pull Request #15291 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Before: an operator could list a data root's worlds but not look at one world, could not start, stop, archive or restore a world on a running host, had no way to keep a world from being closed when idle or to stop a client's connection from waking it, and nothing pinned what a restart does after a torn append or with a journal version this binary cannot replay.
After:
id host inspect <root> <world> [--json] shows one world's lifecycle state and every recorded transition, its pin and wake mode, its journal's entry count, version and torn tail, module count and storage bytes. It reads the host file and the world directory alone, opens nothing and writes nothing.
id host run binds host.sock in the data root, readable and writable by its owner alone, with no network listener. id host start, stop, archive and restore <root> <world> [--actor] [--json] act on the running host through it, one request at a time. A second host on the same root is refused before it replays anything, and a stale socket left by a dead host is replaced.
id host pin <root> <world> [--off] pins a world always-live: id serve --world-host never closes it for idleness or to make room for another world. id host wake-mode <root> <world> connect|operator turns wake-on-connect off for one world, so only an operator start brings it live. Both go through the running host when one answers, otherwise they edit the host file, and a serving process adopts a host file another process replaced on its next look. Default records serialize exactly as before.
id host export <root> <world> <file> writes a live world on the running host to a new file of signed F12.13 replication frames (id: F12.13 journal replication (read replicas over a signed stream) #806): a JSON manifest, the journal's exact entries, the directory facts and the active module, closed by a terminal frame. The frames come from the same code that serves replicas, so there is no second format. id host import <root> <file> --source <key> verifies every frame under the pinned key in a scratch directory, renames it into place only after the terminal frame commits, and records the world asleep. A tampered, cut or wrongly signed file restores nothing. id host key <root> prints the host's signing key, kept owner-only in host.key in the data root.
- Two host tests pin the restart cases. A restart after a torn append replays exactly the fsynced prefix (checked against the same prefix replayed in a scratch root) and keeps every fsynced byte. A recorded-live world whose journal version is newer than this binary fails open naming the version, with its journal untouched and its recorded state not demoted.
How: world_doctor::journal_facts exposes the journal reader id world doctor already uses, and host::inspect_world builds on it. host_control (Unix only) holds the one-line JSON protocol, bind, serve, request and try_request; its test drives a three-world fixture end to end over the real socket. WorldRecord gains pinned and wake; WorldOpener gains a pinned hook the hub checks in both idle and make-room eviction; HostLifecycle refuses wake-on-connect for operator-mode worlds and reloads host.json when its inode, size or mtime changed. world_export holds export and import; the replication writer now sends frames through a small FrameSink trait so the stream and the export file share send_snapshot. Quota posture and the last recovery result in inspect stay for a later slice.
Refs #10696
Refs #10695
Refs #10694
Generated by Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Shows the lifecycle state and every recorded transition, the journal's
entry count, version and torn tail, module count and storage bytes,
from the host file and the world directory alone. Writes nothing.
Refs #10696
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…urnals
A restart after a torn append replays exactly the fsynced prefix (oracle:
the same prefix replayed in a scratch root) and keeps every fsynced byte.
A recorded-live world whose journal version this binary cannot replay
fails open naming the version, its journal untouched and its recorded
state not demoted.
Refs #10695
Co-Authored-By: Claude Opus 5.5 <[email protected]>
coderabbitai
Bot
commented
Nov 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 57 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
432b6126-8e06-4a1f-98cf-e4f0ed837b33
Commits
-
Reviewing files that changed from the base of the PR and between 7887b69 and 6d6c3e3.
Files selected for processing: 15
-
pkgs/id/README.md
pkgs/id/book/operations/backup-and-restore.md
pkgs/id/book/reference/cli-serve.md
pkgs/id/crates/id-cli/src/cli/host.rs
pkgs/id/crates/id-cli/src/cli/mod.rs
pkgs/id/crates/id-cli/src/cli/tests.rs
pkgs/id/crates/id-cli/src/commands/host.rs
pkgs/id/crates/id-cli/src/commands/serve.rs
pkgs/id/crates/id-worlds/src/host.rs
pkgs/id/crates/id-worlds/src/host_control.rs
pkgs/id/crates/id-worlds/src/lib.rs
pkgs/id/crates/id-worlds/src/world_doctor.rs
pkgs/id/crates/id-worlds/src/world_export.rs
pkgs/id/crates/id-worlds/src/world_hub.rs
pkgs/id/crates/id-worlds/src/world_replication_net.rs
- 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 25, 2026
id host run binds host.sock in the data root, owner-only, and answers
one JSON request per connection, one at a time. id host start, stop,
archive and restore act on the running host through it; a second host
on the same root is refused before it replays anything.
Refs #10696
Co-Authored-By: Claude Opus 5.5 <[email protected]>
dezren39
changed the title
id host inspect, plus crash-matrix tests for torn appends and unreadable journals
id host: inspect, a local control socket for operator acts, and restart crash tests
Nov 25, 2026
The host file records, per world, an operator pin and a wake mode.
A serving hub never closes a pinned world for idleness or to make
room, and wake-on-connect refuses an asleep world whose wake mode is
operator. id host pin and id host wake-mode set them over the control
socket, or in the host file when no host answers; id serve
--world-host adopts a host file another process replaced. Inspect
shows both.
Refs #10694
Co-Authored-By: Claude Opus 5.5 <[email protected]>
dezren39
changed the title
id host: inspect, a local control socket for operator acts, and restart crash tests
id host: inspect, a local control socket, always-live pins, operator-start-only wake, and restart crash tests
Nov 25, 2026
id host export writes a live world to a self-describing file of
signed F12.13 replication frames, built by the same code that serves
replicas: a manifest, the journal's exact entries, the directory
facts and the active module, closed by a terminal frame. id host
import verifies every frame under a pinned key in a scratch
directory and renames it into place only after the terminal frame
commits, then records the world asleep. id host key prints the
host's signing key from host.key in the data root.
Refs #10695
Co-Authored-By: Claude Opus 5.5 <[email protected]>
dezren39
changed the title
id host: inspect, a local control socket, always-live pins, operator-start-only wake, and restart crash tests
id host: inspect, control socket, pins, operator-start-only wake, signed export and restore, and restart crash tests
Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
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.
|