GeezerVison is showing github.com — id(phase-14): hosted worlds v1 P1 — host mode in the id binary (supervisor + data root) · Issue #10693 · developing-today/code
id(phase-14): hosted worlds v1 P1 — host mode in the id binary (supervisor + data root) #10693DescriptionImplementation packet P1 from the hosted worlds v1 design for #6283: doc/2026-11-16_design_id6283_hosted_worlds_v1.md (§3, §4, §5), merged in PR #10692. Phase 14 core topic #6276; principles from #1240 govern.
Scope
Host mode in the existing id binary (pkgs/id): a supervisor over one data root of world directories (same local layout — journal.jsonl + modules/<blake3>.wasm per world). The supervisor keeps a small host file beside the data root recording each world's lifecycle state (live / asleep / archived), data-root path, and state-change history (time, actor, prior state); the host file is rebuildable from the directories it describes — journals remain the only authority on world contents. Start = journal replay then serve; stop = drain, final fsync, record transition. Quota accounting hooks per the #1067 design (storage tier + per-state byte counts) — hooks only, no new quota system.
Acceptance criteria
- One
id binary runs in host mode over a data root with at least two worlds in different lifecycle states simultaneously.
- Host restart returns live worlds to live (by replay), asleep to asleep, archived to archived, driven by the host file; deleting the host file and rebuilding it from the directories loses no world and no journal data.
- No new binary, database, scheduler, or queue is introduced; world internals (
id-worlds FileJournal, replay, ceilings) are unchanged.
- Per-state census data (counts + bytes for live/asleep/archived) is produced for the operator surface (packet P4) and follows id: F12.10 fair scheduling and per-account quotas #1067's accounting shape.
Dependencies
First packet of the #6283 breakdown — P2, P3, P4 build on it. Does not depend on open #805 (F12.11); does not assume its outcome. Activitydeveloping-today commented on Nov 16, 2026 dezren39 commented on Nov 17, 2026 agent-note:v1 agent=repo-worker-code lane=code-i task=19344 state=picked-up at=2026-11-17T06:42:30Z — Claimed for fresh triage. Issue remains OPEN; implementation packet P1 describes hosted-world host mode and is assigned to Drew. Linked design PR #10692 is MERGED, but that is not implementation completion. Evaluating ownership before routing follow-on work. dezren39 commented on Nov 17, 2026 agent-note:v1 agent=repo-worker-code lane=code-i task=19344 state=parked at=2026-11-17T06:44:00Z — Triage confirms #10693 is a real, open implementation packet; PR #10692 is only the merged design. Parked because the issue is currently assigned to Drew, so this lane will not route a competing implementation task. Resume when Drew clarifies ownership or the assignee changes; then route the scoped follow-on through the queue. dezren39 commented on Nov 23, 2026 Slice-1 outcome (task 21463, lane oc-code-01):
This issue stays open. dezren39 commented on Nov 24, 2026 Slice-1 merged — outcome record, updated (task 21463, lane xaltha):
- PR: id(worlds): host-mode supervisor core (#10693 P1 slice 1) #13841 (branch id-10693-p1-host-mode @ 6d41f33) — library-only host-mode supervisor core: host file, lifecycle transitions, rebuild, census, replaying Supervisor. Refs, does not close, this issue.
- Merged: 2026-11-24T00:13:41Z by dezren39 — merge commit b05abeb (parents: main 27597b8 + PR head 6d41f33). Merge commit touches exactly the PR's 6 files (+924/−4), no conflict-resolution changes, so the verified head is what landed on main.
- Tests (remote dispatch, verified first-hand from the run log):
cd pkgs/id && export CARGO_TARGET_DIR=/tmp/fleet-ct-10693 && cargo test -p id-worlds host:: -- --test-threads=4 → 11 passed, 0 failed (incl. supervisor_replays_live_worlds_on_open, supervisor_tracks_two_worlds_in_different_states, delete_and_rebuild_loses_no_world_or_journal_data, census_reports_per_state_counts_and_bytes). Run: https://github.com/dezren39/fleet/actions/runs/45290065111 (conclusion success). No CI test checks ran on the PR itself (only CodeRabbit/Proof skipping); the remote dispatch above is the verification.
- Note: the earlier remote run 45288628132 cited in the packet 404s — it never existed; the run above is the real verification.
Slice 1 is done and on main. Remaining for P1: slice 2 (serve-attach + id host CLI). This issue stays open. dezren39 commented on Nov 24, 2026
Verify-and-route pass (second pass, task 22049, lane oc-code-02, 2026-11-24)
Fresh state: issue open. Slice 1 is merged (PR #13841, merge b05abeb), covering the host-mode supervisor core. The tests pass per the slice-1 evidence comment.
Remaining for P1, not started in this pass:
- Slice 2: serve-attach plus the
id host CLI, per the slice-1 outcome comment.
Verdict: keep #10693 open. Slice 2 is the only remaining P1 work and is already described on this issue, so it routes to the existing feature-slice path (effort/l feature, one vertical slice per PR). No new issue is needed. dezren39 commented on Nov 25, 2026 Claimed by lane 6, 2026-11-25T19:20Z: P1 slice 2a, a host shutdown that drains every held world without recording a transition, so a clean host restart returns live worlds to live (design §5). Supervisor currently has only stop_all, which records worlds asleep, so a clean restart could not keep them live. The id host CLI and serve-attach come after this.
Generated by Claude Code dezren39 commented on Nov 25, 2026 P1 progress from lane 6, 2026-11-25:
Acceptance status:
- Host mode in one binary with worlds in different states: met.
run holds live worlds while asleep and archived ones stay at rest.
- Restart returns each world to its recorded state: met for both crash and clean restart.
- Rebuild loses no data: met in slice 1.
- No new binary or database: met.
- Census in the id: F12.10 fair scheduling and per-account quotas #1067 shape: met.
Still open: serve-attach, meaning clients reaching the live worlds over iroh. This issue stays open for that.
Generated by Claude Code dezren39 commented on Nov 25, 2026 P1 finished by lane 6, 2026-11-25. The one gap left in the last update, serve-attach, has landed:
- id-worlds: hub reports closed worlds; host lifecycle for serve-attach #15231: the world hub tells its opener when it closes a world, and
HostLifecycle keeps a data root's host.json true from a serving process. Asleep worlds wake on demand, recorded by wake-on-connect. Idle closes record the world asleep. Archived and unknown worlds are refused. A failed open takes its wake back. Remote run: 33 host and hub tests passed.
- id serve --world-host: serve the worlds directory as a host data root #15243:
id serve --world --world-host serves .id-worlds as a host data root. Clients reaching worlds over iroh, the web bridge or SSH now go through that lifecycle. Admin-authorised creates are recorded by admin-create, and worlds recorded live reopen at startup. Remote run 45705058556: 17 host tests and 146 CLI tests passed, the id binary built, and clippy found nothing in the changed files.
Every acceptance criterion is met:
- Host mode runs in one binary.
- A restart returns each world to its recorded state.
- A rebuild loses nothing.
- No new binary or store was added, and world internals are unchanged.
- The per-state census exists.
Closing as completed. Membership-enforced wake (P2, #10694) and the control-socket operator CLI (P4, #10696) build on this. id host inspect and the first P3 restart tests are in draft #15291.
Generated by Claude Code
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|