Created phase 10 to fix bugs

This commit is contained in:
bepis
2026-10-22 18:42:07 +11:00
parent 3086e24836
commit d115f49eaf
2 changed files with 72 additions and 1 deletions
+4
View File
@@ -14,6 +14,10 @@ You have no memory of earlier runs: your briefing is the files on disk.
- Obey the Hard Constraints in NOTES.md (stack, layering, prepared statements, no innerHTML with dynamic data, no new dependencies without a note in docs/DECISIONS.md).
- Write at least one happy-path test and one failure-path test when the step adds behaviour.
- Never delete or weaken existing tests to make them pass.
- Write the failing test first and confirm it fails before fixing; the test must assert exact values, never just a status code.
- Never put assertions inside `if` branches that can skip them. Never accept multiple status codes for one expected outcome.
- If two places compute the same thing, extract one shared function. Do not copy-paste logic.
- If a step changes an API response, update the frontend code that reads it.
## Headless rules (important: nobody can answer prompts)
- Never run a command that waits forever. To test the server, start it in the background