Add required fields to campaign metrics JSON schema in orchestrator instructions #8343
+113
−8
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 orchestrators were writing metrics files without required fields (
campaign_id,tasks_total,tasks_completed), causingvalidateCampaignMetricsSnapshot()to reject them during repo-memory push.Changes
CampaignIDfield toCampaignPromptDatastruct and populate it inBuildOrchestrator()orchestrator_instructions.md{{ .CampaignID }}to inject actual campaign ID into example schemaResult
Orchestrators now receive explicit schema showing required structure:
{ "campaign_id": "go-file-size-reduction-project64", "date": "YYYY-MM-DD", "tasks_total": 0, "tasks_completed": 0, "tasks_in_progress": 0, "tasks_blocked": 0, "velocity_per_day": 0.0, "estimated_completion": "YYYY-MM-DD", "kpi_trends": [...] }Required fields are explicitly documented with validation constraints (non-negative integers, YYYY-MM-DD format, exact campaign ID match). Optional fields are marked as such.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login -json GO111MODULE ux-amd64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE rg/toolchain@v0.GOMODCACHE GOINSECURE GOMOD GOMODCACHE go(http block)/usr/bin/gh gh api user --jq .login b/workflows -trimpath pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet -p main mpile pkg/mod/golang.org/toolchain@v0.rev-parse(http block)/usr/bin/gh gh api user --jq .login k/gh-aw/gh-aw/.github/workflows -trimpath(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.