drives: kept bundle writer — kept.txt, founder-words 0600, standing-world pointer + key in ~/.idss-kept/<slug> (WKT-DEMO A, plan Task 5) #1833

Closed
opened 2026-09-24 18:15:11 +00:00 by ben · 2 comments
Owner

What

New app/tests/e2e/fixtures/keptBundle.ts (plan Task 5 Step 3, verbatim): writeKeptBundle(input, {home?}) writes, in the SAME durable home oc_kept_box_preserve uses ($IDSS_KEPT_HOME/~ + .idss-kept/<slug>, 0700): kept.txt, founder-words (0600, atomic overwrite, twelve words or refuse), standing-world.json (carries the PATH of the words file, never the words), id_ed25519 (the rent-operator key). Ruling recorded in the spec: ADR 0195 widened by Ben for a demo community — the founder phrase goes to that one file and nowhere else.

Acceptance

  • New keptBundle.test.ts (plan Task 5 Step 1, verbatim) green — including "never puts the words anywhere but founder-words" and the atomic 0600 overwrite; eslint clean.

depends_on: none. out_of_scope: the shell's oc_kept_box_preserve (unchanged; the two meet in one folder). needs_human_decision: none (ruled in the spec; veto anytime).

Plan: docs/superpowers/plans/2026-09-24-wkt-founding-drive.md (commit b8907abc) — the task's steps, exact code, tests and commands live there; this ticket is the work order. Spec: docs/superpowers/specs/2026-09-24-wkt-demo-founding-and-app-drives-design.md. Read the plan's header (Global Constraints, Review Focus) before the task.

Discipline: TDD as the plan's steps order it (failing test → red → implement → green → commit); one commit per task with the plan's subject line; STATUS.md dated entry in the same commit; no fake Coa anywhere on wkt-*; existing targets byte-identical when the new env/markers are unset.

## What New `app/tests/e2e/fixtures/keptBundle.ts` (plan Task 5 Step 3, verbatim): `writeKeptBundle(input, {home?})` writes, in the SAME durable home `oc_kept_box_preserve` uses (`$IDSS_KEPT_HOME`/`~` + `.idss-kept/<slug>`, 0700): `kept.txt`, `founder-words` (0600, atomic overwrite, twelve words or refuse), `standing-world.json` (carries the PATH of the words file, never the words), `id_ed25519` (the rent-operator key). **Ruling recorded in the spec:** ADR 0195 widened by Ben for a demo community — the founder phrase goes to that one file and nowhere else. ## Acceptance - New `keptBundle.test.ts` (plan Task 5 Step 1, verbatim) green — including "never puts the words anywhere but founder-words" and the atomic 0600 overwrite; eslint clean. depends_on: none. out_of_scope: the shell's `oc_kept_box_preserve` (unchanged; the two meet in one folder). needs_human_decision: none (ruled in the spec; veto anytime). **Plan:** `docs/superpowers/plans/2026-09-24-wkt-founding-drive.md` (commit `b8907abc`) — the task's steps, exact code, tests and commands live there; this ticket is the work order. **Spec:** `docs/superpowers/specs/2026-09-24-wkt-demo-founding-and-app-drives-design.md`. Read the plan's header (Global Constraints, Review Focus) before the task. **Discipline:** TDD as the plan's steps order it (failing test → red → implement → green → commit); one commit per task with the plan's subject line; STATUS.md dated entry in the same commit; no fake Coa anywhere on `wkt-*`; existing targets byte-identical when the new env/markers are unset.

swarm-claim host=bens-mac-04 run=32049
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=32049 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1833 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1833,
  "status": "success",
  "commits": [
    "056e36b6"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/keptBundle.ts",
    "app/tests/e2e/fixtures/keptBundle.test.ts"
  ],
  "tests": [
    {
      "command": "cd app && CI=true pnpm exec vitest run tests/e2e/fixtures/keptBundle.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && CI=true pnpm exec eslint tests/e2e/fixtures/keptBundle.ts tests/e2e/fixtures/keptBundle.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "New keptBundle.test.ts green including 'never puts the words anywhere but founder-words'": "keptBundle.test.ts test 2 asserts kept.txt and pointer never contain 'w7 w8'; all 4 tests pass (commit 056e36b6)",
    "atomic 0600 overwrite of founder-words": "keptBundle.test.ts test 3 overwrites a stale 0644 founder-words and asserts new content + 0o600; writeKeptBundle uses writeAtomic (.tmp-<pid>+rename) at mode 0o600",
    "eslint clean": "eslint over both new files exited 0"
  },
  "summary": "Added the kept-bundle writer (keptBundle.ts) writing kept.txt, founder-words (0600, atomic, twelve-word-or-refuse), id_ed25519 and standing-world.json into ~/.idss-kept/<slug>, with 4 green unit tests.",
  "blockers": []
}
**close-report** for #1833 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1833, "status": "success", "commits": [ "056e36b6" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/keptBundle.ts", "app/tests/e2e/fixtures/keptBundle.test.ts" ], "tests": [ { "command": "cd app && CI=true pnpm exec vitest run tests/e2e/fixtures/keptBundle.test.ts", "exit_code": 0 }, { "command": "cd app && CI=true pnpm exec eslint tests/e2e/fixtures/keptBundle.ts tests/e2e/fixtures/keptBundle.test.ts", "exit_code": 0 } ], "criteria": { "New keptBundle.test.ts green including 'never puts the words anywhere but founder-words'": "keptBundle.test.ts test 2 asserts kept.txt and pointer never contain 'w7 w8'; all 4 tests pass (commit 056e36b6)", "atomic 0600 overwrite of founder-words": "keptBundle.test.ts test 3 overwrites a stale 0644 founder-words and asserts new content + 0o600; writeKeptBundle uses writeAtomic (.tmp-<pid>+rename) at mode 0o600", "eslint clean": "eslint over both new files exited 0" }, "summary": "Added the kept-bundle writer (keptBundle.ts) writing kept.txt, founder-words (0600, atomic, twelve-word-or-refuse), id_ed25519 and standing-world.json into ~/.idss-kept/<slug>, with 4 green unit tests.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1833
No description provided.