Skip to content

ArghDA M0 complete: arghda doctor — honest backend availability probe#37

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/arghda-roadmap-planning-p5mu93
Jul 1, 2026
Merged

ArghDA M0 complete: arghda doctor — honest backend availability probe#37
hyperpolymath merged 1 commit into
mainfrom
claude/arghda-roadmap-planning-p5mu93

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

What & why

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.

Changes

  • src/prover/mod.rsProbe { 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}.rscommand() for each of the five backends.
  • src/main.rsdoctor [--json] subcommand over KNOWN_BACKENDS.
  • Justfilejust doctor repointed off the interim provision-script shim onto cargo run -- doctor.

Verified (ran, not inferred)

  • cargo test108 passing, 0 failed (+1 probe/command honesty unit).
  • cargo clippy -D warnings clean · cargo fmt --check clean · check-spdx.sh OK.
  • Dogfooded arghda doctor5/5 runnable, real version lines:
    [OK] agda          assistant  Agda version 2.6.3
    [OK] agda-cubical  assistant  Agda version 2.6.3
    [OK] idris2        assistant  Idris 2, version 0.7.0
    [OK] z3            solver     Z3 version 4.8.12 - 64 bit
    [OK] cvc5          solver     This is cvc5 version 1.2.0 …
    
    --json emits 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 — doctor output feeds it).


Generated by Claude Code

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
hyperpolymath marked this pull request as ready for review July 1, 2026 09:18
@hyperpolymath
hyperpolymath merged commit 25e38ba into main Jul 1, 2026
1 check passed
@hyperpolymath
hyperpolymath deleted the claude/arghda-roadmap-planning-p5mu93 branch July 1, 2026 09:18
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