Ralph — post-review

ralph-post-review is the broken-only QA gate for a Ralph iteration loop after it completes. Story by story, verify against acceptance criteria, fix anything that will never work, leave everything that's merely suboptimal.


The bar

"This will never work" — not "this could be better."

FixNever touch
Code that will never workRefactors
Missing filesStyle
Wrong logicRenaming
Broken routes"Nicer" approaches
Syntax errorsFeatures not asked for
Validation improvements
Missing docblocks

When to use

After a Ralph iteration loop finishes, before pushing — final QA gate.


Flow

StepAction
1. Load contextRead scripts/ralph/prd.json and .ralph/fix_plan.md
2. Per story (in order)Read acceptance criteria, verify files exist, read code for syntax errors / wrong namespaces / missing imports / undefined relationships / Blade vars not passed / routes pointing to missing methods / middleware referencing missing classes. Verify compilation (route:list, view:clear, config:clear, php -l). Verify schema (relationships, FKs, $fillable, $casts). Verify Blade (@extends/@section/@yield, vars passed, route names, form methods match routes)
3. Full verificationphp artisan config:clear && route:clear && view:clear && cache:clear; route:list; migrate:status; about
4. Commit fixesgit add -A && git commit -m "Post-review fixes: [brief summary]"
5. ReportOnly what was corrected (skip clean stories). Save to .ralph/post-review-report.md

Report shape

## Ralph Post-Review Report
**Date / Stories reviewed / Stories with fixes / Stories clean**

### Fixes Applied
#### [Story ID]: [Title]
- File / Issue / Fix / Why it would never work

### Verification Results
- Routes compile / Migrations run / Config clears: YES/NO