obsign-verify 0.1.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 (36) hide show
  1. obsign_verify-0.1.0/LICENSE +206 -0
  2. obsign_verify-0.1.0/MANIFEST.in +7 -0
  3. obsign_verify-0.1.0/PKG-INFO +144 -0
  4. obsign_verify-0.1.0/README.md +126 -0
  5. obsign_verify-0.1.0/docs/COMPLIANCE.md +141 -0
  6. obsign_verify-0.1.0/docs/COMPOSES_WITH.md +150 -0
  7. obsign_verify-0.1.0/docs/STRANGERS.md +107 -0
  8. obsign_verify-0.1.0/pyproject.toml +51 -0
  9. obsign_verify-0.1.0/setup.cfg +4 -0
  10. obsign_verify-0.1.0/src/obsign_verify/__init__.py +27 -0
  11. obsign_verify-0.1.0/src/obsign_verify/canonical.py +80 -0
  12. obsign_verify-0.1.0/src/obsign_verify/cli.py +121 -0
  13. obsign_verify-0.1.0/src/obsign_verify/data/challenge/ATTESTATION.md +48 -0
  14. obsign_verify-0.1.0/src/obsign_verify/data/challenge/bundles/env_only_change_must_still_verify/receipt.json +62 -0
  15. obsign_verify-0.1.0/src/obsign_verify/data/challenge/bundles/forged_input_hash/receipt.json +62 -0
  16. obsign_verify-0.1.0/src/obsign_verify/data/challenge/bundles/forged_output_hash/receipt.json +62 -0
  17. obsign_verify-0.1.0/src/obsign_verify/data/challenge/bundles/resealed_tampered_claim/receipt.json +62 -0
  18. obsign_verify-0.1.0/src/obsign_verify/data/challenge/bundles/swapped_dtype/receipt.json +62 -0
  19. obsign_verify-0.1.0/src/obsign_verify/data/challenge/bundles/swapped_kernel/receipt.json +62 -0
  20. obsign_verify-0.1.0/src/obsign_verify/data/challenge/bundles/tampered_params/receipt.json +62 -0
  21. obsign_verify-0.1.0/src/obsign_verify/data/challenge/bundles/truncated_receipt/receipt.json +32 -0
  22. obsign_verify-0.1.0/src/obsign_verify/data/challenge/bundles/valid/receipt.json +62 -0
  23. obsign_verify-0.1.0/src/obsign_verify/data/conformance_vectors.json +100 -0
  24. obsign_verify-0.1.0/src/obsign_verify/kernel.py +113 -0
  25. obsign_verify-0.1.0/src/obsign_verify/py.typed +0 -0
  26. obsign_verify-0.1.0/src/obsign_verify/signature.py +114 -0
  27. obsign_verify-0.1.0/src/obsign_verify/verify.py +107 -0
  28. obsign_verify-0.1.0/src/obsign_verify.egg-info/PKG-INFO +144 -0
  29. obsign_verify-0.1.0/src/obsign_verify.egg-info/SOURCES.txt +34 -0
  30. obsign_verify-0.1.0/src/obsign_verify.egg-info/dependency_links.txt +1 -0
  31. obsign_verify-0.1.0/src/obsign_verify.egg-info/entry_points.txt +2 -0
  32. obsign_verify-0.1.0/src/obsign_verify.egg-info/requires.txt +8 -0
  33. obsign_verify-0.1.0/src/obsign_verify.egg-info/top_level.txt +1 -0
  34. obsign_verify-0.1.0/tests/test_verifier.py +398 -0
  35. obsign_verify-0.1.0/tools/compliance_map.py +226 -0
  36. obsign_verify-0.1.0/tools/dogfood.py +133 -0
@@ -0,0 +1,206 @@
1
+ SPDX-License-Identifier: Apache-2.0
2
+
3
+
4
+ Apache License
5
+ Version 2.0, January 2004
6
+ http://www.apache.org/licenses/
7
+
8
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
9
+
10
+ 1. Definitions.
11
+
12
+ "License" shall mean the terms and conditions for use, reproduction,
13
+ and distribution as defined by Sections 1 through 9 of this document.
14
+
15
+ "Licensor" shall mean the copyright owner or entity authorized by
16
+ the copyright owner that is granting the License.
17
+
18
+ "Legal Entity" shall mean the union of the acting entity and all
19
+ other entities that control, are controlled by, or are under common
20
+ control with that entity. For the purposes of this definition,
21
+ "control" means (i) the power, direct or indirect, to cause the
22
+ direction or management of such entity, whether by contract or
23
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
24
+ outstanding shares, or (iii) beneficial ownership of such entity.
25
+
26
+ "You" (or "Your") shall mean an individual or Legal Entity
27
+ exercising permissions granted by this License.
28
+
29
+ "Source" form shall mean the preferred form for making modifications,
30
+ including but not limited to software source code, documentation
31
+ source, and configuration files.
32
+
33
+ "Object" form shall mean any form resulting from mechanical
34
+ transformation or translation of a Source form, including but
35
+ not limited to compiled object code, generated documentation,
36
+ and conversions to other media types.
37
+
38
+ "Work" shall mean the work of authorship, whether in Source or
39
+ Object form, made available under the License, as indicated by a
40
+ copyright notice that is included in or attached to the work
41
+ (an example is provided in the Appendix below).
42
+
43
+ "Derivative Works" shall mean any work, whether in Source or Object
44
+ form, that is based on (or derived from) the Work and for which the
45
+ editorial revisions, annotations, elaborations, or other modifications
46
+ represent, as a whole, an original work of authorship. For the purposes
47
+ of this License, Derivative Works shall not include works that remain
48
+ separable from, or merely link (or bind by name) to the interfaces of,
49
+ the Work and Derivative Works thereof.
50
+
51
+ "Contribution" shall mean any work of authorship, including
52
+ the original version of the Work and any modifications or additions
53
+ to that Work or Derivative Works thereof, that is intentionally
54
+ submitted to Licensor for inclusion in the Work by the copyright owner
55
+ or by an individual or Legal Entity authorized to submit on behalf of
56
+ the copyright owner. For the purposes of this definition, "submitted"
57
+ means any form of electronic, verbal, or written communication sent
58
+ to the Licensor or its representatives, including but not limited to
59
+ communication on electronic mailing lists, source code control systems,
60
+ and issue tracking systems that are managed by, or on behalf of, the
61
+ Licensor for the purpose of discussing and improving the Work, but
62
+ excluding communication that is conspicuously marked or otherwise
63
+ designated in writing by the copyright owner as "Not a Contribution."
64
+
65
+ "Contributor" shall mean Licensor and any individual or Legal Entity
66
+ on behalf of whom a Contribution has been received by Licensor and
67
+ subsequently incorporated within the Work.
68
+
69
+ 2. Grant of Copyright License. Subject to the terms and conditions of
70
+ this License, each Contributor hereby grants to You a perpetual,
71
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
+ copyright license to reproduce, prepare Derivative Works of,
73
+ publicly display, publicly perform, sublicense, and distribute the
74
+ Work and such Derivative Works in Source or Object form.
75
+
76
+ 3. Grant of Patent License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ (except as stated in this section) patent license to make, have made,
80
+ use, offer to sell, sell, import, and otherwise transfer the Work,
81
+ where such license applies only to those patent claims licensable
82
+ by such Contributor that are necessarily infringed by their
83
+ Contribution(s) alone or by combination of their Contribution(s)
84
+ with the Work to which such Contribution(s) was submitted. If You
85
+ institute patent litigation against any entity (including a
86
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
87
+ or a Contribution incorporated within the Work constitutes direct
88
+ or contributory patent infringement, then any patent licenses
89
+ granted to You under this License for that Work shall terminate
90
+ as of the date such litigation is filed.
91
+
92
+ 4. Redistribution. You may reproduce and distribute copies of the
93
+ Work or Derivative Works thereof in any medium, with or without
94
+ modifications, and in Source or Object form, provided that You
95
+ meet the following conditions:
96
+
97
+ (a) You must give any other recipients of the Work or
98
+ Derivative Works a copy of this License; and
99
+
100
+ (b) You must cause any modified files to carry prominent notices
101
+ stating that You changed the files; and
102
+
103
+ (c) You must retain, in the Source form of any Derivative Works
104
+ that You distribute, all copyright, patent, trademark, and
105
+ attribution notices from the Source form of the Work,
106
+ excluding those notices that do not pertain to any part of
107
+ the Derivative Works; and
108
+
109
+ (d) If the Work includes a "NOTICE" text file as part of its
110
+ distribution, then any Derivative Works that You distribute must
111
+ include a readable copy of the attribution notices contained
112
+ within such NOTICE file, excluding those notices that do not
113
+ pertain to any part of the Derivative Works, in at least one
114
+ of the following places: within a NOTICE text file distributed
115
+ as part of the Derivative Works; within the Source form or
116
+ documentation, if provided along with the Derivative Works; or,
117
+ within a display generated by the Derivative Works, if and
118
+ wherever such third-party notices normally appear. The contents
119
+ of the NOTICE file are for informational purposes only and
120
+ do not modify the License. You may add Your own attribution
121
+ notices within Derivative Works that You distribute, alongside
122
+ or as an addendum to the NOTICE text from the Work, provided
123
+ that such additional attribution notices cannot be construed
124
+ as modifying the License.
125
+
126
+ You may add Your own copyright statement to Your modifications and
127
+ may provide additional or different license terms and conditions
128
+ for use, reproduction, or distribution of Your modifications, or
129
+ for any such Derivative Works as a whole, provided Your use,
130
+ reproduction, and distribution of the Work otherwise complies with
131
+ the conditions stated in this License.
132
+
133
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
134
+ any Contribution intentionally submitted for inclusion in the Work
135
+ by You to the Licensor shall be under the terms and conditions of
136
+ this License, without any additional terms or conditions.
137
+ Notwithstanding the above, nothing herein shall supersede or modify
138
+ the terms of any separate license agreement you may have executed
139
+ with Licensor regarding such Contributions.
140
+
141
+ 6. Trademarks. This License does not grant permission to use the trade
142
+ names, trademarks, service marks, or product names of the Licensor,
143
+ except as required for reasonable and customary use in describing the
144
+ origin of the Work and reproducing the content of the NOTICE file.
145
+
146
+ 7. Disclaimer of Warranty. Unless required by applicable law or
147
+ agreed to in writing, Licensor provides the Work (and each
148
+ Contributor provides its Contributions) on an "AS IS" BASIS,
149
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
150
+ implied, including, without limitation, any warranties or conditions
151
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
152
+ PARTICULAR PURPOSE. You are solely responsible for determining the
153
+ appropriateness of using or redistributing the Work and assume any
154
+ risks associated with Your exercise of permissions under this License.
155
+
156
+ 8. Limitation of Liability. In no event and under no legal theory,
157
+ whether in tort (including negligence), contract, or otherwise,
158
+ unless required by applicable law (such as deliberate and grossly
159
+ negligent acts) or agreed to in writing, shall any Contributor be
160
+ liable to You for damages, including any direct, indirect, special,
161
+ incidental, or consequential damages of any character arising as a
162
+ result of this License or out of the use or inability to use the
163
+ Work (including but not limited to damages for loss of goodwill,
164
+ work stoppage, computer failure or malfunction, or any and all
165
+ other commercial damages or losses), even if such Contributor
166
+ has been advised of the possibility of such damages.
167
+
168
+ 9. Accepting Warranty or Additional Liability. While redistributing
169
+ the Work or Derivative Works thereof, You may choose to offer,
170
+ and charge a fee for, acceptance of support, warranty, indemnity,
171
+ or other liability obligations and/or rights consistent with this
172
+ License. However, in accepting such obligations, You may act only
173
+ on Your own behalf and on Your sole responsibility, not on behalf
174
+ of any other Contributor, and only if You agree to indemnify,
175
+ defend, and hold each Contributor harmless for any liability
176
+ incurred by, or claims asserted against, such Contributor by reason
177
+ of your accepting any such warranty or additional liability.
178
+
179
+ END OF TERMS AND CONDITIONS
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following
184
+ boilerplate notice, with the fields enclosed by brackets "[]"
185
+ replaced with your own identifying information. (Don't include
186
+ the brackets!) The text should be enclosed in the appropriate
187
+ comment syntax for the file format. We also recommend that a
188
+ file or class name and description of purpose be included on the
189
+ same "printed page" as the copyright notice for easier
190
+ identification within third-party archives.
191
+
192
+ Copyright [yyyy] [name of copyright owner]
193
+
194
+ Licensed under the Apache License, Version 2.0 (the "License");
195
+ you may not use this file except in compliance with the License.
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+ distributed under the License is distributed on an "AS IS" BASIS,
202
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ See the License for the specific language governing permissions and
204
+ limitations under the License.
205
+
206
+ Copyright 2026 Coherence Energy Labs
@@ -0,0 +1,7 @@
1
+ # The sdist must be self-contained: someone auditing the source should get the
2
+ # tests and the artifacts those tests judge against, not just the modules.
3
+ include LICENSE README.md
4
+ recursive-include src/obsign_verify/data *
5
+ recursive-include tests *.py
6
+ recursive-include docs *.md
7
+ recursive-include tools *.py
@@ -0,0 +1,144 @@
1
+ Metadata-Version: 2.4
2
+ Name: obsign-verify
3
+ Version: 0.1.0
4
+ Summary: Re-derive an Obsign receipt's claim on your own machine, offline.
5
+ Author: Coherence Energy Labs
6
+ License-Expression: Apache-2.0
7
+ Keywords: provenance,receipts,verification,determinism,reproducibility
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: numpy>=1.24
12
+ Provides-Extra: sig
13
+ Requires-Dist: cryptography>=41; extra == "sig"
14
+ Provides-Extra: dev
15
+ Requires-Dist: pytest>=7; extra == "dev"
16
+ Requires-Dist: cryptography>=41; extra == "dev"
17
+ Dynamic: license-file
18
+
19
+ # obsign-verify
20
+
21
+ **Re-derive the number yourself. Offline. On your hardware.**
22
+
23
+ A signature tells you a claim is *unmodified*. It never tells you the claim is *true*.
24
+ This verifier re-runs the computation and compares bits.
25
+
26
+ ```console
27
+ $ pip install obsign-verify
28
+ $ obsign-verify receipt.json
29
+
30
+ [VERIFIED] receipt.json
31
+ integrity ok
32
+ re-derived ok
33
+ signature absent (integrity and re-derivation still hold)
34
+
35
+ 1/1 receipt(s) verified on THIS machine.
36
+ ```
37
+
38
+ Exit code `0` if every receipt verified, `1` otherwise. That is the whole interface.
39
+
40
+ ## It imports nothing from the producer
41
+
42
+ Zero code is shared with the engine that mints these receipts. If it imported the
43
+ producer, *"it verifies"* would mean *"the producer agrees with itself"* — which is
44
+ not a claim worth making. The kernel here was written separately against the
45
+ published spec, so a bug in one cannot cancel a bug in the other.
46
+
47
+ Dependencies: **numpy**. That is it. Signature checking is an optional extra
48
+ (`pip install 'obsign-verify[sig]'`) *by design* — the two steps that make this more
49
+ than attestation, integrity and re-derivation, need no cryptography library at all.
50
+
51
+ ## What it checks
52
+
53
+ | Step | Question | Status |
54
+ |---|---|---|
55
+ | 1 · integrity | does `receipt_sha256` recompute from the claim? | checked |
56
+ | 2 · reproduced | does re-running the kernel reproduce `output.sha256`? | checked |
57
+ | 3 · signature | does the signature verify, and cover what it claims to? | checked (optional dep) |
58
+ | 4 · issuer trust | *should* you trust this key? | **out of scope, deliberately** |
59
+
60
+ Step 4 is an identity question. A verifier that answered it from a bundled list
61
+ would be asserting a social fact as a cryptographic one. `verified` means steps 1–3.
62
+
63
+ **`VERIFIED` without a signature is not a weaker result.** It means integrity holds
64
+ and the number re-derived on your machine — you did not have to trust anyone. A
65
+ signature adds *who*, not *whether*.
66
+
67
+ ## Two things it will not do
68
+
69
+ **It will not name a signer the signature did not cover.** Legacy
70
+ `obsign/signature/v1` signs the bare receipt hash, so it covers neither the signer
71
+ nor the case block — the name in the file can be rewritten by anyone with a text
72
+ editor and no key. Such receipts still verify, and are reported
73
+ `identity_bound: false`, `attributed_signer: null`. Only `obsign/signature/v2`
74
+ puts the signer inside the signed bytes.
75
+
76
+ **It will not crash instead of refusing.** A verifier that raises on a hostile
77
+ receipt has failed open in the eyes of whoever handed it the file. Malformed input
78
+ returns `verified: false`.
79
+
80
+ ## Verify it against us
81
+
82
+ The package ships the same `conformance_vectors.json` the engine is judged against.
83
+
84
+ ```console
85
+ $ pip install 'obsign-verify[dev]' && pytest
86
+ ```
87
+
88
+ **The forgeries ship inside the package.** One command, no files of your own, no
89
+ login, no request:
90
+
91
+ ```console
92
+ $ obsign-verify --self-check
93
+
94
+ ok env_only_change_must_still_verify VERIFIED (expected VERIFIED)
95
+ ok forged_input_hash REFUSED (expected REFUSED)
96
+ ok resealed_tampered_claim REFUSED (expected REFUSED)
97
+ ...
98
+ 9/9 bundles behaved as declared.
99
+ ```
100
+
101
+ Exit `0` means every bundle got the verdict it declares — the two honest receipts
102
+ verified and **all seven forgeries refused.** Refusing them is the job, so a clean
103
+ run is not "9 verified".
104
+
105
+ The one to look at is `resealed_tampered_claim`. Its output was edited, its receipt
106
+ re-hashed, its signature re-applied — so it passes the integrity check cleanly and
107
+ fails only on re-derivation. That single bundle is the entire argument for step 2.
108
+
109
+ ## Why the number is the same on your machine
110
+
111
+ Integer fixed-point. Floating point is non-associative and vendor-dependent, so the
112
+ same float kernel on two chips can differ in the last bits; int64 arithmetic is
113
+ exact and identical on every machine that has it. The only float builds the initial
114
+ source term, and it is rounded to int64 before any evolution — so a last-ulp libm
115
+ difference is absorbed rather than compounded.
116
+
117
+ Honest residual risk, stated rather than hidden: a source value sitting exactly on a
118
+ `.5` rounding boundary could round differently under a different libm. **Not proven
119
+ impossible** — but now genuinely measured rather than assumed.
120
+
121
+ CI runs the conformance vectors on **x86_64 Linux, ARM64 macOS and Windows**, across
122
+ four Python versions, and prints the actual output hashes on every runner. The
123
+ architecture split is the load-bearing part: `aarch64` and `x86_64` ship different libm
124
+ implementations, and if that risk were going to bite, that is where it would.
125
+
126
+ When this sentence was first written it said "not observed across the platforms tested"
127
+ and exactly one platform had been tested — true, and nearly empty. If the hashes ever
128
+ diverge between two runners, the job fails and says so, because that divergence is the
129
+ finding, not an inconvenience.
130
+
131
+ ## Status
132
+
133
+ **Apache-2.0.** Permissive on purpose: this is the artifact we ask strangers to run in
134
+ order to check us, and a licence that adds friction to that would defeat its own point.
135
+ It matches what the estate's other public "check our work" repos already carry.
136
+
137
+ `BUILT`. Publication is a single decision away — the package name `obsign-verify` was
138
+ verified available on PyPI on 2026-08-01, and everything here installs and passes today.
139
+
140
+ **A note on the name.** The bare `obsign` name is not available and is not ours: a PyPI
141
+ placeholder reading *"Reserved for the Obsign project — cryptographic proof of AI agent
142
+ actions"* was uploaded on 2026-07-30, seventeen minutes after the GitHub org it points at
143
+ was created. This package is the verifier rather than the engine, so the longer name is
144
+ the accurate one in any case.
@@ -0,0 +1,126 @@
1
+ # obsign-verify
2
+
3
+ **Re-derive the number yourself. Offline. On your hardware.**
4
+
5
+ A signature tells you a claim is *unmodified*. It never tells you the claim is *true*.
6
+ This verifier re-runs the computation and compares bits.
7
+
8
+ ```console
9
+ $ pip install obsign-verify
10
+ $ obsign-verify receipt.json
11
+
12
+ [VERIFIED] receipt.json
13
+ integrity ok
14
+ re-derived ok
15
+ signature absent (integrity and re-derivation still hold)
16
+
17
+ 1/1 receipt(s) verified on THIS machine.
18
+ ```
19
+
20
+ Exit code `0` if every receipt verified, `1` otherwise. That is the whole interface.
21
+
22
+ ## It imports nothing from the producer
23
+
24
+ Zero code is shared with the engine that mints these receipts. If it imported the
25
+ producer, *"it verifies"* would mean *"the producer agrees with itself"* — which is
26
+ not a claim worth making. The kernel here was written separately against the
27
+ published spec, so a bug in one cannot cancel a bug in the other.
28
+
29
+ Dependencies: **numpy**. That is it. Signature checking is an optional extra
30
+ (`pip install 'obsign-verify[sig]'`) *by design* — the two steps that make this more
31
+ than attestation, integrity and re-derivation, need no cryptography library at all.
32
+
33
+ ## What it checks
34
+
35
+ | Step | Question | Status |
36
+ |---|---|---|
37
+ | 1 · integrity | does `receipt_sha256` recompute from the claim? | checked |
38
+ | 2 · reproduced | does re-running the kernel reproduce `output.sha256`? | checked |
39
+ | 3 · signature | does the signature verify, and cover what it claims to? | checked (optional dep) |
40
+ | 4 · issuer trust | *should* you trust this key? | **out of scope, deliberately** |
41
+
42
+ Step 4 is an identity question. A verifier that answered it from a bundled list
43
+ would be asserting a social fact as a cryptographic one. `verified` means steps 1–3.
44
+
45
+ **`VERIFIED` without a signature is not a weaker result.** It means integrity holds
46
+ and the number re-derived on your machine — you did not have to trust anyone. A
47
+ signature adds *who*, not *whether*.
48
+
49
+ ## Two things it will not do
50
+
51
+ **It will not name a signer the signature did not cover.** Legacy
52
+ `obsign/signature/v1` signs the bare receipt hash, so it covers neither the signer
53
+ nor the case block — the name in the file can be rewritten by anyone with a text
54
+ editor and no key. Such receipts still verify, and are reported
55
+ `identity_bound: false`, `attributed_signer: null`. Only `obsign/signature/v2`
56
+ puts the signer inside the signed bytes.
57
+
58
+ **It will not crash instead of refusing.** A verifier that raises on a hostile
59
+ receipt has failed open in the eyes of whoever handed it the file. Malformed input
60
+ returns `verified: false`.
61
+
62
+ ## Verify it against us
63
+
64
+ The package ships the same `conformance_vectors.json` the engine is judged against.
65
+
66
+ ```console
67
+ $ pip install 'obsign-verify[dev]' && pytest
68
+ ```
69
+
70
+ **The forgeries ship inside the package.** One command, no files of your own, no
71
+ login, no request:
72
+
73
+ ```console
74
+ $ obsign-verify --self-check
75
+
76
+ ok env_only_change_must_still_verify VERIFIED (expected VERIFIED)
77
+ ok forged_input_hash REFUSED (expected REFUSED)
78
+ ok resealed_tampered_claim REFUSED (expected REFUSED)
79
+ ...
80
+ 9/9 bundles behaved as declared.
81
+ ```
82
+
83
+ Exit `0` means every bundle got the verdict it declares — the two honest receipts
84
+ verified and **all seven forgeries refused.** Refusing them is the job, so a clean
85
+ run is not "9 verified".
86
+
87
+ The one to look at is `resealed_tampered_claim`. Its output was edited, its receipt
88
+ re-hashed, its signature re-applied — so it passes the integrity check cleanly and
89
+ fails only on re-derivation. That single bundle is the entire argument for step 2.
90
+
91
+ ## Why the number is the same on your machine
92
+
93
+ Integer fixed-point. Floating point is non-associative and vendor-dependent, so the
94
+ same float kernel on two chips can differ in the last bits; int64 arithmetic is
95
+ exact and identical on every machine that has it. The only float builds the initial
96
+ source term, and it is rounded to int64 before any evolution — so a last-ulp libm
97
+ difference is absorbed rather than compounded.
98
+
99
+ Honest residual risk, stated rather than hidden: a source value sitting exactly on a
100
+ `.5` rounding boundary could round differently under a different libm. **Not proven
101
+ impossible** — but now genuinely measured rather than assumed.
102
+
103
+ CI runs the conformance vectors on **x86_64 Linux, ARM64 macOS and Windows**, across
104
+ four Python versions, and prints the actual output hashes on every runner. The
105
+ architecture split is the load-bearing part: `aarch64` and `x86_64` ship different libm
106
+ implementations, and if that risk were going to bite, that is where it would.
107
+
108
+ When this sentence was first written it said "not observed across the platforms tested"
109
+ and exactly one platform had been tested — true, and nearly empty. If the hashes ever
110
+ diverge between two runners, the job fails and says so, because that divergence is the
111
+ finding, not an inconvenience.
112
+
113
+ ## Status
114
+
115
+ **Apache-2.0.** Permissive on purpose: this is the artifact we ask strangers to run in
116
+ order to check us, and a licence that adds friction to that would defeat its own point.
117
+ It matches what the estate's other public "check our work" repos already carry.
118
+
119
+ `BUILT`. Publication is a single decision away — the package name `obsign-verify` was
120
+ verified available on PyPI on 2026-08-01, and everything here installs and passes today.
121
+
122
+ **A note on the name.** The bare `obsign` name is not available and is not ours: a PyPI
123
+ placeholder reading *"Reserved for the Obsign project — cryptographic proof of AI agent
124
+ actions"* was uploaded on 2026-07-30, seventeen minutes after the GitHub org it points at
125
+ was created. This package is the verifier rather than the engine, so the longer name is
126
+ the accurate one in any case.
@@ -0,0 +1,141 @@
1
+ # What a replay receipt is evidence of
2
+
3
+ **For the people whose job is to say no.**
4
+
5
+ This maps one capability — *the claimed number can be re-derived, bit-for-bit, by
6
+ someone who does not trust us* — to the controls an auditor already has to satisfy.
7
+
8
+ **It is technical-evidence mapping to support an audit. It is not a legal compliance
9
+ certification, and it is not advice.** The tables below are generated from
10
+ `tools/compliance_map.py`; a gate fails the build if this document and that module
11
+ disagree. The hand-written version of this artifact in a sibling repo had already
12
+ gone stale against its own code, which is why it is derived here rather than typed.
13
+
14
+ ---
15
+
16
+ ## The change in evidence class
17
+
18
+ Most controls in this space are satisfied *procedurally*: you assert that validation
19
+ happened, and the auditor assesses your process for asserting it. The reviewer's
20
+ question is **do I believe this organisation's process?**
21
+
22
+ A replay receipt changes what is handed over. The artifact is not a statement that
23
+ the number was checked — it is the number, plus a program that regenerates it. The
24
+ reviewer's question becomes **did I get the same bytes?**, which they answer
25
+ themselves, offline, in one command.
26
+
27
+ That converts a procedural control into a technical one. It is the only claim in this
28
+ document, and everything below is a consequence of it.
29
+
30
+ **A signature does not do this.** Signing proves a claim is *unmodified*; it never
31
+ proves the claim is *true*. The public challenge ships a **resealed forgery** — output
32
+ edited, receipt re-hashed, signature re-applied — precisely so the distinction is
33
+ demonstrable rather than argued. It passes the integrity check and fails re-derivation.
34
+
35
+ ---
36
+
37
+ ## Frameworks cited
38
+
39
+ <!-- BEGIN GENERATED: frameworks -- edit tools/compliance_map.py, not this block -->
40
+ | Framework | Edition cited |
41
+ |---|---|
42
+ | **EU AI Act** | Reg. (EU) 2024/1689, as amended by the 2026 Digital Omnibus |
43
+ | **ISO/IEC 42001** | 2023 |
44
+ | **NIST AI RMF** | 1.0 |
45
+ | **SOC 2** | AICPA Trust Services Criteria |
46
+ | **SR 11-7** | Fed/OCC supervisory guidance on model risk management |
47
+ <!-- END GENERATED: frameworks -->
48
+
49
+ Control identifiers are **edition-sensitive**. Article numbers, Annex A controls and
50
+ Trust Services Criteria references are cited as of the editions above; an auditor
51
+ working from a different edition must re-check the numbering. The stable part is the
52
+ capability-to-requirement argument. The identifier is a pointer, and pointers rot.
53
+
54
+ ## Controls a receipt provides technical evidence for
55
+
56
+ <!-- BEGIN GENERATED: controls-evidenced -- edit tools/compliance_map.py, not this block -->
57
+ | Capability | Framework | Control | Requirement |
58
+ |---|---|---|---|
59
+ | declared accuracy that can be checked | EU AI Act | `Art. 15(1)` | Declared level of accuracy, with the metric stated |
60
+ | declared accuracy that can be checked | NIST AI RMF | `MEASURE 2.5` | Uncertainty and performance quantified per claim |
61
+ | declared accuracy that can be checked | SR 11-7 | `Outcomes Analysis` | Decisions carry a quantified, checkable claim |
62
+ | exact identification of what produced the value | EU AI Act | `Annex IV(1)` | Identification of the AI system and its exact version |
63
+ | exact identification of what produced the value | SOC 2 | `PI1.3` | Processing is authorised and attributable to a defined version |
64
+ | exact identification of what produced the value | SR 11-7 | `Model Development` | Model versioning bound to each result |
65
+ | independent re-derivation of the claimed value | EU AI Act | `Annex IV(2)` | Technical documentation of the system's development and validation |
66
+ | independent re-derivation of the claimed value | ISO/IEC 42001 | `A.6.2.4` | AI system verification and validation of intended behaviour |
67
+ | independent re-derivation of the claimed value | NIST AI RMF | `MEASURE 2.5` | Validity and reliability demonstrated and documented |
68
+ | independent re-derivation of the claimed value | SOC 2 | `PI1.4` | Output is complete and accurate -- evidenced by re-derivation rather than by attestation |
69
+ | independent re-derivation of the claimed value | SR 11-7 | `Model Validation` | Results are replicable by a party independent of the model's developer |
70
+ | resilience of the record against alteration | EU AI Act | `Art. 15(5)` | Cybersecurity; resilience against data or model manipulation |
71
+ | resilience of the record against alteration | NIST AI RMF | `MEASURE 2.7` | Robustness and security of the system evaluated |
72
+ | resilience of the record against alteration | SOC 2 | `PI1.5` | Stored output is protected from unauthorised change |
73
+ | tamper-evident record of the operation | EU AI Act | `Art. 12` | Automatic recording of events over the system's lifetime |
74
+ | tamper-evident record of the operation | EU AI Act | `Art. 26(6)` | Deployer retains automatically generated logs |
75
+ | tamper-evident record of the operation | ISO/IEC 42001 | `A.6.2.8` | Recording of event logs for AI system operation |
76
+ | tamper-evident record of the operation | NIST AI RMF | `GOVERN 1.5` | Traceability and accountability for system decisions |
77
+ | tamper-evident record of the operation | SOC 2 | `CC7.2` | System operation is monitored and anomalies detected |
78
+ | tamper-evident record of the operation | SR 11-7 | `Documentation` | Audit trail sufficient for independent review |
79
+ <!-- END GENERATED: controls-evidenced -->
80
+
81
+ The strongest row is **SOC 2 `PI1.4`**. Processing Integrity asks whether output is
82
+ complete and accurate. Every other technology in this space answers it by
83
+ *attestation* — someone with a key says so. A receipt answers it by *demonstration*.
84
+ That is the difference between showing and saying, and it is the entire product
85
+ argument in one control reference.
86
+
87
+ ## Controls a receipt does NOT address
88
+
89
+ <!-- BEGIN GENERATED: controls-not-covered -- edit tools/compliance_map.py, not this block -->
90
+ | Framework | Control | Why a receipt does not address it |
91
+ |---|---|---|
92
+ | EU AI Act | `Art. 10` | Data and data governance; training-data quality and representativeness |
93
+ | EU AI Act | `Art. 14` | Human oversight design (a computed-claim receipt evidences no oversight step) |
94
+ | EU AI Act | `Art. 9` | Risk-management system across the lifecycle (process) |
95
+ | ISO/IEC 42001 | `A.5.2` | AI system impact assessment (process-level) |
96
+ | ISO/IEC 42001 | `A.7.2` | Data governance for AI systems |
97
+ | NIST AI RMF | `MEASURE 2.11` | Fairness and harmful-bias evaluation (needs a bias audit) |
98
+ | SOC 2 | `A1.x` | Availability commitments and capacity management (organisational) |
99
+ | SOC 2 | `CC6.x` | Logical access controls over the issuing system (organisational) |
100
+ | SOC 2 | `CC8.1` | Change management for the model and its deployment (process) |
101
+ | SR 11-7 | `Conceptual Soundness` | Justification of model design and assumptions |
102
+ <!-- END GENERATED: controls-not-covered -->
103
+
104
+ This list is why the previous one is credible. Every entry is process-level or
105
+ organisational, and a mapping that quietly omitted them would be the kind of overreach
106
+ that costs an auditor's trust in the rows that *are* evidenced. The self-test enforces
107
+ it structurally: **no framework may appear in the evidenced table without also
108
+ appearing here.** A framework claimed without its limits stated fails the build.
109
+
110
+ ---
111
+
112
+ ## Scope, stated before you ask
113
+
114
+ **Only the claimed number must live in the deterministic core — not your pipeline.**
115
+ This is the objection that decides adoption, so it is answered first rather than
116
+ defended later. You do not port your training stack. You identify the handful of
117
+ numbers that are actually in dispute — the ones a validator currently re-implements by
118
+ hand — and put those on the replay path.
119
+
120
+ If that scope cannot be shrunk to a short list on the first conversation, this is not
121
+ the right time for that organisation, and saying so early is cheaper for both sides.
122
+
123
+ **Cryptography stops at the sensor**, and for computed claims it stops at the input.
124
+ A receipt proves the stated inputs produce the stated output. It cannot prove the
125
+ inputs describe reality. Anyone who tells you otherwise is selling.
126
+
127
+ **Key custody is a separate question.** An unsigned receipt whose number re-derives is
128
+ still fully verified in the sense that matters here: integrity holds and you recomputed
129
+ the value. A signature adds *who*, not *whether* — and this verifier will not name a
130
+ signer the signature did not cryptographically cover.
131
+
132
+ ---
133
+
134
+ ## What to hand an examiner
135
+
136
+ 1. The receipt.
137
+ 2. `pip install` and one command.
138
+ 3. This mapping, with the not-covered table intact.
139
+
140
+ The third item is the one that makes the first two land. An examiner who has been
141
+ handed only cryptography has been handed homework.