From 45977899ffb101bab3dc2cb3ee043e84f78d9f33 Mon Sep 17 00:00:00 2001 From: bchanot Date: Thu, 29 Oct 2026 12:55:37 +0100 Subject: [PATCH] docs(plan): C5 per gate (stash UI settings around finish) --- docs/superpowers/plans/2026-10-29-context-diet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/superpowers/plans/2026-10-29-context-diet.md b/docs/superpowers/plans/2026-10-29-context-diet.md index 7aae6a6..5df74df 100644 --- a/docs/superpowers/plans/2026-10-29-context-diet.md +++ b/docs/superpowers/plans/2026-10-29-context-diet.md @@ -1073,4 +1073,4 @@ git commit -m "chore(agents): descriptions trimmed to ≤ 200 chars at the sourc - **C2 — proofs** (after Task 8): `bash lib/project-rules.sh -C matches ''` per new glob (faunosteo, game; `**/serverless.*` named if nowhere); one headless `claude -p` per moved path rule naming the Read tool (faunosteo supabase file, game `supabase/functions/*`, a UI file) → `path_glob_match` lines from `~/.claude/logs/instructions-loaded.jsonl`; `claude -p "/context"` vs baseline; analyzer `memory: project` check after an analyzer dispatch. All journaled. If the analyzer memory turns out disabled by `autoMemoryEnabled: false`: STOP and ask the user (revert the line, or keep it and record a BDR). - **C3 — oracles**: `GATES_TIMEOUT=900 bash ~/.claude/lib/gates.sh run .claude/tasks/contracts/2026-10-28-context-diet-1944.md`. - **C4 — TODO.md** (STEP 7 memory commit): phase 1 checked with its proof numbers, follow-ups added (the user removes the auto-memory dirs; any deferred item from the gate). -- **C5 — finish precondition**: `gitflow finish` checks out develop, which git refuses while the user's settings.json hunks are uncommitted (this branch changes settings.json). Before finish the user decides: commit their hunks (own `chore(settings)` commit) or `git stash push -- settings.json` around the finish and `git stash pop` after. Never `git checkout -- settings.json` / restore it (it is the live ~/.claude/settings.json and loses the edits). +- **C5 — finish precondition** (gate 2026-10-29): `gitflow finish` checks out develop, which git refuses while settings.json carries the uncommitted UI line (`"theme"`). Wrap the finish: `git stash push -m "ui settings" -- settings.json`, finish, `git stash pop`. Never `git checkout -- settings.json` / restore it (it is the live ~/.claude/settings.json). Tracked default stays `"model": "opus"`, `"switchModelsOnFlag": true`.