From 1efca3c185870bffa873bef7803dd7206fee7e89 Mon Sep 17 00:00:00 2001 From: Sheldon Finlay Date: Sat, 28 Mar 2026 12:40:05 -0400 Subject: [PATCH] feat: add blocker handling and artifact protection to generator Generator now has explicit instructions for when it's stuck: write the blocker to notes, leave passes as false, and stop. Also adds a "Do Not Modify" section preventing changes to other stories, contracts, or config. --- prompts/generator/_base.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/prompts/generator/_base.md b/prompts/generator/_base.md index 5ab873e..08a6461 100644 --- a/prompts/generator/_base.md +++ b/prompts/generator/_base.md @@ -19,6 +19,20 @@ Do NOT start implementation until steps 1-5 are complete. - **Run quality gates** before committing. Check for common tools (`npm test`, `pytest`, `cargo test`, `make test`, `go test ./...`) and run what's available. If no test tooling exists, verify manually. - **Commit** with message: `feat: [Story ID] - [Story Title]` +## If You Are Blocked + +If you cannot complete the story (missing dependency, impossible as written, requires access you don't have), do NOT attempt a partial or broken implementation. Instead: +1. Write a clear description of the blocker in the story's `notes` field in prd.json +2. Leave `passes` as `false` +3. Append the blocker to progress.md +4. Stop — the loop will move on or escalate to a human + +## Do Not Modify + +- Other stories' `passes`, `notes`, or `acceptanceCriteria` fields — only modify the story you are working on +- Sprint contracts in `.loop/contracts/` +- `.loop/config.json` + ## Before Marking Done Go through each acceptance criterion in the story and verify your work satisfies it. Check the actual code, not your memory of what you wrote. If any criterion is not met, fix it before continuing. Do NOT set `passes: true` until every criterion is verified.