From 29f1389d5db556c94be2ee31bc20a319153843bd Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sat, 22 Aug 2026 17:31:03 +0200 Subject: [PATCH] Keep verify_prompts honest about a deleted prompt copy Deleting prompts/dopamine-ux-01-motion-tokens.md (the completion protocol) left 00-INDEX.md's "Distributed copies" table citing a path that no longer exists, so verify_prompts went from 3 pre-existing failures to 4. Exactly the dangling anchor 44bc12b fixed after the doc split. Asserts the path ABSENT rather than dropping the row, which keeps the check two-directional: a finished prompt reappearing in a repo is itself a failure, because the next session would re-run work that is already done. Verified both ways -- recreating the file fails the check, removing it passes. This recurs for 02-09, so the comment says to move a row as each completes. Back to the same 3 failures as before this session, all in ~/screen-locker and all pre-existing (prompts 04/05). Co-Authored-By: Claude Opus 5 (1M context) --- dopamine-ux/00-INDEX.md | 2 +- dopamine-ux/verify_prompts.py | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dopamine-ux/00-INDEX.md b/dopamine-ux/00-INDEX.md index 43fc590..a771d7f 100644 --- a/dopamine-ux/00-INDEX.md +++ b/dopamine-ux/00-INDEX.md @@ -78,7 +78,7 @@ of truth** — if a prompt needs correcting, fix it here and re-distribute. | Prompt | Distributed to | |---|---| -| 01 | `~/utils/prompts/dopamine-ux-01-motion-tokens.md` | +| 01 | `~/utils/prompts/dopamine-ux-01-motion-tokens.md` — deleted (done) | | 02 | `~/utils/prompts/dopamine-ux-02-structural-check.md` | | 03 | `~/diet-guard/prompts/dopamine-ux-diet-guard.md` | | 04 | `~/screen-locker/prompts/dopamine-ux-04-screen-locker.md` | diff --git a/dopamine-ux/verify_prompts.py b/dopamine-ux/verify_prompts.py index c1c8b62..adfb7fc 100644 --- a/dopamine-ux/verify_prompts.py +++ b/dopamine-ux/verify_prompts.py @@ -52,7 +52,16 @@ CREATED_BY_PROMPT = { } # Cited precisely to state that they do NOT exist. -ASSERTED_ABSENT = {"~/gatelock"} +ASSERTED_ABSENT = { + "~/gatelock", + # Distributed prompt copies are `git rm`d on completion (see the protocol in + # 00-INDEX.md), but 00-INDEX.md keeps citing them in its "Distributed copies" + # table. Asserting ABSENT rather than dropping the row keeps the check + # two-directional: a finished prompt reappearing in a repo is itself a + # failure, because the next session would re-run it. Move a row here as each + # prompt completes. + "~/utils/prompts/dopamine-ux-01-motion-tokens.md", +} # Generic prose fragments rather than citations of one specific file. PROSE_FRAGMENTS = {"lib/ui/theme.dart", "lib/main.dart", "pubspec.yaml"}