Skip to content

fix: add dispatch-workflow to safe-outputs schema#11867

Merged
mnkiefer merged 2 commits intoupd-campaign-specdocsfrom
copilot/sub-pr-11855
Jan 26, 2026
Merged

fix: add dispatch-workflow to safe-outputs schema#11867
mnkiefer merged 2 commits intoupd-campaign-specdocsfrom
copilot/sub-pr-11855

Conversation

Copy link
Contributor

Copilot AI commented Jan 26, 2026

The dispatch-workflow safe-output type was implemented in code but missing from the JSON schema, causing campaign orchestrator compilation to fail with "Unknown property: dispatch-workflow" errors.

Changes:

  • Added dispatch-workflow schema definition to pkg/parser/schemas/main_workflow_schema.json
    • Object format: workflows array (required), max (1-3, default 1), optional github-token
    • Shorthand format: array of workflow names
  • Rebuilt binary to embed updated schema
  • Recompiled workflow lock files

Example:

safe-outputs:
  dispatch-workflow:
    max: 3
    workflows:
      - worker-scan
      - worker-process

Fixes TestGenerateAndCompileCampaignOrchestrator and TestCampaignSourceCommentStability.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…lows

- Added dispatch-workflow configuration to main_workflow_schema.json with proper validation
- Supports both object format (with workflows array and max) and shorthand array format
- Rebuilt binary to embed updated schema
- Recompiled all workflows with new schema
- Fixes TestGenerateAndCompileCampaignOrchestrator and TestCampaignSourceCommentStability test failures

The dispatch-workflow safe-output type was implemented in code but missing from the JSON schema,
causing campaign orchestrator workflows to fail validation. This adds the schema definition to
match the existing DispatchWorkflowConfig implementation.

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Update campaign documentation for dispatch-only orchestrators fix: add dispatch-workflow to safe-outputs schema Jan 26, 2026
Copilot AI requested a review from mnkiefer January 26, 2026 13:23
@mnkiefer mnkiefer merged commit ad73cd9 into upd-campaign-specdocs Jan 26, 2026
@mnkiefer mnkiefer deleted the copilot/sub-pr-11855 branch January 26, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants