Skip to content

Verify every agent adapter against the real CLI: docs/agents.md marks all nine CLI adapters as "unverified" #116

Open

Description

@vsn411

Problem: docs/agents.md says, adapter by adapter, that install commands, authentication, or the full non-interactive run are unverified for claude, agent (Cursor), agy, gemini, codex, copilot, droid, devin and opencode. The unit tests in tests/test_agents/ check the argv secfoo builds and parse canned output; none of them has seen the CLI's real stdout, real exit codes, a real timeout, or a real auth failure. Users find out in production that a flag was renamed or the JSON output changed shape.

Build:

  1. Recorded real transcripts. For each adapter, run one small skill (secret-scanning --depth quick on examples/) against the real CLI and commit the raw stdout/stderr/exit code under tests/fixtures/agents/<id>/<cli-version>/ (secrets redacted; the recording script lives in scripts/record_agent.py and refuses to save anything matching a key pattern). Add a test per adapter that feeds the recording through extract_report() and the cost/token extraction and asserts the report parses and the numbers match what the CLI printed.
  2. Failure transcripts too: not logged in, binary missing, timeout (short --timeout), and the CLI refusing the working directory (trust prompts). Assert secfoo's status (failed, binary_not_found, timeout, not_configured) and that the error text names the cause.
  3. Fix what you find. Expect flag drift and output-format changes; each fix goes in the adapter with a comment naming the CLI version it was verified against.
  4. A verification matrix in docs/agents.md: CLI version, date, who verified, which of install / auth / run / timeout / cost were checked; replace each "unverified" sentence with the facts. Add the exact install command that worked.
  5. Optional, if credentials can be arranged: a weekly workflow_dispatch job that re-runs the recordings for adapters whose CLI is installable on a runner and diffs the output shape.

Pick adapters you have access to; one well-verified adapter is a complete PR (the issue stays open until the matrix is full). Say in your claim comment which ones you will do.

Where to look: src/secfoo/agents/*.py, tests/test_agents/, tests/conftest.py (fake_popen), docs/agents.md, src/secfoo/runner.py (status mapping).

Done when: every adapter has at least one success and one failure recording with tests; docs/agents.md contains no "unverified" claims that are not dated and explained; adapter fixes are covered by the recordings.

Activity

  1. added
    enhancement
    help wanted
    hackathon
    difficulty: hard
    on Nov 15, 2026
  2. Shruti070107 commented on Nov 29, 2026

    @Shruti070107
    Contributor

    Claiming issue #116 for the copilot adapter only.

    I've opened PR #214 with real GitHub Copilot CLI 1.0.117 recordings (success, auth failure, timeout, missing binary), the redacting recorder, replay tests, and a dated verification matrix. I'm deliberately not doing opencode here because upstream PR #207 already verifies it; the remaining adapters are left marked unverified in the matrix.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: hardenhancementhackathonhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions