Skip to content

[P2.2] Generic adapter test harness (mock CLIs) #316

Description

@frankbria

Phase 2 — Capabilities & safety. Reusable test scaffolding so every provider PR is
cheap to validate.

Scope

  • A bats helper that, given an adapter, asserts: (a) command-build produces expected
    argv for representative options, (b) a recorded provider-output fixture normalizes to
    the expected internal struct, (c) the capabilities record is well-formed.
  • A mock-CLI pattern per provider (executable stub emitting canned structured output;
    must take >1s per call per the e2e early-failure rule).
  • Fixtures dir for raw provider outputs.

Acceptance

  • Harness used by the Claude reference adapter; ready for [P3.1]+ to plug in.

Depends on: [P1.2]. Blocks: [P3.1], [P4.1]–[P4.5].

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmulti-providerMulti-provider agent abstraction (Codex/Gemini/OpenCode/Droid/Kilocode/Copilot)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions