proof-aware-crypto-tooling-.../src/pacta
mrwulf a7cc3d2a5f warden re-audit (Fable 5): fix ledger race, quorum perf, small-order honesty
Correctness:
- ledger: single-flight fcntl lock over read-modify-append + fsync. Two
  concurrent writers previously could fork the hash chain (read same tail,
  same prev_hash). New test races 8 threads x6 appends; chain stays intact
  with contiguous indices.
- small-order list: the order-8 encodings were hand-typed and unverifiable
  and diverged from the canonical libsodium blocklist. A BOGUS entry is the
  only dangerous direction (it down-grades a real tamper to a note, skipping
  the latch), so the list is now the certain-low-order set only (y in
  {0,1,-1}, reduced/non-reduced, both sign bits); order-8 edges escalate to
  tamper until a derived list lands. Fail-safe asymmetry documented + tested.
- freshness: removed a tautological .

Non-functional:
- quorum members now run concurrently (ThreadPoolExecutor): a verify costs
  one member's latency, not the sum (~17ms for 4 members, live).
- Wallet.quorum() memoized per state_dir: binary swap-detection hashes run
  once at assembly, not on every verify; documented rationale.

85 tests green; live 4-fork wallet re-verified end-to-end.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 08:24:51 +02:00
..
profiles Estate sync: boundary-axiom vocabulary + the four-tier apex reality (R4) 2026-07-06 10:04:43 +02:00
__init__.py initial proof-aware tooling prototype 2026-07-03 10:51:03 +02:00
__main__.py initial proof-aware tooling prototype 2026-07-03 10:51:03 +02:00
agent.py add policy-gated agent consequences 2026-07-03 11:05:06 +02:00
artifact.py add transparency log trust provider 2026-07-03 14:09:34 +02:00
attestation.py Dogfood cryptography: pacta verifies signatures through the PROVEN code path 2026-07-06 10:13:48 +02:00
audit.py initial proof-aware tooling prototype 2026-07-03 10:51:03 +02:00
claims.py Estate sync: boundary-axiom vocabulary + the four-tier apex reality (R4) 2026-07-06 10:04:43 +02:00
cli.py cli: import json (wallet status/card JSON output); verified full CLI + MCP stdio path 2026-07-06 23:47:55 +02:00
config.py Machine protection: route all pacta Lean compiles through lean-guard 2026-07-06 10:42:59 +02:00
custodycard.py warden agent-native surfaces: MCP server, self-proving custody card, proof-of-posture 2026-07-06 23:35:47 +02:00
dogfood.py The provider eats its own dogfood: root signatures via the merkleized library 2026-07-06 15:21:17 +02:00
lean.py Fix the two defects the first REAL provider run exposed (and honestly signed) 2026-07-06 12:51:59 +02:00
logclient.py The log goes public: git-published mirror, online service, witnesses 2026-07-06 16:05:20 +02:00
manifest.py initial proof-aware tooling prototype 2026-07-03 10:51:03 +02:00
postquantum.py add transparency log trust provider 2026-07-03 14:09:34 +02:00
quorum.py warden re-audit (Fable 5): fix ledger race, quorum perf, small-order honesty 2026-07-07 08:24:51 +02:00
repo.py Machine protection: route all pacta Lean compiles through lean-guard 2026-07-06 10:42:59 +02:00
report.py add verifier bootstrap and attestation lane 2026-07-03 11:24:13 +02:00
risk.py Estate sync: boundary-axiom vocabulary + the four-tier apex reality (R4) 2026-07-06 10:04:43 +02:00
signing.py The provider eats its own dogfood: root signatures via the merkleized library 2026-07-06 15:21:17 +02:00
sthstore.py REAL EVIDENCE: guarded replay of all four repos, attested, logged, dogfooded 2026-07-06 14:54:48 +02:00
transparency.py The provider eats its own dogfood: root signatures via the merkleized library 2026-07-06 15:21:17 +02:00
wallet.py warden re-audit (Fable 5): fix ledger race, quorum perf, small-order honesty 2026-07-07 08:24:51 +02:00
walletmcp.py warden agent-native surfaces: MCP server, self-proving custody card, proof-of-posture 2026-07-06 23:35:47 +02:00
witness.py The log goes public: git-published mirror, online service, witnesses 2026-07-06 16:05:20 +02:00
yamlio.py initial proof-aware tooling prototype 2026-07-03 10:51:03 +02:00