provara 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 (28) hide show
  1. provara-0.1.0/.gitignore +11 -0
  2. provara-0.1.0/LICENSE +190 -0
  3. provara-0.1.0/PKG-INFO +154 -0
  4. provara-0.1.0/README.md +127 -0
  5. provara-0.1.0/TODO.md +33 -0
  6. provara-0.1.0/examples/reference_backpack/artifacts/cas/.gitkeep +0 -0
  7. provara-0.1.0/examples/reference_backpack/events/events.ndjson +5 -0
  8. provara-0.1.0/examples/reference_backpack/identity/genesis.json +9 -0
  9. provara-0.1.0/examples/reference_backpack/identity/keys.json +15 -0
  10. provara-0.1.0/examples/reference_backpack/manifest.json +1 -0
  11. provara-0.1.0/examples/reference_backpack/merkle_root.txt +1 -0
  12. provara-0.1.0/examples/reference_backpack/policies/ontology/perception_ontology_v1.json +9 -0
  13. provara-0.1.0/examples/reference_backpack/policies/retention_policy.json +15 -0
  14. provara-0.1.0/examples/reference_backpack/policies/safety_policy.json +27 -0
  15. provara-0.1.0/examples/reference_backpack/policies/sync_contract.json +25 -0
  16. provara-0.1.0/examples/reference_backpack/state/.gitkeep +0 -0
  17. provara-0.1.0/hunt_protocol/__init__.py +12 -0
  18. provara-0.1.0/hunt_protocol/bootstrap.py +358 -0
  19. provara-0.1.0/hunt_protocol/canonical_json.py +36 -0
  20. provara-0.1.0/hunt_protocol/integrity.py +133 -0
  21. provara-0.1.0/hunt_protocol/manifest.py +73 -0
  22. provara-0.1.0/hunt_protocol/reducer.py +320 -0
  23. provara-0.1.0/hunt_protocol/rekey.py +222 -0
  24. provara-0.1.0/hunt_protocol/server.py +576 -0
  25. provara-0.1.0/hunt_protocol/signing.py +219 -0
  26. provara-0.1.0/hunt_protocol/sync.py +300 -0
  27. provara-0.1.0/pyproject.toml +54 -0
  28. provara-0.1.0/server.py +576 -0
@@ -0,0 +1,11 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.pyo
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .eggs/
8
+ *.egg
9
+ .venv/
10
+ venv/
11
+ .env
provara-0.1.0/LICENSE ADDED
@@ -0,0 +1,190 @@
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 the 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 the 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 any 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
+ Copyright 2026 Hunt Information Systems LLC
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
provara-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,154 @@
1
+ Metadata-Version: 2.4
2
+ Name: provara
3
+ Version: 0.1.0
4
+ Summary: MCP server for sovereign AI memory — tamper-evident, cryptographically signed, deterministic state
5
+ Project-URL: Homepage, https://huntinformationsystems.com
6
+ Project-URL: Repository, https://github.com/huntinformationsystems/hunt-protocol-mcp
7
+ Project-URL: Documentation, https://github.com/huntinformationsystems/hunt-protocol-mcp#readme
8
+ Author-email: Hunt Information Systems LLC <hello@huntinformationsystems.com>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: ai-agents,ai-memory,cryptography,ed25519,event-sourcing,hunt-protocol,mcp,provara,sovereign-memory,tamper-evident
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Classifier: Topic :: Security :: Cryptography
22
+ Classifier: Topic :: Software Development :: Libraries
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: cryptography>=41.0
25
+ Requires-Dist: fastmcp>=2.0
26
+ Description-Content-Type: text/markdown
27
+
28
+ # Hunt Protocol MCP Server
29
+
30
+ MCP server that exposes Hunt Protocol sovereign memory operations as tools. Connect any MCP-compatible AI client (Claude Code, Claude Desktop, ChatGPT via bridge) to a cryptographically signed, append-only vault with deterministic state reduction.
31
+
32
+ **Category:** Sovereign AI Memory via MCP
33
+ **Status:** Shipped v0.1.0
34
+
35
+ ## Install
36
+
37
+ ```bash
38
+ cd hunt-mcp
39
+ pip install .
40
+ ```
41
+
42
+ Requires Python 3.10+. Dependencies: `fastmcp>=2.0`, `cryptography>=41.0`.
43
+
44
+ ## Quick Start
45
+
46
+ ```bash
47
+ # Run against the included reference backpack
48
+ python server.py
49
+
50
+ # Run against your own vault
51
+ HUNT_VAULT_PATH=/path/to/vault python server.py
52
+
53
+ # Enable write operations (observations + assertions)
54
+ HUNT_SIGNING_KEY_B64="your-base64-ed25519-private-key" python server.py
55
+ ```
56
+
57
+ ## Claude Code Integration
58
+
59
+ ```bash
60
+ claude mcp add hunt-protocol -- python /path/to/hunt-mcp/server.py
61
+ ```
62
+
63
+ With a custom vault:
64
+
65
+ ```bash
66
+ claude mcp add hunt-protocol -e HUNT_VAULT_PATH=/path/to/vault -- python /path/to/hunt-mcp/server.py
67
+ ```
68
+
69
+ With write access:
70
+
71
+ ```bash
72
+ claude mcp add hunt-protocol \
73
+ -e HUNT_VAULT_PATH=/path/to/vault \
74
+ -e HUNT_SIGNING_KEY_B64="your-key-here" \
75
+ -- python /path/to/hunt-mcp/server.py
76
+ ```
77
+
78
+ ## Tools
79
+
80
+ ### Read Tools (no key required)
81
+
82
+ | Tool | Description |
83
+ |------|-------------|
84
+ | `vault_status` | Vault health: event count, state hash, merkle root, key info, compliance summary |
85
+ | `list_events` | List events with filters (type, actor, namespace, limit, offset) |
86
+ | `get_event` | Full event by event_id |
87
+ | `get_state` | Current reduced state (all namespaces or filtered) |
88
+ | `get_beliefs` | Query beliefs by namespace, optional key pattern (subject:predicate) |
89
+ | `get_evidence` | Evidence trail for a specific belief key |
90
+ | `verify_vault` | Run integrity + compliance checks, return pass/fail details |
91
+ | `search_events` | Search events by payload content (subject, predicate, value substring) |
92
+
93
+ ### Write Tools (require `HUNT_SIGNING_KEY_B64`)
94
+
95
+ | Tool | Description |
96
+ |------|-------------|
97
+ | `append_observation` | Add observation: subject, predicate, value, confidence |
98
+ | `append_assertion` | Add assertion: subject, predicate, value, confidence |
99
+
100
+ ## Environment Variables
101
+
102
+ | Variable | Required | Description |
103
+ |----------|----------|-------------|
104
+ | `HUNT_VAULT_PATH` | No | Path to vault directory (default: `./examples/reference_backpack`) |
105
+ | `HUNT_SIGNING_KEY_B64` | For writes | Base64-encoded Ed25519 private key |
106
+
107
+ ## How It Works
108
+
109
+ Every vault is a directory containing:
110
+
111
+ - **events/events.ndjson** — Append-only event log (signed, content-addressed)
112
+ - **identity/** — Genesis record + public key registry
113
+ - **policies/** — Safety policy, sync contract, retention rules
114
+ - **manifest.json** — Deterministic file index with SHA-256 hashes
115
+ - **merkle_root.txt** — Integrity anchor (Merkle tree root)
116
+
117
+ The MCP server loads events, runs a deterministic reducer to compute state across four namespaces (canonical, local, contested, archived), and exposes everything through typed tools.
118
+
119
+ ## Architecture
120
+
121
+ The server wraps the Hunt Protocol L0 modules:
122
+
123
+ | Module | Responsibility |
124
+ |--------|---------------|
125
+ | `canonical_json` | RFC 8785 deterministic JSON serialization |
126
+ | `integrity` | SHA-256 file hashing, Merkle trees, path safety |
127
+ | `signing` | Ed25519 keypair management, event/manifest signing |
128
+ | `reducer` | Deterministic four-namespace state reducer |
129
+ | `manifest` | Manifest generation and verification |
130
+ | `sync` | Event log I/O, causal chain verification, fork detection |
131
+ | `bootstrap` | Vault creation from scratch |
132
+ | `rekey` | Key rotation protocol |
133
+
134
+ ## Creating a New Vault
135
+
136
+ ```python
137
+ from hunt_protocol.bootstrap import bootstrap_backpack
138
+ from pathlib import Path
139
+
140
+ result = bootstrap_backpack(Path("./my_vault"))
141
+ print(f"UID: {result.uid}")
142
+ print(f"Root key: {result.root_key_id}")
143
+ print(f"Private key (save this!): {result.root_private_key_b64}")
144
+ ```
145
+
146
+ Then point the server at it:
147
+
148
+ ```bash
149
+ HUNT_VAULT_PATH=./my_vault HUNT_SIGNING_KEY_B64="<private-key>" python server.py
150
+ ```
151
+
152
+ ## License
153
+
154
+ Apache 2.0 — Hunt Information Systems LLC
@@ -0,0 +1,127 @@
1
+ # Hunt Protocol MCP Server
2
+
3
+ MCP server that exposes Hunt Protocol sovereign memory operations as tools. Connect any MCP-compatible AI client (Claude Code, Claude Desktop, ChatGPT via bridge) to a cryptographically signed, append-only vault with deterministic state reduction.
4
+
5
+ **Category:** Sovereign AI Memory via MCP
6
+ **Status:** Shipped v0.1.0
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ cd hunt-mcp
12
+ pip install .
13
+ ```
14
+
15
+ Requires Python 3.10+. Dependencies: `fastmcp>=2.0`, `cryptography>=41.0`.
16
+
17
+ ## Quick Start
18
+
19
+ ```bash
20
+ # Run against the included reference backpack
21
+ python server.py
22
+
23
+ # Run against your own vault
24
+ HUNT_VAULT_PATH=/path/to/vault python server.py
25
+
26
+ # Enable write operations (observations + assertions)
27
+ HUNT_SIGNING_KEY_B64="your-base64-ed25519-private-key" python server.py
28
+ ```
29
+
30
+ ## Claude Code Integration
31
+
32
+ ```bash
33
+ claude mcp add hunt-protocol -- python /path/to/hunt-mcp/server.py
34
+ ```
35
+
36
+ With a custom vault:
37
+
38
+ ```bash
39
+ claude mcp add hunt-protocol -e HUNT_VAULT_PATH=/path/to/vault -- python /path/to/hunt-mcp/server.py
40
+ ```
41
+
42
+ With write access:
43
+
44
+ ```bash
45
+ claude mcp add hunt-protocol \
46
+ -e HUNT_VAULT_PATH=/path/to/vault \
47
+ -e HUNT_SIGNING_KEY_B64="your-key-here" \
48
+ -- python /path/to/hunt-mcp/server.py
49
+ ```
50
+
51
+ ## Tools
52
+
53
+ ### Read Tools (no key required)
54
+
55
+ | Tool | Description |
56
+ |------|-------------|
57
+ | `vault_status` | Vault health: event count, state hash, merkle root, key info, compliance summary |
58
+ | `list_events` | List events with filters (type, actor, namespace, limit, offset) |
59
+ | `get_event` | Full event by event_id |
60
+ | `get_state` | Current reduced state (all namespaces or filtered) |
61
+ | `get_beliefs` | Query beliefs by namespace, optional key pattern (subject:predicate) |
62
+ | `get_evidence` | Evidence trail for a specific belief key |
63
+ | `verify_vault` | Run integrity + compliance checks, return pass/fail details |
64
+ | `search_events` | Search events by payload content (subject, predicate, value substring) |
65
+
66
+ ### Write Tools (require `HUNT_SIGNING_KEY_B64`)
67
+
68
+ | Tool | Description |
69
+ |------|-------------|
70
+ | `append_observation` | Add observation: subject, predicate, value, confidence |
71
+ | `append_assertion` | Add assertion: subject, predicate, value, confidence |
72
+
73
+ ## Environment Variables
74
+
75
+ | Variable | Required | Description |
76
+ |----------|----------|-------------|
77
+ | `HUNT_VAULT_PATH` | No | Path to vault directory (default: `./examples/reference_backpack`) |
78
+ | `HUNT_SIGNING_KEY_B64` | For writes | Base64-encoded Ed25519 private key |
79
+
80
+ ## How It Works
81
+
82
+ Every vault is a directory containing:
83
+
84
+ - **events/events.ndjson** — Append-only event log (signed, content-addressed)
85
+ - **identity/** — Genesis record + public key registry
86
+ - **policies/** — Safety policy, sync contract, retention rules
87
+ - **manifest.json** — Deterministic file index with SHA-256 hashes
88
+ - **merkle_root.txt** — Integrity anchor (Merkle tree root)
89
+
90
+ The MCP server loads events, runs a deterministic reducer to compute state across four namespaces (canonical, local, contested, archived), and exposes everything through typed tools.
91
+
92
+ ## Architecture
93
+
94
+ The server wraps the Hunt Protocol L0 modules:
95
+
96
+ | Module | Responsibility |
97
+ |--------|---------------|
98
+ | `canonical_json` | RFC 8785 deterministic JSON serialization |
99
+ | `integrity` | SHA-256 file hashing, Merkle trees, path safety |
100
+ | `signing` | Ed25519 keypair management, event/manifest signing |
101
+ | `reducer` | Deterministic four-namespace state reducer |
102
+ | `manifest` | Manifest generation and verification |
103
+ | `sync` | Event log I/O, causal chain verification, fork detection |
104
+ | `bootstrap` | Vault creation from scratch |
105
+ | `rekey` | Key rotation protocol |
106
+
107
+ ## Creating a New Vault
108
+
109
+ ```python
110
+ from hunt_protocol.bootstrap import bootstrap_backpack
111
+ from pathlib import Path
112
+
113
+ result = bootstrap_backpack(Path("./my_vault"))
114
+ print(f"UID: {result.uid}")
115
+ print(f"Root key: {result.root_key_id}")
116
+ print(f"Private key (save this!): {result.root_private_key_b64}")
117
+ ```
118
+
119
+ Then point the server at it:
120
+
121
+ ```bash
122
+ HUNT_VAULT_PATH=./my_vault HUNT_SIGNING_KEY_B64="<private-key>" python server.py
123
+ ```
124
+
125
+ ## License
126
+
127
+ Apache 2.0 — Hunt Information Systems LLC
provara-0.1.0/TODO.md ADDED
@@ -0,0 +1,33 @@
1
+ # Hunt Protocol MCP Server — TODO
2
+
3
+ ## Next Up
4
+ - [ ] Bootstrap a real vault with live signing keys (replace reference backpack)
5
+ - [ ] Update corporate site Projects section — Hunt Protocol MCP is shipped, not "Coming Soon"
6
+ - [ ] Add to PyPI (`pip install hunt-protocol-mcp` from anywhere)
7
+
8
+ ## Server Enhancements
9
+ - [ ] Add `bootstrap_vault` tool — create new vaults directly from MCP
10
+ - [ ] Add `attest_belief` tool — promote local beliefs to canonical (requires authority key)
11
+ - [ ] Add `export_delta` / `import_delta` tools — sync between vaults via MCP
12
+ - [ ] Add `rotate_key` tool — key rotation via MCP
13
+ - [ ] Add `get_manifest` tool — return current manifest + merkle root
14
+ - [ ] Resource endpoints — expose vault files as MCP resources (not just tools)
15
+ - [ ] SSE transport option — for remote/cloud deployments
16
+
17
+ ## Testing & Quality
18
+ - [ ] Add test suite for server.py (unit tests for each tool)
19
+ - [ ] CI pipeline — GitHub Actions for lint + test on push
20
+ - [ ] Test with Claude Desktop (not just Claude Code)
21
+ - [ ] Test with ChatGPT via MCP bridge
22
+
23
+ ## Distribution
24
+ - [ ] PyPI publish workflow
25
+ - [ ] Docker image (`docker run huntinformationsystems/hunt-mcp`)
26
+ - [ ] npm wrapper for Node.js MCP clients
27
+ - [ ] Claude Desktop config example in README
28
+
29
+ ## Protocol Evolution
30
+ - [ ] Checkpoint system — signed state snapshots for fast startup
31
+ - [ ] Multi-vault support — serve multiple vaults from one server
32
+ - [ ] Vault discovery — auto-detect vaults in a directory tree
33
+ - [ ] Cross-language clients — Rust, Go, TypeScript passing compliance tests
@@ -0,0 +1,5 @@
1
+ {"actor":"robot_a","actor_key_id":"key_root_001","event_id":"e1","namespace":"local","payload":{"confidence":0.9,"predicate":"opens","subject":"door_01","timestamp":"2026-02-12T19:30:00Z","value":"inward"},"prev_event_hash":null,"timestamp_utc":"2026-02-12T19:30:00Z","ts_logical":1,"type":"OBSERVATION"}
2
+ {"actor":"robot_b","actor_key_id":"key_root_001","event_id":"e2","namespace":"local","payload":{"confidence":0.95,"predicate":"opens","subject":"door_01","timestamp":"2026-02-12T19:31:00Z","value":"outward"},"prev_event_hash":null,"timestamp_utc":"2026-02-12T19:31:00Z","ts_logical":1,"type":"OBSERVATION"}
3
+ {"actor":"robot_a","actor_key_id":"key_root_001","event_id":"e3","namespace":"local","payload":{"confidence":0.85,"predicate":"color","subject":"mug_01","timestamp":"2026-02-12T19:32:00Z","value":"red"},"prev_event_hash":"e1","timestamp_utc":"2026-02-12T19:32:00Z","ts_logical":2,"type":"OBSERVATION"}
4
+ {"actor":"archive_peer","actor_key_id":"key_root_001","event_id":"e4","namespace":"canonical","payload":{"actor_key_id":"archive_key","predicate":"opens","subject":"door_01","target_event_id":"e2","value":"outward"},"prev_event_hash":null,"timestamp_utc":"2026-02-12T19:35:00Z","ts_logical":1,"type":"ATTESTATION"}
5
+ {"actor":"system","event_id":"e5","namespace":"canonical","payload":{"epoch_id":"epoch_001","ontology_versions":{"perception":"v1"},"reducer_hash":"sha256:placeholder"},"prev_event_hash":null,"timestamp_utc":"2026-02-12T19:36:00Z","ts_logical":1,"type":"REDUCER_EPOCH"}
@@ -0,0 +1,9 @@
1
+ {
2
+ "uid": "01956a2b-3c4d-7000-8000-000000000001",
3
+ "birth_timestamp": "2026-02-12T20:00:00Z",
4
+ "root_key_id": "key_root_001",
5
+ "governance_model": "policies/sync_contract.json",
6
+ "initial_ontology_versions": {
7
+ "perception": "perception_ontology_v1.json"
8
+ }
9
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "keys": [
3
+ {
4
+ "key_id": "key_root_001",
5
+ "algorithm": "Ed25519",
6
+ "public_key_b64": "PLACEHOLDER",
7
+ "roles": [
8
+ "root",
9
+ "attestation"
10
+ ],
11
+ "status": "active"
12
+ }
13
+ ],
14
+ "revocations": []
15
+ }
@@ -0,0 +1 @@
1
+ {"backpack_spec_version":"1.0","created_at_utc":"2026-02-13T03:17:21.571859+00:00","file_count":9,"files":[{"path":"artifacts/cas/.gitkeep","sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","size":0},{"path":"events/events.ndjson","sha256":"930b3b2b9dc599336ca88848eb80436c199356a2be3d9f94b08c2dd012a40eec","size":1499},{"path":"identity/genesis.json","sha256":"eab0a457e17621f85021e2794698dd58bf00c2ce786ec1409abf70b44f608b60","size":268},{"path":"identity/keys.json","sha256":"f7938f6e4f67ab4fa8df7d2268fe326ebdebbc6af11ad11d90c3895465879d07","size":242},{"path":"policies/ontology/perception_ontology_v1.json","sha256":"0c838d0b9783d2990fbd0f1afb9acfea874bc351c175e6f415259e6622d2aa22","size":101},{"path":"policies/retention_policy.json","sha256":"00424c4e3c2f70c4be630d255d20faf1bdae842148286ad1819cc07836c129b3","size":308},{"path":"policies/safety_policy.json","sha256":"439cedae76f832fc87db0a5d32466c1c8bde17c801704de7c182d32ee2068d0d","size":708},{"path":"policies/sync_contract.json","sha256":"fb7b2f00935c8f4425900a1add6660e0f1bcd8fd43b1f3dd60abd5c30050b92d","size":487},{"path":"state/.gitkeep","sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","size":0}],"manifest_version":"manifest.v0"}
@@ -0,0 +1 @@
1
+ d85b60b8a20e9b77d4f61cd1642f904deeda3e69f242eec4a9b39004b6d4e08c
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "v1",
3
+ "object_classes": [
4
+ "door",
5
+ "mug",
6
+ "person",
7
+ "container"
8
+ ]
9
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "events": "permanent",
3
+ "checkpoints": "permanent",
4
+ "perception_t0_raw": {
5
+ "max_age_days": 30,
6
+ "eviction": "oldest_first"
7
+ },
8
+ "artifacts_cas": {
9
+ "referenced_by_event": "permanent",
10
+ "unreferenced": {
11
+ "max_age_days": 90
12
+ }
13
+ },
14
+ "state_caches": "regeneratable_on_eviction"
15
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "action_classes": {
3
+ "L0": {
4
+ "description": "data-only/reversible",
5
+ "offline_allowed": true,
6
+ "approval": "local_reducer"
7
+ },
8
+ "L1": {
9
+ "description": "low-kinetic",
10
+ "offline_allowed": true,
11
+ "approval": "local_reducer+policy",
12
+ "review_on_sync": true
13
+ },
14
+ "L2": {
15
+ "description": "high-kinetic",
16
+ "offline_allowed": "within_lease",
17
+ "approval": "multi_sensor+signed_policy"
18
+ },
19
+ "L3": {
20
+ "description": "irreversible/human-space",
21
+ "offline_allowed": false,
22
+ "approval": "remote_signature_or_mfa"
23
+ }
24
+ },
25
+ "merge_ratchet": "most_restrictive_wins",
26
+ "loosen_requires": "signed_policy_update_by_top_authority"
27
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "authorities": [
3
+ {
4
+ "role": "root",
5
+ "key_id": "key_root_001",
6
+ "scope": "all"
7
+ }
8
+ ],
9
+ "merge_policies": {
10
+ "events": "union_by_event_id",
11
+ "beliefs": "evidence_union_then_reduce",
12
+ "policies": "authority_signed_update"
13
+ },
14
+ "lease_model": {
15
+ "default_duration_seconds": 300,
16
+ "fencing": true
17
+ },
18
+ "replication_factor": 2,
19
+ "degradation_ladder": [
20
+ "designated_human",
21
+ "quorum_peers",
22
+ "archive_peer",
23
+ "local_emergency"
24
+ ]
25
+ }
@@ -0,0 +1,12 @@
1
+ """
2
+ Hunt Protocol — Sovereign Memory for AI Systems
3
+
4
+ L0 protocol modules for cryptographically signed, deterministic state management.
5
+ """
6
+
7
+ __version__ = "0.1.0"
8
+
9
+ from .canonical_json import canonical_dumps, canonical_bytes, canonical_hash
10
+ from .signing import BackpackKeypair, sign_event, verify_event_signature
11
+ from .reducer import SovereignReducerV0
12
+ from .sync import load_events, write_events