Repository navigation
Verify copilot adapter against real CLI 1.0.117 (#116) - #214
Conversation
The usage file had a predictable name in the shared temp dir (secfoo-copilot-usage-<pid>-<id>.json); another local user could pre-create it as a symlink and have the CLI overwrite its target. Use a mkdtemp() directory (0700, random name) per run and remove it after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks for a second adapter! The recordings are real and thorough:
Your recorder drives the real secfoo adapter, so it verifies the argv secfoo actually builds. That's the better design. I pushed one fix (c1ac34c). The usage file had a predictable name in the shared temp directory ( Two things for you:
|
vsn411
left a comment
There was a problem hiding this comment.
Real recordings, usage from --usage-output-file, honest cost handling. CI is green. Approving.
|
Merged, thank you! That's two merged PRs from you this weekend. 🎉 Copilot is now the second adapter with real recordings and a dated row in the verification matrix. Before merging I moved the usage file into a private temp directory and merged current Two follow-ups, whenever you have time:
#116 stays open until every adapter has its recordings. |
Resolve the docs conflicts with secfoo-com#205 (api MCP tool loop), secfoo-com#209 (Models column) and secfoo-com#214: keep both the api and Codex MCP text. Also drop the header row that the secfoo-com#209 merge duplicated in docs/agents.md, and say 'remove the entry, then run sync again' for key rotation. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Addresses #116 for one adapter.
opencodeis intentionally not duplicated here because upstream PR #207 already verifies it.What changed
scripts/record_agent.py, which invokes the real secfoo adapter, redacts credential-shaped strings and opaque provider IDs, and refuses to save a fixture if a key pattern survives.1.0.117transcripts undertests/fixtures/agents/copilot/1.0.117/:success.json— fullsecret-scanning --depth quickrun onexamples/, exit 0, real report and usage payload.auth_failure.json— real401 Bad credentialsrejection.timeout.json— real short-timeout kill.binary_not_found.json— real missing-binary path.CopilotAdapterwith the CLI's--usage-output-fileflag so input/output tokens are read from the file the CLI actually writes. Premium requests / AI credits are not USD, socost_usdstaysNonerather than being invented.tests/test_agents/test_copilot_recordings.pythat feed the recordings throughextract_report(), the report parsers, token extraction, and status mapping (failed,binary_not_found,timeout;not_configuredis asserted as API-only).docs/agents.mdand removed the stale docs-only claim for Copilot.Verification
GitHub Copilot CLI 1.0.117, Windows, verified 2026-11-29 byShruti070107.npm install -g @github/copilot; auth:gh auth loginplusGH_TOKENfromgh auth token.pytest -q tests/test_agents/test_copilot.py tests/test_agents/test_copilot_recordings.py→ 17 passed.ruff checkon all changed Python files → clean.Other adapters remain explicitly marked unverified in the matrix; this PR does not claim otherwise.