wiseata 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 (37) hide show
  1. wiseata-0.1.0/LICENSE +202 -0
  2. wiseata-0.1.0/PKG-INFO +395 -0
  3. wiseata-0.1.0/README.md +381 -0
  4. wiseata-0.1.0/pyproject.toml +27 -0
  5. wiseata-0.1.0/setup.cfg +4 -0
  6. wiseata-0.1.0/src/wise/__init__.py +36 -0
  7. wiseata-0.1.0/src/wise/cli.py +287 -0
  8. wiseata-0.1.0/src/wise/digest.py +132 -0
  9. wiseata-0.1.0/src/wise/digest_v1.py +128 -0
  10. wiseata-0.1.0/src/wise/digest_v2.py +164 -0
  11. wiseata-0.1.0/src/wise/digest_v3.py +210 -0
  12. wiseata-0.1.0/src/wise/errors.py +19 -0
  13. wiseata-0.1.0/src/wise/expansion.py +254 -0
  14. wiseata-0.1.0/src/wise/format.py +146 -0
  15. wiseata-0.1.0/src/wise/proof.py +204 -0
  16. wiseata-0.1.0/src/wise/seal.py +102 -0
  17. wiseata-0.1.0/src/wise/verify.py +333 -0
  18. wiseata-0.1.0/src/wiseata/__init__.py +8 -0
  19. wiseata-0.1.0/src/wiseata/cli.py +238 -0
  20. wiseata-0.1.0/src/wiseata.egg-info/PKG-INFO +395 -0
  21. wiseata-0.1.0/src/wiseata.egg-info/SOURCES.txt +35 -0
  22. wiseata-0.1.0/src/wiseata.egg-info/dependency_links.txt +1 -0
  23. wiseata-0.1.0/src/wiseata.egg-info/entry_points.txt +3 -0
  24. wiseata-0.1.0/src/wiseata.egg-info/top_level.txt +2 -0
  25. wiseata-0.1.0/tests/test_expansion.py +429 -0
  26. wiseata-0.1.0/tests/test_locked_vectors.py +55 -0
  27. wiseata-0.1.0/tests/test_wise_demo.py +508 -0
  28. wiseata-0.1.0/tests/test_wise_format.py +285 -0
  29. wiseata-0.1.0/tests/test_wise_proof.py +157 -0
  30. wiseata-0.1.0/tests/test_wise_seal.py +179 -0
  31. wiseata-0.1.0/tests/test_wise_verify.py +622 -0
  32. wiseata-0.1.0/tests/test_wisedigest_attack_suite.py +341 -0
  33. wiseata-0.1.0/tests/test_wisedigest_v1.py +157 -0
  34. wiseata-0.1.0/tests/test_wisedigest_v2.py +117 -0
  35. wiseata-0.1.0/tests/test_wisedigest_v2_attack_suite.py +287 -0
  36. wiseata-0.1.0/tests/test_wisedigest_v3.py +180 -0
  37. wiseata-0.1.0/tests/test_wisedigest_v3_attack_suite.py +299 -0
wiseata-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
wiseata-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,395 @@
1
+ Metadata-Version: 2.4
2
+ Name: wiseata
3
+ Version: 0.1.0
4
+ Summary: WISEATA — deterministic, local-first verification: prove an artifact hasn't changed and see exactly what did. A Wise.Est Systems protocol.
5
+ Author: Wise.Est Systems
6
+ License: Apache-2.0
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: Apache Software License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Dynamic: license-file
14
+
15
+ # WISEATA
16
+
17
+ [![CI](https://github.com/Wise-Est-Systems/wop/actions/workflows/test.yml/badge.svg)](https://github.com/Wise-Est-Systems/wop/actions/workflows/test.yml)
18
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
19
+ [![Python](https://img.shields.io/badge/python-3.10%E2%80%933.13-blue.svg)](pyproject.toml)
20
+ [![Spec](https://img.shields.io/badge/spec-WISEATA--v0.1.1-green.svg)](spec/WISEATA-v0.1.1.md)
21
+
22
+ **WISEATA — inspect what changed. Deterministic verification.**
23
+
24
+ This is the builder/protocol home for WISEATA, one of the three products under
25
+ **Wise.Est Systems**:
26
+
27
+ - **WiseOrder** — the kernel that governs how an AI's output is allowed to become an action.
28
+ - **WIN** (Wise Independent Network) — files that prove themselves: seal any file, verify it offline.
29
+ - **WISEATA** — *inspect what changed.* In the public story, WISEATA is "how WIN
30
+ inspects": the proof and the change-map live **inside a `.win`**. The two
31
+ objects below — a `.wiseproof` and a `.wiseexp` — are the builder-facing
32
+ layers of that inspection.
33
+
34
+ The job in one line: most tools tell you *that* two files differ. WISEATA tells
35
+ you, deterministically and offline, *where* and *how* they differ.
36
+
37
+ Two contracts. One word changed (`thousand` → `MILLION`).
38
+
39
+ ```
40
+ SHA-256 says:
41
+ b807ee5d4894... contract_v1.txt
42
+ 665c30ec25f7... contract_v2.txt
43
+ Different. End of report.
44
+
45
+ WISEATA says:
46
+ byte 2/2 differ [DIFFERS]
47
+ positional 1/4 differ [partial] ← first/last/middle slices identical
48
+ frequency 4/6 differ [partial] ← entropy +0.109 bits, +5 distinct bytes
49
+ transition 3/5 differ [partial] ← bigram matrix shifted, top bigram unchanged
50
+ structural 3/6 differ [partial] ← run-length pattern moved by 2 runs
51
+ wisemark 1/1 differ [DIFFERS]
52
+ A small word edit. Not a rewrite.
53
+ ```
54
+
55
+ WISEATA produces two complementary objects from any artifact:
56
+
57
+ 1. A **proof** (`.wiseproof`) — anyone can re-derive the artifact's identity offline and confirm bytes haven't changed.
58
+ 2. An **expansion** (`.wiseexp`) — a layered structural fingerprint that exposes *how* the artifact is shaped, so two files can be compared meaningfully — not just "different."
59
+
60
+ Local-first. No accounts. No servers. No platform. No blockchain.
61
+
62
+ ---
63
+
64
+ ## What `.wiseexp` does that nothing else does
65
+
66
+ Most tools answer one question: *"are these two files different?"* — yes or no.
67
+
68
+ A WiseExpansion answers *how* they differ, layer by layer:
69
+
70
+ | Layer | Question it answers |
71
+ |---|---|
72
+ | **Byte** | What's the size? What's the bit-exact identity? |
73
+ | **Positional** | What do the first / last / middle bytes look like? Are there positional patterns? |
74
+ | **Frequency** | What does the byte distribution look like? Is it text-like, binary-like, random? |
75
+ | **Transitions** | Which bigrams are common? Is the data structured or random? |
76
+ | **Structural** | Are there runs? How does it segment into blocks? |
77
+ | **WiseMark** | A self-referential 256-bit digest of all the above. |
78
+
79
+ A `.wiseexp` is **not a hash and not compression** — it is *larger* than the
80
+ input. The point is to expose structure cheaply enough to inspect without ever
81
+ opening the original artifact. Two files differing by one word produce two
82
+ expansions that can be diffed at every layer to show *where* the change
83
+ landed (entropy shift, bigram changes, run-length pattern movement) — not
84
+ just that bytes diverge.
85
+
86
+ To my knowledge, this is a primitive without a direct precedent. The closest
87
+ neighbors are forensic similarity hashes (ssdeep, sdhash, TLSH) which produce
88
+ opaque single-output fingerprints; `.wiseexp` exposes *named, separately
89
+ inspectable* layers.
90
+
91
+ **Determinism scope — read this before you rely on it.** The two paths have
92
+ different, honestly different, guarantees:
93
+
94
+ - The **proof path** (`.wiseproof`, `wise forge` / `wise check`) is
95
+ integer-only and deterministic by construction — the digest and the strict
96
+ integer fields produce the same bytes wherever they run. This is the strong
97
+ claim.
98
+ - The **expansion path** (`.wiseexp`) contains float-derived entropy fields
99
+ (`shannon_milli`, `chi_squared_milli`, `bigram_entropy_milli`). Those are
100
+ **reproducible across runs on CPython only.** Cross-language and cross-OS
101
+ conformance for the entropy fields is **deferred** to a future version that
102
+ pins exact rational arithmetic (spec §6). There is no cross-machine test in
103
+ this repo yet, so do **not** read "deterministic" as "reproduces identically
104
+ on any machine in any language" — that is not yet proven here.
105
+
106
+ If you can think of prior art for the layered explainable approach, please
107
+ open an issue — I want to know.
108
+
109
+ > **Disclaimer.** `WiseDigest-0`, the native digest used by default, is **experimental** and has **not been formally cryptanalyzed**. For threat models that require collision resistance against well-funded adversaries, pass `--algorithm SHA-256`. See [`SECURITY.md`](SECURITY.md). Do not use v0.1.0 alone for high-stakes adversarial security.
110
+
111
+ ---
112
+
113
+ ## Install (under 1 minute)
114
+
115
+ Requires Python 3.10+.
116
+
117
+ ```bash
118
+ git clone https://github.com/Wise-Est-Systems/wop.git
119
+ cd wop
120
+ python3 -m venv .venv && source .venv/bin/activate
121
+ pip install -e .
122
+ ```
123
+
124
+ Two CLIs land on your `PATH`: `wise` and `wiseata`.
125
+
126
+ ---
127
+
128
+ ## See it work (under 30 seconds)
129
+
130
+ ```bash
131
+ bash demo.sh
132
+ ```
133
+
134
+ The demo creates two contracts differing in one word, runs SHA-256 against both, then runs `wiseata expand` and `wiseata diff`. You'll see the difference in what they tell you.
135
+
136
+ ---
137
+
138
+ ## Try it on your own files (under 2 minutes)
139
+
140
+ **Verify a file:**
141
+
142
+ ```bash
143
+ printf 'truth\n' > demo.txt
144
+
145
+ wise forge demo.txt
146
+ # → demo.txt.wiseproof
147
+
148
+ wise check demo.txt demo.txt.wiseproof
149
+ # → VERIFIED (exit 0)
150
+
151
+ printf 'changed\n' > demo.txt
152
+ wise check demo.txt demo.txt.wiseproof
153
+ # → TAMPERED (exit 1)
154
+ ```
155
+
156
+ **Compare two files structurally:**
157
+
158
+ ```bash
159
+ wiseata expand somefile.pdf --summary
160
+ wiseata diff fileA fileB
161
+ ```
162
+
163
+ ---
164
+
165
+ ## Status codes
166
+
167
+ ```
168
+ VERIFIED 0 bytes match the proof
169
+ TAMPERED 1 bytes diverge (digest or size mismatch)
170
+ INVALID_PROOF 2 proof malformed, missing fields, or body altered
171
+ UNREADABLE_ARTIFACT 3 artifact cannot be read
172
+ UNSUPPORTED_ALGORITHM 4 algorithm not in {WiseDigest-0, SHA-256}
173
+ USER_ERROR 5 bad CLI invocation
174
+ ```
175
+
176
+ No "maybe." No confidence score.
177
+
178
+ ---
179
+
180
+ ## What `wise_id` and `wise_seal` are
181
+
182
+ Every `.wiseproof` carries two identity fields:
183
+
184
+ | Field | What it commits to |
185
+ |-------------|----------------------------------------------------------------------------------------------------------|
186
+ | `wise_id` | Independent of time and filename. Same artifact + same algorithm + same `creator` → same `wise_id`. The proof path is integer-only, so this holds **by construction**; a cross-machine conformance test is on the roadmap, not yet in this repo. |
187
+ | `wise_seal` | Commits to `wise_id` plus the sealing time. Different sealing time → different `wise_seal`. |
188
+
189
+ A proof has its own reproducible name. That's the wedge.
190
+
191
+ ---
192
+
193
+ ## What this is not
194
+
195
+ WISEATA proves **integrity** — that bytes have not changed since they were
196
+ sealed — and gives a proof its own **reproducible name**. It does **not** prove
197
+ *who* sealed it. A proof commits to a `creator` string, but that is a recorded
198
+ label, not cryptographically verified real-world identity. So WISEATA does
199
+ **not** prove truth, authorship, or origin authenticity. Real identity /
200
+ attestation is on the roadmap, not a current claim. See [`SECURITY.md`](SECURITY.md).
201
+
202
+ ---
203
+
204
+ ## Verifying a release (cryptawiselization)
205
+
206
+ Every release of WISEATA is sealed with WISEATA's own primitives. The
207
+ protocol that witnesses every other artifact, witnesses itself.
208
+
209
+ For the v0.1.1 release, two artifacts in the repo root carry the
210
+ self-witness:
211
+
212
+ - `release-v0.1.1.manifest` — sorted `<wisedigest0-hex> <path>` pairs for
213
+ every tracked file in the v0.1.1 source state.
214
+ - `release-v0.1.1.manifest.wiseproof` — a `.wiseproof` of the manifest,
215
+ sealed by `Henry Wayne Wise III`.
216
+
217
+ To verify the release on a fresh clone of any commit — **this works on
218
+ `HEAD`, no tag checkout, no setup:**
219
+
220
+ ```bash
221
+ # 1. Verify the manifest + its proof are intact (integrity).
222
+ wise check release-v0.1.1.manifest release-v0.1.1.manifest.wiseproof
223
+ # → VERIFIED
224
+
225
+ # 2. Read the witness recorded on the release proof (provenance).
226
+ wise inspect release-v0.1.1.manifest.wiseproof
227
+ # → origin.creator Henry Wayne Wise III
228
+ # measurement.digest 991ef6e0… wise_id 883f89eb…
229
+ ```
230
+
231
+ Both commands return on a clean clone of the current source. Step 1 proves
232
+ the frozen `release-v0.1.1.manifest` has not been altered since it was
233
+ sealed (exit 0, `VERIFIED`). Step 2 shows the recorded witness —
234
+ `Henry Wayne Wise III` — and the `wise_id`/digest the seal commits to. A
235
+ different creator or a non-`VERIFIED` result means the manifest or proof in
236
+ your clone is not the released one.
237
+
238
+ This is the verification path to rely on. It is **stdlib + the wise CLI you
239
+ just installed** — no server, no network, no platform. The protocol
240
+ verifies its own release the same way it verifies anything else.
241
+
242
+ ### Note on `scripts/seal-release.py --verify`
243
+
244
+ `seal-release.py` is the tool that *produced* the frozen manifest above. Its
245
+ `--verify` mode does something different from step 1: it re-walks **every
246
+ tracked file in your current working tree**, recomputes each digest, and
247
+ compares the result to the frozen manifest. On any clone past the moment the
248
+ manifest was frozen it prints:
249
+
250
+ ```
251
+ MANIFEST DRIFT — current repo does not match released manifest (exit 1)
252
+ ```
253
+
254
+ This is **correct and expected** — the manifest is frozen at the release
255
+ point, and the tracked file set has moved since (later commits added files,
256
+ including this script). `--verify` is a snapshot-equality tool for the
257
+ release author at freeze time, **not** the skeptic's check. To verify the
258
+ release as a third party, use steps 1–2 above — they check the frozen
259
+ artifacts directly and pass on `HEAD`.
260
+
261
+ The frozen `release-v0.1.1.manifest` is a versioned artifact and is **not
262
+ re-frozen** to track later commits; doing so would change a published
263
+ `wise_id` and break anyone who already recorded it.
264
+
265
+ ---
266
+
267
+ ## FAQ
268
+
269
+ **Is this a blockchain?**
270
+ No. WISEATA is local-first and stateless. There is no chain, no network, no
271
+ consensus, no token, no fees, no online lookup. A proof is a small text file
272
+ that verifies offline against the artifact, by anyone, forever.
273
+
274
+ **How is this different from C2PA?**
275
+ C2PA is a media-provenance standard built by a multi-corporation consortium
276
+ (Adobe, Microsoft, BBC, Intel, etc.) and targets images and video specifically.
277
+ WISEATA is general-purpose (any file or text), local-first only, and currently
278
+ solo work. C2PA has industry backing; WISEATA has a spec, an attack suite, and
279
+ a public repo. Different scopes. They could coexist — a file could carry both.
280
+
281
+ **Why a custom hash function?**
282
+ WiseDigest-0 is included so the protocol has a *fully self-specified* primitive
283
+ any implementer can reproduce from the spec without an external dependency. It
284
+ is **experimental and not formally cryptanalyzed.** SHA-256 is the production
285
+ fallback for adversarial threat models — pass `--algorithm SHA-256`. See
286
+ [`SECURITY.md`](SECURITY.md) for the honest disclosure.
287
+
288
+ **Why not just SHA-256 plus a JSON file?**
289
+ The dual-identity model. `wise_id` is computed over the proof body *excluding*
290
+ time and name, so the same artifact produces the same `wise_id` everywhere,
291
+ forever. `wise_seal` includes time, so it identifies a specific sealing event.
292
+ A plain SHA-256-of-bytes can't answer "is this the same artifact" and "when was
293
+ this sealed" in the same proof. See spec §3.3.
294
+
295
+ **Is `WiseDigest-0` safe to use?**
296
+ For non-adversarial integrity (corruption detection, dedup, content
297
+ addressing), yes. For adversarial threats (a determined attacker forging a
298
+ collision), no — use `--algorithm SHA-256`. The disclosure is in
299
+ [`SECURITY.md`](SECURITY.md) and is not optional.
300
+
301
+ **How is this different from Sigstore?**
302
+ Sigstore is for code-supply-chain provenance, requires signatures, and is
303
+ backed by a transparency log. WISEATA v0.1.0 is integrity-only — no
304
+ signatures, no log, no online component. Identity/signature is on the v0.4
305
+ roadmap. The two systems address different layers and could compose.
306
+
307
+ **Can I write a port in another language?**
308
+ Yes — that is one of the explicit asks. The spec is normative, the test
309
+ vectors in [`tests/vectors/V1_demo_truth.md`](tests/vectors/V1_demo_truth.md)
310
+ are language-neutral byte-level outputs, and the locked vectors in
311
+ `tests/test_locked_vectors.py` and `tests/test_wisedigest_*.py` are the
312
+ conformance suite. If your implementation produces byte-identical outputs for
313
+ every locked vector, it is conformant. Open an issue with the language and
314
+ repo URL — we will list it.
315
+
316
+ **Who built this?**
317
+ One person, on nights and weekends. No CS degree, self-taught. The credentials
318
+ this work carries are the ones in the code itself: a locked spec, locked test
319
+ vectors, an attack suite, honest disclosures, and a public repo.
320
+
321
+ ---
322
+
323
+ ## Contributing
324
+
325
+ Short version:
326
+
327
+ ```bash
328
+ git clone https://github.com/Wise-Est-Systems/wop.git
329
+ cd wop && python3 -m venv .venv && source .venv/bin/activate
330
+ pip install -e . pytest
331
+ pytest -q
332
+ ```
333
+
334
+ What is welcome:
335
+
336
+ - **Spec issues** — anywhere the spec is unclear, ambiguous, or contradicts
337
+ itself, open an issue. Cite the section.
338
+ - **Independent implementations** — Rust, Go, JavaScript, Swift, anything. The
339
+ locked test vectors are your conformance target. Byte-identical outputs for
340
+ every vector = conformant. Open an issue with your repo and we will list it.
341
+ - **Attacks on WiseDigest-0/1/2/3** — extend
342
+ [`tests/test_wisedigest_attack_suite.py`](tests/test_wisedigest_attack_suite.py)
343
+ or its v2/v3 siblings. A failing attack is a real result; a research-track
344
+ digest that gets broken gets retired. See
345
+ [`research/WiseDigest-Lab.md`](research/WiseDigest-Lab.md) for the journal.
346
+ - **Format clarifications** — if writing a port surfaces an ambiguity in
347
+ WISEPROOF-V1, WISESEAL-V1, or WISEEXP-V1, that is a real spec bug. Open an
348
+ issue.
349
+
350
+ What requires extra care:
351
+
352
+ - **Changes to the canonical text format, the dual-identity model, or any
353
+ locked test vector** require a new minor version of the spec, an entry in
354
+ [`RELEASE_NOTES.md`](RELEASE_NOTES.md), and an updated section in
355
+ [`SECURITY.md`](SECURITY.md). The 0.1.x line is normative.
356
+ - **Security-relevant findings** (forging a `VERIFIED` outcome on a divergent
357
+ artifact) — do **not** open a public issue. Use
358
+ [`Security` → `Advisories` → `Report a vulnerability`](https://github.com/Wise-Est-Systems/wop/security/advisories/new).
359
+ See [`SECURITY.md`](SECURITY.md).
360
+
361
+ ---
362
+
363
+ ## Project layout
364
+
365
+ ```
366
+ spec/WISEATA-v0.1.1.md ← live normative specification (start here)
367
+ spec/WISEATA-v0.1.0.md ← v0.1.0, kept for audit
368
+ spec/archive/ ← predecessor (SPAS) draft, kept for audit
369
+ src/wise/ ← wise CLI (proofs)
370
+ src/wiseata/ ← wiseata CLI (expansions)
371
+ research/ ← experimental WiseDigest-1/2/3 + WiseExpansion notes
372
+ demo.sh ← one-second WISEATA demo
373
+ demo/ ← sample contracts for the demo
374
+ tests/ ← 307 tests, all passing on Python 3.10–3.13
375
+ .github/workflows/test.yml ← CI: pytest on Linux + macOS, py 3.10–3.13
376
+ SECURITY.md ← honest threat model + disclosure
377
+ ROADMAP.md ← v0.1 → v1.0
378
+ RELEASE_NOTES.md ← v0.1.0
379
+ LICENSE ← Apache-2.0
380
+ ```
381
+
382
+ Run the test suite:
383
+
384
+ ```bash
385
+ pip install pytest
386
+ pytest -q
387
+ ```
388
+
389
+ ---
390
+
391
+ ## License
392
+
393
+ Apache License 2.0. See [`LICENSE`](LICENSE).
394
+
395
+ — Wise.Est Systems