Skip to content

Extract acceptance criteria from the issue and report evidence per criterion #3464

Closed as not planned

Description

@integry

Problem

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions