proofbundle 1.9.2__tar.gz → 2.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. {proofbundle-1.9.2/src/proofbundle.egg-info → proofbundle-2.0.0}/PKG-INFO +108 -33
  2. proofbundle-2.0.0/README.md +223 -0
  3. {proofbundle-1.9.2 → proofbundle-2.0.0}/pyproject.toml +17 -1
  4. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/__init__.py +7 -1
  5. proofbundle-2.0.0/src/proofbundle/anchors.py +194 -0
  6. proofbundle-2.0.0/src/proofbundle/anchors_chia.py +196 -0
  7. proofbundle-2.0.0/src/proofbundle/anchors_chia_add.py +154 -0
  8. proofbundle-2.0.0/src/proofbundle/anchors_markovian.py +121 -0
  9. proofbundle-2.0.0/src/proofbundle/anchors_ots.py +91 -0
  10. proofbundle-2.0.0/src/proofbundle/anchors_rfc3161.py +90 -0
  11. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/bundle.py +33 -12
  12. proofbundle-2.0.0/src/proofbundle/cli.py +890 -0
  13. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/evalclaim.py +7 -0
  14. proofbundle-2.0.0/src/proofbundle/experimental/__init__.py +28 -0
  15. proofbundle-2.0.0/src/proofbundle/experimental/enclave.py +196 -0
  16. proofbundle-2.0.0/src/proofbundle/intoto.py +468 -0
  17. proofbundle-2.0.0/src/proofbundle/policy.py +300 -0
  18. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/statuslist.py +6 -2
  19. {proofbundle-1.9.2 → proofbundle-2.0.0/src/proofbundle.egg-info}/PKG-INFO +108 -33
  20. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle.egg-info/SOURCES.txt +28 -1
  21. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle.egg-info/requires.txt +9 -0
  22. proofbundle-2.0.0/tests/test_anchors_chia.py +222 -0
  23. proofbundle-2.0.0/tests/test_anchors_chia_add.py +168 -0
  24. proofbundle-2.0.0/tests/test_anchors_chia_claims.py +116 -0
  25. proofbundle-2.0.0/tests/test_anchors_generic.py +111 -0
  26. proofbundle-2.0.0/tests/test_anchors_markovian.py +151 -0
  27. proofbundle-2.0.0/tests/test_anchors_ots.py +122 -0
  28. proofbundle-2.0.0/tests/test_anchors_rfc3161.py +115 -0
  29. proofbundle-2.0.0/tests/test_branch_base_check.py +68 -0
  30. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_bundle_robustness.py +38 -2
  31. proofbundle-2.0.0/tests/test_cli.py +182 -0
  32. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_docs_truth.py +28 -0
  33. proofbundle-2.0.0/tests/test_experimental_enclave.py +207 -0
  34. proofbundle-2.0.0/tests/test_fork_pr_secret_isolation.py +283 -0
  35. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_fuzz_parsers.py +7 -0
  36. proofbundle-2.0.0/tests/test_intoto_claims_hygiene.py +57 -0
  37. proofbundle-2.0.0/tests/test_intoto_eval_result.py +172 -0
  38. proofbundle-2.0.0/tests/test_intoto_examples.py +86 -0
  39. proofbundle-2.0.0/tests/test_intoto_spec_diff.py +38 -0
  40. proofbundle-2.0.0/tests/test_intoto_svr.py +137 -0
  41. proofbundle-2.0.0/tests/test_ok_semantics.py +368 -0
  42. proofbundle-2.0.0/tests/test_trust_policy.py +456 -0
  43. proofbundle-2.0.0/tests/test_verify_matrix.py +86 -0
  44. proofbundle-1.9.2/README.md +0 -154
  45. proofbundle-1.9.2/src/proofbundle/cli.py +0 -398
  46. proofbundle-1.9.2/src/proofbundle/intoto.py +0 -182
  47. proofbundle-1.9.2/tests/test_cli.py +0 -91
  48. {proofbundle-1.9.2 → proofbundle-2.0.0}/LICENSE +0 -0
  49. {proofbundle-1.9.2 → proofbundle-2.0.0}/setup.cfg +0 -0
  50. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/_inspect_registry.py +0 -0
  51. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/_integration.py +0 -0
  52. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/adapters/__init__.py +0 -0
  53. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/adapters/_provenance.py +0 -0
  54. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/adapters/eee.py +0 -0
  55. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/adapters/inspect_ai.py +0 -0
  56. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/adapters/lm_eval.py +0 -0
  57. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/adapters/promptfoo.py +0 -0
  58. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/adapters/samples.py +0 -0
  59. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/beacon.py +0 -0
  60. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/checkpoint.py +0 -0
  61. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/demo.py +0 -0
  62. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/dsse.py +0 -0
  63. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/eee_eval_schema.json +0 -0
  64. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/emit.py +0 -0
  65. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/errors.py +0 -0
  66. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/hf_evals.py +0 -0
  67. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/inspect_hook.py +0 -0
  68. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/kbjwt.py +0 -0
  69. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/merkle.py +0 -0
  70. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/persample.py +0 -0
  71. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/prereg.py +0 -0
  72. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/py.typed +0 -0
  73. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/pytest_plugin.py +0 -0
  74. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/sdjwt.py +0 -0
  75. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/sdjwt_issue.py +0 -0
  76. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/signature.py +0 -0
  77. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle/tlogproof.py +0 -0
  78. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle.egg-info/dependency_links.txt +0 -0
  79. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle.egg-info/entry_points.txt +0 -0
  80. {proofbundle-1.9.2 → proofbundle-2.0.0}/src/proofbundle.egg-info/top_level.txt +0 -0
  81. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_adapters.py +0 -0
  82. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_adversarial.py +0 -0
  83. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_beacon.py +0 -0
  84. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_bundle.py +0 -0
  85. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_checkpoint.py +0 -0
  86. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_claims_hygiene.py +0 -0
  87. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_cli_eval.py +0 -0
  88. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_cosignature.py +0 -0
  89. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_cosignature_mldsa.py +0 -0
  90. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_demo.py +0 -0
  91. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_eee.py +0 -0
  92. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_emit.py +0 -0
  93. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_eval_claim_schema.py +0 -0
  94. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_evalclaim.py +0 -0
  95. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_examples.py +0 -0
  96. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_hf_evals.py +0 -0
  97. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_inspect_hook.py +0 -0
  98. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_intoto.py +0 -0
  99. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_intoto_dsse.py +0 -0
  100. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_kbjwt.py +0 -0
  101. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_merkle.py +0 -0
  102. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_merkle_property.py +0 -0
  103. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_persample.py +0 -0
  104. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_prereg.py +0 -0
  105. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_promptfoo.py +0 -0
  106. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_provenance.py +0 -0
  107. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_pytest_plugin.py +0 -0
  108. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_rekor_interop.py +0 -0
  109. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_rfc6962_external_vectors.py +0 -0
  110. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_schema.py +0 -0
  111. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_sdjwt_issue.py +0 -0
  112. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_sdjwt_reference.py +0 -0
  113. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_signature.py +0 -0
  114. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_statuslist.py +0 -0
  115. {proofbundle-1.9.2 → proofbundle-2.0.0}/tests/test_tlogproof.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: proofbundle
3
- Version: 1.9.2
3
+ Version: 2.0.0
4
4
  Summary: Emit and verify portable cryptographic evidence bundles, offline: Ed25519 + RFC 6962 Merkle + optional SD-JWT.
5
5
  Author: Konrad Gruszka
6
6
  License: MIT
@@ -27,7 +27,13 @@ Requires-Dist: cryptography>=42
27
27
  Provides-Extra: sdjwt
28
28
  Provides-Extra: eval
29
29
  Requires-Dist: rfc8785>=0.1.4; extra == "eval"
30
+ Provides-Extra: anchors
31
+ Requires-Dist: rfc3161-client>=1.0.6; extra == "anchors"
32
+ Requires-Dist: opentimestamps>=0.4.5; extra == "anchors"
33
+ Requires-Dist: rfc8785>=0.1.4; extra == "anchors"
30
34
  Provides-Extra: adapters
35
+ Provides-Extra: chia
36
+ Provides-Extra: experimental
31
37
  Provides-Extra: pq
32
38
  Requires-Dist: cryptography>=48; extra == "pq"
33
39
  Provides-Extra: pytest
@@ -49,8 +55,8 @@ Dynamic: license-file
49
55
  <div align="center">
50
56
 
51
57
  <picture>
52
- <source media="(prefers-color-scheme: dark)" srcset="assets/b7n0de-logo-dark.svg">
53
- <img alt="b7n0de, Verified AI Work" src="assets/b7n0de-logo.svg" height="60">
58
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/b7n0de/proofbundle/main/assets/b7n0de-logo-dark.svg">
59
+ <img alt="b7n0de, Verified AI Work" src="https://raw.githubusercontent.com/b7n0de/proofbundle/main/assets/b7n0de-logo.svg" height="60">
54
60
  </picture>
55
61
 
56
62
  <h1>proofbundle</h1>
@@ -62,13 +68,29 @@ these exact bytes* and *that nothing changed since* — not that the number is t
62
68
  Merkle, one file, no server, no network.
63
69
 
64
70
  [![CI](https://github.com/b7n0de/proofbundle/actions/workflows/ci.yml/badge.svg)](https://github.com/b7n0de/proofbundle/actions/workflows/ci.yml)
65
- [![License: MIT](https://img.shields.io/badge/license-MIT-D6248A.svg)](LICENSE)
71
+ [![demo reproducible](https://github.com/b7n0de/proofbundle/actions/workflows/demo-reproducible.yml/badge.svg)](https://github.com/b7n0de/proofbundle/actions/workflows/demo-reproducible.yml)
72
+ [![PyPI](https://img.shields.io/pypi/v/proofbundle.svg)](https://pypi.org/project/proofbundle/)
73
+ [![Python](https://img.shields.io/pypi/pyversions/proofbundle.svg)](https://pypi.org/project/proofbundle/)
74
+ [![License: MIT](https://img.shields.io/badge/license-MIT-D6248A.svg)](https://github.com/b7n0de/proofbundle/blob/main/LICENSE)
75
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.21230467.svg)](https://doi.org/10.5281/zenodo.21230467)
66
76
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
67
- [![Mutation tested](https://img.shields.io/badge/tests-mutation_gated-D6248A.svg)](scripts/mutation_check.py)
68
- <!-- PyPI / Downloads / SLSA / PEP 740 badges are enabled on the first PyPI release see RELEASE.md. -->
77
+ [![Mutation tested](https://img.shields.io/badge/tests-mutation_gated-D6248A.svg)](https://github.com/b7n0de/proofbundle/blob/main/scripts/mutation_check.py)
78
+ <!-- SLSA / PEP 740 attestation badges follow once the first attested release lands, see RELEASE.md. -->
79
+
80
+ **Reviewing this for adoption?** Start with the 30-minute adversarial audit path: **[docs/REVIEWERS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/REVIEWERS.md)**.
69
81
 
70
82
  </div>
71
83
 
84
+ ## 60-second try (offline)
85
+
86
+ ```bash
87
+ pip install "proofbundle[eval]"
88
+ proofbundle demo # honest receipt => OK, six tampers each => FAILED, sample swap caught
89
+ # Inspect-native (METR Task Standard / UK-AISI ecosystem, mockllm, no API key):
90
+ git clone https://github.com/b7n0de/proofbundle && cd proofbundle
91
+ pip install -e ".[eval,inspect]" && make demo # or `make full-demo` for log -> receipt -> verify
92
+ ```
93
+
72
94
  ## The problem
73
95
 
74
96
  Every AI eval number you read — a safety benchmark, a capability score, a leaderboard entry — is an
@@ -79,23 +101,40 @@ proofbundle is that check. It's a small MIT-licensed Python tool (a compact, aud
79
101
  depends only on [`cryptography`](https://cryptography.io)) that turns a result into a signed
80
102
  receipt anyone can verify from a single file — and it's honest about the line it does not cross.
81
103
 
82
- ## 60-second try (offline, no setup)
83
-
84
- ```bash
85
- pip install "proofbundle[eval]"
86
- proofbundle demo
87
- ```
104
+ ## What the demo shows
88
105
 
89
106
  You'll see an honest receipt verify `=> OK`, then six independent tampers each verify `FAILED`, then
90
- a swapped sample get caught — all in memory. The command exits non-zero if any tamper slips through,
91
- so it's also a self-test. Full walkthrough: **[docs/DEMO.md](docs/DEMO.md)**.
107
+ a swapped sample get caught — all in memory. `proofbundle demo` exits non-zero if any tamper slips through,
108
+ so it's also a self-test. Full walkthrough: **[docs/DEMO.md](https://github.com/b7n0de/proofbundle/blob/main/docs/DEMO.md)**.
92
109
 
93
110
  ```bash
111
+ # verify a real hosted receipt without writing any code:
112
+ curl -fsSL https://raw.githubusercontent.com/b7n0de/proofbundle/main/examples/example_bundle.json -o receipt.json
113
+ proofbundle verify receipt.json # CRYPTO: OK (the verify itself runs fully offline)
114
+
94
115
  # your own receipt, from a signed payload:
95
116
  proofbundle emit --payload-file result.json --new-key signer.key --out receipt.json
96
- proofbundle verify receipt.json # exit 0 = OK, 1 = failed, 2 = malformed
117
+ proofbundle verify receipt.json # exit 0 = crypto OK, 1 = crypto/verification failure, 2 = malformed
118
+
119
+ # apply YOUR trust decision — verify makes NO trust decision on its own:
120
+ proofbundle verify receipt.json --policy trust_policy.json # POLICY: OK | FAIL (exit 3) | NOT_EVALUATED
97
121
  ```
98
122
 
123
+ ## Inspect-native? (METR Task Standard / UK-AISI ecosystem)
124
+
125
+ The receipt layer runs directly on [Inspect AI](https://inspect.aisi.org.uk/) — and the proof is
126
+ reproducible offline in minutes:
127
+
128
+ ```bash
129
+ # setup as in the 60-second try above (clone + pip install -e ".[eval,inspect]"), then:
130
+ make full-demo # a genuine inspect_ai eval log (mockllm: offline, no API key, no GPU)
131
+ # -> signed receipt next to the log -> proofbundle verify => OK
132
+ ```
133
+
134
+ In your own pipeline the end-of-task hook signs every run automatically. Walkthrough:
135
+ **[docs/INSPECT_HAPPY_PATH.md](https://github.com/b7n0de/proofbundle/blob/main/docs/INSPECT_HAPPY_PATH.md)** · worked example:
136
+ **[examples/inspect_receipt.py](https://github.com/b7n0de/proofbundle/blob/main/examples/inspect_receipt.py)**.
137
+
99
138
  ## What a receipt proves — and what it doesn't
100
139
 
101
140
  | ✅ It proves | ❌ It does **not** prove |
@@ -108,7 +147,31 @@ proofbundle verify receipt.json # exit 0 = OK, 1 = failed, 2 = malformed
108
147
 
109
148
  This boundary is the point, not a weakness. A receipt makes a claim **attributable, tamper-evident,
110
149
  and — with pre-registration and per-sample auditing — bounded and spot-checkable**. Full detail:
111
- **[THREAT_MODEL.md](THREAT_MODEL.md)**.
150
+ **[THREAT_MODEL.md](https://github.com/b7n0de/proofbundle/blob/main/THREAT_MODEL.md)**.
151
+
152
+ ## Post-quantum posture (honest, two layers)
153
+
154
+ proofbundle is **not** "quantum-proof" or "quantum-safe" as a whole. It combines two cryptographic layers
155
+ with very different quantum exposure, and it is honest about both:
156
+
157
+ - **Quantum-robust (hash-based)** — SHA-256, RFC 6962 / 9162 Merkle inclusion, RFC 8785 canonicalization,
158
+ and, among the external time anchors, the OpenTimestamps (Bitcoin hash-chain) and `chia-datalayer/v1`
159
+ (Merkle inclusion) types. Grover only halves the effective bit-strength (SHA-256 keeps a ~128-bit quantum
160
+ margin, which NIST currently treats as adequate), so these stay secure.
161
+ - **Quantum-vulnerable (elliptic-curve / classical PKI, Shor)** — the Ed25519 receipt signature; for the
162
+ `chia-datalayer` anchor, Chia's BLS12-381 wallet layer; and, for the RFC 3161 anchor, the TSA's own
163
+ classical (RSA/ECDSA) certificate-chain signature. A large enough quantum computer could forge any of these.
164
+
165
+ The attack that matters is not decryption but **back-dated forgery**: an attacker with a quantum computer
166
+ could mint a fake signature on a tampered receipt. The defense — **when a receipt carries a hash-based time
167
+ anchor** (optional, the `[anchors]` beta extra: OpenTimestamps or `chia-datalayer`) — is that the anchor
168
+ proves the original receipt existed *before* that capability, so a forged receipt has no matching anchor.
169
+ That protects the evidence long-term even if the signature layer later breaks. A plain receipt with no anchor
170
+ does not carry this property.
171
+
172
+ On the witness side, C2SP checkpoints already carry post-quantum **ML-DSA-44** (FIPS 204) cosignatures
173
+ (`proofbundle[pq]`); a post-quantum *payload* signature — crypto-agility for the receipt itself — is on the
174
+ roadmap.
112
175
 
113
176
  ## In plain language
114
177
 
@@ -119,13 +182,15 @@ check at all.
119
182
 
120
183
  ## How it fits together
121
184
 
185
+ *(diagram renders on GitHub — [view it there](https://github.com/b7n0de/proofbundle#how-it-fits-together); PyPI shows the source)*
186
+
122
187
  ```mermaid
123
188
  flowchart LR
124
189
  H["eval harness<br/>inspect_ai · lm-eval · promptfoo · pytest"] --> A["adapter → signed claim<br/>salted commitments · provenance · samples root"]
125
190
  A --> R["receipt<br/>one portable file"]
126
191
  R --> V{{"proofbundle verify — offline"}}
127
192
  V --> C["signature · Merkle inclusion · SD-JWT/KB ·<br/>witness quorum · status list · sample openings"]
128
- C --> OK(["=> OK / FAILED"])
193
+ C --> OK(["CRYPTO: OK / FAILED"])
129
194
  style V fill:#D6248A,stroke:#D6248A,color:#fff
130
195
  style OK fill:#D6248A,stroke:#D6248A,color:#fff
131
196
  ```
@@ -135,7 +200,7 @@ flowchart LR
135
200
  - **Core** — Ed25519 signature + RFC 6962 / 9162 Merkle inclusion, verified fully offline. Checks a
136
201
  real [Sigstore Rekor](https://docs.sigstore.dev/) proof, so correctness isn't self-referential.
137
202
  - **Eval receipts** — a signed claim (`metric ⋈ threshold`, `n`, salted model/dataset commitments,
138
- assurance level, provenance) from your run. See [EVAL_CLAIM.md](EVAL_CLAIM.md).
203
+ assurance level, provenance) from your run. See [EVAL_CLAIM.md](https://github.com/b7n0de/proofbundle/blob/main/EVAL_CLAIM.md).
139
204
  - **Selective disclosure** — SD-JWT ([RFC 9901](https://datatracker.ietf.org/doc/rfc9901/)) with Key
140
205
  Binding: prove a threshold while withholding the exact score.
141
206
  - **Transparency-log interop** — C2SP `tlog-checkpoint` / cosignature / `.tlog-proof`, with
@@ -149,22 +214,32 @@ flowchart LR
149
214
  best-of-many publishing becomes visible.
150
215
  - **Integrations** — opt-in inspect_ai end-of-task hook and pytest plugin (emit only when
151
216
  `PROOFBUNDLE_EMIT=1` / `--proofbundle`), plus a Hugging Face Community Evals bridge. See
152
- [INTEGRATIONS.md](INTEGRATIONS.md), or the end-to-end walkthrough
153
- [docs/INSPECT_HAPPY_PATH.md](docs/INSPECT_HAPPY_PATH.md) — run an eval, get a receipt, verify it offline.
217
+ [INTEGRATIONS.md](https://github.com/b7n0de/proofbundle/blob/main/INTEGRATIONS.md), or the end-to-end walkthrough
218
+ [docs/INSPECT_HAPPY_PATH.md](https://github.com/b7n0de/proofbundle/blob/main/docs/INSPECT_HAPPY_PATH.md) — run an eval, get a receipt, verify it offline.
219
+ - **External time anchors** *(v2.0 beta, the `[anchors]` extra)* — an optional `anchors[]` layer that
220
+ attaches external evidence of *when* a commitment or receipt existed, from a party the producer does not
221
+ control. Two built-in types verify offline: **RFC 3161** TSA tokens (against a frozen cert chain) and
222
+ **OpenTimestamps** Bitcoin proofs (honest pending → confirmed lifecycle). A `register_anchor_type`
223
+ extension interface lets a third party ship its own fail-closed type; two worked examples ship — a
224
+ first-party **`chia-datalayer/v1`** (offline Merkle inclusion of a canonical root under a published Chia
225
+ DataLayer root) and a third-party **`markovian-provenance/v1`** (a wallet-attributable, Bitcoin-anchored
226
+ stamp). See [docs/ANCHORS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/ANCHORS.md).
154
227
 
155
228
  ## Docs
156
229
 
157
230
  | For… | Read |
158
231
  |---|---|
159
- | Skeptics (why not SHA-256 / Sigstore / trust the issuer) | [docs/FAQ.md](docs/FAQ.md) |
160
- | New to this? plain-terms glossary | [docs/GLOSSARY.md](docs/GLOSSARY.md) |
161
- | Reviewers (30-minute adversarial audit path) | [docs/REVIEWERS.md](docs/REVIEWERS.md) |
162
- | Where every trust anchor comes from | [docs/TRUST_ANCHORS.md](docs/TRUST_ANCHORS.md) |
163
- | The demos, tier by tier | [docs/DEMO.md](docs/DEMO.md) |
164
- | The normative format + verification order | [SPEC.md](SPEC.md) |
165
- | Honest comparison to Rekor / in-toto / OMS / ValiChord | [INTEROP.md](INTEROP.md) |
166
- | Regulatory mapping (and what to never claim) | [COMPLIANCE.md](COMPLIANCE.md) |
167
- | Funders / role fit | [docs/PROJECT_BRIEF.md](docs/PROJECT_BRIEF.md) |
232
+ | Skeptics (why not SHA-256 / Sigstore / trust the issuer) | [docs/FAQ.md](https://github.com/b7n0de/proofbundle/blob/main/docs/FAQ.md) |
233
+ | New to this? plain-terms glossary | [docs/GLOSSARY.md](https://github.com/b7n0de/proofbundle/blob/main/docs/GLOSSARY.md) |
234
+ | Reviewers (30-minute adversarial audit path) | [docs/REVIEWERS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/REVIEWERS.md) |
235
+ | Where every trust anchor comes from | [docs/TRUST_ANCHORS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/TRUST_ANCHORS.md) |
236
+ | The demos, tier by tier | [docs/DEMO.md](https://github.com/b7n0de/proofbundle/blob/main/docs/DEMO.md) |
237
+ | The normative format + verification order | [SPEC.md](https://github.com/b7n0de/proofbundle/blob/main/SPEC.md) |
238
+ | Honest comparison to Rekor / in-toto / OMS / ValiChord | [INTEROP.md](https://github.com/b7n0de/proofbundle/blob/main/INTEROP.md) |
239
+ | Regulatory mapping (and what to never claim) | [COMPLIANCE.md](https://github.com/b7n0de/proofbundle/blob/main/COMPLIANCE.md) |
240
+ | Funders / role fit | [docs/PROJECT_BRIEF.md](https://github.com/b7n0de/proofbundle/blob/main/docs/PROJECT_BRIEF.md) |
241
+ | External time anchors + the bring-your-own-type extension interface (v2.0 beta) | [docs/ANCHORS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/ANCHORS.md) |
242
+ | **Preview:** TEE-attestation bridge (v2.0 beta) | [docs/EXPERIMENTAL_ENCLAVE.md](https://github.com/b7n0de/proofbundle/blob/main/docs/EXPERIMENTAL_ENCLAVE.md) |
168
243
 
169
244
  ## Install
170
245
 
@@ -184,18 +259,18 @@ Beta, SemVer-committed, with a CI test suite behind a mutation gate + property-b
184
259
  is anchored to external RFC 6962 vectors and a real Rekor proof, not just its own bundles. It is
185
260
  **not** a log service, a full in-toto client, a TEE, a consensus network, or a compliance product
186
261
  by itself — it is the small, offline, standards-native receipt layer between them. Security policy:
187
- [SECURITY.md](SECURITY.md).
262
+ [SECURITY.md](https://github.com/b7n0de/proofbundle/blob/main/SECURITY.md).
188
263
 
189
264
  ## Contributing
190
265
 
191
- See [CONTRIBUTING.md](CONTRIBUTING.md) and the [Code of Conduct](CODE_OF_CONDUCT.md). Good first
266
+ See [CONTRIBUTING.md](https://github.com/b7n0de/proofbundle/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/b7n0de/proofbundle/blob/main/CODE_OF_CONDUCT.md). Good first
192
267
  issues are labeled [`good-first-issue`](https://github.com/b7n0de/proofbundle/labels/good-first-issue);
193
- security findings go through [SECURITY.md](SECURITY.md). The verifier core aims to stay small,
268
+ security findings go through [SECURITY.md](https://github.com/b7n0de/proofbundle/blob/main/SECURITY.md). The verifier core aims to stay small,
194
269
  dependency-light, and correct.
195
270
 
196
271
  ## License
197
272
 
198
- MIT — see [LICENSE](LICENSE).
273
+ MIT — see [LICENSE](https://github.com/b7n0de/proofbundle/blob/main/LICENSE).
199
274
 
200
275
  ---
201
276
 
@@ -0,0 +1,223 @@
1
+ <div align="center">
2
+
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/b7n0de/proofbundle/main/assets/b7n0de-logo-dark.svg">
5
+ <img alt="b7n0de, Verified AI Work" src="https://raw.githubusercontent.com/b7n0de/proofbundle/main/assets/b7n0de-logo.svg" height="60">
6
+ </picture>
7
+
8
+ <h1>proofbundle</h1>
9
+
10
+ **AI eval results need receipts.**
11
+
12
+ Turn an AI evaluation result into one portable, offline-verifiable receipt. It proves *who signed
13
+ these exact bytes* and *that nothing changed since* — not that the number is true. Ed25519 + RFC 6962
14
+ Merkle, one file, no server, no network.
15
+
16
+ [![CI](https://github.com/b7n0de/proofbundle/actions/workflows/ci.yml/badge.svg)](https://github.com/b7n0de/proofbundle/actions/workflows/ci.yml)
17
+ [![demo reproducible](https://github.com/b7n0de/proofbundle/actions/workflows/demo-reproducible.yml/badge.svg)](https://github.com/b7n0de/proofbundle/actions/workflows/demo-reproducible.yml)
18
+ [![PyPI](https://img.shields.io/pypi/v/proofbundle.svg)](https://pypi.org/project/proofbundle/)
19
+ [![Python](https://img.shields.io/pypi/pyversions/proofbundle.svg)](https://pypi.org/project/proofbundle/)
20
+ [![License: MIT](https://img.shields.io/badge/license-MIT-D6248A.svg)](https://github.com/b7n0de/proofbundle/blob/main/LICENSE)
21
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.21230467.svg)](https://doi.org/10.5281/zenodo.21230467)
22
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
23
+ [![Mutation tested](https://img.shields.io/badge/tests-mutation_gated-D6248A.svg)](https://github.com/b7n0de/proofbundle/blob/main/scripts/mutation_check.py)
24
+ <!-- SLSA / PEP 740 attestation badges follow once the first attested release lands, see RELEASE.md. -->
25
+
26
+ **Reviewing this for adoption?** Start with the 30-minute adversarial audit path: **[docs/REVIEWERS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/REVIEWERS.md)**.
27
+
28
+ </div>
29
+
30
+ ## 60-second try (offline)
31
+
32
+ ```bash
33
+ pip install "proofbundle[eval]"
34
+ proofbundle demo # honest receipt => OK, six tampers each => FAILED, sample swap caught
35
+ # Inspect-native (METR Task Standard / UK-AISI ecosystem, mockllm, no API key):
36
+ git clone https://github.com/b7n0de/proofbundle && cd proofbundle
37
+ pip install -e ".[eval,inspect]" && make demo # or `make full-demo` for log -> receipt -> verify
38
+ ```
39
+
40
+ ## The problem
41
+
42
+ Every AI eval number you read — a safety benchmark, a capability score, a leaderboard entry — is an
43
+ **unverifiable claim**. You trust the lab. There's no portable way to check, offline, that a result
44
+ was signed by a stated party, hasn't been altered, and covers the samples it claims.
45
+
46
+ proofbundle is that check. It's a small MIT-licensed Python tool (a compact, auditable trusted core,
47
+ depends only on [`cryptography`](https://cryptography.io)) that turns a result into a signed
48
+ receipt anyone can verify from a single file — and it's honest about the line it does not cross.
49
+
50
+ ## What the demo shows
51
+
52
+ You'll see an honest receipt verify `=> OK`, then six independent tampers each verify `FAILED`, then
53
+ a swapped sample get caught — all in memory. `proofbundle demo` exits non-zero if any tamper slips through,
54
+ so it's also a self-test. Full walkthrough: **[docs/DEMO.md](https://github.com/b7n0de/proofbundle/blob/main/docs/DEMO.md)**.
55
+
56
+ ```bash
57
+ # verify a real hosted receipt without writing any code:
58
+ curl -fsSL https://raw.githubusercontent.com/b7n0de/proofbundle/main/examples/example_bundle.json -o receipt.json
59
+ proofbundle verify receipt.json # CRYPTO: OK (the verify itself runs fully offline)
60
+
61
+ # your own receipt, from a signed payload:
62
+ proofbundle emit --payload-file result.json --new-key signer.key --out receipt.json
63
+ proofbundle verify receipt.json # exit 0 = crypto OK, 1 = crypto/verification failure, 2 = malformed
64
+
65
+ # apply YOUR trust decision — verify makes NO trust decision on its own:
66
+ proofbundle verify receipt.json --policy trust_policy.json # POLICY: OK | FAIL (exit 3) | NOT_EVALUATED
67
+ ```
68
+
69
+ ## Inspect-native? (METR Task Standard / UK-AISI ecosystem)
70
+
71
+ The receipt layer runs directly on [Inspect AI](https://inspect.aisi.org.uk/) — and the proof is
72
+ reproducible offline in minutes:
73
+
74
+ ```bash
75
+ # setup as in the 60-second try above (clone + pip install -e ".[eval,inspect]"), then:
76
+ make full-demo # a genuine inspect_ai eval log (mockllm: offline, no API key, no GPU)
77
+ # -> signed receipt next to the log -> proofbundle verify => OK
78
+ ```
79
+
80
+ In your own pipeline the end-of-task hook signs every run automatically. Walkthrough:
81
+ **[docs/INSPECT_HAPPY_PATH.md](https://github.com/b7n0de/proofbundle/blob/main/docs/INSPECT_HAPPY_PATH.md)** · worked example:
82
+ **[examples/inspect_receipt.py](https://github.com/b7n0de/proofbundle/blob/main/examples/inspect_receipt.py)**.
83
+
84
+ ## What a receipt proves — and what it doesn't
85
+
86
+ | ✅ It proves | ❌ It does **not** prove |
87
+ |---|---|
88
+ | These exact bytes were signed by this key (**authorship**) | That the number is **true** |
89
+ | Nothing changed since signing (**integrity**, Ed25519 + RFC 6962) | That the **issuer is honest** |
90
+ | The result is attributable to a stated issuer | That the **eval was well-designed** |
91
+ | A threshold was met while hiding the model/dataset (salted commitments) | That there was **no cherry-picking** — unless pre-registered |
92
+ | Optionally: individual samples, offline-auditable (per-sample Merkle) | That the **computation was correct** — that needs a TEE or independent reproduction |
93
+
94
+ This boundary is the point, not a weakness. A receipt makes a claim **attributable, tamper-evident,
95
+ and — with pre-registration and per-sample auditing — bounded and spot-checkable**. Full detail:
96
+ **[THREAT_MODEL.md](https://github.com/b7n0de/proofbundle/blob/main/THREAT_MODEL.md)**.
97
+
98
+ ## Post-quantum posture (honest, two layers)
99
+
100
+ proofbundle is **not** "quantum-proof" or "quantum-safe" as a whole. It combines two cryptographic layers
101
+ with very different quantum exposure, and it is honest about both:
102
+
103
+ - **Quantum-robust (hash-based)** — SHA-256, RFC 6962 / 9162 Merkle inclusion, RFC 8785 canonicalization,
104
+ and, among the external time anchors, the OpenTimestamps (Bitcoin hash-chain) and `chia-datalayer/v1`
105
+ (Merkle inclusion) types. Grover only halves the effective bit-strength (SHA-256 keeps a ~128-bit quantum
106
+ margin, which NIST currently treats as adequate), so these stay secure.
107
+ - **Quantum-vulnerable (elliptic-curve / classical PKI, Shor)** — the Ed25519 receipt signature; for the
108
+ `chia-datalayer` anchor, Chia's BLS12-381 wallet layer; and, for the RFC 3161 anchor, the TSA's own
109
+ classical (RSA/ECDSA) certificate-chain signature. A large enough quantum computer could forge any of these.
110
+
111
+ The attack that matters is not decryption but **back-dated forgery**: an attacker with a quantum computer
112
+ could mint a fake signature on a tampered receipt. The defense — **when a receipt carries a hash-based time
113
+ anchor** (optional, the `[anchors]` beta extra: OpenTimestamps or `chia-datalayer`) — is that the anchor
114
+ proves the original receipt existed *before* that capability, so a forged receipt has no matching anchor.
115
+ That protects the evidence long-term even if the signature layer later breaks. A plain receipt with no anchor
116
+ does not carry this property.
117
+
118
+ On the witness side, C2SP checkpoints already carry post-quantum **ML-DSA-44** (FIPS 204) cosignatures
119
+ (`proofbundle[pq]`); a post-quantum *payload* signature — crypto-agility for the receipt itself — is on the
120
+ roadmap.
121
+
122
+ ## In plain language
123
+
124
+ A proofbundle receipt is the cash-register receipt of an AI test result: it shows who claimed the
125
+ number and that nobody quietly changed it afterwards. It does not show the test was good — the way a
126
+ cash-register receipt does not show the meal was good — but without a receipt there is nothing to
127
+ check at all.
128
+
129
+ ## How it fits together
130
+
131
+ *(diagram renders on GitHub — [view it there](https://github.com/b7n0de/proofbundle#how-it-fits-together); PyPI shows the source)*
132
+
133
+ ```mermaid
134
+ flowchart LR
135
+ H["eval harness<br/>inspect_ai · lm-eval · promptfoo · pytest"] --> A["adapter → signed claim<br/>salted commitments · provenance · samples root"]
136
+ A --> R["receipt<br/>one portable file"]
137
+ R --> V{{"proofbundle verify — offline"}}
138
+ V --> C["signature · Merkle inclusion · SD-JWT/KB ·<br/>witness quorum · status list · sample openings"]
139
+ C --> OK(["CRYPTO: OK / FAILED"])
140
+ style V fill:#D6248A,stroke:#D6248A,color:#fff
141
+ style OK fill:#D6248A,stroke:#D6248A,color:#fff
142
+ ```
143
+
144
+ ## What's in the box
145
+
146
+ - **Core** — Ed25519 signature + RFC 6962 / 9162 Merkle inclusion, verified fully offline. Checks a
147
+ real [Sigstore Rekor](https://docs.sigstore.dev/) proof, so correctness isn't self-referential.
148
+ - **Eval receipts** — a signed claim (`metric ⋈ threshold`, `n`, salted model/dataset commitments,
149
+ assurance level, provenance) from your run. See [EVAL_CLAIM.md](https://github.com/b7n0de/proofbundle/blob/main/EVAL_CLAIM.md).
150
+ - **Selective disclosure** — SD-JWT ([RFC 9901](https://datatracker.ietf.org/doc/rfc9901/)) with Key
151
+ Binding: prove a threshold while withholding the exact score.
152
+ - **Transparency-log interop** — C2SP `tlog-checkpoint` / cosignature / `.tlog-proof`, with
153
+ post-quantum **ML-DSA-44** witness cosignatures. Optional Token-Status-List revocation snapshots.
154
+ - **Per-sample audit** — commit to every sample; an auditor challenges random indices (with a fresh
155
+ nonce or a **public randomness beacon**, v1.9) and openings must bind to the signed root. With
156
+ such an auditor-supplied or beacon-bound challenge, 300 samples catch 1% sample-doctoring with 95%
157
+ confidence, regardless of run size — a challenge the issuer chose itself does not give this
158
+ guarantee.
159
+ - **Pre-registration** — `proofbundle prereg <plan>` commits to the protocol before the run, so
160
+ best-of-many publishing becomes visible.
161
+ - **Integrations** — opt-in inspect_ai end-of-task hook and pytest plugin (emit only when
162
+ `PROOFBUNDLE_EMIT=1` / `--proofbundle`), plus a Hugging Face Community Evals bridge. See
163
+ [INTEGRATIONS.md](https://github.com/b7n0de/proofbundle/blob/main/INTEGRATIONS.md), or the end-to-end walkthrough
164
+ [docs/INSPECT_HAPPY_PATH.md](https://github.com/b7n0de/proofbundle/blob/main/docs/INSPECT_HAPPY_PATH.md) — run an eval, get a receipt, verify it offline.
165
+ - **External time anchors** *(v2.0 beta, the `[anchors]` extra)* — an optional `anchors[]` layer that
166
+ attaches external evidence of *when* a commitment or receipt existed, from a party the producer does not
167
+ control. Two built-in types verify offline: **RFC 3161** TSA tokens (against a frozen cert chain) and
168
+ **OpenTimestamps** Bitcoin proofs (honest pending → confirmed lifecycle). A `register_anchor_type`
169
+ extension interface lets a third party ship its own fail-closed type; two worked examples ship — a
170
+ first-party **`chia-datalayer/v1`** (offline Merkle inclusion of a canonical root under a published Chia
171
+ DataLayer root) and a third-party **`markovian-provenance/v1`** (a wallet-attributable, Bitcoin-anchored
172
+ stamp). See [docs/ANCHORS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/ANCHORS.md).
173
+
174
+ ## Docs
175
+
176
+ | For… | Read |
177
+ |---|---|
178
+ | Skeptics (why not SHA-256 / Sigstore / trust the issuer) | [docs/FAQ.md](https://github.com/b7n0de/proofbundle/blob/main/docs/FAQ.md) |
179
+ | New to this? plain-terms glossary | [docs/GLOSSARY.md](https://github.com/b7n0de/proofbundle/blob/main/docs/GLOSSARY.md) |
180
+ | Reviewers (30-minute adversarial audit path) | [docs/REVIEWERS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/REVIEWERS.md) |
181
+ | Where every trust anchor comes from | [docs/TRUST_ANCHORS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/TRUST_ANCHORS.md) |
182
+ | The demos, tier by tier | [docs/DEMO.md](https://github.com/b7n0de/proofbundle/blob/main/docs/DEMO.md) |
183
+ | The normative format + verification order | [SPEC.md](https://github.com/b7n0de/proofbundle/blob/main/SPEC.md) |
184
+ | Honest comparison to Rekor / in-toto / OMS / ValiChord | [INTEROP.md](https://github.com/b7n0de/proofbundle/blob/main/INTEROP.md) |
185
+ | Regulatory mapping (and what to never claim) | [COMPLIANCE.md](https://github.com/b7n0de/proofbundle/blob/main/COMPLIANCE.md) |
186
+ | Funders / role fit | [docs/PROJECT_BRIEF.md](https://github.com/b7n0de/proofbundle/blob/main/docs/PROJECT_BRIEF.md) |
187
+ | External time anchors + the bring-your-own-type extension interface (v2.0 beta) | [docs/ANCHORS.md](https://github.com/b7n0de/proofbundle/blob/main/docs/ANCHORS.md) |
188
+ | **Preview:** TEE-attestation bridge (v2.0 beta) | [docs/EXPERIMENTAL_ENCLAVE.md](https://github.com/b7n0de/proofbundle/blob/main/docs/EXPERIMENTAL_ENCLAVE.md) |
189
+
190
+ ## Install
191
+
192
+ ```bash
193
+ pip install proofbundle # core: offline verify + plain emit (dependency-free)
194
+ pip install "proofbundle[eval]" # + eval receipts, prereg, and the demo (adds an RFC 8785 JCS canonicalizer)
195
+ pip install "proofbundle[inspect]" # inspect_ai adapter + hook
196
+ pip install "proofbundle[pq]" # verify ML-DSA-44 (post-quantum) witness cosignatures
197
+ ```
198
+
199
+ Requires Python 3.10+. The verify path never rolls its own crypto — Ed25519 comes from
200
+ `cryptography`; Merkle hashing is RFC 6962.
201
+
202
+ ## Status & scope
203
+
204
+ Beta, SemVer-committed, with a CI test suite behind a mutation gate + property-based parser fuzzing. Correctness
205
+ is anchored to external RFC 6962 vectors and a real Rekor proof, not just its own bundles. It is
206
+ **not** a log service, a full in-toto client, a TEE, a consensus network, or a compliance product
207
+ by itself — it is the small, offline, standards-native receipt layer between them. Security policy:
208
+ [SECURITY.md](https://github.com/b7n0de/proofbundle/blob/main/SECURITY.md).
209
+
210
+ ## Contributing
211
+
212
+ See [CONTRIBUTING.md](https://github.com/b7n0de/proofbundle/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/b7n0de/proofbundle/blob/main/CODE_OF_CONDUCT.md). Good first
213
+ issues are labeled [`good-first-issue`](https://github.com/b7n0de/proofbundle/labels/good-first-issue);
214
+ security findings go through [SECURITY.md](https://github.com/b7n0de/proofbundle/blob/main/SECURITY.md). The verifier core aims to stay small,
215
+ dependency-light, and correct.
216
+
217
+ ## License
218
+
219
+ MIT — see [LICENSE](https://github.com/b7n0de/proofbundle/blob/main/LICENSE).
220
+
221
+ ---
222
+
223
+ <p align="center"><sub>proofbundle is part of <b>b7n0de</b>, Verified AI Work · <a href="https://b7n0de.com">b7n0de.com</a></sub></p>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "proofbundle"
7
- version = "1.9.2"
7
+ version = "2.0.0"
8
8
  description = "Emit and verify portable cryptographic evidence bundles, offline: Ed25519 + RFC 6962 Merkle + optional SD-JWT."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -44,8 +44,24 @@ sdjwt = []
44
44
  # path (verify_bundle / decode_eval_claim) never canonicalizes — it checks stored bytes — so the
45
45
  # verifier stays dependency-free. `pip install proofbundle[eval]` adds emit-side canonicalization.
46
46
  eval = ["rfc8785>=0.1.4"]
47
+ # EXPERIMENTAL: external time anchors (proofbundle.anchors) — RFC 3161 TSA + OpenTimestamps. Opt-in and
48
+ # clearly experimental (API/format may change). rfc3161-client (Trail of Bits) is deliberately offline —
49
+ # it verifies an RFC 3161 token against bundled roots, no network in the verify path. opentimestamps is
50
+ # the OTS proof library. rfc8785 gives the receipt its canonical (JCS) root. The base install stays
51
+ # anchor-free (only cryptography); a receipt with no anchors verifies unchanged.
52
+ anchors = ["rfc3161-client>=1.0.6", "opentimestamps>=0.4.5", "rfc8785>=0.1.4"]
47
53
  # The lm-eval adapter reads exported results.json (no import) → pure stdlib.
48
54
  adapters = []
55
+ # chia-datalayer/v1 anchor WRITER (anchors_chia_add). Needs no extra Python package — it drives the
56
+ # stable `chia rpc data_layer|full_node` CLI of a locally installed, cert-authed Chia node (the DataLayer
57
+ # node is the real dependency, not a wheel). Declared so `pip install proofbundle[chia]` is a documented,
58
+ # discoverable install target. VERIFYING an anchor offline (anchors_chia) needs neither this nor a node.
59
+ chia = []
60
+ # EXPERIMENTAL (v2.0 preview): the TEE-attestation bridge (proofbundle.experimental.enclave).
61
+ # Opt-in and clearly unstable — API/wire-format may change or be removed without deprecation.
62
+ # No new runtime dependency (pure stdlib + the core `cryptography`); the extra exists to signal
63
+ # intent and gate the preview, mirroring the `sdjwt` extra. `pip install "proofbundle[experimental]"`.
64
+ experimental = []
49
65
  # ML-DSA-44 (FIPS 204) cosignature verification (C2SP tlog-cosignature type 0x06). Needs a
50
66
  # cryptography build with OpenSSL 3.5+ (default PyPI wheels since 48.0.0). Verify-only by default;
51
67
  # the emit helper needs the same. Ed25519 paths never require this.
@@ -13,10 +13,16 @@ from __future__ import annotations
13
13
 
14
14
  from typing import TYPE_CHECKING
15
15
 
16
- __version__ = "1.9.2"
16
+ __version__ = "2.0.0"
17
+
18
+ # The `proofbundle/v0.1` normative spec revision this build implements — kept in sync with the
19
+ # `Revision:` line at the top of SPEC.md by tests/test_docs_truth.py (WP-B1, closes #28). Bump
20
+ # both together whenever SPEC.md's normative text changes (not on every package release).
21
+ SPEC_REVISION = "2026-07-09"
17
22
 
18
23
  __all__ = [
19
24
  "__version__",
25
+ "SPEC_REVISION",
20
26
  "SCHEMA",
21
27
  "verify_bundle",
22
28
  "load_bundle",