Skip to content

Investigation: Campaign worker workflow labeling system#11438

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/investigate-worker-workflows-labels
Closed

Investigation: Campaign worker workflow labeling system#11438
Copilot wants to merge 2 commits intomainfrom
copilot/investigate-worker-workflows-labels

Conversation

Copy link
Contributor

Copilot AI commented Jan 23, 2026

Documents how campaigns apply labels to worker outputs for discovery and coordination.

Labeling System

Workers apply two labels via safe-outputs configuration:

  • agentic-campaign - Generic marker preventing non-campaign workflow interference
  • z_campaign_<campaign-id> - Campaign-specific identifier for discovery (lowercase, hyphenated)
safe-outputs:
  create-pull-request:
    labels: [security, automated-fix, agentic-campaign, z_campaign_security-alert-burndown]

Discovery Flow

Campaign orchestrators search GitHub using label:"z_campaign_<campaign-id>" as primary discovery mechanism. Label format enforced consistently across:

  • Go: pkg/stringutil/identifiers.go:FormatCampaignLabel()
  • JS: actions/setup/js/campaign_discovery.cjs
  • JS: actions/setup/js/safe_output_handler_manager.cjs

Deliverable

Added docs/investigation-campaign-worker-labels.md (628 lines) covering:

  • Label types, format, and application mechanisms
  • Data flow architecture
  • Safe outputs configuration reference
  • Code locations and examples
  • Best practices and common pitfalls

The z_ prefix ensures campaign labels sort last in GitHub's UI for visibility.

Original prompt

Investigate how campaigns currently set worker workflows labels (agentic-campaign, z_campaign, ...)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@mnkiefer mnkiefer marked this pull request as ready for review January 23, 2026 03:46
Added comprehensive investigation report documenting:
- Two-label system (agentic-campaign + z_campaign_<id>)
- Label application mechanisms (safe-outputs config)
- Discovery strategy (label-based search)
- Code references and examples
- Best practices and common pitfalls

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate current campaign workflows labels usage Investigation: Campaign worker workflow labeling system Jan 23, 2026
Copilot AI requested a review from mnkiefer January 23, 2026 03:48
@mnkiefer mnkiefer closed this Jan 23, 2026
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