Story Test Automation Rework
Resolves open PR review threads (outputs/review_replies.json) and fixes test code on a bulk Story test automation branch (test/{STORY_KEY}), re-running affected Test Cases and updating outputs/story_test_automation_result.json.
Parameters
-
removeLabel— clearssm_story_test_rework_triggeredafter rework finishes. -
checkOpenPR— verifies an open story test PR exists before starting. -
testFilesGlob— restricts reworked commits to matching paths undertesting/. -
autoStartReview/autoStartReviewConfigFile— re-triggerspr_story_test_automation_reviewonce fixes land. -
responseTarget:"scm"—outputs/response.mdbecomes the PR body/comment, so the output-format prompt is GitHub-Flavored Markdown even on Jira (conditionsisResponseToScm.js/isResponseToTracker.js).
Human doc: agents/docs/agents/story_test_automation_rework.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | story_test_automation_rework.json |
| ContextId | story_test_automation_rework |
| outputType | none |
| skipAIProcessing | true |
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 - Parameters (customParams):
branchCreateFnPathcheckOpenPRdryRun
preCliJSAction: preCliStoryTestAutomationSetup.js
Pre-CLI Story Test Automation Setup Action
- Source:
agents/js/preCliStoryTestAutomationSetup.js - Writes:
input/<KEY>/merge_conflicts.mdinput/<KEY>/review_policy.mdoutputs/review_replies.json
- Side effects:
- git push
- git checkout
- Parameters (customParams):
allowApproveWithSuggestionsbranchCreateFnPathdryRunimportantBlocksApprovalmaxReviewThreadsBeforeForceApprovetestFilesGlob
postJSAction: storyTestAutomationRework.js
Story Test Automation Rework Action
- Source:
agents/js/storyTestAutomationRework.js - Side effects:
- remove label “story_test_automation_rework_wip” (via tracker)
- remove label “bug_test_automation_rework_wip” (via tracker)
- post ticket comment (via tracker)
- move ticket to status (via tracker)
- git push
- git checkout
- git merge
- Parameters (customParams):
aiRepositoryconfigPathcontentOutputcontentOutput.targetdryRunlocalTeammateprojectKeyremoveLabelsmFallbacktrackerProvider
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/story_test_automation_rework.md
Custom params
responseTarget:"scm"removeLabel:"sm_story_test_rework_triggered"checkOpenPR:truebranchCreateFnPath(used by JS action)dryRun(used by JS action)allowApproveWithSuggestions(used by JS action)importantBlocksApproval(used by JS action)maxReviewThreadsBeforeForceApprove(used by JS action)testFilesGlob(used by JS action)aiRepository(used by JS action)configPath(used by JS action)contentOutput(used by JS action)contentOutput.target(used by JS action)localTeammate(used by JS action)projectKey(used by JS action)smFallback(used by JS action)trackerProvider(used by JS action)
Generated by js/agentDocGenerator.js