ring/dev-team
Fred Amaral 6cd9e26b43
fix(dev-cycle): validate Gate 0 and Gate 3 from subtask scope
validate_gate_0 and validate_gate_3 previously read tdd_red/tdd_green/unit_testing from tasks[i].gate_progress.*, but the state schema places these under tasks[i].subtasks[j].gate_progress.*. Any task with subtasks was silently blocked past Gate 0 because the hook resolved an empty task-level object to 'pending'.

Both validators now iterate subtasks, exempt subtasks that have not yet reached the gate (current_gate below target), and fall back to task-level reads when subtask_count is zero. LAST_COMPLETED_GATE derivation is recomputed from the per-subtask aggregation so recovery messages accurately reflect progress. Frontend-cycle safety short-circuits the validator as a no-op when implementation scope is absent everywhere.

X-Lerian-Ref: 0x1
2026-04-18 10:44:04 -03:00
..
agents feat(codereview): cache-first standards injection for 5 reviewers 2026-04-17 22:26:06 -03:00
commands Merge pull request #329 from LerianStudio/feat/license-step-dev-cycle 2026-04-14 13:01:18 -03:00
docs docs(dev-cycle): document ACKNOWLEDGE convention and declare Gate 0.5D state schema 2026-04-18 10:03:10 -03:00
hooks fix(dev-cycle): validate Gate 0 and Gate 3 from subtask scope 2026-04-18 10:44:04 -03:00
skills docs(dev-cycle): document ACKNOWLEDGE convention and declare Gate 0.5D state schema 2026-04-18 10:03:10 -03:00
CHANGELOG.md fix(dev-cycle): restore Gate 0.5D migration safety as conditional post-cycle gate 2026-04-18 09:56:13 -03:00