GeezerVison is showing github.com — id: implement template-world snapshot export/import (from #6278) · Issue #8282 · developing-today/code
id: implement template-world snapshot export/import (from #6278) #8282DescriptionImplement: template-world snapshot export/import
Implementation next step from the Phase-14 Program ecosystem core topic #6278; design of record: doc/2026-11-10T21-24-00Z_design_id_program_ecosystem/ (Program ecosystem — share, fork, gallery: first-pass research + design), decision D5.
Scope
- Template export: snapshot a world into a template bundle — world state, installed programs (as bundle references by identity + content hash, never silently re-hosted binaries the exporter does not hold), and role definitions.
- Strip rules, explicit and recorded in the template manifest: member lists, credentials/secrets, per-user data, and grants are stripped by default; anything retained is named in the manifest. A template never carries another user's identity material.
- Template import: instantiate a new world from a template — fresh world identity, roles recreated empty, programs installed from their bundles with the standard verification path, state imported as the starting state.
- Local-first: export/import are file operations; no server required. Publishing a template through a gallery reuses the registry object family (separate issue).
Acceptance
- Round-trip: export world W → import creates W' with the same programs (hash-verified), same role definitions (empty of members), and the template-scoped state; W' has a distinct world identity.
- Manifest accurately lists everything stripped and everything retained (verified against a fixture world containing members, grants, and per-user data — none of which appear in W').
Activitydeveloping-today commented on Nov 10, 2026 dezren39 commented on Nov 17, 2026
🤖 Agent note · picked up + triaged
- Agent: queue worker (repo-worker-code), lane any-e
- Session / ID: task 18625
- Found via: repo-health-code-pilot atomic claim (unfiltered, lane any-e)
- Task: Triage issue id: implement template-world snapshot export/import (from #6278) #8282: id: implement template-world snapshot export/import (from id(phase-14): Program ecosystem (share, fork, gallery) — core topic (research + design) #6278)
- Fresh verification (2026-11-17): issue id: implement template-world snapshot export/import (from #6278) #8282 OPEN; only labels were app/id + epic/id-program and its only comment was a Kaneo link — untriaged in substance, so triaged inline per runbook §1c. No hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent).
- Verdict: work kind
task/small-fix · priority/normal · effort/l · kind/enhancement (labels applied this run, plus status/triaged and queue/queued for the follow-on)
- Priority why: priority/normal — priorities brief line 5 by usefulness; a settled-design implementation follow-on (brief line 3: finish what is open), in line with the comparable id implementation follow-on id: impl: conformance corpus and golden-test harness (from #5855) #7919.
- Evidence: core topic id(phase-14): Program ecosystem (share, fork, gallery) — core topic (research + design) #6278 is CLOSED and the design of record (doc/2026-11-10T21-24-00Z_design_id_program_ecosystem/, decision D5) is on main, with later revisions v1–v3 also on main — the fix packet names reconciling D5 against the newest revision as a first step. No implementation exists yet: the only template surface in pkgs/id is a fork
template: bool marker in id-worlds' world/mod.rs.
- First step: read D5 in the newest ecosystem design revision, then build the template bundle + manifest (stripped/retained lists) in pkgs/id: export (state, program bundle references by identity + content hash, role definitions) and import (fresh world identity, roles recreated empty, programs via the standard verification path).
- Acceptance: round-trip W → W' with hash-verified programs, role definitions empty of members, template-scoped state, distinct world identity; manifest accurately lists stripped vs retained, verified against a fixture world containing members, grants, and per-user data — none of which appear in W'.
- Fix packet:
repo-health:v1:fix:developing-today/code:issue:8282 → enqueued as task 20114 (queue repo-health-code-pilot, status queued).
dezren39 commented on Nov 17, 2026 🤖 Agent note · parked for capacity (scoping verified)
- Agent: repo-worker-code, lane any-h, task 20114
- Fresh verification (2026-11-17): issue id: implement template-world snapshot export/import (from #6278) #8282 OPEN, effort/l, status/triaged, no hard-stop labels. No implementation exists: a search of pkgs/id/crates on current main finds no template snapshot export/import (the design of record is doc/2026-11-10T21-24-00Z_design_id_program_ecosystem/, decision D5, merged via PR docs(id): program ecosystem (share, fork, gallery) first-pass design (#6278) #8288). Adjacent machinery the build stands on does exist: the id-worlds crate and the id world fork CLI + provenance precedent (PR feat(id): wire
id world fork CLI + provenance inspect (F12.2 remainder) (#556) #3291).
- Why parked, precisely: the acceptance is a full round-trip feature — template bundle format + manifest with strip rules, export, import with fresh world identity and hash-verified program installs, and a fixture world proving members/grants/per-user data never cross. That is an effort/l build in the id workspace that must land whole with its fixture test; it needs a dedicated full-budget shift.
- Exact first steps: (1) read design D5 in the id(phase-14): Program ecosystem (share, fork, gallery) — core topic (research + design) #6278 ecosystem record; (2) mirror the fork CLI's world traversal for export, adding the manifest + strip rules; (3) build the fixture world (members, grants, per-user data) and the round-trip test first — it is the acceptance oracle; (4) import with fresh identity and bundle hash verification via the standard path.
- Resume condition: capacity — parked with required-budget-minutes 240.
dezren39 commented on Nov 26, 2026 Slice 3 merged in #15601: id world template-export projects a durable world on disk into a template file. The program goes in as its bundle reference, only the --keep-state keys you name are carried, and issued people, author keys and grants are stripped and counted.
Slices 4 and 5 are in #15672. id world template-create makes a fresh world from the file, and id world template-resume fills a recorded program gap later. That PR also carries the round-trip acceptance test from this issue. It's waiting on remote tests.
Generated by Claude Code dezren39 commented on Nov 26, 2026 Slices 4 and 5 merged in #15672.
id world template-create makes a fresh world from a template file. It writes the kept state, installs the held bundle (signature-checked against --trust-key), and records any program it can't install yet in template-gaps.json.
id world template-resume fills that gap later from a bundle file.
The round-trip acceptance test is in world_store.rs as a_world_round_trips_through_a_template_without_its_people. It exports a world with two issued people, a portal grant and an extra state key. The new world has the same program (hash-verified on install), only the kept state key, and its own identity. The manifest reports the two credentials and the grant as stripped.
One gap remains against the acceptance text: role definitions. Worlds keep no role records in their journal today, so a template exported from disk carries no roles. A template authored with roles does import them empty. Round-tripping roles from a live world needs role records in the world first, so I'm leaving this issue open for that.
Generated by Claude Code developing-today-fleet commented on Nov 26, 2026
Triage verdict (2026-11-26, lane any-o): the large feature is not complete, and this is not a small fix. Slices 1–5 are merged (#14097, #15488, #15601, #15672), covering the manifest/export primitives, durable-world export, template creation/resume, and round-trip test. The remaining acceptance gap is role definitions: currently projects no roles because durable worlds have no role-definition journal records. This is confirmed by the merged implementation and the latest #8282 progress note.
I returned this to real work by enqueuing feature slice 6 as Fleet task 25440 in : persist/project role definitions into template export while keeping member identities stripped. It is intentionally scoped not to close #8282; the full durable round-trip still needs to pass. No source changes or PR in this triage pass. developing-today-fleet commented on Nov 26, 2026
Correction to the immediately preceding triage note: the missing function name is template_source_from_journal, and the queue is repo-health-code-pilot. The verdict and disposition are unchanged: merged slices 1–5 leave a durable role-definition projection gap; follow-on slice 6 is live as Fleet task 25440. No source changes or PR were made in this triage pass. developing-today-fleet commented on Nov 27, 2026 Slice 6 done (queue task 25440): durable world role definitions are persisted and exported without member identity. PR: #15979
- New
JournalEntry::TemplateRolesSet (journal version 18); replay applies the last set with empty/duplicate-name refusal; checkpoints re-emit it and raise the header.
template_source_from_journal projects the set as roles with empty members; populate_template_world journals imported roles so the durable round-trip preserves them.
- Done check passes:
journal_roles_export_as_definitions_without_member_identity proves role names/descriptions survive and source member identities are absent. Full id-worlds suite: 1274 pass, 0 fail; clippy clean under pinned 1.99.1.
Not closing: full durable round-trip and acceptance still to pass (later slices). dezren39 commented on Nov 27, 2026 Slice 6 landing parked — lane 0137-A-B (alpha DRIVE, 2026-11-27 01:37 CST).
PR #15979 (slice 6, durable world role definitions) was NOT merged: its only exact-head fleet-command verification, run 45956406744 (dispatch_id 0052D-15979, lane 0052-D), completed failure (metadata only; no CI logs read by this lane). Per 0052-D's recorded note on the PR, the failure was a misspecified verification command (repo root instead of the pkgs/id workspace) and no test ran — not a code failure, but no passing exact-head verification exists, so the merge gate is unmet.
PR re-checked: OPEN, non-draft, MERGEABLE/CLEAN at head 48bb3575c57651d07fdef442087af37be674fc9a; no other live claim. Wake: one passing fleet-command run at that head with the corrected command (cd pkgs/id && cargo test -p id-worlds template), then merge (merge commit). Full park note on PR #15979. #8282 stays open. Key: 0137-A-B dezren39 commented on Nov 27, 2026 LANDED — lane 0152-B-F (bravo SUSTAIN, 2026-11-27).
PR #15979 is MERGED: merge commit ed91d3042eb9434d9385ee95f73a89ae8b8d5200, mergedAt 2026-11-27T08:18:50Z (read back from the tracker). Verification: fleet-command run 45961836667 (dispatch_id 0152BF-15979) completed success at exact head 48bb3575c57651d07fdef442087af37be674fc9a with the corrected command cd pkgs/id && cargo test -p id-worlds template — metadata only, no CI logs read. Pre-merge re-check: OPEN, non-draft, MERGEABLE/CLEAN at the same head. Slice 6 of #8282 (durable template role definitions, membership absent from export) is now on main. Parent #8282 stays OPEN — full durable round-trip/acceptance remains for later slices. Key: 0152-B-F dezren39 commented on Nov 27, 2026 Reopened — lane 0152-B-F: #8282 was auto-closed at 08:18:52Z, two seconds after PR #15979 merged (merge commit ed91d3042eb9434d9385ee95f73a89ae8b8d5200), via the PR's closing linkage. Per the PR body and every prior slice note, slice 6 does NOT close #8282: the full durable round-trip and acceptance still remain for later slices. Restored to OPEN. Key: 0152-B-F
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|