Repository navigation
[copilot-session-insights] Daily Copilot Agent Session Analysis — 2026-10-30 #73144
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by Copilot Session Insights. A newer discussion is available at Discussion #73453. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🤖 Copilot Agent Session Analysis — 2026-10-30
Executive Summary
Important
Root-caused bug: Test Quality Sentinel never reviews PRs that change tests. Its pre-fetch step calls
gh pr diff "$PR_NUMBER" -- <test files>(.github/workflows/test-quality-sentinel.md:104-109).gh pr diffaccepts at most one positional argument, so this call always fails withaccepts at most 1 arg(s), received 2. The step then writestest-prefetch-unavailable.txtand the agent callsnoop. Both sentinel runs today hit this path, on PR #73052 (9 changed test files) and PR #73078 (1 changed test file). The same applies to every PR that changes a test file, and it fails silently: the workflow concludessuccess.Key Metrics
📈 Session Trends Analysis
Completion Patterns
At 70%, completion is the 4th-highest of the 30 recorded days. That reflects the population, not a behavior change: today's 50 runs are mostly review bots and
Agentic Commandsruns on two PRs (#73052 and #73078), which usually succeed, and there was no smoke-matrix burst like the one that drove 10-28 down to 8%. Day-to-day swings of ±40 pts are still driven by which workflows land in the 50-run window. The Oct 4–13 gap is missing history, not zero.Duration & Efficiency
Median duration (2.5 min) is back in its usual 0–5 min band. The average is pulled up by one outlier:
Addressing comment on PR #73052was cancelled at 60.3 min, a timeout-shaped end for the only long-running coding-agent session in the window. Loop tracking has existed only since 10-29, when transcripts returned; one looping session was found on each day.Success Factors ✅
gpt-5.6-lunaorchestrator +claude-haiku-5.5grumpy-codersubagent) produced substantive reviews on both PRs:REQUEST_CHANGESon Include canonical issue IDs in duplicate close intents #73078 and aCOMMENTwith a correctness concern on Support engine.model-routing for Claude on native Anthropic and Codex on native OpenAI #73052.close_issue.cjs:370still sends a duplicate requestpr-meta.json,pr-diff.patch) started from it, and none had to rediscover the diff via the API.close_issue.cjsline 370, a strong signal that the issue is real.safeoutputscall failed, both runs recovered by writing the JSON to a heredoc file and retrying.Failure Signals⚠️
model_routing_native_test.go,awf_model_routing.test.cjsand 7 other test files, and the sentinel postednoop: unable to fetch test file diffsafeoutputs submit_pull_request_reviewexited 2, because words likehaven'tandteam'sin the review body closed the single quote.success=true: 5 bash calls exited non-zero (codes 1, 2, 2, 128, 1) whiletool.execution_completereportedsuccess=true.fatal: could not fetch ... from promisor remote(partial clone)vitest/node_modulesare not installedpr-triagesubagent had already triaged itfailureconclusions areCJS+CGOoncopilot/support-engine-model-routing, on both pushes (00:10 and 01:11 UTC). The PR itself is red, not the harness.Prompt Quality Analysis 📝
Per-Prompt Breakdown
High-Quality Prompt Characteristics
All 6 transcripts are workflow-authored prompts with explicit output contracts, so prompt text did not separate outcomes. Data and tooling did.
pr-triage,grumpy-coder): 3/3 of the runs that used one produced outputExample High-Quality Prompt pattern:
Low-Quality Prompt Characteristics
test-prefetch-unavailable.txtexists, noop", so a deterministic pre-fetch bug became a silent skipExample Low-Quality Prompt pattern:
Orphaned Branch Escalation Alerts 🚨
Summary
Escalation Candidate Details
Escalation Candidates
✅ No orphaned branches exceed the escalation threshold today. Only 2 workflow runs were in progress: one on
main(this workflow) and oneAddressing comment on PR #73052oncopilot/support-engine-model-routing, which has Copilot assigned. The maximum gate count on any branch is 1.CI Waste Estimate
Notable Observations
Loop Detection and Session Diagnostics
Loop Detection
git diff <sha> <sha> -- schemas/andgit cat-file -e <sha>probes across 6 candidate base commits in a partial clone; no exact-duplicate commands, but no progress eitherTool Usage
bash98 (61.6%),view39 (24.5%),grep7,task3,read_agent3,glob2,create2,read_bash2,task_complete2,write_agent1grep -rn ... pkgoutside the bash allowlist) and 2Path does not existon PR-referenced smoke workflow filespr-triage(haiku-4.5, 16 tool calls, 191k tokens),grumpy-coder×2 (haiku-5.5, 4–9 tool calls). Onegrumpy-coderreturned an empty first response and needed awrite_agentnudgevitestbinary absent in the reviewer sandboxToken & Cost Profile (6 transcripts)
Total: 125 turns, 6.13M input tokens (92.2% cache reads), 110k output tokens, about 200.5 AIU. Matt Pocock Skills Reviewer accounts for 90% of AIU while producing the same number of reviews as PR Code Quality Reviewer, which accounts for 4.4%.
Context Issues
Experimental Analysis
Standard analysis only - no experimental strategy this run (roll = 93).
Actionable Recommendations
For Users Writing Task Descriptions
schemas/audit.schema.jsonbetween$BASE_SHAandHEAD(both are pre-fetched)"safeoutputs submit_pull_request_review '<long JSON>'report_incompleteor a visible comment), not a silentnoop.For System Improvements
.github/workflows/test-quality-sentinel.md:104): replacegh pr diff "$PR_NUMBER" -- <files>with a fullgh pr diff "$PR_NUMBER"filtered to test files (orgit diff "$BASE_SHA...HEAD" -- <files>), thenmake recompile. Add a contract test inpkg/cli/pr_prefetch_cache_contract_test.gothat rejects extra positional args togh pr diff.tool.execution_complete: analytics and agents both treatsuccess=trueas truth while the exit code is buried in result text.claude-sonnet-5costs about 20x the luna+haiku review stack for comparable output. Consider a luna/haiku orchestrator, or caps on turns and git exploration.Addressing comment on PR #73052.For Tool Development
Historical Trends and Statistical Summary
Trends Over Time
review_bot_log_coverage_gappersists).hidden_shell_failure_maskingis confirmed on a 2nd day, and the Test Quality Sentinel has moved from sonnet-5 to haiku-4.5 (13.3 to 5.4 AIU per noop).Statistical Summary
Next Steps
gh pr diffusage intest-quality-sentinel.mdand recompile (highest priority)noopAnalysis generated automatically on 2026-10-30 at 07:20 UTC
Run ID: 41016078391
Workflow: Copilot Session Insights
All reactions