Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 22, 2025

Campaigns can now define measurable objectives with KPIs to track progress toward outcomes. This enables AI agents to optimize for specific metrics rather than just completing tasks.

Changes

  • Campaign Spec: Added Objective (string) and KPIs (array of KPI objects) fields with validation ensuring they're used together
  • KPI Structure: Each KPI includes name, priority (primary/supporting), baseline/target values, time window, direction, and optional unit
  • Orchestrator: Renders objectives and KPIs in workflow markdown and agent instructions to guide decision-making
  • Validation: Enforces single primary KPI when multiple KPIs defined; validates required fields and relationships
  • Push Memory: Campaign mode now validates cursor and metrics snapshot structure, ensuring campaign_id consistency

Example campaign spec with objectives:

---
id: incident-response
name: Incident Response Campaign
objective: Reduce mean time to resolution for P0 incidents
kpis:
  - name: MTTR
    priority: primary
    baseline: 4.5
    target: 2.0
    time-window-days: 30
    unit: hours
    direction: decrease
  - name: Incident recurrence rate
    priority: supporting
    baseline: 0.15
    target: 0.05
    time-window-days: 90
    unit: percent
    direction: decrease
---

The orchestrator now includes objective and KPIs in agent context, enabling measurable optimization of campaign outcomes.


💬 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 December 22, 2025 15:46
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for campaign objectives and KPIs feat: add campaign objectives and KPIs support Dec 22, 2025
Copilot AI requested a review from mnkiefer December 22, 2025 15:52
@mnkiefer mnkiefer merged commit 612bf3d into campaign-delegation Dec 22, 2025
@mnkiefer mnkiefer deleted the copilot/sub-pr-7237 branch December 22, 2025 15:56
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