Skip to content

feat(corpus): wire all 17 adapters into the CLI dispatcher - #418

Merged
hyperpolymath merged 3 commits into
mainfrom
arena/4cfe4690-echidna
Oct 9, 2026
Merged

hyperpolymath merged 3 commits into
mainfrom
arena/4cfe4690-echidna

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

`echidna corpus ingest --adapter` only dispatched `agda, coq, lean, idris2`, although `src/rust/corpus/` ships 17 ingest adapters. This wires the remaining 13 into the match in `src/rust/main.rs`:

acl2_books, dafny, fstar, hol4, hol_light, isabelle, metamath, minif2f, mizar, proofnet, smtlib, tptp, why3

The unknown-adapter error and the `--adapter` help text now list all 17.

Tests

New `tests/corpus_cli_dispatch.rs`:

  • every advertised adapter name reaches its adapter (no "Unknown corpus adapter" fallthrough)
  • an unknown name exits non-zero and lists the supported set

Notes

  • Compile oracle is CI `rust-ci`; cargo is not available in the authoring sandbox, so this has not been built locally.
  • Previously merged PR Feat/corpus dispatcher all 17 adapters #336 (same subject) only changed one line in `main.rs`, so this PR is the substantive change.

`echidna corpus ingest --adapter` only dispatched agda, coq, lean and
idris2, although src/rust/corpus/ ships 17 ingest adapters. Add the
remaining 13 (acl2_books, dafny, fstar, hol4, hol_light, isabelle,
metamath, minif2f, mizar, proofnet, smtlib, tptp, why3) to the match,
list all 17 in the unknown-adapter error and the --adapter help text.

Adds tests/corpus_cli_dispatch.rs: every advertised name must reach its
adapter (no "Unknown corpus adapter" fallthrough), and an unknown name
must exit non-zero listing the supported set.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 3b8094c7-b888-4ff8-ae5a-d27fd6b34857

📥 Commits

Reviewing files that changed from the base of the PR and between d8ca3dc and 450d03c.


📒 Files selected for processing (2)
  • src/rust/main.rs
  • tests/corpus_cli_dispatch.rs


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hyperpolymath
hyperpolymath enabled auto-merge (squash) October 9, 2026 19:11
@hyperpolymath
hyperpolymath disabled auto-merge October 9, 2026 19:12
@hyperpolymath
hyperpolymath merged commit 7fd369d into main Oct 9, 2026
40 of 45 checks passed
@hyperpolymath
hyperpolymath deleted the arena/4cfe4690-echidna branch October 9, 2026 19:14
hyperpolymath pushed a commit that referenced this pull request Oct 9, 2026
rust-ci's `cargo fmt --check` failed on #418 (main 7fd369d). Two layout
spots did not match rustfmt output:

- the SUPPORTED array: rustfmt packs literal arrays into mixed rows;
  use a single whitespace-separated string constant instead, iterated
  with split_whitespace();
- an assert! whose argument list exceeds fn_call_width (60): split it
  vertically.

No behaviour change.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
hyperpolymath added a commit that referenced this pull request Oct 9, 2026
…#418) (#425)

## Summary

Follow-up to #418 (merged). Its \`Rust CI\` run on \`main\` (7fd369d)
failed at **Cargo fmt**; Cargo check passed, clippy was skipped.

This PR changes only \`tests/corpus_cli_dispatch.rs\` layout to match
rustfmt:
- \`SUPPORTED\` becomes a whitespace-separated string constant (rustfmt
packs literal arrays into mixed rows)
- one \`assert!\` whose arguments exceed \`fn_call_width\` is split
vertically

No behaviour change.

## Notes

- Job logs were unavailable from the sandbox (blob download EOF), so the
fmt diagnosis comes from the per-step result (\`Cargo fmt\` = failure,
\`Cargo check\` = success) plus a manual check against rustfmt rules.
rustfmt itself could not be run here (crates.io and static.rust-lang.org
are not reachable).
- Clippy and the test job have not run on this code yet; they are gated
behind fmt in the same job, so CI is the next check.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
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