promote no-pre-existing-excuse to a CLAUDE.md guardrail
Memory-only "if you encounter a failure, fix it first" advice keeps losing to the model's default scope-protection behaviour: when a test is red or analyze warns on entry, the safer-feeling option is to flag and continue rather than fix and continue. Promoting the rule into the load-bearing guardrails list makes it sit in the same register as "Flutter desktop is the host" — non-negotiable, not advisory. Pairs with the .githooks/pre-push gate landed alongside: that prevents broken state from being pushed in the first place; this prevents the next session from building on broken state if it slips through. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"exported_at": "2026-05-06T20:28:15Z",
|
||||
"exported_at": "2026-05-06T20:28:25Z",
|
||||
"decisions": [
|
||||
{
|
||||
"id": "D-1",
|
||||
|
||||
@@ -28,6 +28,7 @@ These are load-bearing. Violating any means the design is wrong, not the rule.
|
||||
- **Repo-is-the-workspace.** The git repo root is the workspace — no parallel "vault" concept.
|
||||
- **Ignore discipline.** Single knob: `ignore_files:` in `.pql/config.yaml`, ordered layering. See [`D-4`](decisions/architecture.md#d-4-ignore-file-strategy).
|
||||
- **Decision discipline.** All architectural choices live in `decisions/<domain>.md` as `D-NNN` records. Open questions as `Q-NNN`. Rejected alternatives as `R-NNN`. Claim new IDs via `pql decisions claim D <domain> "title"`. See [`decisions/README.md`](decisions/README.md).
|
||||
- **No pre-existing excuse.** Solo-dev repo — every failure encountered is yours to fix, regardless of who introduced it. If `make test` is red, a golden is broken, or `flutter analyze` shows a warning when you start working, the order is: **fix it first, then your work**. If you genuinely can't fix it in scope (separate ticket, large sweep, missing context), stop and surface it before continuing — don't push on top of broken state. "It was already broken" is not a reason to add more on top.
|
||||
|
||||
## Repo layout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user