docs: record final executed acceptance evidence
- 9 Lean-backed acceptance tests pass (213.78 s) - unknown/stale-bundle outcomes and real transcript added - final fast gate results (lib 69, analysis 3, formula 12, document 11)
This commit is contained in:
1 parent
6be7ab6df8
commit
47e46320cc
2 files changed
+42
-6
No files matched your search
+30
-3
@@ -10,7 +10,7 @@ the target design.
|
||||
| Item | Value |
|
||||
| --- | --- |
|
||||
| Repository | `marqdo-prove` (this tree) |
|
||||
| Commit at evidence time | `4e02da9` + reporting/tests working tree (see `git log`) |
|
||||
| Commit at evidence time | see `git log` on this tree (the status file is updated in the same commit as the evidence) |
|
||||
| Prove version | `0.1.0` |
|
||||
| Tool manifest | `tool.json`: `requires.api_revision: 1`, `requires.analysis: 3` |
|
||||
| Platform | Linux x86_64, 8 vCPU, 14 GiB RAM, no network during checks |
|
||||
@@ -85,9 +85,12 @@ Observed results (wall clock, warm filesystem, debug build of Prove):
|
||||
| `check examples/vector.mq.md --out DIR` then `replay examples/vector.mq.md DIR` | export contains `manifest.json` + `proof.ndjson`; replay `verified`/`current`, no search, exit 0 |
|
||||
| repeated `check examples/algebra.mq.md` | same content-addressed cache key; hit is replayed, not trusted, `freshness=current` |
|
||||
| tampered `proof.ndjson` then `replay` | rejected with exit 2 (`certificate.invalid`), no `verified` |
|
||||
| `check tests/fixtures/unknown.mq.md` (`a^2+b^2 ≥ 2ab`) | `unknown`, exit 1 — search exhausted, no refutation invented |
|
||||
| exported bundle, then a prose-only edit in a dependency, then `replay` | `certificate.stale`, exit 1, no `verified` |
|
||||
| `marqdo tool install tool-bundle/tool.json` then `marqdo prove --version` and `marqdo prove check examples/algebra.mq.md --json` | installed tool dispatches through the real CLI Tool Protocol (`api_revision 1`), version `marqdo-prove 0.1.0`, target `verified` (cache hit, ~10 s) |
|
||||
|
||||
Run as `cargo test --test e2e -- --ignored --test-threads=1` (requires
|
||||
`MARQDO_BIN` and the fixed backend): **7 passed, 0 failed, 166.77 s**.
|
||||
`MARQDO_BIN` and the fixed backend): **9 passed, 0 failed, 213.78 s**.
|
||||
|
||||
## Executed test suite
|
||||
|
||||
@@ -103,7 +106,30 @@ cargo test # see counts below
|
||||
| `tests/analysis_document.rs` (real CLI, entry extraction) | 3 passed |
|
||||
| `tests/formula_contract.rs` (grammar, precedence, bounds, diagnostics, rendering, evaluation) | 12 passed |
|
||||
| `tests/document_contract.rs` (no-target, shape errors, unsupported/invalid formulas, missing/external links, cycles, `--unit`, upstream static failure, root escape) | 11 passed |
|
||||
| `tests/e2e.rs` (Lean-backed, `#[ignore]`) | 7 passed, 166.77 s |
|
||||
| `tests/e2e.rs` (Lean-backed, `#[ignore]`) | 9 passed, 213.78 s |
|
||||
|
||||
## Tool installation evidence
|
||||
|
||||
`scripts/package-tool.sh` assembled a bundle (`bin/marqdo-prove`, `tool.json`,
|
||||
pinned `lean/` project). The real upstream CLI accepted it:
|
||||
|
||||
```text
|
||||
$ marqdo tool install .tmp/tool-bundle/tool.json
|
||||
installed tool `prove` version 0.1.0 (marqdo.prove)
|
||||
$ marqdo tool list
|
||||
prove 0.1.0 (marqdo.prove)
|
||||
$ marqdo prove --version
|
||||
marqdo-prove 0.1.0
|
||||
$ marqdo prove check examples/algebra.mq.md --json
|
||||
... "outcome":"verified" ... (exit 0)
|
||||
```
|
||||
|
||||
The bundle does not ship the multi-gigabyte Lean toolchain/Mathlib build; the
|
||||
installed executable finds the pinned backend through
|
||||
`MARQDO_PROVE_LEAN_ROOT` / `MARQDO_PROVE_LEAN_BIN_DIR` (release packaging note,
|
||||
not a hidden fallback). The clean-machine install gate (I01–I03) therefore has
|
||||
partial evidence: protocol installation and dispatch were executed; a machine
|
||||
without the pinned backend build fails closed with `backend.unavailable`.
|
||||
|
||||
## Verified behaviours (with fixtures)
|
||||
|
||||
@@ -118,6 +144,7 @@ cargo test # see counts below
|
||||
- `--root` outside the entry → `link.outside_root`, exit 2;
|
||||
- program model with unsupported constructs (`/`, loops, branches, calls, non-Int params, defaults) → `model.unsupported` before any Lean search;
|
||||
- `refuted` only after Lean kernel-verified `¬expected` (bounded witness candidates: 0, ±1, ±2, ±3, ±5, ±10, ≤16 trials);
|
||||
- goals outside the fixed strategy → `unknown`, exit 1, never `refuted` without a proven negation;
|
||||
- `--out` with multiple requested targets writes one self-contained bundle
|
||||
directory per target under `PATH/<cache_key>/`; with one target `PATH` is the
|
||||
bundle directory itself.
|
||||
|
||||
+12
-3
@@ -228,7 +228,8 @@ fn stale_bundle_is_rejected_after_a_source_change() {
|
||||
let project = directory.join("project");
|
||||
std::fs::create_dir_all(&project).expect("project dir");
|
||||
for file in ["algebra.mq.md", "vector.mq.md"] {
|
||||
std::fs::copy(repo().join("examples").join(file), project.join(file)).expect("copy fixture");
|
||||
std::fs::copy(repo().join("examples").join(file), project.join(file))
|
||||
.expect("copy fixture");
|
||||
}
|
||||
let entry = project.join("vector.mq.md");
|
||||
let bundle = directory.join("bundle");
|
||||
@@ -239,7 +240,10 @@ fn stale_bundle_is_rejected_after_a_source_change() {
|
||||
let algebra = std::fs::read_to_string(project.join("algebra.mq.md")).expect("read");
|
||||
std::fs::write(
|
||||
project.join("algebra.mq.md"),
|
||||
algebra.replace("任意整数的平方均非负。", "任意整数的平方均非负(解释性修改)。"),
|
||||
algebra.replace(
|
||||
"任意整数的平方均非负。",
|
||||
"任意整数的平方均非负(解释性修改)。",
|
||||
),
|
||||
)
|
||||
.expect("edit");
|
||||
let output = Command::new(env!("CARGO_BIN_EXE_marqdo-prove"))
|
||||
@@ -253,7 +257,12 @@ fn stale_bundle_is_rejected_after_a_source_change() {
|
||||
.env("MARQDO_PROVE_LEAN_ROOT", repo().join("lean"))
|
||||
.output()
|
||||
.expect("run replay");
|
||||
assert_eq!(output.status.code(), Some(1), "{}", String::from_utf8_lossy(&output.stderr));
|
||||
assert_eq!(
|
||||
output.status.code(),
|
||||
Some(1),
|
||||
"{}",
|
||||
String::from_utf8_lossy(&output.stderr)
|
||||
);
|
||||
let report: Value =
|
||||
serde_json::from_str(String::from_utf8_lossy(&output.stdout).trim()).expect("json");
|
||||
let diagnostics = report["diagnostics"].as_array().expect("diagnostics");
|
||||
|
||||
Reference in new issue
Block a user