fix(just): oracle finds the pinned bookspec through cargo metadata
Review of S-K1: the recipe looked for cargo's checkout by the full 40-character rev, but cargo names the directory by its short rev, so just oracle could never succeed. cargo metadata gives the dependency's own manifest path, whatever the directory is called and however many checkouts there are; jq (now pinned in mise.toml, as every recipe's tool is) reads it. The error now says what to do when the pin predates the oracle's move. Three docs still named the deleted oracle/gnucash/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
10e6ccf899
commit
6b27560115
5 files changed
+16
-11
No files matched your search
@@ -46,7 +46,7 @@ the core depends on another crate of ours. UI concerns (formatting,
|
||||
locale, widgets) never leak into the core; the core speaks `Decimal` and
|
||||
ISO codes. A crate that was planned and never created is not missing:
|
||||
`ledger-export` became part of `ledger-import`; `ledger-oracle` is the
|
||||
test `crates/ledger-core/tests/oracle_gnucash.rs` with `oracle/gnucash/`
|
||||
test `crates/ledger-core/tests/oracle_gnucash.rs` with bookspec's `gnucash/oracle/`
|
||||
(`just oracle`); `ledger-view` and `ledger-extract` were closed by D-53
|
||||
(`PackageBooks` is the shared view; extraction is in-process in
|
||||
`ledger-import`, P6).
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ engine bugs that Layers 1–4 had all missed.
|
||||
|
||||
**Layer 5 — Cross-implementation diff harness (live: GnuCash).**
|
||||
`just oracle` builds GnuCash 5.10 in a pinned container
|
||||
(`oracle/gnucash/`) and runs `tests/oracle_gnucash.rs`: 200 random books
|
||||
(bookspec's `gnucash/oracle/`, built from the pinned rev) and runs `tests/oracle_gnucash.rs`: 200 random books
|
||||
built through wanderbooks (entries, foreign lines, reversals, closes),
|
||||
every account's balance at month ends and random dates, and each month's
|
||||
P&L, compared exactly (15,800 comparisons). Its first run found one real
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ promise.
|
||||
| Concurrency (store) | a viewer reading while the books are written sees only whole books, never a false "differs" (2) | `ledger-store/tests/concurrency.rs` | `just check` | <1s | every change |
|
||||
| Model-based stateful | the Lean state machine, transcribed (3) | `tests/model.rs` | `just check` | ~3s | every change |
|
||||
| Differential: Decimal vs i64 | the kernel at two types (3) | `kernel_bridge/` | `just check` | <1s | every change |
|
||||
| Differential: GnuCash | another implementation, adjudicated (3) | `tests/oracle_gnucash.rs`, `oracle/gnucash/` | `just oracle` | ~2 min | weekly |
|
||||
| Differential: GnuCash | another implementation, adjudicated (3) | `tests/oracle_gnucash.rs`, bookspec `gnucash/oracle/` | `just oracle` | ~2 min | weekly |
|
||||
| Formal proofs | Kani (bounded) and Lean (unbounded) | `src/proofs/`, `verify/lean/` | `just prove` (51 harnesses and Lean), `just prove-slow` (the 9 in the justfile's `kani_slow`, each under its own 30-minute cap); 60 harnesses in all with the checker canary (2026-10-28) | prove ~5 min and prove-slow ~8 min at four jobs on a quiet laptop (each ~25 min under heavy load; docs/verification.md, "Running it") | weekly (CI runs both) |
|
||||
| Fuzzing | crash, hang, broken books (4); for `fuzz_store_replay` (validly chained journals with fuzz-chosen events): books that open must verify, and the viewer must accept exactly what the writer does | `fuzz/fuzz_targets/`, corpora in `fuzz/corpus/` | `just fuzz <target> <secs>` | 10 min each | weekly |
|
||||
| Miri | undefined behavior in our use of dependencies (4) | the core's unit, bridge, invariant tests (the exhaustive calendar walk aside) | `just miri` | ~4 min | on demand |
|
||||
|
||||
Reference in new issue
Block a user