Story Done Check

Verifies that a story can move to Done: checks that tests passed and PRs merged, then transitions the ticket or reports what is missing.

Since gh-1330 the Done report is truthful about skipped work: when linked Test Cases ended as Skipped or Irrelevant, the completion comment lists the per-status buckets instead of claiming “All Test Cases Passed”, and every skipped Test Case is stamped with a machine-parseable skip marker ([tc-skip-marker] skipped at <STORY> done-check (<reason>), never executed — <date> comment plus a skipped_at_<STORY> label).

Parameters

Configured via customParams in the agent JSON or the project .dmtools/config.js (project values win).

  • customStatuses — status name overrides for this workflow (maps logical statuses to project-specific names).
  • removeLabel — label removed from the ticket after a successful run (idempotency cleanup).
  • skipReason — optional reason recorded in the per-TC skip markers (default: no reason recorded).
  • skipsNeedHuman — opt-in: when skipped Test Cases exist, flag the story with a needs_human_skips label and a needs-human comment instead of moving it to Done (default off — the story still completes).

Human doc: agents/docs/agents/story_done_check.md

Attributes

AttributeValue
JobTeammate
Configstory_done_check.json
ContextIdstory_done_check
outputTypenone
skipAIProcessingtrue

Prompt snapshot

Full prompt / instruction set: agents/snapshots/story_done_check.md

Actions

postJSAction: checkStoryTestsPassed.js

Check Story Tests Passed — postJSAction for story_done_check agent.

  • Source: agents/js/checkStoryTestsPassed.js
  • Side effects:
    • post ticket comment (via tracker)
    • move ticket to status (via tracker)
  • Parameters (customParams):
    • customStatuses
    • removeLabel
    • skipReason
    • skipsNeedHuman
    • trackerProvider

LLM step

  • outputType: none
  • Prompt snapshot: agents/snapshots/story_done_check.md

Custom params

  • removeLabel: "sm_story_done_check_triggered"
  • customStatuses (used by JS action)
  • skipReason (used by JS action)
  • skipsNeedHuman (used by JS action)
  • trackerProvider (used by JS action)

Generated by js/agentDocGenerator.js

View the agent config on GitHub →

Generated from story_done_check.json in the agents repository and its human doc — edit either and the page follows. Last updated .