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 — feat(id): deployed world host — serving node answers host.sock, NixOS option, VM test (P5) by dezren39 · Pull Request #15472 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Before: only id host run bound host.sock, so a node running id serve --world-host gave operators no control.

  • id host start, stop, archive and restore failed with "no host is running".
  • pin, wake-mode and import fell back to editing the host file directly.
  • The NixOS module had no way to run a world host at all.

After: a deployed node is one process, as the design says.

  • id serve --world-host binds .id-worlds/host.sock and answers every operator act for the worlds it serves.
  • It refuses to start if another host already answers on that root.
  • The NixOS module gains world.enable, world.host, world.idleSecs and environmentFile for the admin token. Assertions catch the combinations the server would refuse.

How:

  • id_worlds::node_control::NodeControl holds the hub, the HostLifecycle and the optional host.key.
    • Start: records the operator's act, then opens the world in the hub, whatever its wake mode. A failed open takes the record back.
    • Stop: records the world asleep, then drains it out of the hub with the new WorldHub::close.
    • Archive and restore: use HostLifecycle::operator_transition, which reuses the lifecycle's own refusals.
    • Export: needs the world open in the hub. Import: adopts the world into the host file.
  • host_control shares its request and response line helpers with the node.
  • New VM test nixos-world-host (nix/tests/world-host-test.nix), run as root against the module:
    • list, and a refused second id host run;
    • export with the node's own key;
    • stop, operator-only wake, then start with the actor recorded;
    • archive and restore;
    • pin, then a restart that reopens the live world.
    • It is excluded from the PR check list like the other VM checks, and added to the test-suite registry.
  • Book: a runbook in the services chapter, the --world-host row, and the export steps.

Unit tests (node_control::tests):

  • An operator start opens an operator-wake world.
  • Stop drains the world and records who stopped it.
  • Archive and restore follow the lifecycle.
  • Export needs a live world and a key.
  • The CLI reaches a node over its socket.

Also fixed: startup used to open the default world (--world-name) the way a client would. A restart therefore woke a default world the operator had stopped, and failed outright when that world was archived or asleep with wake mode operator. In host mode, a default world the host file records at rest now stays closed. The VM test covers this.

Refs #10697


Generated by Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@claude
feat(id): a serving node answers the operator CLI on host.sock (P5 fi…
16fae79
…rst slice)

`id serve --world-host` now binds `.id-worlds/host.sock` and answers the
same control requests `id host run` does, so `id host start`, `stop`,
`archive`, `restore`, `list`, `inspect`, `pin`, `wake`, `export` and
`import` act on the worlds a deployed node is serving. A start records
the operator's act and then opens the world in the hub (whatever its wake
mode); a failed open takes the record back. A stop records the world
asleep and then drains it out of the hub.

Refs #10697

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 26, 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 11 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: 1fe6a1e0-f38d-4bab-95d1-433ad54c7eb2
Commits

Reviewing files that changed from the base of the PR and between 77df348 and fe05748.

Files selected for processing: 16

  • .github/scripts/check-id-pr-checks.sh
  • .github/test-suite-registry.json
  • pkgs/id/book/operations/backup-and-restore.md
  • pkgs/id/book/operations/services.md
  • pkgs/id/book/reference/cli-serve.md
  • 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/node_control.rs
  • pkgs/id/crates/id-worlds/src/node_control_tests.rs
  • pkgs/id/crates/id-worlds/src/world_hub.rs
  • pkgs/id/flake.nix
  • pkgs/id/nix/id-module.nix
  • pkgs/id/nix/tests/world-host-test.nix
  • 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.

@claude
feat(id): NixOS world-host option, VM test and runbook (P5)
45cf302
services.id.instances.<name>.world.{enable,host,idleSecs} and
environmentFile drive `id serve --world --world-host`, with assertions
for the combinations the server refuses. The nixos-world-host VM test
drives a deployed node over its control socket as root: list, a refused
second host, export with the node's key, stop, operator-only wake,
start, archive and restore, then pin and a restart that reopens the
live world. The services chapter gains the runbook.

Refs #10697

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39 dezren39 changed the title feat(id): a serving node answers the operator CLI on host.sock (P5 first slice) feat(id): deployed world host — serving node answers host.sock, NixOS option, VM test (P5) Nov 26, 2026
@claude
fix(id): a world host keeps an at-rest default world closed across re…
5c49a27
…starts

Startup opened the default world as a client would, so a restart woke a
default world the operator had stopped, and failed outright when it was
archived or asleep with operator-only wake.

Refs #10697

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Shepherd lane BL — stand-down: actively-claimed WIP, verification gate not met (2026-11-26)

Premise/ownership check (fresh, this run):

  • PR feat(id): deployed world host — serving node answers host.sock, NixOS option, VM test (P5) #15472: OPEN, DRAFT, base main, head claude/project-thread-52d9fo @ 5c49a27eb645ba84fdb3590382c721f3ede52b2b, mergeable CLEAN. No labels on the PR.
  • Linked issue id(phase-14): hosted worlds v1 P5 — basement-cluster deployment pack #10697 carries a live claim: "Claimed by lane 6, 2026-11-26T08:15Z" (comment 2026-11-26T08:07:44Z) — this PR's three commits landed 08:18–08:20Z, minutes after the claim. This is the claiming lane's own in-flight slice, not an abandoned draft.
  • Verification on the current head: the only check run is Proof = completed/skipped. No successful test run exists on 5c49a27e.
  • The PR body names a new VM test nixos-world-host (nix/tests/world-host-test.nix) covering the core behaviours (refused second host, export, stop/wake, archive/restore, restart reopen). The body states it is excluded from the PR check list, and there is no evidence it has run anywhere. A unit-test pass would not substitute for that VM gate, and the sandbox cannot provide a NixOS VM venue.

Diff review (scope only): 16 files, all matching the body — node_control + tests, host_control/world_hub/serve wiring, NixOS module options, the VM test, test-suite registry, and book updates. No secrets in the diff (one test-token comment in the VM test, labelled as such).

Action: not merged, not marked ready. The claiming lane should run/evidence the VM test (or the repo's VM-check venue) and its unit tests, then mark ready. Shepherd will re-check on a later pass if the claim goes stale.

All reactions

Sorry, something went wrong.

Uh oh!

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

@claude
style(id): clear clippy findings on the world-host lines
8220de7
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39
dezren39 marked this pull request as ready for review November 26, 2026 12:45
claude added 3 commits November 26, 2026 13:01
@claude
style(id): bind the host socket path before logging it
f671795
Clears the two lint findings on the world-host lines in serve.rs: a
temporary dropped at the end of the block, and a needless std::fs path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@claude
Merge remote-tracking branch 'github/main' into claude/project-thread…
b72dc9e
…-52d9fo

# Conflicts:
#	pkgs/id/crates/id-worlds/src/lib.rs
@claude
fix(id): a host file names its data root canonically
612fa37
The world-host VM test found that `id serve --world-host` opened its
data root as the relative `.id-worlds`, recorded that relative path in
host.json, and the operator CLI then refused the file when it loaded the
same root by its absolute path. HostFile::empty now records the
canonical path, as the field's doc already promised.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
id(phase-14): hosted worlds v1 P5 — basement-cluster deployment pack #10697
Open
@dezren39
Merge commit 'refs/agent-next-22/main-15472' into agent-next-22-local…
fe05748
…/15472-refresh
@dezren39
dezren39 merged commit e949cc5 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 22:42
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
id(phase-14): hosted worlds v2 Q4 — lifecycle automation + per-world limits #13748
Open
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.