You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extract acceptance criteria from the issue and report evidence per criterion #3464
Issues written by Planner Studio contain an "Acceptance criteria" list, but it is free text. The agent is not asked to account for each item, the PR does not show which criteria are met, and /review judges against the whole objective.
Goal
Treat the issue's acceptance criteria as a checklist that the run and the review both account for.
Acceptance criteria
A pure parser extracts a criteria list from an issue or plan-item body: the list items under a heading matching "Acceptance criteria" (case-insensitive, any heading level), bounded in count and length. No heading means no criteria and no behaviour change.
When criteria exist, the implementation prompt lists them with stable ids (AC1, AC2, ...) and asks the agent to end with a short per-criterion statement: met / not met / not applicable, with the file or test that demonstrates it.
The digest section shows the checklist with the agent's per-criterion statement; criteria the agent did not address are shown as "not addressed".
/review receives the same criteria ids and is asked to verify each one; an unmet criterion is a blocker with category requirement that names the id.
The parsed criteria are stored in the digest task_history event.
Tests cover the parser (heading variants, nested lists, checkboxes, bounds), prompt inclusion, digest rendering and review prompt inclusion.
Out of scope
A readiness gate that refuses to start issues without checkable criteria.
Screenshots per criterion.
Implementation
Key files: packages/core/src/claude/prompts/promptGenerator.ts (generateClaudePrompt), packages/core/src/claude/prompts/plannerPrompts.ts (where the Acceptance Criteria part is requested), src/jobs/prCommentJobHelpers.ts (fetchLinkedIssueContext), src/jobs/reviewPromptBuilder.ts, the digest builder, packages/core/src/config/planIssueManager.ts (plan/issue linkage). Put the parser in packages/shared. Verify with the standard commands.
Activity