Skip to content

feat(id): host adopt — copy-in step + P5 acceptance scenarios in the VM test (#10697) - #16620

Merged
dezren39 merged 9 commits into
mainfrom
lane-1737l-10697-host-adopt
Nov 29, 2026
Merged

dezren39 merged 9 commits into
mainfrom
lane-1737l-10697-host-adopt

Conversation

@dezren39

@dezren39 dezren39 commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What

Implements the copy-in step of the #10697 P5 deployment pack and evidences the three remaining acceptance criteria in the nixos-world-host VM test:

  • id host adopt <ROOT> <WORLD> — a new operator verb. Supervisor::adopt and HostFile::adopt already existed in id-worlds, but no CLI verb and no control-socket request exposed them, so a world directory copied into a running node's data root could never appear in host list by the runbook's steps. This adds:
    • ControlRequest::Adopt { world, actor } + handle arm (host_control.rs)
    • HostLifecycle::adopt (host.rs) + the NodeControl arm, so id serve --world-host nodes answer it too (node_control.rs)
    • the CLI verb (cli/host.rs) and adopt_act (commands/host.rs): through the running host when one answers, into the host file directly when none does — the same shape as import
    • unit tests at all three layers + a CLI parse test
  • Runbook (book/operations/services.md): the public/private split stated as the pack enforces it (public endpoint = the world host over iroh/web; the operator plane is host.sock, filesystem-permissioned, with no network listener), the copy-in-while-asleep procedure, and the post-power-cut verification steps per design §5. Book reference (cli-host-nav.md) gains the adopt verb.
  • VM test (world-host-test.nix): three new scenarios — copy-in while asleep (copied directory is invisible until adopted, then lists/starts/serves/stops by runbook steps), the no-TCP-listener assertion for the private operator plane, and a simulated power cut (crash() + reboot: live world returns live by replay, asleep world stays asleep, operator path verified end to end). globalTimeout 600 → 900 for the reboot.

Refs #10697. The issue stays open until the id-e2e nightly on main runs the extended VM test green; that run is the acceptance evidence for the tunnel-split, copy-in, and power-cut criteria.

Authored by lane 1737-L (alpha DRIVE run) via the Git-API contents route; no clone.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026

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 59 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: 9ee78fce-2664-4ff8-b3fc-6366529d5ed0
Commits

Reviewing files that changed from the base of the PR and between 0e7b763 and 52783ba.

Files selected for processing: 9

  • pkgs/id/book/operations/services.md
  • pkgs/id/book/reference/cli-host-nav.md
  • pkgs/id/crates/id-cli/src/cli/host.rs
  • pkgs/id/crates/id-cli/src/cli/tests.rs
  • pkgs/id/crates/id-cli/src/commands/host.rs
  • pkgs/id/crates/id-worlds/src/host.rs
  • pkgs/id/crates/id-worlds/src/host_control.rs
  • pkgs/id/crates/id-worlds/src/node_control.rs
  • 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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant