oept 0.1.1__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 (102) hide show
  1. oept-0.1.1/LICENSE +200 -0
  2. oept-0.1.1/MANIFEST.in +8 -0
  3. oept-0.1.1/PKG-INFO +147 -0
  4. oept-0.1.1/README.md +113 -0
  5. oept-0.1.1/conformance/fixtures/01-valid-unsigned/bundle.zip +0 -0
  6. oept-0.1.1/conformance/fixtures/01-valid-unsigned/expected-result.json +3 -0
  7. oept-0.1.1/conformance/fixtures/02-valid-signed/bundle.zip +0 -0
  8. oept-0.1.1/conformance/fixtures/02-valid-signed/expected-result.json +3 -0
  9. oept-0.1.1/conformance/fixtures/02-valid-signed/trust-keys.json +6 -0
  10. oept-0.1.1/conformance/fixtures/03-tampered-artifact/bundle.zip +0 -0
  11. oept-0.1.1/conformance/fixtures/03-tampered-artifact/expected-result.json +3 -0
  12. oept-0.1.1/conformance/fixtures/04-missing-member/bundle.zip +0 -0
  13. oept-0.1.1/conformance/fixtures/04-missing-member/expected-result.json +3 -0
  14. oept-0.1.1/conformance/fixtures/05-unsafe-path/bundle.zip +0 -0
  15. oept-0.1.1/conformance/fixtures/05-unsafe-path/expected-result.json +3 -0
  16. oept-0.1.1/conformance/fixtures/06-signature-invalid/bundle.zip +0 -0
  17. oept-0.1.1/conformance/fixtures/06-signature-invalid/expected-result.json +3 -0
  18. oept-0.1.1/conformance/fixtures/06-signature-invalid/trust-keys.json +6 -0
  19. oept-0.1.1/conformance/fixtures/07-unknown-key/bundle.zip +0 -0
  20. oept-0.1.1/conformance/fixtures/07-unknown-key/expected-result.json +3 -0
  21. oept-0.1.1/conformance/fixtures/08-unexpected-member/bundle.zip +0 -0
  22. oept-0.1.1/conformance/fixtures/08-unexpected-member/expected-result.json +3 -0
  23. oept-0.1.1/conformance/fixtures/09-unsupported-version/bundle.zip +0 -0
  24. oept-0.1.1/conformance/fixtures/09-unsupported-version/expected-result.json +3 -0
  25. oept-0.1.1/conformance/fixtures/10-malformed-manifest/bundle.zip +0 -0
  26. oept-0.1.1/conformance/fixtures/10-malformed-manifest/expected-result.json +3 -0
  27. oept-0.1.1/conformance/make_fixtures.py +257 -0
  28. oept-0.1.1/conformance/test-only-keys/README.md +13 -0
  29. oept-0.1.1/conformance/test-only-keys/conformance-test-only-signing.key +3 -0
  30. oept-0.1.1/conformance/test-only-keys/conformance-test-only-signing.pub +3 -0
  31. oept-0.1.1/docs/roadmap.md +21 -0
  32. oept-0.1.1/examples/evidence-project/evidence/readme.txt +1 -0
  33. oept-0.1.1/examples/evidence-project/evidence/report-2026-001.txt +2 -0
  34. oept-0.1.1/examples/evidence-project/facts.json +18 -0
  35. oept-0.1.1/examples/evidence-project/provenance.json +13 -0
  36. oept-0.1.1/examples/valid-unsigned.zip +0 -0
  37. oept-0.1.1/pyproject.toml +78 -0
  38. oept-0.1.1/schemas/bundle-manifest.schema.json +27 -0
  39. oept-0.1.1/schemas/evidence-object.schema.json +15 -0
  40. oept-0.1.1/schemas/evidence-version.schema.json +21 -0
  41. oept-0.1.1/schemas/fact.schema.json +30 -0
  42. oept-0.1.1/schemas/provenance-pointer.schema.json +18 -0
  43. oept-0.1.1/schemas/rule-trace.schema.json +20 -0
  44. oept-0.1.1/schemas/verification-result.schema.json +26 -0
  45. oept-0.1.1/setup.cfg +4 -0
  46. oept-0.1.1/spec/bundle-spec.md +158 -0
  47. oept-0.1.1/spec/threat-model.md +71 -0
  48. oept-0.1.1/src/oept/__init__.py +32 -0
  49. oept-0.1.1/src/oept/bundle.py +175 -0
  50. oept-0.1.1/src/oept/canonical.py +85 -0
  51. oept-0.1.1/src/oept/cli.py +228 -0
  52. oept-0.1.1/src/oept/conformance.py +74 -0
  53. oept-0.1.1/src/oept/data/__init__.py +1 -0
  54. oept-0.1.1/src/oept/data/conformance/01-valid-unsigned/bundle.zip +0 -0
  55. oept-0.1.1/src/oept/data/conformance/01-valid-unsigned/expected-result.json +3 -0
  56. oept-0.1.1/src/oept/data/conformance/02-valid-signed/bundle.zip +0 -0
  57. oept-0.1.1/src/oept/data/conformance/02-valid-signed/expected-result.json +3 -0
  58. oept-0.1.1/src/oept/data/conformance/02-valid-signed/trust-keys.json +6 -0
  59. oept-0.1.1/src/oept/data/conformance/03-tampered-artifact/bundle.zip +0 -0
  60. oept-0.1.1/src/oept/data/conformance/03-tampered-artifact/expected-result.json +3 -0
  61. oept-0.1.1/src/oept/data/conformance/04-missing-member/bundle.zip +0 -0
  62. oept-0.1.1/src/oept/data/conformance/04-missing-member/expected-result.json +3 -0
  63. oept-0.1.1/src/oept/data/conformance/05-unsafe-path/bundle.zip +0 -0
  64. oept-0.1.1/src/oept/data/conformance/05-unsafe-path/expected-result.json +3 -0
  65. oept-0.1.1/src/oept/data/conformance/06-signature-invalid/bundle.zip +0 -0
  66. oept-0.1.1/src/oept/data/conformance/06-signature-invalid/expected-result.json +3 -0
  67. oept-0.1.1/src/oept/data/conformance/06-signature-invalid/trust-keys.json +6 -0
  68. oept-0.1.1/src/oept/data/conformance/07-unknown-key/bundle.zip +0 -0
  69. oept-0.1.1/src/oept/data/conformance/07-unknown-key/expected-result.json +3 -0
  70. oept-0.1.1/src/oept/data/conformance/08-unexpected-member/bundle.zip +0 -0
  71. oept-0.1.1/src/oept/data/conformance/08-unexpected-member/expected-result.json +3 -0
  72. oept-0.1.1/src/oept/data/conformance/09-unsupported-version/bundle.zip +0 -0
  73. oept-0.1.1/src/oept/data/conformance/09-unsupported-version/expected-result.json +3 -0
  74. oept-0.1.1/src/oept/data/conformance/10-malformed-manifest/bundle.zip +0 -0
  75. oept-0.1.1/src/oept/data/conformance/10-malformed-manifest/expected-result.json +3 -0
  76. oept-0.1.1/src/oept/data/schemas/__init__.py +1 -0
  77. oept-0.1.1/src/oept/data/schemas/bundle-manifest.schema.json +27 -0
  78. oept-0.1.1/src/oept/data/schemas/evidence-object.schema.json +15 -0
  79. oept-0.1.1/src/oept/data/schemas/evidence-version.schema.json +21 -0
  80. oept-0.1.1/src/oept/data/schemas/fact.schema.json +30 -0
  81. oept-0.1.1/src/oept/data/schemas/provenance-pointer.schema.json +18 -0
  82. oept-0.1.1/src/oept/data/schemas/rule-trace.schema.json +20 -0
  83. oept-0.1.1/src/oept/data/schemas/verification-result.schema.json +26 -0
  84. oept-0.1.1/src/oept/errors.py +29 -0
  85. oept-0.1.1/src/oept/hashing.py +37 -0
  86. oept-0.1.1/src/oept/models.py +268 -0
  87. oept-0.1.1/src/oept/py.typed +0 -0
  88. oept-0.1.1/src/oept/schemas.py +93 -0
  89. oept-0.1.1/src/oept/signing.py +131 -0
  90. oept-0.1.1/src/oept/verify.py +555 -0
  91. oept-0.1.1/src/oept.egg-info/PKG-INFO +147 -0
  92. oept-0.1.1/src/oept.egg-info/SOURCES.txt +100 -0
  93. oept-0.1.1/src/oept.egg-info/dependency_links.txt +1 -0
  94. oept-0.1.1/src/oept.egg-info/entry_points.txt +2 -0
  95. oept-0.1.1/src/oept.egg-info/requires.txt +11 -0
  96. oept-0.1.1/src/oept.egg-info/top_level.txt +1 -0
  97. oept-0.1.1/tests/test_bundle.py +119 -0
  98. oept-0.1.1/tests/test_canonical.py +101 -0
  99. oept-0.1.1/tests/test_cli_conformance.py +221 -0
  100. oept-0.1.1/tests/test_fuzz_archive_canonical.py +182 -0
  101. oept-0.1.1/tests/test_packaging.py +38 -0
  102. oept-0.1.1/tests/test_verify.py +463 -0
oept-0.1.1/LICENSE ADDED
@@ -0,0 +1,200 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We don't recommend using
185
+ this address for actual confirmation of the license; it is given
186
+ here as a convenience.
187
+
188
+ Copyright 2026 OEPT Contributors
189
+
190
+ Licensed under the Apache License, Version 2.0 (the "License");
191
+ you may not use this file except in compliance with the License.
192
+ You may obtain a copy of the License at
193
+
194
+ http://www.apache.org/licenses/LICENSE-2.0
195
+
196
+ Unless required by applicable law or agreed to in writing, software
197
+ distributed under the License is distributed on an "AS IS" BASIS,
198
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
199
+ See the License for the specific language governing permissions and
200
+ limitations under the License.
oept-0.1.1/MANIFEST.in ADDED
@@ -0,0 +1,8 @@
1
+ graft schemas
2
+ graft spec
3
+ graft examples
4
+ graft conformance
5
+ graft docs
6
+ global-exclude __pycache__
7
+ global-exclude *.py[cod]
8
+ global-exclude .DS_Store
oept-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,147 @@
1
+ Metadata-Version: 2.4
2
+ Name: oept
3
+ Version: 0.1.1
4
+ Summary: Open Evidence Provenance Toolkit: content-addressed evidence objects, portable signed bundles, offline verification
5
+ Author: OEPT Contributors
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/fintegra-ai/open-evidence-provenance
8
+ Project-URL: Repository, https://github.com/fintegra-ai/open-evidence-provenance
9
+ Keywords: provenance,supply-chain,integrity,verification,evidence
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Security
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: cryptography>=41
25
+ Requires-Dist: jcs>=0.2
26
+ Requires-Dist: jsonschema>=4.18
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest>=8; extra == "dev"
29
+ Requires-Dist: ruff>=0.4; extra == "dev"
30
+ Requires-Dist: mypy>=1.8; extra == "dev"
31
+ Provides-Extra: test
32
+ Requires-Dist: pytest>=8; extra == "test"
33
+ Dynamic: license-file
34
+
35
+ # Open Evidence Provenance Toolkit (OEPT)
36
+
37
+ Small, dependency-light infrastructure for **evidence provenance**:
38
+ prove *which exact source version produced which claim*, and let any
39
+ third party verify the package **offline** — without trusting your servers.
40
+
41
+ ```
42
+ source bytes → content digest → provenance metadata → portable bundle → offline verification
43
+ ```
44
+
45
+ ## The problem
46
+
47
+ Software and data pipelines transform source files through parsing,
48
+ normalization, mappings, validation, and deterministic controls. Downstream
49
+ users — auditors, integrators, regulators, customers — frequently cannot
50
+ independently determine which source object produced a claim, which exact
51
+ version was used, which transformation ran, when it was observed, whether
52
+ the source changed later, or whether an exported package was modified.
53
+
54
+ OEPT provides reusable primitives for that chain:
55
+ content-addressed evidence objects, append-only observation history,
56
+ deterministic canonicalization, portable signed bundles, and an offline
57
+ verifier. The project emerged from work on evidence-intensive systems
58
+ including financial and regulatory workflows, but OEPT itself is
59
+ domain-neutral: it works with arbitrary data files.
60
+
61
+ ## Trust boundary (read first)
62
+
63
+ OEPT proves: bundle structure, member presence, SHA-256 integrity,
64
+ manifest integrity, safe archive structure, Ed25519 signature validity,
65
+ supplied trusted-key identity.
66
+
67
+ OEPT never claims: factual truth, commercial truth, legal validity,
68
+ compliance approval, fraud detection, eIDAS qualification, timestamps,
69
+ certificate chains, or malware-free status.
70
+
71
+ ## Quickstart
72
+
73
+ ```bash
74
+ pip install -e .
75
+ oept verify examples/valid-unsigned.zip
76
+ ```
77
+
78
+ Expected output:
79
+
80
+ ```
81
+ Bundle: examples/valid-unsigned.zip
82
+ Specification: oept-bundle/0.1
83
+ Structure: VALID
84
+ Member digests: VALID
85
+ Signature: NOT PRESENT
86
+ Result: VALID_UNSIGNED
87
+
88
+ Technical verification only — not a legal, compliance, or factual conclusion.
89
+ ```
90
+
91
+ Build a bundle from a prepared directory (containing `facts.json`,
92
+ `provenance.json`, and `evidence/`):
93
+
94
+ ```bash
95
+ oept bundle examples/evidence-project --output my-evidence.zip
96
+ oept verify my-evidence.zip --json
97
+ ```
98
+
99
+ Signed bundles:
100
+
101
+ ```bash
102
+ oept bundle DIR --output signed.zip --sign my-key.pem --key-id ops-2026
103
+ oept verify signed.zip --trust-keys trust-keys.json
104
+ ```
105
+
106
+ Trust roots always come from `--trust-keys`. Keys embedded in a bundle
107
+ are identification labels only and are never trusted automatically.
108
+
109
+ ## Bundle anatomy (oept-bundle/0.1)
110
+
111
+ Required: `manifest.json`, `facts.json`, `provenance.json`, `evidence/`.
112
+ Optional: `metadata/`, `rule_traces.json`, `signatures/manifest.sig`,
113
+ `signatures/key-info.json`, `SUMMARY.txt`.
114
+ Full rules: `spec/bundle-spec.md`.
115
+
116
+ Verification statuses: `VALID_SIGNED`, `VALID_UNSIGNED`, `HASH_MISMATCH`,
117
+ `MISSING_FILE`, `UNEXPECTED_FILE`, `SIGNATURE_INVALID`,
118
+ `SIGNATURE_KEY_UNKNOWN`, `UNSUPPORTED_SPEC_VERSION`, `UNSAFE_ARCHIVE`,
119
+ `MALFORMED_BUNDLE`.
120
+
121
+ ## Relationship to existing standards
122
+
123
+ OEPT complements rather than replaces: in-toto, SLSA, Sigstore, W3C PROV,
124
+ RO-Crate, SCITT, SPDX, CycloneDX. None of these today gives field-level
125
+ source-bytes→claim lineage in one stdlib-friendly offline bundle without
126
+ a daemon, OIDC, RDF store, or log operator — that narrow gap is OEPT's
127
+ reason to exist. Interoperability adapters (in-toto statement emission,
128
+ PROV export) are planned grant work; v0.1 claims no compatibility beyond
129
+ its own spec. See `docs/roadmap.md`.
130
+
131
+ ## Roadmap
132
+
133
+ - v0.1 (this release): schemas, SDK core (canonical/hash/bundle/verify),
134
+ CLI, conformance corpus, specs.
135
+ - Grant work (planned): EvidenceStore (SQLite), source-mapping profiles,
136
+ rule-trace emitter, snapshot pinning, W3C PROV + in-toto exporters,
137
+ transparency-log anchoring study.
138
+
139
+ ## Security reporting
140
+
141
+ See SECURITY.md. Until a dedicated project security address is published,
142
+ report privately through the repository hosting platform's security
143
+ advisory mechanism.
144
+
145
+ ## License
146
+
147
+ Apache-2.0. See LICENSE.
oept-0.1.1/README.md ADDED
@@ -0,0 +1,113 @@
1
+ # Open Evidence Provenance Toolkit (OEPT)
2
+
3
+ Small, dependency-light infrastructure for **evidence provenance**:
4
+ prove *which exact source version produced which claim*, and let any
5
+ third party verify the package **offline** — without trusting your servers.
6
+
7
+ ```
8
+ source bytes → content digest → provenance metadata → portable bundle → offline verification
9
+ ```
10
+
11
+ ## The problem
12
+
13
+ Software and data pipelines transform source files through parsing,
14
+ normalization, mappings, validation, and deterministic controls. Downstream
15
+ users — auditors, integrators, regulators, customers — frequently cannot
16
+ independently determine which source object produced a claim, which exact
17
+ version was used, which transformation ran, when it was observed, whether
18
+ the source changed later, or whether an exported package was modified.
19
+
20
+ OEPT provides reusable primitives for that chain:
21
+ content-addressed evidence objects, append-only observation history,
22
+ deterministic canonicalization, portable signed bundles, and an offline
23
+ verifier. The project emerged from work on evidence-intensive systems
24
+ including financial and regulatory workflows, but OEPT itself is
25
+ domain-neutral: it works with arbitrary data files.
26
+
27
+ ## Trust boundary (read first)
28
+
29
+ OEPT proves: bundle structure, member presence, SHA-256 integrity,
30
+ manifest integrity, safe archive structure, Ed25519 signature validity,
31
+ supplied trusted-key identity.
32
+
33
+ OEPT never claims: factual truth, commercial truth, legal validity,
34
+ compliance approval, fraud detection, eIDAS qualification, timestamps,
35
+ certificate chains, or malware-free status.
36
+
37
+ ## Quickstart
38
+
39
+ ```bash
40
+ pip install -e .
41
+ oept verify examples/valid-unsigned.zip
42
+ ```
43
+
44
+ Expected output:
45
+
46
+ ```
47
+ Bundle: examples/valid-unsigned.zip
48
+ Specification: oept-bundle/0.1
49
+ Structure: VALID
50
+ Member digests: VALID
51
+ Signature: NOT PRESENT
52
+ Result: VALID_UNSIGNED
53
+
54
+ Technical verification only — not a legal, compliance, or factual conclusion.
55
+ ```
56
+
57
+ Build a bundle from a prepared directory (containing `facts.json`,
58
+ `provenance.json`, and `evidence/`):
59
+
60
+ ```bash
61
+ oept bundle examples/evidence-project --output my-evidence.zip
62
+ oept verify my-evidence.zip --json
63
+ ```
64
+
65
+ Signed bundles:
66
+
67
+ ```bash
68
+ oept bundle DIR --output signed.zip --sign my-key.pem --key-id ops-2026
69
+ oept verify signed.zip --trust-keys trust-keys.json
70
+ ```
71
+
72
+ Trust roots always come from `--trust-keys`. Keys embedded in a bundle
73
+ are identification labels only and are never trusted automatically.
74
+
75
+ ## Bundle anatomy (oept-bundle/0.1)
76
+
77
+ Required: `manifest.json`, `facts.json`, `provenance.json`, `evidence/`.
78
+ Optional: `metadata/`, `rule_traces.json`, `signatures/manifest.sig`,
79
+ `signatures/key-info.json`, `SUMMARY.txt`.
80
+ Full rules: `spec/bundle-spec.md`.
81
+
82
+ Verification statuses: `VALID_SIGNED`, `VALID_UNSIGNED`, `HASH_MISMATCH`,
83
+ `MISSING_FILE`, `UNEXPECTED_FILE`, `SIGNATURE_INVALID`,
84
+ `SIGNATURE_KEY_UNKNOWN`, `UNSUPPORTED_SPEC_VERSION`, `UNSAFE_ARCHIVE`,
85
+ `MALFORMED_BUNDLE`.
86
+
87
+ ## Relationship to existing standards
88
+
89
+ OEPT complements rather than replaces: in-toto, SLSA, Sigstore, W3C PROV,
90
+ RO-Crate, SCITT, SPDX, CycloneDX. None of these today gives field-level
91
+ source-bytes→claim lineage in one stdlib-friendly offline bundle without
92
+ a daemon, OIDC, RDF store, or log operator — that narrow gap is OEPT's
93
+ reason to exist. Interoperability adapters (in-toto statement emission,
94
+ PROV export) are planned grant work; v0.1 claims no compatibility beyond
95
+ its own spec. See `docs/roadmap.md`.
96
+
97
+ ## Roadmap
98
+
99
+ - v0.1 (this release): schemas, SDK core (canonical/hash/bundle/verify),
100
+ CLI, conformance corpus, specs.
101
+ - Grant work (planned): EvidenceStore (SQLite), source-mapping profiles,
102
+ rule-trace emitter, snapshot pinning, W3C PROV + in-toto exporters,
103
+ transparency-log anchoring study.
104
+
105
+ ## Security reporting
106
+
107
+ See SECURITY.md. Until a dedicated project security address is published,
108
+ report privately through the repository hosting platform's security
109
+ advisory mechanism.
110
+
111
+ ## License
112
+
113
+ Apache-2.0. See LICENSE.
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "VALID_UNSIGNED"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "VALID_SIGNED"
3
+ }
@@ -0,0 +1,6 @@
1
+ [
2
+ {
3
+ "key_id": "conformance-test-key",
4
+ "public_key_pem": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAZHQFbcEU4SxGXn6EY0Xz6By9k70sQUa2DxU+mqfPgFc=\n-----END PUBLIC KEY-----\n"
5
+ }
6
+ ]
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "HASH_MISMATCH"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "MISSING_FILE"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "UNSAFE_ARCHIVE"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "SIGNATURE_INVALID"
3
+ }
@@ -0,0 +1,6 @@
1
+ [
2
+ {
3
+ "key_id": "conformance-test-key",
4
+ "public_key_pem": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAZHQFbcEU4SxGXn6EY0Xz6By9k70sQUa2DxU+mqfPgFc=\n-----END PUBLIC KEY-----\n"
5
+ }
6
+ ]
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "SIGNATURE_KEY_UNKNOWN"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "UNEXPECTED_FILE"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "UNSUPPORTED_SPEC_VERSION"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "MALFORMED_BUNDLE"
3
+ }