ArghDA M0 complete: arghda doctor — honest backend availability probe#37
Merged
Merged
Conversation
Closes the last M0 gap. `arghda doctor` probes every known backend by
running `<command> --version` and reports which are actually runnable —
honestly (runnable=false only when the binary genuinely cannot execute,
never a guess), the same discipline as `check_file`'s graceful degradation.
- `src/prover/mod.rs` — `Probe { backend, kind, runnable, detail }` +
`probe_tool()`; `Backend::command()` (the binary, which may differ from
`name()` — `agda-cubical` runs `agda`) + a default `Backend::probe()`.
- `src/prover/{agda,idris2,smt}.rs` — `command()` for each of the five.
- `src/main.rs` — `doctor [--json]` subcommand over `KNOWN_BACKENDS`.
- `Justfile` — `just doctor` repointed off the interim provision-script shim
onto `cargo run -- doctor`.
## Verified (ran, not inferred)
- `cargo test` → 108 passing, 0 failed (+1 probe/command honesty unit).
- clippy -D warnings, fmt, SPDX clean.
- Dogfooded: `arghda doctor` → 5/5 runnable (agda 2.6.3, agda-cubical [shares
agda], idris2 0.7.0, z3 4.8.12, cvc5 1.2.0), real version lines; `--json`
emits the machine-readable form.
- STATE.a2ml records M0 = 100%. Engine-spine core (M0-M5) complete.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MpYSh6Wy8YMBH2E3qVyT7
hyperpolymath
marked this pull request as ready for review
July 1, 2026 09:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Closes the last M0 gap.
arghda doctorprobes every known backend by running<command> --versionand reports which are actually runnable — honestly (runnable=false only when the binary genuinely cannot execute, never a guess), the same discipline ascheck_file's graceful degradation.Changes
src/prover/mod.rs—Probe { backend, kind, runnable, detail }+probe_tool();Backend::command()(the binary, which may differ fromname()—agda-cubicalrunsagda) + a defaultBackend::probe().src/prover/{agda,idris2,smt}.rs—command()for each of the five backends.src/main.rs—doctor [--json]subcommand overKNOWN_BACKENDS.Justfile—just doctorrepointed off the interim provision-script shim ontocargo run -- doctor.Verified (ran, not inferred)
cargo test→ 108 passing, 0 failed (+1 probe/command honesty unit).cargo clippy -D warningsclean ·cargo fmt --checkclean ·check-spdx.shOK.arghda doctor→ 5/5 runnable, real version lines:--jsonemits the machine-readable form.Milestone status
Engine-spine core (M0–M5) complete. Five backends across both interaction models, the Flying-Logic reasoning graph, and now a discovery command. Next: M6 (Lean4), M11 (studio JSON freeze + Groove manifest —
doctoroutput feeds it).Generated by Claude Code