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 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

@dezren39 dezren39 commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
claude added 2 commits November 25, 2026 22:05
@claude
id host inspect: one world's record without opening it
a7d6467
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]>
@claude
id-worlds host: crash-matrix tests for torn appends and unreadable jo…
32779d9
…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

coderabbitai Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 25, 2026
id(phase-14): hosted worlds v1 P1 — host mode in the id binary (supervisor + data root) #10693
Closed
id(phase-14): hosted worlds v1 P4 — operator CLI (list/start/stop/inspect) #10696
Closed
id(phase-14): hosted worlds v1 P3 — restart/recovery hardening + snapshot/export #10695
Closed
@claude
id host: a local control socket for start, stop, archive and restore
2d620ee
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 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
claude added 3 commits November 25, 2026 22:36
@claude
id host inspect test: name the module by a blake3-shaped hash, as sto…
b4efa99
…rage counts modules

Refs #10696

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@claude
id host: always-live pins and operator-start-only wake mode (#10694)
cf969ba
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]>
@claude
id host pin: write the host file when a data root has none yet
ba4bd91
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39 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
@claude
id host: signed world export and verified restore (#10695)
d70990d
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 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
@claude
docs(book): host export and import as the restore path for one world
6d6c3e3
Refs #10695

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39
dezren39 marked this pull request as ready for review November 26, 2026 02:44
@dezren39
dezren39 merged commit 8e32f28 into main Nov 26, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the claude/project-thread-52d9fo branch November 26, 2026 02:44
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
id(phase-14): hosted worlds v1 P2 — lifecycle transitions as authority-frame actions #10694
Closed
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 26, 2026
id(phase-14): hosted worlds v2 Q3 — custody depth: incremental sets, pruning, replication #13747
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@dezren39 @claude
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.
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.