One gate. Not five. Replaces the 5-guard plan with a single enforceable checklist.
Intent: Prevent work loss across Claude Code sessions by defining what "Done" actually means in Be.
Purpose: A single quality gate — enforced after every work command — that guarantees the artifact trail is complete, the code is committed, and the next session can trust what it finds.
What: A Definition of Done (DoD) added to CLAUDE.md, enforced as the final step of every tilde command's chain reaction. Plus a lightweight Definition of Ready (DoR) as a pre-flight.
Every tilde command that produces an artifact (~a, ~u, ~d, ~f, ~b, ~t, ~s, ~r, ~p, ~e, ~i, ~ul) must pass ALL items before the command is considered complete. Only ~h and ~li are exempt (no artifacts, display only).
commit field. Backfilled in the same commit, not later.{item} · pts · ~cmd ✅ (abc1234). Board committed alongside code. Applies to work commands only — planning/inspect commands skip this check.be/ with the correct datetime filename.be/index.html has an entry linking to the new report.git push succeeded. Work exists on origin, not just locally.Before the first edit of a session, read and verify:
be/board.md. Know what's Done, In Progress, Ready. Don't touch Done items.~b or ~t without a following ~s, flag it to the user.| Old Guard | New Home |
|---|---|
| Guard 1: Pre-Flight Checklist | Definition of Ready (R1–R3) |
| Guard 2: Single Source of Truth | Definition of Ready (R3) + project convention |
| Guard 3: Stewardship Rule | DoD item 7 — no prior work damaged |
| Guard 4: Chain Completion | DoD items 2, 8 — commit hashes + chain complete |
| Guard 5: Done Means Done | DoD item 3 — board + hash = frozen |
Five scattered rules become one gate with 8 checkboxes. Easier to remember, easier to enforce, easier to verify.
Where: The DoD checklist goes in metal CLAUDE.md as part of the chain reaction rules. Every Claude Code session reads it. Every tilde command runs through it.
When: After the work is done, before the command is considered complete. The chain reaction becomes:
do the work → render report → save → update index → log telemetry → commit → push → verify DoD → if fail, fix and re-verify → launch demo
Failure mode: If any DoD item fails, the command is not Done. Fix the failure in-place and re-verify. Don't move on. Don't start the next chain step. The gate holds.
Every build/test/ship HTML report gets a DoD section at the bottom — a rendered checklist showing pass/fail for each item:
The next session reads this and knows the work is complete. No guessing. No assumptions. The checklist is the proof.
Add the Definition of Done (7+1 items) and Definition of Ready (3 items) to the chain reaction section. This is the core change — everything else flows from it.
5 pts
Update the HTML template convention so every report includes a DoD section. The checklist is rendered after the report content, before the footer.
3 pts
Create or update C:\bahalaka\CLAUDE.md declaring index.html (root) as the canonical file. Add any project-specific DoR items.
3 pts
Run the first board with the DoD active. Verify every item passes, reports include the checklist, and telemetry has zero nulls.
5 pts
Total: 16 pts across 4 phases. Phases 1–3 are metal work. Phase 4 is bahalaka work.
This plan supersedes the 5-guard plan (2026-04-05-plan-work-loss-prevention.html). All 5 guards are absorbed into the DoD/DoR framework. The concepts are the same; the structure is cleaner. One gate, not five.