set_acceptance_criteria
Replaces acceptance criteria for a story with a given list. Each string becomes a checklist item, preserving checked state and existing IDs. Idempotent; must be set before story completion.
Instructions
Replace the acceptance criteria section of a story file. Each string in the criteria array becomes a checklist line. Plain text is written as an unchecked - [ ] ... item. A string may also be passed as a full checklist line (e.g. - [x] text, [x] text, or the full stored line including an existing AC-ID) — the leading checkbox marker is stripped and its checked state is preserved, and any existing AC-ID in the input is kept rather than regenerated. Idempotent: calling again replaces the previous AC entirely. Acceptance criteria must be set before a story can be completed with complete_story. Returns {story_id, criteria_count, path}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| criteria | Yes | List of acceptance criteria strings. Plain text becomes an unchecked `- [ ] ...` item. To mark a criterion as already checked, prefix it with `[x] ` or `- [x] ` (e.g. `- [x] User can log in`) — the checked state is preserved and any leading AC-ID in the string is kept rather than regenerated. Must contain at least one item. | |
| story_id | Yes | Story ID to update, e.g. STORY-007 |