Repository navigation
Done
Description
Executive Summary
- Runs sampled: 4 (4 distinct workflows; all successful). Only 39 runs had session logs because the
logscall timed out after partial download. - First request: median 27,958 chars, p95 30,305 chars (~7–11K input tokens where reported).
- Roughly 13–17K chars (50–55%) of every request sits before the first workflow heading. This is shared system/safe-output/tool preamble, not workflow text. The remaining 12–14K is workflow markdown, largely long inline templates and step prose.
- The
safeoutputs add_commentexample line repeats in all 4 requests. Intra-request duplication is low (dup-line ratio ≤3.8%).
Highest-Leverage Changes
- daily-code-metrics.md: Move the two near-identical discussion body templates (
executive_summary/ detailed variants, ~2.4K "Metrics to Collect" plus templates) into a## skill:block. Impact: medium. Safe aftermake recompile. - test-quality-sentinel.md (26K source): Report templates already live under
## skill: test-report-templates. Condense Steps 2–4 and the act-vs-noop rubric (~4.7K chars) and push deterministic test-function extraction intosteps:. Impact: medium. Needs manual review. - pr-code-quality-reviewer.md: Steps 4–5 (~5.2K chars) are review-submission boilerplate. Move them into an on-demand skill and keep the sub-agent launch inline. Impact: medium. Needs manual review.
- code-scanning-fixer.md: "Important Guidelines" (3.1K) and cache-check step 1 (2K) are partly deterministic. Move the cache and alert-selection logic into
steps:with pre-computed JSON. Impact: medium. Needs manual review. - Fix the sampling infrastructure:
agenticworkflows logs --count 60timed out at 60s, and the audit for the top run did not finish in time. Use a smallercount(~20) so WSRF can be collected. Impact: low (tooling).
CI-Validation Checklist for Implementing Agents
Any agent implementing workflow-file recommendations must complete every item below before opening a PR:
- Run
make recompilefor every modified.github/workflows/*.mdfile — zero compilation errors required - Confirm no target workflow file is reduced by more than 40% of its current character count
- Run
make agent-report-progressbefore the final commit and confirm it passes - Check the
blocked_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 - Include a smoke-test result or dry-run output in the PR description for every changed workflow spec
- Document all generated
.lock.ymlchanges in the PR body - Do not submit as a draft PR
Key Metrics
| Metric | Value |
|---|---|
| Sampled runs | 4 |
| Distinct workflows | 4 |
| Median chars | 27,958 |
| P95 chars | 30,305 |
| Largest sampled request | 30,305 (Code Scanning Fixer) |
| Merged optimizer PRs (7d) | 0 |
| Closed optimizer PRs (7d) | 0 |
| Optimizer PR close-rate (7d) | n/a (<3 settled PRs; auto-pause off) |
| WSRF (audited runs) | not available (audit timed out) |
Per-Run First-Request Metrics
| Run | Workflow | Chars | Lines | Headings | Pre-heading chars | AIC | Turns |
|---|---|---|---|---|---|---|---|
| 41504949126 | Code Scanning Fixer | 30,305 | 331 | 24 | 16,757 | 24.95 | 4 |
| 41500478032 | Daily Code Metrics | 29,505 | 412 | 29 | 16,845 | 18.57 | 6 |
| 41510428318 | PR Code Quality Reviewer | 26,411 | 277 | 14 | 13,367 | 1.44 | 16 |
| 41510441195 | Test Quality Sentinel | 25,547 | 269 | 11 | 12,978 | 7.17 | 7 |
Repeated Ambient Context Signals
- The shared preamble (security policy, safe-output CLI instructions, MCP-CLI help, GitHub context) is identical across all 4 requests. The
safeoutputs add_commentexample is the only exact duplicated line. - Daily Code Metrics contains two copies of the template headings ("Key metrics today", "Key Visualizations", chart placeholders) because of the experiment-variant branches.
- Large headings: Metrics to Collect (2.4K), Step 5 Submit Review (2.8K), Important Guidelines (3.1K).
- No inline
## agent:or## skill:blocks in 3 of 4 requests, which means skill-based on-demand loading is underused. All 4 workflows already setcli-proxy.
Deterministic Analysis Output
/tmp/gh-aw/ambient-context/analyze_requests.py measured bytes, words, headings, list items (64–104), fences (8–12), duplicate-line ratio (0.5–3.8%), and duplicate-paragraph ratio (0–5.1%). Tool-mentioning lines run 24–52 per request. prompt.txt was not available, so there was no compiler cross-check.
Recommendations by Category
Workflow Markdown
- Recs 1, 3 and 4 above (move inline templates and deterministic logic out of the prompt body). Source sizes: code-scanning-fixer 14.5K, daily-code-metrics 15.4K, pr-code-quality-reviewer 16.0K, test-quality-sentinel 26.1K. Keep each reduction under 40%.
- All sampled workflows already enable
cli-proxy. Do not add rawgh awshell wording; use theagentic-workflowsMCP tools.
Skills
- Rec 1 and Rec 3: create on-demand
## skill:blocks for report and review templates, following thetest-report-templatespattern.
Agents
- No inline agents in the samples. Keep the PR Code Quality Reviewer sub-agent launch; there is no evidence it should be removed.
References
Generated by 🌫️ Daily Ambient Context Optimizer · copilot · auto · ~26 AIC · ⌖ ~2 AIC · ⊞ 13.2K · ◷
- expires on Nov 9, 2026, 11:58 AM UTC-08:00
Reacted by Copilot
Activity