tests+docs: contract fixtures, Lean-backed acceptance suite and executed status
- document_contract: negative path coverage through the real CLI (selection, shape errors, formula unsupported/invalid, missing/external links, cycles, --unit, upstream static failure, root escape) with exit-code assertions - e2e: algebra, vector composition (declared == used), program model scope, refutation, export+replay, cache reuse, tampered payload rejection - report fixes: declared/used locator consistency, diagnostic-only exit status, unsupported vs invalid formula outcomes - clippy -D warnings and cargo fmt clean; docs/STATUS records pinned identities, executed commands, measured backend limits and known gaps
This commit is contained in:
1 parent
4e02da95a4
commit
bd7e46b208
46 files changed
+390180
-460
No files matched your search
@@ -51,6 +51,9 @@ capability.
|
||||
payload SHA-256. A cache hit is replayed, never trusted.
|
||||
* **CLI**: `check` and `replay` only. Exit codes: 0 all requested targets
|
||||
verified (or no target), 1 at least one not verified, 2 engineering failure.
|
||||
`--out` with exactly one requested target makes that directory the bundle;
|
||||
with several targets it writes one self-contained bundle directory per target
|
||||
under `PATH/<cache_key>/`.
|
||||
|
||||
## What it deliberately does not do
|
||||
|
||||
@@ -100,6 +103,12 @@ lake exe cache get
|
||||
lake build marqdo-replay
|
||||
```
|
||||
|
||||
The pinned backend needs real address space: on the recorded machine a low
|
||||
`RLIMIT_AS` fails during Mathlib loading (6 GiB and 9 GiB were measured failing,
|
||||
12 GiB succeeds), so Prove bounds Lean by wall-clock/CPU budgets instead of an
|
||||
address-space rlimit. This and the other measured limitations are recorded in
|
||||
[`docs/STATUS.md`](docs/STATUS.md).
|
||||
|
||||
`marqdo-prove` never downloads anything at runtime. It discovers the backend
|
||||
via `MARQDO_PROVE_LEAN_ROOT` (the `lean/` directory) and
|
||||
`MARQDO_PROVE_LEAN_BIN_DIR` (the toolchain `bin` directory); see
|
||||
@@ -120,14 +129,16 @@ cargo run --release -- replay examples/vector.mq.md /tmp/vector-proof
|
||||
|
||||
```sh
|
||||
cargo fmt --all -- --check
|
||||
cargo clippy --workspace --all-targets --locked -- -D warnings
|
||||
cargo test --workspace --locked
|
||||
cargo clippy --all-targets -- -D warnings
|
||||
cargo test
|
||||
|
||||
# Lean-backed acceptance tests (real CLI + pinned backend, ignored by default)
|
||||
MARQDO_BIN=/path/to/marqdo cargo test --test e2e -- --ignored --test-threads=1
|
||||
```
|
||||
|
||||
Real-CLI tests read `MARQDO_BIN`; they skip (and say so) when it is not set.
|
||||
Lean-backed end-to-end tests additionally require the backend above and are
|
||||
marked `#[ignore]` when they need large machinery; see `docs/STATUS.md` for the
|
||||
exact commands executed.
|
||||
Lean-backed end-to-end tests additionally require the backend above; see
|
||||
`docs/STATUS.md` for the exact commands executed and their observed output.
|
||||
|
||||
## Exit codes and output
|
||||
|
||||
|
||||
Reference in new issue
Block a user