Skip to content

[P4.5] Copilot adapter (text-only, degraded) — build + parse + capabilities + tests + docs #322

Description

@frankbria

Phase 4 — Provider onboarding. Copilot has NO structured output — the degraded path.

Scope

  • lib/agents/copilot.sh:
    • Build: -p/--prompt, -s/--silent (agent response only), --resume [id] /
      --continue, --model, granular --allow-tool/--deny-tool/--allow-all.
    • Parse: TEXT-mode normalize -> internal struct. Exit detection relies entirely on
      the RALPH_STATUS text block; reuse the text-mode heuristics path (Issue Exit confidence threshold (≥40) causes false-positive completions on documentation keywords #224).
    • Capabilities: structured=no, token usage=no, permission_denials=no(but rich perms
      at build time), api_limit=off, session=resume-id.
  • This issue validates the graceful-degradation design from [P2.1] under the hardest case.
  • Tests via [P2.2]; docs/providers/COPILOT.md (call out reduced feature set); README row.

Acceptance

  • ralph --provider copilot drives the loop on text output; token-limit / perm-breaker /
    api-limit features cleanly disabled with logged warnings. Full suite green.

Depends on: [P3.1], [P2.1].

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