Skip to content

Add operational-value grader for daily-ambient-context-optimizer - #58546

Closed
mnkiefer with Copilot wants to merge 2 commits into
mainfrom
copilot/operational-value-studypaper-v1-again
Closed

Add operational-value grader for daily-ambient-context-optimizer#58546
mnkiefer with Copilot wants to merge 2 commits into
mainfrom
copilot/operational-value-studypaper-v1-again

Conversation

Copilot AI commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

daily-ambient-context-optimizer only publishes a recommendation issue about oversized ambient context in other workflows — it never edits files itself — so there was no deterministic way to measure whether its recommendations actually reduce ambient-context bloat over time.

Design

Grader (.github/graders/daily-ambient-context-optimizer-operational-value.sh)

  • Assigns each run to the largest top-level .github/workflows/*.md file (excluding itself and shared/ fragments) at the run commit.
  • Primary metric: distance-to-target shrink from a 20000-char "oversized" threshold toward a 10000-char healthy target, scored via git blob evidence only (no live telemetry).
  • 3-day maturation window, grounded in the ~2-hour turnaround observed for PR chore: apply 2026-06-04 ambient context optimizations #36992's implementation.
  • largest-workflow-health and compliant-char-mass-share reported as separate diagnostics, kept out of the primary attainment value.

Study record

  • .github/graders/daily-ambient-context-optimizer-operational-value-study.json records the design decisions, alternatives considered, and evidence citations, with designOutcome: "accepted".

Workflow wiring

  • .github/workflows/daily-ambient-context-optimizer.md now declares graders.operational-value, and the compiled .lock.yml is regenerated accordingly.
Original prompt

[operational-value-study:paper-v1] daily-ambient-context-optimizer

Use the repository's .github/skills/operational-value-designer/SKILL.md to design
and verify one deterministic operational-value grader for github/gh-aw
workflow daily-ambient-context-optimizer. This is a fresh research run; do not copy another
workflow's metric or contract.

Requirements:

  • Recover adoption-time intent and pre-adoption evidence independently.
  • Use exactly one direct primary attainment metric in [0,1]. Keep diagnostics separate.
  • Treat unavailable evidence as null, never zero. Make maturation explicit and stable.
  • Support historical assignment reconstruction when case and event are null.
  • If no direct operational metric is defensible, create only the study record below with designOutcome "blocked" and explain why. Never substitute activity, output volume, traces, or agent judgment.
  • Change only .github/workflows/daily-ambient-context-optimizer.md, its generated lock file,
    .github/graders/daily-ambient-context-optimizer-operational-value.sh, and .github/graders/daily-ambient-context-optimizer-operational-value-study.json.
  • Do not add generated historical reports to the pull request.

Write .github/graders/daily-ambient-context-optimizer-operational-value-study.json as JSON with this exact top-level shape:
{
"schemaVersion": 1,
"repository": "github/gh-aw",
"workflowId": "daily-ambient-context-optimizer",
"recordedAt": "ISO-8601 timestamp",
"recorder": "copilot-coding-agent",
"designOutcome": "accepted|rejected|blocked",
"rejectionReason": null,
"classification": {
"domain": "short research domain",
"subdomain": null,
"taskArchetype": "short label",
"interventionType": "short label",
"outcomeType": "short label",
"evidenceDirectness": "direct|proxy|activity",
"evidenceLocality": "same-repository|cross-repository|external",
"measurementLevel": "nominal|ordinal|interval|ratio",
"metricForm": "binary|proportion|rate|distance-to-target|index",
"assignmentDeterminism": "deterministic|bounded-ambiguity|ambiguous",
"intentExplicitness": "explicit|implicit|mixed",
"markdownSpecificity": "exact|bounded|open-ended",
"outcomeObservability": "immediate|delayed",
"causalClaim": "observational|comparative-not-causal"
},
"decisions": [{
"type": "intent|opportunity|assignment|evidence|maturation|metric|baseline|diagnostic",
"selected": "observable selected design",
"alternatives": ["observable rejected alternative"],
"rationale": "concise evidence-backed rationale, not hidden reasoning",
"evidenceReferences": ["commit, issue, PR, or file reference"],
"changedDuringReview": false
}],
"uncertainties": [{
"type": "measurement|assignment|evidence-availability|temporal|baseline|domain-fit|causal-attribution",
"level": "low|medium|high|unknown",
"description": "specific limitation",
"mitigation": null,
"evidenceReferences": []
}]
}

For blocked/rejected designs, rejectionReason must be a non-empty string. Record
observable contract choices and alternatives only; do not record chain-of-thought.

Validation for accepted designs:

  1. .github/skills/operational-value-designer/scripts/verify-operational-value-evaluator.sh .github/graders/daily-ambient-context-optimizer-operational-value.sh
  2. gh aw compile .github/workflows/daily-ambient-context-optimizer.md

Keep the pull request limited to this workflow. The local study runner will replay
history and archive reports after this task completes.

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Design operational-value grader for daily ambient context optimizer Add operational-value grader for daily-ambient-context-optimizer Sep 4, 2026
Copilot AI requested a review from mnkiefer September 4, 2026 15:33
@mnkiefer mnkiefer closed this Sep 4, 2026
@mnkiefer
mnkiefer deleted the copilot/operational-value-studypaper-v1-again branch September 4, 2026 15:37
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