test(miner): lock in doctor four-state coding-agent CLI matrix (#5195)#5360
Conversation
| \nSuperagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-12 15:02:12 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 5 non-blocking
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5360 +/- ##
==========================================
- Coverage 94.40% 94.36% -0.04%
==========================================
Files 550 550
Lines 44119 44119
Branches 14632 14632
==========================================
- Hits 41652 41635 -17
- Misses 1792 1809 +17
Partials 675 675
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Closes #5195
Summary
Adds a dedicated
#5195regression block totest/unit/miner-cli-doctor-checks.test.tsthat locks in the four-state behavior introduced by #5165 (provider-gated CLI presence) and #5166 (codex auth remediation wording). Test-only PR — no changes topackages/gittensory-miner/lib/laptop-init.js.The parent gating PR landed partial coverage under the
#5165describe block; this PR adds the explicit 4×2 matrix plus an invariant so reviewers can trust doctor distinguishes “not installed, nobody cares” from “configured but missing, every attempt will fail.”Changes
test/unit/miner-cli-doctor-checks.test.tsfour-state coding-agent CLI matrix (#5195)describe: 8 parameterized cases + invariantFour-state matrix (shipped behavior)
MINER_CODING_AGENT_PROVIDERoktruetruefalsetrueNote: Issue text originally described state (d) as
ok: false; merged #5165/#5166 keepok: truewhen the CLI binary is present but credentials are missing — only absence is a hard doctor failure. Tests assert the shipped strings and booleans.All cases inject
MINER_CODING_AGENT_PROVIDERvia the existingoptions.envpattern (no globalprocess.envmutation).Test plan
okand exactdetailstrings (claude + codex × 4 states)ok: falseonly when the matching configured provider's CLI is absent; alwaysok: truefor unconfigured/different-provider checks and for present-but-unauthenticated CLIsnpx vitest run test/unit/miner-cli-doctor-checks.test.tsnpm run test:ciDependencies
MINER_CODING_AGENT_PROVIDER-aware gating (merged)Notes
help wanted,gittensor:feature— confirm contributor eligibility before opening.packages/gittensory-miner/**is outside Codecov patch scope until #4864; this PR only touchestest/**.