Repository navigation
Description
Executive Summary
Sampled 4 runs from a partial 24h window (20 runs covering under 1 hour, after a 60-run request timed out). First-request size ranges from 13.9 KB to 29.2 KB (median 18,281.5 chars). The harness <system> preamble is the largest shared cost at 13.0 to 16.5 KB per run and is not workflow-editable. Workflow-authored bloat is concentrated in two workflows: Matt Pocock Skills Reviewer (largest request, 18 KB source) and Daily Trajectory Grader Implementer (highest WSRF, 1.170).
Highest-Leverage Changes
- Pre-compute grader fragments in a
steps:pre-step (Recommendation 1). - Move Matt Pocock skill-selection detail behind on-demand
## skill:blocks (Recommendation 2). - Resolve the Sub Agents prefix-contract failure after confirming frontmatter scope (Recommendation 4).
Key Metrics
| Metric | Value |
|---|---|
| Sampled runs / distinct workflows | 4 / 4 |
| Request chars: median / p95 | 18,281.5 / 29,201 |
Harness <system> preamble |
13.0 to 16.5 KB per run |
| Log window | partial, under 1 hour (20 runs) |
| PR close rate, 7d | 1 merged, 0 closed, rate n/a; auto-pause not triggered |
| Deduplication guard | no blocked files |
Sampled Runs
| Workflow | Run | Request chars | Input tokens | AIC | WSRF | Source bytes |
|---|---|---|---|---|---|---|
| Matt Pocock Skills Reviewer | 45248951916 | 29,201 | 29,512 | 5.6 | not audited | 18,024 |
| Daily Trajectory Grader Implementer | 45249263669 | 20,750 | 42,398 | 13.0 | 1.170 | 6,761 |
| Smoke Copilot Sub Agents | 45246464552 | 15,813 | 21,207 | 10.3 | not audited | 10,710 |
| Smoke Copilot Auto | 45249612096 | 13,936 | 35,624 | 10.9 | 1.001 | 1,813 |
Findings
- Preamble dominance: Smoke Copilot Auto's request is 13,936 chars, of which 12,971 are the
<system>block. Its 1.8 KB source is a minor share. - Repetition is negligible: duplicate line ratio is 0.006 or less and duplicate paragraph ratio is 0. The cost is size, not repetition.
- Grader Implementer re-sends the most context: WSRF 1.170 means the working set rebuilds near its peak across turns.
- Matt Pocock's request references
pr-triagebut does not include its inline## agent:block (source line 286), so that block is not first-request bloat. - Tool readiness:
cli-proxy: trueis set only in Matt Pocock. The four sources contain no rawgh awinstructions, so no rewrite is needed. - Source deviation:
event-logs.jsonl,sandbox/agent/logs/copilot-session-state/, andprompt.txtwere absent from run artifacts. The firstuser.messageinusage/aw_session.jsonlserved as the request source, so theprompt.txtcross-check could not run. - Audit 45249263669 reports an
evaluation_faileddecision in harness retry data; not investigated.
Recommendations
1. workflow-md: Daily Trajectory Grader Implementer
- Affected:
daily-trajectory-grader-implementer.md - Evidence: WSRF 1.170, the highest measured. The
tools.bashallowlist permitscat shared/graders/*.mdandfind, so catalog and fragment reads return as tool results that are rebuilt on later turns. - Why: a deterministic
steps:pre-step can write only the selected grader's fragment to a file, so the agent reads one small file instead of re-reading the catalog. - Impact: high. Review: manual, because it changes data flow.
2. workflow-md: Matt Pocock Skills Reviewer
- Affected:
mattpocock-skills-reviewer.md - Evidence: 29,201-char request, the largest sample. Source is 18,024 bytes; 10,024 bytes lie past the 8,000-byte visible prefix. Largest request sections (chars): skill review (Step 4, 1,647), inline comments (Step 5, 1,476), completion contract (1,446), skill list (1,054).
- Why: move skill-selection detail and the inline-comment format into
## skill:blocks loaded on demand, so the first 7,500 bytes hold objective, constraints, routes and completion contract. - Impact: high. Cap any single reduction at 40% of source size (about 7,200 of 18,024 bytes) and keep the result at or above 1,000 characters. Review: manual.
3. agents: Matt Pocock Skills Reviewer inline pr-triage
- Affected:
mattpocock-skills-reviewer.md(line 286) - Evidence: the request references
pr-triagesix times but contains no## agent:block, so the definition is not first-request bloat. - Why: confirm the compile path. If the definition should reach the request, this is a compile deviation rather than author bloat. If not, move it to a standalone agent file so the source stays readable and the compile path is explicit.
- Impact: low for request size, medium for maintainability. Review: manual, because the
prompt.txtcross-check could not run.
4. workflow-md: Smoke Copilot Sub Agents
- Affected:
smoke-copilot-sub-agents.md - Evidence: the prefix checker reports a contract of 10,710 bytes against a 7,500-byte limit. Body is 2,592 bytes; frontmatter is 8,118 bytes.
- Why: the checker counts frontmatter, which may not reach the prompt. Confirm whether it does. If not, the fix is checker scope, not a workflow edit. If it does, move imports and long lists out of frontmatter.
- Impact: medium. Review: manual, because it affects checker semantics.
Platform Note (not a workflow recommendation)
The harness <system> preamble is 13.0 to 16.5 KB per run and includes actions/setup/md/xpia.md. Route to platform owners; no workflow change addresses it.
CI-Validation Checklist for Implementing Agents
-
make recompileafter any.github/workflows/*.mdchange -
python3 scripts/check-instruction-prefixes.py --json <file>:contract_bytesat or below 7500 and no errors - Reductions stay at or above 1,000 characters and at or below 40% of current characters
- Objective, constraints, task routes, verification and stop conditions appear before byte 7,500
- Next sample: compare
request_charsand WSRF with the table above
Deterministic signals
- Within-request duplication: duplicate line ratio at most 0.006, duplicate paragraph ratio 0.
- Char-to-token ratio: Matt Pocock 0.99, Grader Implementer 0.49, Sub Agents 0.75, Smoke Auto 0.39.
- Inline agents: 0
## agent:blocks in captured requests; 1 in the Matt Pocock source. - Instruction prefix: Matt Pocock visible 8,000 of 18,024 bytes; Sub Agents contract 10,710 bytes (limit 7,500).
Limitations
- Sampling covers under one hour (20 runs) because the 60-run request timed out. A full 24h sample needs a rerun.
- Only 2 runs were audited; WSRF is missing for the other two.
References
§45249263669 · §45248951916 · §45246464552
Generated by 🌫️ Daily Ambient Context Optimizer · copilot · routed: haiku55 xhigh · ~9 AIC · ⌖ ~2 AIC · ⊞ 8.9K · history
- expires on Nov 30, 2026, 12:02 PM UTC-08:00
Activity
github-actions commentedon Nov 23, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪