Story Test Automation Rework

Reworks a story-test-automation PR after review: fixes the test code per review comments and pushes the updates.

Parameters

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

  • autoStartReview — when true, automatically trigger the PR review workflow after this agent finishes.
  • autoStartReviewConfigFile — agent config file used for the auto-started review workflow.
  • checkOpenPR — when true, skip tickets that already have an open pull request for this work.
  • removeLabel — label removed from the ticket after a successful run (idempotency cleanup).
  • testFilesGlob — glob that selects which test files belong to this automation scope.

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

Attributes

AttributeValue
JobTeammate
Configstory_test_automation_rework.json
ContextIdstory_test_automation_rework
outputTypenone
skipAIProcessingtrue

Prompt snapshot

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

Actions

preJSAction: checkWipLabel.js

Check WIP Label Pre-Action

  • Source: agents/js/checkWipLabel.js
  • Side effects:
    • post Jira comment
  • Parameters (customParams):
    • checkOpenPR

preCliJSAction: preCliStoryTestAutomationSetup.js

Pre-CLI Story Test Automation Setup Action

  • Source: agents/js/preCliStoryTestAutomationSetup.js
  • Writes:
    • input/<KEY>/merge_conflicts.md
    • outputs/review_replies.json
  • Side effects:
    • git push
    • git checkout
  • Parameters (customParams):
    • testFilesGlob

postJSAction: storyTestAutomationRework.js

Story Test Automation Rework Action

  • Source: agents/js/storyTestAutomationRework.js
  • Side effects:
    • remove label “story_test_automation_rework_wip”
    • remove label “bug_test_automation_rework_wip”
    • post Jira comment
    • git push
    • git checkout
    • git merge
  • Parameters (customParams):
    • autoStartReview
    • autoStartReviewConfigFile
    • removeLabel

LLM step

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

Custom params

  • removeLabel: "sm_story_test_rework_triggered"
  • checkOpenPR: true
  • testFilesGlob (used by JS action)
  • autoStartReview (used by JS action)
  • autoStartReviewConfigFile (used by JS action)

Generated by js/agentDocGenerator.js

View the agent config on GitHub →

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