Executive Summary
- Reduced-data report. The
logs MCP call returned run metadata for 10 runs (the 60-run request timed out). The per-run artifacts under /tmp/gh-aw/aw-mcp/logs/ were unreadable in the agent sandbox (Permission denied). First-request text was therefore not extracted, and the Python char/duplication analysis was not run. All findings use run metadata, WSRF and workflow-source sizes only.
- 4 runs selected by AIC/WSRF: PR Code Quality Reviewer, Avenger, Design Decision Gate, PR Sous Chef. 4 distinct workflows. Request char medians and p95 are unavailable.
- Main conclusion: the cost signal is context re-sent across turns (WSRF 13.2 on PR Code Quality Reviewer, 4.9 on Avenger). Design Decision Gate carries a ~21 KB source prompt with a 5.6 KB imported agent.
- The audit MCP tool was run for Avenger only. Its WSRF comes from the logs metadata.
- Blocked per the closed-PR guard:
pr-code-quality-reviewer.md, test-quality-sentinel.md. Both are excluded from the recommendations. The auto-pause rule is not triggered (close_rate is null).
Highest-Leverage Changes
- Design Decision Gate: stop unconditionally importing
adr-writer.agent.md (5.6 KB) and shared/reporting.md. Load the ADR writer only on the "no ADR" branch (workflow-md/agents, medium, needs manual review).
- Design Decision Gate: shorten the "Turn Budget Allocation", "Mandatory Stopping/Efficiency Rules" blocks (lines ~174-225) that restate each other. Keep the existing
## skill: report templates (workflow-md, medium, safe).
- Avenger (WSRF 4.9, 5 invocations, failed run): cut cumulative input by moving the CI-state check, merge and recompile prechecks into deterministic
steps: that write a compact JSON. Then trim Steps 0-7 to branches the JSON selects (workflow-md, high, manual review).
- PR Sous Chef (12 KB, 13 invocations, WSRF 12.3 on tiny counts): the queue is already pre-downloaded. Move the "Act on each eligible PR" section (lines ~192-242) into a skill block so noop runs stay small (workflow-md/skills, medium, safe).
- Ponytail Reviewer (3 KB source but WSRF 5.3, 96K tokens, 6 invocations): the cost comes from imports. Check that
pr-review-base plus the pinned external skill and the diff data fetch do not over-fetch (skills, low, manual review).
CI-Validation Checklist for Implementing Agents
Any agent implementing workflow-file recommendations must complete every item below before opening a PR:
Key Metrics
| Metric |
Value |
| Sampled runs |
4 (of 10 returned) |
| Distinct workflows |
4 |
| Median chars |
n/a (artifacts unreadable) |
| P95 chars |
n/a |
| Largest sampled request |
n/a; largest source: design-decision-gate.md 21,003 B |
| Merged optimizer PRs (7d) |
0 |
| Closed optimizer PRs (7d) |
1 |
| Optimizer PR close-rate (7d) |
n/a (<3 settled PRs) |
| WSRF (audited runs) |
Avenger 4.92 (peak 15,866; cumulative 78,112) |
Per-Run First-Request Metrics
| Run |
Workflow |
AIC |
Tokens |
Turns |
WSRF |
Source size |
| 37981206055 |
PR Code Quality Reviewer (blocked) |
58.4 |
855,428 |
2 |
13.15 |
10,955 B |
| 37980958799 |
Avenger (failure) |
23.3 |
78,349 |
n/a |
4.92 |
10,982 B |
| 37981205227 |
Design Decision Gate |
14.8 |
505 |
n/a |
3.0 |
21,003 B |
| 37979410384 |
PR Sous Chef |
3.7 |
1,660 |
n/a |
6.43 |
12,347 B |
Request chars and lines: not available.
Repeated Ambient Context Signals
- All four workflows import
shared/otlp.md (635 B). Two import shared/mcp-pagination.md (3.7 KB).
- Design Decision Gate imports four items totalling about 12 KB (agent 5.6 KB, pagination 3.7 KB, reporting 1.4 KB, otlp 0.6 KB).
- All four already set
tools.cli-proxy: true and have GitHub toolsets configured. No readiness gaps and no gh aw shell instructions found.
Deterministic Analysis Output
Not produced. Run artifacts were not readable, so there was no first-request text to analyze. Only logs metadata, one audit and source file sizes were used. The next run should confirm that the artifact directory is readable.
Recommendations by Category
Workflow Markdown
See items 2-4 above (design-decision-gate, avenger, pr-sous-chef). Keep each file above 60% of its current size.
Skills
Item 4 (move the PR action section into a skill block) and item 5 (review ponytail skill and diff-fetch imports).
Agents
Item 1: import adr-writer.agent.md conditionally instead of always. Needs manual review for behavior.
References
Generated by 🌫️ Daily Ambient Context Optimizer · copilot · auto · 22.3 AIC · ⌖ 0.748 AIC · ⊞ 12K · ◷
Executive Summary
logsMCP call returned run metadata for 10 runs (the 60-run request timed out). The per-run artifacts under/tmp/gh-aw/aw-mcp/logs/were unreadable in the agent sandbox (Permission denied). First-request text was therefore not extracted, and the Python char/duplication analysis was not run. All findings use run metadata, WSRF and workflow-source sizes only.pr-code-quality-reviewer.md,test-quality-sentinel.md. Both are excluded from the recommendations. The auto-pause rule is not triggered (close_rateis null).Highest-Leverage Changes
adr-writer.agent.md(5.6 KB) andshared/reporting.md. Load the ADR writer only on the "no ADR" branch (workflow-md/agents, medium, needs manual review).## skill:report templates (workflow-md, medium, safe).steps:that write a compact JSON. Then trim Steps 0-7 to branches the JSON selects (workflow-md, high, manual review).pr-review-baseplus the pinned external skill and the diff data fetch do not over-fetch (skills, low, manual review).CI-Validation Checklist for Implementing Agents
Any agent implementing workflow-file recommendations must complete every item below before opening a PR:
make recompilefor every modified.github/workflows/*.mdfile — zero compilation errors requiredmake agent-report-progressbefore the final commit and confirm it passesblocked_fileslist in/tmp/gh-aw/ambient-context/closed-pr-targets.json(written by Step 4) — do not re-attempt changes to any file that appears in a closed ambient-context optimization PR from the last 14 days.lock.ymlchanges in the PR bodyKey Metrics
Per-Run First-Request Metrics
Request chars and lines: not available.
Repeated Ambient Context Signals
shared/otlp.md(635 B). Two importshared/mcp-pagination.md(3.7 KB).tools.cli-proxy: trueand have GitHub toolsets configured. No readiness gaps and nogh awshell instructions found.Deterministic Analysis Output
Not produced. Run artifacts were not readable, so there was no first-request text to analyze. Only
logsmetadata, one audit and source file sizes were used. The next run should confirm that the artifact directory is readable.Recommendations by Category
Workflow Markdown
See items 2-4 above (design-decision-gate, avenger, pr-sous-chef). Keep each file above 60% of its current size.
Skills
Item 4 (move the PR action section into a skill block) and item 5 (review ponytail skill and diff-fetch imports).
Agents
Item 1: import
adr-writer.agent.mdconditionally instead of always. Needs manual review for behavior.References