Skip to content

feat(cli): tole doctor — offline and catalog tiers (#378, 1/3) - #388

Merged
ajianaz merged 5 commits into
developfrom
feat/provider-doctor
Oct 16, 2026
Merged

ajianaz merged 5 commits into
developfrom
feat/provider-doctor

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What

New tole doctor command, part 1 of 3: the offline and catalog tiers with the CLI wiring. The full tier and the coverage ledger follow in separate PRs so each Cora review stays under its 10-minute limit (three attempts on the combined diff timed out).

Why

#378. Release validation needs a machine-checkable gate; today provider problems surface mid-mission.

Changes

  • doctor.rs (new): offline (config resolves, base URL shape, key present; names exactly which env vars are missing) and catalog (live /models; the configured model must be served). Cumulative, stops at the first blocker, which carries the fix command.
  • API key and URL credentials (userinfo, query, fragment) are stripped from every diagnostic string.
  • main.rs: tole doctor [--tier offline|catalog]; non-zero exit when the requested tier is not reached.
  • README (Provider doctor), CHANGELOG.

Testing

  • 8 unit tests against a scripted local server: missing vars, canonical TOLE_* default, bad URL, unserved model, unreachable host, redaction, tier parsing.
  • fmt, clippy -D warnings, cargo test --workspace pass; cora review --staged clean.
  • No live run against a real provider: none is configured in this environment.

Refs #378

Comment thread crates/tole-cli/src/doctor.rs Dismissed
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz ajianaz changed the title feat(cli): tole doctor — tiered provider diagnostics with a coverage ledger (#378) feat(cli): tole doctor — offline and catalog tiers (#378, 1/3) Oct 16, 2026
@ajianaz
ajianaz merged commit bb12e20 into develop Oct 16, 2026
20 checks passed
@ajianaz
ajianaz deleted the feat/provider-doctor branch October 16, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants