// Reviews Stories/Tasks against 2025 standards before approval (Backlog -> Todo). Auto-fixes issues, validates structure, optimizes via YAGNI/KISS/SOLID. Auto-discovers team/config.
| name | ln-320-story-validator |
| description | Reviews Stories/Tasks against 2025 standards before approval (Backlog -> Todo). Auto-fixes issues, validates structure, optimizes via YAGNI/KISS/SOLID. Auto-discovers team/config. |
Critically review and auto-fix Stories and Tasks against 2025 standards and project architecture before execution.
| # | What it checks | Auto-fix actions | Notes/Evidence |
|---|---|---|---|
| 1 Story Structure | 8 sections per story_template_universal.md in order | Add/reorder sections and subsections with TODO placeholders; update Linear; preserve language | Skip if Done/Canceled or older than 30 days |
| 2 Tasks Structure | Each Task has 7 sections in order | Load each Task full description sequentially; add/reorder sections with placeholders; update Linear and comment; preserve language | Sequential per task; skip if Done/Canceled or older than 30 days |
| 3 Story Statement | As a/I want/So that clarity | Rewrite using persona (Context), capability (Technical Notes), value (Success Metrics); update Linear and comment | - |
| 4 Acceptance Criteria | Given/When/Then, 3-5 items, edge/error coverage | Normalize AC to G/W/T; add missing edge/error cases; update Linear and comment | - |
| 5 Solution Optimization | 2025-best approach aligned with prior patterns | Rewrite Technical Notes and Tasks if better approach exists; cite modern patterns/libs; reference prior Story context; add TODO for duplicates/conflicts | Log rationale in Linear |
| 6 Library & Version | Current stable versions; prefer built-ins | Update versions in Technical Notes/Tasks; replace custom helpers with built-ins; update Linear and comment | List versions checked |
| 7 Test Strategy | Section exists but remains empty now | Ensure Test Strategy section present; leave empty with note that testing is planned later by ln-350; do not add coverage details | Mention "testing handled later; not evaluated in this phase" |
| 8 Documentation Integration | No standalone doc tasks | Remove doc-only tasks; fold doc updates into implementation tasks and DoD; update Linear and comment | - |
| 9 Story Size & Granularity | 3-8 tasks; 3-5h each | If <3 tasks invoke ln-310-story-decomposer; if >8 add TODO to split; flag tasks <3h or >8h with TODO; reload metadata and update kanban_board.md | Comment creation source |
| 10 Test Task Cleanup | No premature test tasks | Cancel/remove tasks labeled as tests or named test/comprehensive/final; remove from Story/kanban; comment that testing tasks appear later | Testing not executed now |
| 11 YAGNI | No premature features | Move speculative items to Out of Scope/Future; update Technical Notes/Tasks; comment rationale | - |
| 12 KISS | Simplest solution within standards | Replace over-engineered parts with simpler options unless standards require otherwise; update Linear with reasoning | Standard overrides simplicity |
| 13 Documentation Links | Technical Notes reference docs | Add "Related Documentation" subsection; link guides/manuals/ADRs by path; update Linear | Use created/existing paths |
| 14 Foundation-First Order | Task order DB -> Repo -> Service -> API -> Frontend | Reorder Implementation Tasks and note execution order; update Linear and comment | - |
| 15 Code Quality Basics | No magic values; config approach defined | Add TODOs for constants/config/env creds; describe config management in Technical Notes; update Linear | Warn in summary if TODOs remain |
| 16 Industry Standards | Compliance with RFCs/protocols | Check docs in guides/manuals/ADRs; if missing invoke creators; document compliance and links; if none apply, state explicit reason; update Linear | Evidence required: doc path or worker call; log skip reason if applicable |
checkpoints/{STORY_ID}_verification_log.md. No evidence -> no completion.| # | Self-Audit Question | Required Evidence |
|---|---|---|
| 1 | Validated all 8 Story sections in order? | Section list |
| 2 | Loaded full description for each Task? | Task validation count |
| 3 | Statement in As a/I want/So that? | Quoted statement |
| 4 | AC are G/W/T and testable? | AC count and format |
| 5 | Challenged "best for 2025"? | Reasoning logged |
| 6 | All versions current stable? | Version list checked |
| 7 | Test Strategy kept empty for now? | Note that testing is deferred |
| 8 | Docs integrated, no standalone tasks? | Integration evidence |
| 9 | Task count 3-8 and 3-5h? | Task count/sizes |
| 10 | No premature test tasks? | Search result |
| 11 | Only current-scope features? | Scope review |
| 12 | Simplest approach within standards? | Simplicity justification |
| 13 | All relevant guides linked? | Guide paths |
| 14 | Tasks ordered DB->Repo->Service->API? | Task order list |
| 15 | Hardcoded values handled? | TODO/config evidence |
| 16 | Standards verified via docs/worker? | Doc path or worker result |
/token flow, add spec reference, update Tasks/Technical Notes, approve.../ln-220-story-coordinator/references/story_template_universal.md, ../ln-311-task-creator/references/task_template_implementation.mdreferences/verification_checklist.md, references/verification_log_template.md../ln-350-story-test-planner/references/risk_based_testing_guide.md../ln-210-epic-coordinator/references/linear_integration.mdVersion: 12.1.0 (Condensed guidance, tabled auto-fix actions, clarified testing deferral and violation reporting) Last Updated: 2025-11-26