Repository navigation
Description
Executive Summary
- Sampled 4 completed runs across 4 distinct workflows in the last 24h (no failed-run duplicates needed; breadth criterion met).
- Median first-request size: 16,937 chars; P95: 18,931 chars; largest sampled request: 33,055 chars (Design Decision Gate 🏗️).
- Data caveat: no canonical
sandbox/firewall/logs/api-proxy-logs/event-logs.jsonl(orevents.jsonl) artifacts were retrievable for these runs viaagenticworkflows logs/audit; analysis falls back toaw-prompts/prompt.txtas a compilation-debug cross-check per the fallback rule. Findings below are directionally solid (structure/size) but should be re-validated against true DLLM request payloads when available. - Conclusion: the largest driver of first-request bloat is large inline output/report templates (blocking-comment markdown,
<details>scaffolding) embedded directly in workflow.mdbodies rather than loaded on demand, plus repeated boilerplate reporting-style guardrails duplicated verbatim across workflows.
Highest-Leverage Changes
- Extract the large inline "Post a Blocking/Verified/Diverges Comment" markdown templates in
design-decision-gate.md(~1.8–2k chars each, 11<details>blocks, 87 headings total) into a shared## skill:block loaded on demand. - Consolidate the duplicated reporting-style guardrails ("Use
###headers only", "Keep summary/critical actions visible", "Structure reports as overview → metrics → detail → next actions") that recur verbatim acrossdesign-decision-gate.mdandavenger.mdinto one shared skill/import instead of restating them per workflow. - Both sampled workflows using
cli-proxy/gh-proxy(design-decision-gate.md,avenger.md,daily-code-metrics.md,aw-failure-investigator.md) already have these enabled — no proxy-enablement action needed for this sample, but confirm any rawgh aw/ghshell snippets in these files are rewritten to explicitagenticworkflowsMCP-tool calls where present. - Review
daily-code-metrics.md(28 headings, 12 code fences, 3<details>) for metrics-collection instructions that could move to a deterministic pre-fetch step rather than inline prose.
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 | 16,937 |
| P95 chars | 18,931 |
| Largest sampled request | 33,055 (Design Decision Gate 🏗️) |
| Merged optimizer PRs (7d) | 4 |
| Closed optimizer PRs (7d) | 1 |
| Optimizer PR close-rate (7d) | 20% (below auto-pause threshold) |
Per-Run First-Request Metrics
| run_id | workflow | chars | headings | code fences | <details> |
dup line ratio |
|---|---|---|---|---|---|---|
| 31036967742 | Daily Code Metrics and Trend Tracking Agent | 18,931 | 28 | 12 | 3 | 0.0245 |
| 31037177175 | Avenger | 14,943 | 14 | 22 | 1 | 0.0 |
| 31038194446 | [aw] Failure Investigator (6h) | 13,030 | 13 | 4 | 1 | 0.0 |
| 31039435144 | Design Decision Gate 🏗️ | 33,055 | 87 | 40 | 11 | 0.0026 |
Repeated Ambient Context Signals
- Verbatim guardrail lines repeated 2x across the sample: "Use
###(or lower) headers only.", "Keep summary and critical actions visible; move long detail into<details>blocks.", "Structure reports as: overview → key metrics/issues → collapsible detail → next actions." - Largest single section by char count in the sample: the blocking-comment template "🏗️ Design Decision Gate — ADR Required" (1,859 chars) plus two sibling templates ("ADR Verified", "Implementation Diverges") of similar size — all embedded inline as literal markdown fenced examples rather than as a shared skill.
- No inline agents (
## agent:) or inline linters (## linter:) detected in any sampled request — inline-agent bloat is not currently a driver for this sample.
Deterministic Analysis Output
Full script output saved to /tmp/gh-aw/ambient-context/request-analysis.json and .md. Key findings: design-decision-gate.md's compiled prompt has 87 markdown headings and 11 <details> blocks — by far the highest structural density in the sample, driven by three near-duplicate blocking-comment templates (ADR Required / Verified / Diverges) each carrying their own "What to do next" / "Why ADRs Matter" / format-reference sub-sections. Extracting these templates to a shared skill (parameterized by outcome) would let the compiler include only the relevant variant per run rather than compiling all three unconditionally.
Recommendations by Category
Workflow Markdown
design-decision-gate.md: Move the 3 blocking-comment output templates (lines ~345–393) into a## skill:block; compile only the applicable variant per branch. Evidence: 1,859+ chars per template × 3 near-duplicate variants, 11<details>blocks total. Impact: high. Safe for immediate application with review of skill-loading conditionals.design-decision-gate.md+avenger.md: Deduplicate the shared reporting-style guardrail bullets ("###-only headers", "progressive disclosure", "overview → metrics → detail → next actions") into one shared import instead of restating in both files. Impact: medium. Needs manual review to confirm wording stays consistent post-extraction.daily-code-metrics.md: Audit the "Metrics to Collect" / "Data Storage" sections (986 + 791 chars) for logic that can move to a deterministicsteps:pre-fetch rather than inline prompt prose. Impact: medium. Needs manual review.
Skills
- Create (or extend) a shared skill for "blocking PR comment" report templates (headline +
<details>next-steps + rationale + format reference) so any gate-style workflow (ADR gate, quality gates) can reference it instead of inlining the full template. Impact: high. Safe for immediate application.
Agents
- No inline-agent bloat detected in this sample (0
## agent:occurrences across all 4 runs) — no agent-reduction recommendation warranted this cycle.
References
Generated by 🌫️ Daily Ambient Context Optimizer · auto · 54.3 AIC · ⌖ 5.93 AIC · ⊞ 12.5K · ◷
- expires on Aug 12, 2026, 12:23 PM UTC-08:00
Activity
github-actions commentedon Aug 7, 2026
This issue is being closed as outdated. A newer issue has been created: #51180
View newer issue
This action was performed automatically by the
Daily Ambient Context Optimizerworkflow.