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 — clears sm_story_test_rework_triggered after rework finishes.

  • checkOpenPR — verifies an open story test PR exists before starting.

  • testFilesGlob — restricts reworked commits to matching paths under testing/.

  • autoStartReview / autoStartReviewConfigFile — re-triggers pr_story_test_automation_review once fixes land.

  • responseTarget: "scm" — outputs/response.md becomes the PR body/comment, so the output-format prompt is GitHub-Flavored Markdown even on Jira (conditions isResponseToScm.js / isResponseToTracker.js).

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
  • Parameters (customParams):
    • branchCreateFnPath
    • checkOpenPR
    • dryRun

preCliJSAction: preCliStoryTestAutomationSetup.js

Pre-CLI Story Test Automation Setup Action

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

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):
    • aiRepository
    • configPath
    • contentOutput
    • contentOutput.target
    • dryRun
    • localTeammate
    • projectKey
    • removeLabel
    • smFallback
    • trackerProvider

LLM step

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

Custom params

  • responseTarget: "scm"
  • removeLabel: "sm_story_test_rework_triggered"
  • checkOpenPR: true
  • branchCreateFnPath (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

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 .