Skip to content
Checklist

Solve

Story sharding quality gate

Checks

CheckDescriptionTypeBlocking
stories_existAt least one story file existsCustomYes
ears_criteriaAll stories have EARS acceptance criteriaPattern matchYes
stories_have_statusAll stories have a status field in frontmatterPattern matchYes
stories_reference_architectureStories reference the architecture planPattern matchNo
open_questionsNo unresolved open questions in storiesCustomNo

Raw Definition

29 lines
yaml
name: solve
description: Story sharding quality gate
# Note: {protocol_id} is resolved at gate-review time from the active checkpoint

checks:
  - id: stories_exist
    description: At least one story file exists
    check: glob:.sniper/artifacts/{protocol_id}/stories/:*.md
    blocking: true

  - id: ears_criteria
    description: All stories have EARS acceptance criteria
    check: grep:.sniper/artifacts/{protocol_id}/stories/:"shall"
    blocking: true

  - id: stories_have_status
    description: All stories have a status field in frontmatter
    check: grep:.sniper/artifacts/{protocol_id}/stories/:"status:"
    blocking: true

  - id: stories_reference_architecture
    description: Stories reference the architecture plan
    check: grep:.sniper/artifacts/{protocol_id}/stories/:"plan.md"
    blocking: false

  - id: open_questions
    description: No unresolved open questions in stories
    check: "!grep:.sniper/artifacts/{protocol_id}/stories/:\\*\\*TBD\\*\\*|\\*\\*TODO\\*\\*|\\*\\*OPEN\\*\\*"
    blocking: false