feat(FN-1016): add comment-aware triage generation and stale approval invalidation

- Include user comments as context during AI triage spec generation and spec review
- Invalidate stale spec approvals when new user comments are added after approval
- Add lastApprovedAt tracking to task metadata for approval freshness detection
- Add comprehensive tests for comment-aware triage, review, and stale approval logic
- Add changeset for published package and update README with feature documentation
This commit is contained in:
gsxdsm
2026-04-05 23:04:27 -07:00
parent 7abf3f699e
commit c336093aad
8 changed files with 640 additions and 4 deletions

View File

@@ -550,6 +550,14 @@ Get notified when tasks complete, merge, or fail. Includes dashboard deep links
```
AI-generated specifications require manual approval before moving to Todo. Tasks show "Awaiting Approval" status with amber highlighting.
**Comment-Aware Triage & Spec Review:**
User comments on triage tasks are automatically consumed during specification generation and spec review:
- **During triage**: The AI triage agent sees all user comments as explicit feedback context, ensuring the specification addresses every user concern.
- **During spec review**: The reviewer explicitly verifies that every user comment is addressed in the PROMPT.md. Missing comment coverage results in a `REVISE` verdict.
- **Stale approval invalidation**: If a new user comment arrives after the spec was approved, the approval is automatically invalidated. The task returns to triage with `needs-respecify` status, triggering re-specification and re-review before the task can advance to execution. This prevents stale specs from reaching the execution phase when users provide late feedback.
**Auto-Backup:**
```json
{