Skip to content

[ambient-context] Daily Ambient Context Optimizer - 2026-10-04 #65658

Description

@github-actions

Executive Summary

  • Runs inspected: 2 audited (Matt Pocock Skills Reviewer, Impeccable Skills Reviewer); 60 runs listed in the 24h window.
  • **Reduced (redacted) the per-run artifact directories (/tmp/gh-aw/aw-mcp/logs/run-*) are permission-denied in this sandbox, so first-request text could not be extracted. The Python analysis was not run and no char/line metrics exist. Figures below come from audit (prompt_analysis, ambient_context, working_set).
  • Ambient first-request context is ~5.4k–7.4k input tokens. WSRF is ~1.0–1.1, so static context is not being rebuilt per turn. The main cost is cache-read volume across many turns (87 and 53 requests per run), not ambient size.
  • The largest compiled prompts are 19.9k chars (Matt Pocock) and 14.4k chars (Impeccable).

Highest-Leverage Changes

  1. impeccable-skills-reviewer.md: move the process and review-mode sections (lines 91–153) into an on-demand skill. Impact: medium. Needs manual review.
  2. deep-report.md (18.8 KB): the large inline report template (lines ~318–367) belongs in a ## skill: block or shared import. Impact: medium. Needs manual review.
  3. linter-miner.md (11.6 KB): the inline File 1/2/3 templates and 3 inline agents (lines 178–272) can be loaded on demand. Impact: medium. Needs manual review.
  4. Skills reviewers: cap tool turns and requests (87 requests, 226 AIC). Cost is driven by turn count rather than prompt size. mattpocock-skills-reviewer.md is retry-blocked, so apply this to the Impeccable reviewer only. Impact: medium.

Blocked (closed PR #65568 in the last 14 days): mattpocock-skills-reviewer.md, pr-code-quality-reviewer.md, test-quality-sentinel.md, daily-ambient-context-optimizer.md. These were excluded.

CI-Validation Checklist for Implementing Agents

  • Run make recompile for every modified .github/workflows/*.md file; zero errors required
  • Confirm no target workflow file is reduced by more than 40% of its character count
  • Run make agent-report-progress before the final commit and confirm it passes
  • Check blocked_files in /tmp/gh-aw/ambient-context/closed-pr-targets.json; do not re-attempt files from closed ambient-context PRs in the last 14 days
  • Include a smoke-test or dry-run result in the PR description for every changed workflow spec
  • Document all generated .lock.yml changes in the PR body
  • Do not submit as a draft PR

Key Metrics

Metric Value
Sampled runs 2 (audit-only)
Distinct workflows 2
Median chars n/a (artifacts unreadable)
P95 chars n/a
Largest sampled request prompt.txt 19,937 chars (Matt Pocock)
Merged optimizer PRs (7d) 0
Closed optimizer PRs (7d) 1
Optimizer PR close-rate (7d) n/a (<3 settled PRs; auto_pause=false)
WSRF (audited runs) 1.10 (peak 7,378 tok); 1.02 (peak 5,420 tok)
Per-Run First-Request Metrics
Run Workflow AIC Requests Ambient input tok prompt.txt chars WSRF
37215431563 Matt Pocock Skills Reviewer 226.4 87 7,378 19,937 1.10
37215431740 Impeccable Skills Reviewer 115.6 53 5,420 14,377 1.02
Repeated Ambient Context Signals
  • Both reviewers import shared PR-review, reporting, otlp and pr-diff-data-fetch modules. deep-report and linter-miner also pull in shared/reporting.md and shared/otlp.md. Together these are the common repeated fragments.
  • deep-report, linter-miner and Impeccable already set tools.cli-proxy: true. deep-report sets explicit GitHub toolsets (default, actions, discussions, search). Impeccable's toolsets were not confirmed.
  • Raw gh aw instruction wording was not checked, because the first-request text was unavailable.
Deterministic Analysis Output

Not produced: no first-request source was readable. The metrics above are the audit's compact values only.

Recommendations by Category

Workflow Markdown

  • Move the large output templates in deep-report.md and the file templates in linter-miner.md out of the main prompt body. Impact: medium. Needs manual review.
  • In impeccable-skills-reviewer.md, turn the review-mode list into on-demand context. Impact: medium.
  • Add explicit tool-turn budgets to the skills reviewers. Impact: medium.

Skills

  • Impeccable already imports a pinned upstream skill. Load only the mode that is needed, not the whole skill. Impact: low–medium.

Agents

  • linter-miner defines 3 inline agents (discussion-miner, code-pattern-scanner, linter-writer). Check whether each is invoked on every run, and drop or lazy-load any that rarely are. Impact: low–medium. Needs manual review.

References

Generated by 🌫️ Daily Ambient Context Optimizer · copilot · auto · 24.5 AIC · ⌖ 15.8 AIC · ⊞ 12K · ◷

  • expires on Oct 11, 2026, 12:42 PM UTC-08:00

Activity

  1. github-actions commented on Oct 6, 2026

    @github-actions
    ContributorAuthor

    This issue is being closed as outdated. A newer issue has been created: #66271

    View newer issue


    This action was performed automatically by the Daily Ambient Context Optimizer workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions