~p: Work Loss Prevention

Stop Claude Code sessions from undoing each other's work

Intent

Intent: Prevent cross-session work loss in Claude Code projects.

Purpose: Every session should build on the last, never tear it down. The artifact trail, code state, and board must be trustworthy across sessions.

What: A set of CLAUDE.md rules, a pre-flight checklist, and file hygiene conventions that any Claude Code session will follow — no external tooling required.

Scope

Changes to the Be system (metal CLAUDE.md) + immediate fixes to bahalaka. Pure convention enforcement — no new tools, no CI, no hooks. Just rules that work because they're in CLAUDE.md and Claude reads them.

Approach — 5 Guards

Guard 1: Session Pre-Flight Checklist

Add to CLAUDE.md: every session that touches code must run a pre-flight before the first edit.

This is 4 file reads. Takes 5 seconds. Prevents 90% of the problem.

Guard 2: Single Source of Truth Rule

Add to project CLAUDE.md: declare the canonical file for each deployable asset.

Immediate action for bahalaka: Delete site/index.html or replace it with a redirect comment. One file, one truth.

Guard 3: Stewardship Rule

Add to CLAUDE.md (Be kernel):

"Stewardship rule: You are a steward, not an owner. Never undo, revert, remove, or rewrite code that a previous session committed unless the user explicitly asks you to. If you see something that looks wrong but was committed by a previous session, flag it — don't fix it silently. Previous work is assumed correct until proven otherwise."

This is the single most important guard. It directly addresses the "keeps removing things" problem.

Guard 4: Chain Completion Enforcement

Add to CLAUDE.md chain rules:

Guard 5: Done Means Done

Strengthen the board rule:

Implementation Order

  1. Fix bahalaka now: Delete or archive site/index.html. Add a project CLAUDE.md declaring the source of truth. Backfill all null telemetry commit hashes. 5 pts
  2. Add Guards 1-3 to Be kernel: Pre-flight checklist, single source of truth convention, stewardship rule. These are text additions to metal CLAUDE.md. 5 pts
  3. Add Guards 4-5 to Be kernel: Chain completion enforcement, Done-means-Done board rule. 3 pts
  4. Test with a GO chain on bahalaka: Run Board 5 with the new guards active. Verify that pre-flight runs, chain completes, telemetry has no nulls, and no work is lost. 5 pts

Total: 18 pts across 4 work items.

Constraints

What This Doesn't Solve