chore: campaign discovery via label-based approach#11070
Merged
Conversation
- Add AgenticCampaignLabel constant: "agentic-campaign" - Add CampaignLabelPrefix constant: "z_campaign_" - Add FormatCampaignLabel helper function to generate campaign-specific labels - Add comprehensive tests for label generation Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Add "agentic-campaign" label to epic issue creation - Add campaign-specific "z_campaign_<id>" label to epic issues - Updated both .github/aw and pkg/cli/templates versions Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Deprecate cache-memory discovery (discoverFromMemory) - Make label-based discovery the primary method - Search first by campaign-specific label (z_campaign_<id>) - Search second by generic "agentic-campaign" label - Keep cache-memory and tracker-id as fallbacks with warnings - Add comments explaining discovery order and deprecation Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Add Campaign Label Requirements section to orchestrator template - Document requirement for "agentic-campaign" and "z_campaign_<id>" labels - Explain worker responsibilities for adding labels to created issues/PRs - Document how non-campaign workflows should skip campaign items using skip-if-match - Updated both .github/aw and pkg/cli/templates versions Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Update TestBuildOrchestrator_TrackerIDMonitoring to check for "tracker-id AND labels" instead of just "tracker-id" - Reflects updated Core Principles in orchestrator template Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
All requirements implemented: - Replace cache memory with label-based discovery - Add "agentic-campaign" label to campaign issues - Add campaign-specific "z_campaign_<id>" labels - Document how other workflows skip campaign items - All tests passing Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add agentic campaign labels to campaign issues
Replace cache memory campaign discovery with label-based approach
Jan 21, 2026
mnkiefer
approved these changes
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Campaign discovery relied on ephemeral cache memory files, causing reliability issues across distributed executions. This replaces it with persistent GitHub labels.
Label System
Two-tier labeling for campaign items (issues, PRs, discussions):
agentic-campaign- Generic marker for all campaign content. Prevents non-campaign workflows from processing these items.z_campaign_<id>- Campaign-specific identifier (e.g.,z_campaign_security-q1-2025). Enables precise per-campaign queries.Discovery Priority
Changes
Infrastructure (Go)
AgenticCampaignLabel,CampaignLabelPrefixFormatCampaignLabel()helper with sanitization (spaces → hyphens, lowercase)Discovery (JavaScript)
campaign_discovery.cjsto prioritize label searchesdiscoverFromMemory()with warningsTemplates
skip-if-matchpattern for non-campaign workflowsWorkflow Isolation
Non-campaign workflows filter out campaign items:
Backward Compatibility
Cache memory and tracker-ID discovery remain as fallbacks. No breaking changes.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.