name: workflow-syntax-drift-detection
mode: mapreduce
setup:
- shell: "mkdir -p .prodigy/syntax-analysis"
- claude: "/prodigy-analyze-workflow-features"
map:
input: "workflows/data/workflow-syntax-sections.json"
json_path: "$.sections[*]"
agent_template:
- claude: "/prodigy-analyze-doc-section-drift --json '${item}'"
commit_required: true
max_parallel: 3
agent_timeout_secs: 300
reduce:
- claude: "/prodigy-fix-workflow-syntax-drift"
commit_required: true
error_policy:
on_item_failure: dlq
continue_on_failure: true
max_failures: 2
error_collection: aggregate
merge:
- shell: "rm -rf .prodigy/syntax-analysis"
- shell: "git add -A && git commit -m 'chore: remove temporary syntax analysis files' || true"
- shell: "git fetch origin"
- claude: "/prodigy-merge-master"
- claude: "/prodigy-merge-worktree ${merge.source_branch} ${merge.target_branch}"