proof-aware-crypto-tooling-.../src/pacta
mrwulf 65772b3d2e warden hardening round: policy engine, ledger rotation, MCP UX, treasury LIVE, ops docs
Tier 2:
- request_signature decomposed into named gates (latch, freshness,
  intent, policy, signer, firewall)
- ledger: O(1) tail-read appends under a dedicated lock file (survives
  rotation rename); hash-chained segment rotation at policy
  ledger.rotate_at; verify-ledger walks all segments to genesis;
  archive tampering detected (tested)
- docs/threat-model.md (attacker matrix 1-9, proven-vs-trusted, design
  invariants) + docs/runbook-latch.md (diagnose-first recovery)
- lecture 10: executable corrupt-a-member exercise (capsule pin catches
  one appended byte), honest note on what the pin does NOT stop

Lightweight policy engine (POLICY_DENIED wired):
- policy.json: per-request/per-day amount ceilings, counterparty
  allow/deny lists, per-identity overrides; rules make their intent
  fields mandatory; daily sums from the ledger
-

Agent UX:
- signed refusal receipts travel inside MCP errors (receipt +
  receipt_path in structuredContent)
- airgap over MCP: request_signature signer=airgap + request_id,
  new airgap_pending tool; park -> list -> device answers -> complete
  (tested end-to-end)
- all 8 tools carry readOnly/destructive annotations
- sliding-window rate limiter per tool class (custody/verify/liveness);
  RATE_LIMITED refusal code; surface control, not ledgered

warden-treasury LIVE:
- treasury.py: stdlib base58, compact-u16, legacy+v0 wire parsing;
  every required signature quorum-verified over exact message bytes;
  completeness gap named in every verdict; RPC fetch uses response as
  bytes only
-
- live-quorum test: synthetic Solana tx signed with wallet key ->
  authentic via 4 proven forks; flipped byte -> not authentic

100 tests green (was 85).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 13:38:42 +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 warden hardening round: policy engine, ledger rotation, MCP UX, treasury LIVE, ops docs 2026-07-07 13:38:42 +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
treasury.py warden hardening round: policy engine, ledger rotation, MCP UX, treasury LIVE, ops docs 2026-07-07 13:38:42 +02:00
wallet.py warden hardening round: policy engine, ledger rotation, MCP UX, treasury LIVE, ops docs 2026-07-07 13:38:42 +02:00
walletmcp.py warden hardening round: policy engine, ledger rotation, MCP UX, treasury LIVE, ops docs 2026-07-07 13:38:42 +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