From 609e4e6b269fac80ec4e5a251c71743c7c96d2a3 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 9 Nov 2026 03:09:18 -0700 Subject: [PATCH] build: pin bookspec at bc92cf3, settlements and the shares law bookspec main now carries X-H1b (settlements, recoveries, invoice numbers, vendor references and their examples; BS-arap-10 ignores hyphens as plan P4b S4 decided) and K-U3's law 42. The checker and the Lean move together (tests/bookspec/pin.rs): Lean 179 theorems, standard axioms only; 80 of 91 examples run and pass, the other 11 are for options wanderbooks did not pick. Co-Authored-By: Claude Opus 5.5 --- Cargo.lock | 4 ++-- crates/ledger-core/Cargo.toml | 4 ++-- crates/ledger-package/Cargo.toml | 2 +- verify/lean/lake-manifest.json | 4 ++-- verify/lean/lakefile.toml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ed5a3bfd..31d4bad4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -788,7 +788,7 @@ dependencies = [ [[package]] name = "bookspec-checker" version = "0.1.0" -source = "git+https://git.swaits.com/swaits/bookspec?rev=6e1b99d5da3aa56c6476b6951aaa739ae0af8d97#6e1b99d5da3aa56c6476b6951aaa739ae0af8d97" +source = "git+https://git.swaits.com/swaits/bookspec?rev=bc92cf3f69c392cefc9bd319b103994b3bfb0d76#bc92cf3f69c392cefc9bd319b103994b3bfb0d76" dependencies = [ "chrono", "include_dir", @@ -801,7 +801,7 @@ dependencies = [ [[package]] name = "bookspec-runner" version = "0.1.0" -source = "git+https://git.swaits.com/swaits/bookspec?rev=6e1b99d5da3aa56c6476b6951aaa739ae0af8d97#6e1b99d5da3aa56c6476b6951aaa739ae0af8d97" +source = "git+https://git.swaits.com/swaits/bookspec?rev=bc92cf3f69c392cefc9bd319b103994b3bfb0d76#bc92cf3f69c392cefc9bd319b103994b3bfb0d76" dependencies = [ "bookspec-checker", "serde_json", diff --git a/crates/ledger-core/Cargo.toml b/crates/ledger-core/Cargo.toml index c13b2e4c..52c43fb9 100644 --- a/crates/ledger-core/Cargo.toml +++ b/crates/ledger-core/Cargo.toml @@ -33,8 +33,8 @@ num-rational = "0.4" toml = "1" # The specification lives in its own repository (P13 step 6, D-34, D-65), # pinned to a commit. -bookspec-checker = { git = "https://git.swaits.com/swaits/bookspec", rev = "6e1b99d5da3aa56c6476b6951aaa739ae0af8d97" } -bookspec-runner = { git = "https://git.swaits.com/swaits/bookspec", rev = "6e1b99d5da3aa56c6476b6951aaa739ae0af8d97" } +bookspec-checker = { git = "https://git.swaits.com/swaits/bookspec", rev = "bc92cf3f69c392cefc9bd319b103994b3bfb0d76" } +bookspec-runner = { git = "https://git.swaits.com/swaits/bookspec", rev = "bc92cf3f69c392cefc9bd319b103994b3bfb0d76" } ledger-package = { path = "../ledger-package" } ledger-import = { path = "../ledger-import" } ledger-store = { path = "../ledger-store" } diff --git a/crates/ledger-package/Cargo.toml b/crates/ledger-package/Cargo.toml index 222dd469..7900b730 100644 --- a/crates/ledger-package/Cargo.toml +++ b/crates/ledger-package/Cargo.toml @@ -21,7 +21,7 @@ zip = "9.0.1" workspace = true [dev-dependencies] -bookspec-checker = { git = "https://git.swaits.com/swaits/bookspec", rev = "6e1b99d5da3aa56c6476b6951aaa739ae0af8d97" } +bookspec-checker = { git = "https://git.swaits.com/swaits/bookspec", rev = "bc92cf3f69c392cefc9bd319b103994b3bfb0d76" } proptest = "1" tempfile = "3" toml = "1" diff --git a/verify/lean/lake-manifest.json b/verify/lean/lake-manifest.json index 34933d5b..67758aee 100644 --- a/verify/lean/lake-manifest.json +++ b/verify/lean/lake-manifest.json @@ -5,10 +5,10 @@ "type": "git", "subDir": "lean", "scope": "", - "rev": "6e1b99d5da3aa56c6476b6951aaa739ae0af8d97", + "rev": "bc92cf3f69c392cefc9bd319b103994b3bfb0d76", "name": "bookspec", "manifestFile": "lake-manifest.json", - "inputRev": "6e1b99d5da3aa56c6476b6951aaa739ae0af8d97", + "inputRev": "bc92cf3f69c392cefc9bd319b103994b3bfb0d76", "inherited": false, "configFile": "lakefile.toml"}], "name": "wanderbooks", diff --git a/verify/lean/lakefile.toml b/verify/lean/lakefile.toml index 84073995..a8e66645 100644 --- a/verify/lean/lakefile.toml +++ b/verify/lean/lakefile.toml @@ -9,7 +9,7 @@ packagesDir = ".lake/packages" [[require]] name = "bookspec" git = "https://git.swaits.com/swaits/bookspec" -rev = "6e1b99d5da3aa56c6476b6951aaa739ae0af8d97" +rev = "bc92cf3f69c392cefc9bd319b103994b3bfb0d76" subDir = "lean" [[lean_lib]]