GeezerVison is showing github.com — id(phase-14): hosted worlds v2 Q2 — restore drills + drill record · Issue #13744 · developing-today/code
id(phase-14): hosted worlds v2 Q2 — restore drills + drill record #13744DescriptionImplementation packet Q2 from the hosted worlds v2 outline on #6284 (custody & lifecycle, part 2): doc/2026-11-16_design_id6283_hosted_worlds_v1.md, merged in PR #10692; refined outline + open questions posted on #6284 (2026-11-16, task 13294). Phase 14 core topic #6276; principles from #1240 govern.
Scope
Restore drills — the thing that makes a snapshot a backup. Drill cadence, and the drill check itself: restore into a scratch world, replay to the same journal head, and compare. Record each drill result so absence of a recent successful drill is visible (same posture as the #6045 attestation / #6058 ledger pattern: a missing record is the alarm). Restore-into-scratch is an explicit non-goal of v1 and belongs here. Reuses the P6 replay-equality harness (#10698) rather than reinventing it.
Must answer from the outline's open questions: drill cadence and evidence shape — how often must a restore drill succeed; does a failure of a scheduled drill block anything, or only surface for the operator? Operational ownership — does the drill harness live in id-worlds host mode, in id-cli, or as an external operator script? Where does the drill record live (issue comment, host file, ledger)? Local-record-first: the drill record must be readable locally, aggregation is convenience, not proof.
Acceptance criteria
- Scheduled drills restore the latest snapshot set into a scratch world, replay to the same journal head, and compare against the live world; pass/fail is recorded per drill.
- A missing recent successful drill is visible as an alarm to the operator (no silent staleness).
- Cross-host import semantics for drill/verify flows are defined: importing a set for a world ID the target host already has — reject, fork to a new identity, or overwrite-under-operator-confirmation (v1 leaves this unaddressed).
Dependencies
P3 #10695 (snapshot/export shape + manual restore procedure) and P4 #10696 (restore/archive commands) are closed and available. The first one-shot drill uses the core replay-equality oracle already exercised by P6 #10698 slices; #10698 remains open for its independent name-resolution parity work, which is not a blocker for this drill.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T21:08:45Z",
"session_id": "ses_e5df613dacdffezvR4RQCezwjU",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code",
"repo": "developing-today/code",
"branch": "main",
"sha": "7e7af3f72d05278760bc8cf5a64a45ffdb5edf6e"
},
"auth_subject": "oc-code-02",
"stamped_by": "fleet 0.1.0 (native)"
}
}
\n\nRelated program: #6284Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-07, 2026-11-24)
Fresh state: open, one tracking comment. No restore drills or drill record are on record.
Verdict: real operational work (restore drills and a drill record for hosted worlds v2 Q2). It is routed as a drill packet, which needs a live restore run, so it cannot be verified from triage. Tracked under #14158. dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-01, 2026-11-24, queue task 23214): not resolved; blocked. Verified fresh state: this issue is OPEN with no implementation. Its declared prerequisites are all still open: #10695 (P3 snapshot/export + restore procedure), #10698 (P6 replay-equality harness), and #10696 (P4 operator CLI, for restore where it exists). The open design questions in the body (drill cadence, failure semantics, ownership, record location) still need a decision. No code changed. Next: keep queue/blocked until #10695 and #10698 close, then size the drill harness as a follow-on packet. developing-today-fleet commented on Nov 26, 2026
Decided: Start the one-shot restore-drill slice now; #10695 and #10696 are closed, and #10698 is reused for the core replay-equality oracle rather than acting as a hard dependency.
Why: The issue body blocks only on P3 #10695. P6 has already merged replay-equality coverage for base and program worlds in #15462 and #15590; the remaining name-resolution parity is a separate contract and is not needed to assert that a snapshot restore reaches the same journal head.
Undo: If the restore-drill oracle exposes a dependency on name resolution, link that failing case to #10698 and block only the affected work.
By: agent-next-24-local
Follow-on task #24469 is enqueued for the first one-shot drill and per-drill record. The scheduler, missing-drill alarm, and cross-host import policy remain separate. dezren39 commented on Nov 26, 2026 Claimed by lane 12, 2026-11-26T23:10Z (fleet task 24469: slice 1, one-shot restore drill and per-drill record).
Generated by Claude Code developing-today-fleet commented on Nov 27, 2026 Slice 1 (task 24469, lane code-g) landed as PR #15902: one-shot id host drill ROOT WORLD [--json] over a new id-worlds::host_drill harness.
Decisions (decide-and-proceed, recorded here):
- Ownership: the harness lives in
id-worlds (host_drill), offline over a data root with no host running; id host drill in id-cli is the operator surface only.
- Drill record lives at
<data root>/.drills.jsonl: one typed JSON object per attempt (timestamp, world, source/restored heads, outcome, stage, mismatches, error), append-only, readable locally first. read_drill_records is the future alarm input (missing recent success = alarm).
- Cross-host semantics for the drill scope: the scratch restores into a tempdir outside every data root and is never adopted, so the import name-collision question does not arise here;
import itself keeps reject-on-existing (restore_export_dir refuses recorded worlds).
Evidence: failing-first test restore_drill_round_trips_a_world_and_records_the_result failed on the stub (restore drill is not implemented yet), then passed. cargo test -p id-cli restore_drill 1 passed; cargo test -p id-worlds host_drill 2 passed; host:: regressions clean (6 + 35 passed); fmt clean; clippy clean for touched files; suite-registry ratchet flags none of the touched files.
Note: remote fleet queue dispatch of the focused tests failed with HTTP 403 from the runner surface; green local runs are recorded and PR #15902 CI is the remote proof. Remaining on this issue: drill scheduling cadence, the missing-success alarm, and cross-host adoption semantics beyond the drill scope — next slice after this PR merges. developing-today-fleet commented on Nov 27, 2026 Refs #6284 — this Q2 child owns the remaining hosted-world restore-drill work after the one-shot drill slice: scheduled cadence, missing-success alarm, and cross-host import semantics. The parent outline remains open while its routed child issues progress. developing-today-fleet commented on Nov 27, 2026 🤖 Agent note · escalated
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor cron run 2026-11-27 16:14 CST
- Found via: monitor reconciliation (Duty 4 protocol check)
- Task: Protocol gap: this item carries work/queue claim labels but NO comment contains the required agent-note:v1 footer (protocol §2/§6). The holding agent did not leave the required agent note. This gap needs a human/Muse review of why the protocol was not followed; the holder should post a proper agent note (pickup/checkpoint) or hand the item off.
- Expectation: holder posts an agent-note:v1 note or releases the item.
- Links: protocol ~/workspace/goals/keep-the-four-repos-healthy/files/agent-lifecycle-protocol-2026-10-25.md
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|