Skip to content

feat(cli): provider doctor with tiered diagnostics + persisted coverage ledger #378

Closed

Description

@ajianaz

Goal

One command answers "is provider/model X actually usable?" — and release validation ("validasi penuh SEBELUM klaim siap") gets a machine-checkable gate. Adopted from jcode's provider doctor + coverage ledger (tier A). Tole being single-protocol (OpenAI-compatible) makes this cheap to build.

Acceptance criteria

  • Tiered diagnostics per provider/model:
    • offline — wiring checks (config parse, base URL, key presence)
    • catalog — live /models listing
    • full — real chat call, streaming, and a full tool-call loop
  • Results persist to a coverage ledger on disk (per provider+model: level reached, first blocker, timestamp).
  • Ledger summary line: READY n-of-m + first blocker + the exact command to fix it.
  • full tier exercises the real tool-call loop, not just an echo chat completion.
  • Integrates with the release validation flow: doctor full green is a precondition for "ready to release" claims.
  • Docs (CLI reference) + CHANGELOG entry.

Testing

  • Unit: tier logic, ledger serialization, blocker reporting.
  • Integration: mock provider returning broken responses per tier; assert correct failure classification per tier.
  • Live E2E: run the doctor against a real configured provider; verify the ledger file is updated and the summary line is accurate.

Reference

jcode (MIT, https://github.com/1jehuang/jcode) — design adopted; implementation is our own.

Activity

  1. added
    enhancement
    reliability
    on Oct 16, 2026
  2. ajianaz commented on Nov 3, 2026

    @ajianaz
    ContributorAuthor

    Verified SHIPPED against develop @ 3ec70f4: the feature exists in code (CHANGELOG entries + module/endpoint present — soft-interrupt queue in cancel.rs + POST /sessions/{id}/interrupt + MCP tool for #377, doctor-ledger.json for #378, per-turn usage_report for #379, sibling_watch for #380, tole_core::handoff + verify gate for #383). The acceptance checkboxes were never ticked even though the work shipped (known board-sync defect class). Closing with this evidence comment. Remaining gaps, if any, are tracked by follow-up issues instead.

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

    enhancementreliability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions