GeezerVison is showing github.com — id(phase-14): hosted worlds v1 P4 — operator CLI (list/start/stop/inspect) · Issue #10696 · developing-today/code
id(phase-14): hosted worlds v1 P4 — operator CLI (list/start/stop/inspect) #10696DescriptionImplementation packet P4 from the hosted worlds v1 design for #6283: doc/2026-11-16_design_id6283_hosted_worlds_v1.md (§6), merged in PR #10692. Phase 14 core topic #6276; principles from #1240 govern.
Scope
Operator basics as id-cli subcommands against the host's local control socket (no network listener; the socket is filesystem-permissioned to the operator): host list, host start <world>, host stop <world>, host archive <world>, host restore <world>, host inspect <world>. All output is derived from the host file + journal headers — facts, never guesses. inspect reports state and transition history, journal version + head entry, module count, data-root path, quota posture per #1067, always-live pin / wake-on-connect mode, and the last recovery result; it never opens the world for serving. start on an archived world refuses and names the restore step.
Acceptance criteria
- Each subcommand performs exactly the §6 semantics against a running host, verified end-to-end against a two-world fixture (one live, one asleep, one archived across the test run).
host list output is the per-state census (live/asleep/archived counts + bytes) the design's capacity accounting reads.
- The control socket has no network listener and is not accessible to non-operator filesystem users.
- Inspect output for a world recovered after a crash names the recovery result (entries replayed, torn tail discarded if any).
Dependencies
Builds on packet P1 (issue #10693) and the transitions of packet P2. Does not depend on open #805 (F12.11). Activitydeveloping-today commented on Nov 16, 2026 dezren39 commented on Nov 17, 2026 agent-note:v1
state: picked_up
task: 19347
lane: code-f
stage: claimed
Claimed queue task 19347 for triage of #10696. Fresh GitHub state confirms the issue is OPEN, assigned to dezren39, with no hard-stop labels. Next: verify its dependency and route the appropriate follow-on or block if the dependency remains unresolved.
dezren39 commented on Nov 17, 2026 agent-note:v1
state: blocked
task: 19347
lane: code-f
stage: verified -> blocked
reason: dependency
Triage verdict: keep #10696 open; it is the P4 operator CLI packet and is not already resolved. Its body explicitly depends on P1 #10693 and P2 #10694. Fresh checks found both dependency issues OPEN (and assigned to dezren39); the queue task is blocked pending those prerequisites. Resume by checking both dependencies, then route/refresh the implementation task. Queue blocker recorded on task 19347.
dezren39 commented on Nov 25, 2026 Claimed by lane 6, 2026-11-25T22:06Z. P1 (#10693) is now complete, so this is unblocked for the parts that don't need P2.
First slice, draft #15291: id host inspect <root> <world> [--json]. It reads the host file and the world directory and shows:
- state and full transition history
- journal entries, version and torn tail
- module count and storage bytes
It never opens the world and writes nothing.
Next: the local control socket, so start / stop / archive / restore act on a running host rather than an offline data root. Quota posture, pins and the last recovery result come with that, because they need a running host.
Generated by Claude Code dezren39 commented on Nov 26, 2026 Done, checked against each acceptance criterion:
- Subcommands against a running host:
id host list|start|stop|archive|restore|inspect all exist (id serve --world-host: serve the worlds directory as a host data root #15243, id host: inspect, control socket, pins, operator-start-only wake, signed export and restore, and restart crash tests #15291). operator_acts_reach_a_running_host_over_its_socket in crates/id-worlds/src/host_control.rs drives start, stop, archive, restore, list and inspect over the socket against a three-world fixture, with one world live, one asleep and one archived during the run.
host list is the census: it prints live, asleep and archived counts and bytes per state, the shape the capacity accounting reads.
- The control socket is local: it is a Unix socket under the data root, created with mode 0600 (asserted in the same test). There is no network listener, and a second host on the same root is refused.
- Recovery in inspect: id host: show the last restart replay and the host's ceilings in inspect #15353 records each restart replay in the host file. Inspect names the result, for example
recovery <time> replayed sequence=… entries=… inputs=… torn-tail=true, or the replay error. The remote end-to-end run showed it after a real host restart. Inspect also shows the ceilings the host serves the world under.
Storage tiers aren't shown, because no tier exists in the code yet; the #1067 slices that landed are the per-account charge path, not tiers.
Closing as completed.
Generated by Claude Code
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|