enigma-memory 0.1.16 → 0.1.18

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 (39) hide show
  1. package/README.md +23 -13
  2. package/apps/cli/bin/enigma.mjs +3341 -3151
  3. package/deploy/SIMULATION.md +14 -9
  4. package/deploy/docker-compose.local-production-simulation.yml +18 -12
  5. package/docs/benchmark-attestation-network.md +487 -487
  6. package/docs/benchmark-reproducibility.md +289 -240
  7. package/docs/blockchain-only-mechanisms.md +400 -388
  8. package/docs/client-connectors.md +10 -6
  9. package/docs/demo-proof-network.md +275 -275
  10. package/docs/developer-ecosystem.md +7 -5
  11. package/docs/developer-proof-quickstart.md +325 -325
  12. package/docs/enigma-memory-ready-conformance.md +376 -376
  13. package/docs/hosted-cloud-product.md +29 -0
  14. package/docs/install-anywhere.md +16 -12
  15. package/docs/memory-benchmarks.md +16 -1
  16. package/docs/memory-drive-health-model.md +690 -649
  17. package/docs/proof-network-build-notes.md +240 -240
  18. package/docs/proof-network.md +339 -282
  19. package/docs/sdk-api.md +324 -324
  20. package/docs/solana-proof-rail.md +453 -453
  21. package/package.json +279 -278
  22. package/packages/core/src/index.js +1 -1
  23. package/packages/hosted-cloud/src/index.js +470 -2
  24. package/packages/mcp-server/src/index.js +1185 -1185
  25. package/packages/passport/src/index.js +740 -6
  26. package/packages/proof-network/src/index.js +139 -0
  27. package/packages/vault/src/index.js +187 -25
  28. package/scripts/build-benchmark-proof-release.mjs +15 -3
  29. package/scripts/build-hosted-api-key-lifecycle.mjs +274 -274
  30. package/scripts/build-hosted-customer-lifecycle.mjs +476 -456
  31. package/scripts/build-installer-assets.mjs +389 -389
  32. package/scripts/build-production-unblocker.mjs +409 -409
  33. package/scripts/build-proof-network-packet.mjs +213 -213
  34. package/scripts/check.mjs +8 -1
  35. package/scripts/release-audit.mjs +9 -6
  36. package/scripts/release-provenance.mjs +6 -2
  37. package/scripts/run-standard-memory-benchmarks.mjs +1354 -1194
  38. package/scripts/scan-secrets.mjs +177 -0
  39. package/scripts/simulate-production-env.mjs +64 -8
@@ -16,17 +16,21 @@ Supported connector IDs:
16
16
 
17
17
  ```sh
18
18
  npm install -g enigma-memory
19
- enigma setup --overwrite
19
+ enigma init
20
+ enigma setup --client auto --connect-installed --overwrite
21
+ enigma drive health
22
+ enigma status
20
23
  enigma remember --text-file ./memory.txt
21
- enigma search --query "..."
22
- enigma context --query "..." --optimize
24
+ enigma search --query "project context"
25
+ enigma context --query "project context" --optimize
23
26
  enigma verify --export ./.enigma/export.json
24
- enigma connect claude-desktop --dry-run
25
27
  ```
26
28
 
27
- `enigma setup --overwrite` writes local Enigma artifacts under the workspace `.enigma` path and emits deterministic, public-safe JSON without printing raw memory plaintext. It does not write Claude, Cursor, Kimi, VS Code, Roo, OpenCode, or generic MCP client configs. Client config writes happen only when you explicitly run `enigma connect <client>` without `--dry-run`.
29
+ One command connects every installed client: `enigma setup --client auto --connect-installed --overwrite` writes the `mcpServers.enigma` entry into every installed/config-present client it detects (Claude Desktop, Cursor, Kimi Code, VS Code/Cline, Roo, OpenCode, generic MCP). It skips clients that are not installed and never creates configs from scratch; preview with `--dry-run` first. `enigma drive health` reports a SMART-style memory-drive health packet (freshness, tombstone backlog, stale derived artifacts, receipt coverage, connector health) from local metadata only — it is part of the Memory Drive surface in this release, and `enigma status` plus `enigma doctor` cover local passport counts, roots, and connector readiness in every build. No setup command prints raw memory plaintext.
30
+
31
+ For a single client, or to preview before writing, use `enigma connect <client> --dry-run` and then drop `--dry-run`.
28
32
 
29
- Provider-native memory is non-canonical cache only in this architecture. The Enigma vault remains canonical, and Enigma receipts prove Enigma-controlled lifecycle events; they do not prove that a hosted provider deleted hidden copies or that a model forgot anything.
33
+ Provider-native memory is non-canonical cache only in this architecture. The Enigma vault remains canonical, and Enigma receipts prove Enigma-controlled lifecycle events; they do not prove that a hosted provider deleted hidden copies or that a model forgot anything. Hosted cloud and BYOC operation are waitlist/operator-deploy only; the relay and gateway binaries are local bootstrap probes, not a live hosted service.
30
34
 
31
35
  From a source checkout, use this only for package development or source-only docs:
32
36
 
@@ -1,275 +1,275 @@
1
- # Proof Network demo scripts
2
-
3
- Use these scripts to show Enigma's Proof Network with a local package install. They create and verify public-safe JSON proof artifacts only. They do not submit Solana transactions, call hosted Enigma, call model providers, write client configs, or place raw memory on chain.
4
-
5
- Requirements:
6
-
7
- - Node.js `>=24`
8
- - `enigma-memory` available through npm or a local package install
9
- - No provider credentials for the three default demos
10
-
11
- Run the commands from a writable demo directory after installing the package, for example `npm install -g enigma-memory`. For a one-off public npm run, prefix each `enigma` command with `npx --yes --package enigma-memory`. From a source checkout, replace `enigma` with `node apps/cli/bin/enigma.mjs`.
12
-
13
- Public-safety rule: proof artifacts may contain hashes, roots, refs, counts, timestamps, public authority refs, signatures, and boolean claim boundaries. They must not contain raw memory, prompts, transcripts, completions, embeddings, ACL bodies, tenant names, private keys, API keys, seed phrases, or provider responses.
14
-
15
- ## Demo 1 — public npm test-drive + proof anchor plan
16
-
17
- Goal: run the public local test drive, then produce a Solana-ready anchor batch that commits only opaque roots and refs. The batch is a transaction plan, not a submitted transaction.
18
-
19
- ```sh
20
- node -e "require('node:fs').mkdirSync('.enigma/proof-network',{recursive:true})"
21
-
22
- enigma test-drive \
23
- --out-dir .enigma/proof-network/test-drive \
24
- --overwrite
25
-
26
- enigma chain anchor \
27
- --root sha256:1111111111111111111111111111111111111111111111111111111111111111 \
28
- --root sha256:2222222222222222222222222222222222222222222222222222222222222222 \
29
- --root sha256:3333333333333333333333333333333333333333333333333333333333333333 \
30
- --ref npm-test-drive:bundle-root:v1 \
31
- --ref npm-test-drive:receipt-root:v1 \
32
- --ref npm-test-drive:context-root:v1 \
33
- --authority did:web:enigma.example#local-demo \
34
- --batch-ref proof-network-demo-anchor-001 \
35
- --out .enigma/proof-network/anchor-batch.json
36
-
37
- enigma chain verify \
38
- --file .enigma/proof-network/anchor-batch.json
39
- ```
40
-
41
- Expected public-safe output shape from `chain anchor`:
42
-
43
- ```json
44
- {
45
- "ok": true,
46
- "artifact_type": "enigma.proof_network.anchor_batch.v1",
47
- "transaction_submitted": false,
48
- "raw_memory_on_chain": false,
49
- "batch_ref": "proof-network-demo-anchor-001",
50
- "roots": [
51
- "sha256:1111111111111111111111111111111111111111111111111111111111111111",
52
- "sha256:2222222222222222222222222222222222222222222222222222222222222222",
53
- "sha256:3333333333333333333333333333333333333333333333333333333333333333"
54
- ],
55
- "refs": [
56
- "npm-test-drive:bundle-root:v1",
57
- "npm-test-drive:receipt-root:v1",
58
- "npm-test-drive:context-root:v1"
59
- ],
60
- "solana_ready": true,
61
- "claim_boundaries": {
62
- "provider_calls": false,
63
- "hosted_enigma_calls": false,
64
- "transaction_submitted": false,
65
- "raw_memory_on_chain": false
66
- }
67
- }
68
- ```
69
-
70
- Expected public-safe output shape from `chain verify`:
71
-
72
- ```json
73
- {
74
- "ok": true,
75
- "artifact_type": "enigma.proof_network.anchor_batch.v1",
76
- "valid": true,
77
- "transaction_submitted": false,
78
- "raw_memory_on_chain": false,
79
- "private_payload_detected": false
80
- }
81
- ```
82
-
83
- Presenter notes:
84
-
85
- 1. The test drive proves local Enigma-controlled state only.
86
- 2. The anchor batch is Solana-ready because it is an opaque commitment payload, but it is not a transaction and it is not submitted.
87
- 3. Replace the demo roots with roots emitted by your own local Enigma run when presenting a real local artifact. Do not paste memory text, prompts, embeddings, provider responses, or tenant/customer names into `--root`, `--ref`, or `--authority`.
88
-
89
- ## Demo 2 — cross-model memory receipt demo
90
-
91
- Goal: show one local Enigma bundle producing public receipt summaries for multiple model/client profiles, then issue a scoped capability grant and revocation for one public subject ref. No model provider is contacted.
92
-
93
- ```sh
94
- node -e "require('node:fs').mkdirSync('.enigma/proof-network',{recursive:true})"
95
-
96
- enigma test-drive \
97
- --out-dir .enigma/proof-network/cross-model \
98
- --overwrite
99
-
100
- enigma demo cross-model \
101
- --bundle .enigma/proof-network/cross-model/bundle.json \
102
- --out .enigma/proof-network/cross-model-report.json
103
-
104
- enigma chain grant \
105
- --subject agent:claude-desktop:local-demo \
106
- --capability memory.context.read \
107
- --scope context-pack:cross-model-demo:v1 \
108
- --expires-at 2026-12-31T00:00:00.000Z \
109
- --grant-ref proof-network-demo-grant-001 \
110
- --out .enigma/proof-network/capability-grant.json
111
-
112
- enigma chain revoke \
113
- --grant-hash sha256:4444444444444444444444444444444444444444444444444444444444444444 \
114
- --reason demo-complete \
115
- --revocation-ref proof-network-demo-revocation-001 \
116
- --out .enigma/proof-network/capability-revocation.json
117
-
118
- enigma chain verify \
119
- --file .enigma/proof-network/capability-grant.json
120
-
121
- enigma chain verify \
122
- --file .enigma/proof-network/capability-revocation.json
123
- ```
124
-
125
- Expected public-safe output shape from `demo cross-model`:
126
-
127
- ```json
128
- {
129
- "ok": true,
130
- "demo": "cross-model-memory",
131
- "provider_calls": false,
132
- "raw_memory_included": false,
133
- "profiles": [
134
- {
135
- "client": "claude-desktop",
136
- "context_pack_hash": "sha256:...",
137
- "receipt_refs": ["receipt:..."]
138
- },
139
- {
140
- "client": "cursor",
141
- "context_pack_hash": "sha256:...",
142
- "receipt_refs": ["receipt:..."]
143
- },
144
- {
145
- "client": "kimi-code",
146
- "context_pack_hash": "sha256:...",
147
- "receipt_refs": ["receipt:..."]
148
- }
149
- ]
150
- }
151
- ```
152
-
153
- Expected public-safe output shape from `chain grant`:
154
-
155
- ```json
156
- {
157
- "ok": true,
158
- "artifact_type": "enigma.proof_network.capability_grant.v1",
159
- "transaction_submitted": false,
160
- "raw_memory_on_chain": false,
161
- "subject": "agent:claude-desktop:local-demo",
162
- "capability": "memory.context.read",
163
- "scope": "context-pack:cross-model-demo:v1",
164
- "expires_at": "2026-12-31T00:00:00.000Z",
165
- "grant_ref": "proof-network-demo-grant-001",
166
- "private_payload_detected": false
167
- }
168
- ```
169
-
170
- Expected public-safe output shape from `chain revoke`:
171
-
172
- ```json
173
- {
174
- "ok": true,
175
- "artifact_type": "enigma.proof_network.capability_revocation.v1",
176
- "transaction_submitted": false,
177
- "raw_memory_on_chain": false,
178
- "grant_hash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
179
- "reason": "demo-complete",
180
- "revocation_ref": "proof-network-demo-revocation-001",
181
- "private_payload_detected": false
182
- }
183
- ```
184
-
185
- Presenter notes:
186
-
187
- 1. The cross-model report is a receipt demo, not proof that a provider remembered or forgot anything.
188
- 2. Capability grants are public authorization receipts. Scopes must be public refs, not ACL JSON, tenant names, or private policy bodies.
189
- 3. Revocations should point to grant hashes or nullifiers. Do not include the original private grant context.
190
-
191
- ## Demo 3 — benchmark attestation demo
192
-
193
- Goal: turn a benchmark report hash or local report file into a public benchmark attestation. This demo uses deterministic refs and scores only; the proof artifact does not include dataset rows, questions, answers, prompts, completions, provider responses, or credentials.
194
-
195
- Package-only path with a precomputed public report hash:
196
-
197
- ```sh
198
- node -e "require('node:fs').mkdirSync('.enigma/proof-network',{recursive:true})"
199
-
200
- enigma chain attest \
201
- --report-hash sha256:5555555555555555555555555555555555555555555555555555555555555555 \
202
- --dataset-ref enigma-fixture:deterministic-local:v1 \
203
- --runner-ref enigma-memory:local-benchmark-runner:v1 \
204
- --package-ref npm:enigma-memory@0.1.16 \
205
- --score recall_at_5=1 \
206
- --score p95_latency_ms=14 \
207
- --out .enigma/proof-network/benchmark-attestation.json
208
-
209
- enigma chain verify \
210
- --file .enigma/proof-network/benchmark-attestation.json
211
- ```
212
-
213
- Source-checkout path when you have a local benchmark report file:
214
-
215
- ```sh
216
- node scripts/run-memory-benchmarks.mjs
217
-
218
- enigma chain attest \
219
- --report-file .enigma/benchmarks/report.json \
220
- --dataset-ref enigma-fixture:deterministic-local:v1 \
221
- --runner-ref enigma-memory:scripts/run-memory-benchmarks.mjs \
222
- --package-ref npm:enigma-memory@0.1.16 \
223
- --score recall_at_5=1 \
224
- --score p95_latency_ms=14 \
225
- --out .enigma/proof-network/benchmark-attestation.json
226
- ```
227
-
228
- Expected public-safe output shape from `chain attest`:
229
-
230
- ```json
231
- {
232
- "ok": true,
233
- "artifact_type": "enigma.proof_network.benchmark_attestation.v1",
234
- "transaction_submitted": false,
235
- "raw_memory_on_chain": false,
236
- "report_hash": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
237
- "dataset_ref": "enigma-fixture:deterministic-local:v1",
238
- "runner_ref": "enigma-memory:local-benchmark-runner:v1",
239
- "package_ref": "npm:enigma-memory@0.1.16",
240
- "scores": {
241
- "recall_at_5": 1,
242
- "p95_latency_ms": 14
243
- },
244
- "private_payload_detected": false
245
- }
246
- ```
247
-
248
- Optional full-answer benchmark note: a separate full-answer benchmark runner may require provider credentials for the model being evaluated. Keep those credentials in local environment variables or a secret manager only. The public proof artifact should still contain only `report_hash`, `dataset_ref`, `runner_ref`, `package_ref`, scores, roots, refs, signatures, and claim boundaries. Never include provider requests, provider responses, prompts, answers, dataset rows, account ids, API keys, tenant names, or raw memory in the attestation.
249
-
250
- Presenter notes:
251
-
252
- 1. A benchmark attestation proves that a named report hash, dataset ref, runner ref, package ref, and score set were committed together.
253
- 2. It is not a leaderboard claim unless the named benchmark protocol, dataset access, runner, scoring rules, and comparison set are independently published and reproducible.
254
- 3. `chain verify` validates the artifact shape and public-safety boundaries; it does not rerun the benchmark.
255
-
256
- ## Close the demo
257
-
258
- Verify every generated artifact before sharing it:
259
-
260
- ```sh
261
- enigma chain verify --file .enigma/proof-network/anchor-batch.json
262
- enigma chain verify --file .enigma/proof-network/capability-grant.json
263
- enigma chain verify --file .enigma/proof-network/capability-revocation.json
264
- enigma chain verify --file .enigma/proof-network/benchmark-attestation.json
265
- ```
266
-
267
- Safe closing claim: Enigma can create local, public-safe proof-network artifacts that are ready for chain anchoring without exposing memory contents or submitting a transaction.
268
-
269
- Unsafe claims to avoid:
270
-
271
- - "A Solana transaction was submitted" unless you separately submitted one outside these local planning commands.
272
- - "Raw memory is on chain"; that should never be true for these demos.
273
- - "Providers deleted or forgot the memory."
274
- - "Provider-native memory is canonical."
275
- - "Benchmark leadership is proven" unless a reproducible comparison protocol and artifacts are published.
1
+ # Proof Network demo scripts
2
+
3
+ Use these scripts to show Enigma's Proof Network with a local package install. They create and verify public-safe JSON proof artifacts only. They do not submit Solana transactions, call hosted Enigma, call model providers, write client configs, or place raw memory on chain.
4
+
5
+ Requirements:
6
+
7
+ - Node.js `>=24`
8
+ - `enigma-memory` available through npm or a local package install
9
+ - No provider credentials for the three default demos
10
+
11
+ Run the commands from a writable demo directory after installing the package, for example `npm install -g enigma-memory`. For a one-off public npm run, prefix each `enigma` command with `npx --yes --package enigma-memory`. From a source checkout, replace `enigma` with `node apps/cli/bin/enigma.mjs`.
12
+
13
+ Public-safety rule: proof artifacts may contain hashes, roots, refs, counts, timestamps, public authority refs, signatures, and boolean claim boundaries. They must not contain raw memory, prompts, transcripts, completions, embeddings, ACL bodies, tenant names, private keys, API keys, seed phrases, or provider responses.
14
+
15
+ ## Demo 1 — public npm test-drive + proof anchor plan
16
+
17
+ Goal: run the public local test drive, then produce a Solana-ready anchor batch that commits only opaque roots and refs. The batch is a transaction plan, not a submitted transaction.
18
+
19
+ ```sh
20
+ node -e "require('node:fs').mkdirSync('.enigma/proof-network',{recursive:true})"
21
+
22
+ enigma test-drive \
23
+ --out-dir .enigma/proof-network/test-drive \
24
+ --overwrite
25
+
26
+ enigma chain anchor \
27
+ --root sha256:1111111111111111111111111111111111111111111111111111111111111111 \
28
+ --root sha256:2222222222222222222222222222222222222222222222222222222222222222 \
29
+ --root sha256:3333333333333333333333333333333333333333333333333333333333333333 \
30
+ --ref npm-test-drive:bundle-root:v1 \
31
+ --ref npm-test-drive:receipt-root:v1 \
32
+ --ref npm-test-drive:context-root:v1 \
33
+ --authority did:web:enigma.example#local-demo \
34
+ --batch-ref proof-network-demo-anchor-001 \
35
+ --out .enigma/proof-network/anchor-batch.json
36
+
37
+ enigma chain verify \
38
+ --file .enigma/proof-network/anchor-batch.json
39
+ ```
40
+
41
+ Expected public-safe output shape from `chain anchor`:
42
+
43
+ ```json
44
+ {
45
+ "ok": true,
46
+ "artifact_type": "enigma.proof_network.anchor_batch.v1",
47
+ "transaction_submitted": false,
48
+ "raw_memory_on_chain": false,
49
+ "batch_ref": "proof-network-demo-anchor-001",
50
+ "roots": [
51
+ "sha256:1111111111111111111111111111111111111111111111111111111111111111",
52
+ "sha256:2222222222222222222222222222222222222222222222222222222222222222",
53
+ "sha256:3333333333333333333333333333333333333333333333333333333333333333"
54
+ ],
55
+ "refs": [
56
+ "npm-test-drive:bundle-root:v1",
57
+ "npm-test-drive:receipt-root:v1",
58
+ "npm-test-drive:context-root:v1"
59
+ ],
60
+ "solana_ready": true,
61
+ "claim_boundaries": {
62
+ "provider_calls": false,
63
+ "hosted_enigma_calls": false,
64
+ "transaction_submitted": false,
65
+ "raw_memory_on_chain": false
66
+ }
67
+ }
68
+ ```
69
+
70
+ Expected public-safe output shape from `chain verify`:
71
+
72
+ ```json
73
+ {
74
+ "ok": true,
75
+ "artifact_type": "enigma.proof_network.anchor_batch.v1",
76
+ "valid": true,
77
+ "transaction_submitted": false,
78
+ "raw_memory_on_chain": false,
79
+ "private_payload_detected": false
80
+ }
81
+ ```
82
+
83
+ Presenter notes:
84
+
85
+ 1. The test drive proves local Enigma-controlled state only.
86
+ 2. The anchor batch is Solana-ready because it is an opaque commitment payload, but it is not a transaction and it is not submitted.
87
+ 3. Replace the demo roots with roots emitted by your own local Enigma run when presenting a real local artifact. Do not paste memory text, prompts, embeddings, provider responses, or tenant/customer names into `--root`, `--ref`, or `--authority`.
88
+
89
+ ## Demo 2 — cross-model memory receipt demo
90
+
91
+ Goal: show one local Enigma bundle producing public receipt summaries for multiple model/client profiles, then issue a scoped capability grant and revocation for one public subject ref. No model provider is contacted.
92
+
93
+ ```sh
94
+ node -e "require('node:fs').mkdirSync('.enigma/proof-network',{recursive:true})"
95
+
96
+ enigma test-drive \
97
+ --out-dir .enigma/proof-network/cross-model \
98
+ --overwrite
99
+
100
+ enigma demo cross-model \
101
+ --bundle .enigma/proof-network/cross-model/bundle.json \
102
+ --out .enigma/proof-network/cross-model-report.json
103
+
104
+ enigma chain grant \
105
+ --subject agent:claude-desktop:local-demo \
106
+ --capability memory.context.read \
107
+ --scope context-pack:cross-model-demo:v1 \
108
+ --expires-at 2026-12-31T00:00:00.000Z \
109
+ --grant-ref proof-network-demo-grant-001 \
110
+ --out .enigma/proof-network/capability-grant.json
111
+
112
+ enigma chain revoke \
113
+ --grant-hash sha256:4444444444444444444444444444444444444444444444444444444444444444 \
114
+ --reason demo-complete \
115
+ --revocation-ref proof-network-demo-revocation-001 \
116
+ --out .enigma/proof-network/capability-revocation.json
117
+
118
+ enigma chain verify \
119
+ --file .enigma/proof-network/capability-grant.json
120
+
121
+ enigma chain verify \
122
+ --file .enigma/proof-network/capability-revocation.json
123
+ ```
124
+
125
+ Expected public-safe output shape from `demo cross-model`:
126
+
127
+ ```json
128
+ {
129
+ "ok": true,
130
+ "demo": "cross-model-memory",
131
+ "provider_calls": false,
132
+ "raw_memory_included": false,
133
+ "profiles": [
134
+ {
135
+ "client": "claude-desktop",
136
+ "context_pack_hash": "sha256:...",
137
+ "receipt_refs": ["receipt:..."]
138
+ },
139
+ {
140
+ "client": "cursor",
141
+ "context_pack_hash": "sha256:...",
142
+ "receipt_refs": ["receipt:..."]
143
+ },
144
+ {
145
+ "client": "kimi-code",
146
+ "context_pack_hash": "sha256:...",
147
+ "receipt_refs": ["receipt:..."]
148
+ }
149
+ ]
150
+ }
151
+ ```
152
+
153
+ Expected public-safe output shape from `chain grant`:
154
+
155
+ ```json
156
+ {
157
+ "ok": true,
158
+ "artifact_type": "enigma.proof_network.capability_grant.v1",
159
+ "transaction_submitted": false,
160
+ "raw_memory_on_chain": false,
161
+ "subject": "agent:claude-desktop:local-demo",
162
+ "capability": "memory.context.read",
163
+ "scope": "context-pack:cross-model-demo:v1",
164
+ "expires_at": "2026-12-31T00:00:00.000Z",
165
+ "grant_ref": "proof-network-demo-grant-001",
166
+ "private_payload_detected": false
167
+ }
168
+ ```
169
+
170
+ Expected public-safe output shape from `chain revoke`:
171
+
172
+ ```json
173
+ {
174
+ "ok": true,
175
+ "artifact_type": "enigma.proof_network.capability_revocation.v1",
176
+ "transaction_submitted": false,
177
+ "raw_memory_on_chain": false,
178
+ "grant_hash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
179
+ "reason": "demo-complete",
180
+ "revocation_ref": "proof-network-demo-revocation-001",
181
+ "private_payload_detected": false
182
+ }
183
+ ```
184
+
185
+ Presenter notes:
186
+
187
+ 1. The cross-model report is a receipt demo, not proof that a provider remembered or forgot anything.
188
+ 2. Capability grants are public authorization receipts. Scopes must be public refs, not ACL JSON, tenant names, or private policy bodies.
189
+ 3. Revocations should point to grant hashes or nullifiers. Do not include the original private grant context.
190
+
191
+ ## Demo 3 — benchmark attestation demo
192
+
193
+ Goal: turn a benchmark report hash or local report file into a public benchmark attestation. This demo uses deterministic refs and scores only; the proof artifact does not include dataset rows, questions, answers, prompts, completions, provider responses, or credentials.
194
+
195
+ Package-only path with a precomputed public report hash:
196
+
197
+ ```sh
198
+ node -e "require('node:fs').mkdirSync('.enigma/proof-network',{recursive:true})"
199
+
200
+ enigma chain attest \
201
+ --report-hash sha256:5555555555555555555555555555555555555555555555555555555555555555 \
202
+ --dataset-ref enigma-fixture:deterministic-local:v1 \
203
+ --runner-ref enigma-memory:local-benchmark-runner:v1 \
204
+ --package-ref npm:enigma-memory@0.1.17 \
205
+ --score recall_at_5=1 \
206
+ --score p95_latency_ms=14 \
207
+ --out .enigma/proof-network/benchmark-attestation.json
208
+
209
+ enigma chain verify \
210
+ --file .enigma/proof-network/benchmark-attestation.json
211
+ ```
212
+
213
+ Source-checkout path when you have a local benchmark report file:
214
+
215
+ ```sh
216
+ node scripts/run-memory-benchmarks.mjs
217
+
218
+ enigma chain attest \
219
+ --report-file .enigma/benchmarks/report.json \
220
+ --dataset-ref enigma-fixture:deterministic-local:v1 \
221
+ --runner-ref enigma-memory:scripts/run-memory-benchmarks.mjs \
222
+ --package-ref npm:enigma-memory@0.1.17 \
223
+ --score recall_at_5=1 \
224
+ --score p95_latency_ms=14 \
225
+ --out .enigma/proof-network/benchmark-attestation.json
226
+ ```
227
+
228
+ Expected public-safe output shape from `chain attest`:
229
+
230
+ ```json
231
+ {
232
+ "ok": true,
233
+ "artifact_type": "enigma.proof_network.benchmark_attestation.v1",
234
+ "transaction_submitted": false,
235
+ "raw_memory_on_chain": false,
236
+ "report_hash": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
237
+ "dataset_ref": "enigma-fixture:deterministic-local:v1",
238
+ "runner_ref": "enigma-memory:local-benchmark-runner:v1",
239
+ "package_ref": "npm:enigma-memory@0.1.17",
240
+ "scores": {
241
+ "recall_at_5": 1,
242
+ "p95_latency_ms": 14
243
+ },
244
+ "private_payload_detected": false
245
+ }
246
+ ```
247
+
248
+ Optional full-answer benchmark note: a separate full-answer benchmark runner may require provider credentials for the model being evaluated. Keep those credentials in local environment variables or a secret manager only. The public proof artifact should still contain only `report_hash`, `dataset_ref`, `runner_ref`, `package_ref`, scores, roots, refs, signatures, and claim boundaries. Never include provider requests, provider responses, prompts, answers, dataset rows, account ids, API keys, tenant names, or raw memory in the attestation.
249
+
250
+ Presenter notes:
251
+
252
+ 1. A benchmark attestation proves that a named report hash, dataset ref, runner ref, package ref, and score set were committed together.
253
+ 2. It is not a leaderboard claim unless the named benchmark protocol, dataset access, runner, scoring rules, and comparison set are independently published and reproducible.
254
+ 3. `chain verify` validates the artifact shape and public-safety boundaries; it does not rerun the benchmark.
255
+
256
+ ## Close the demo
257
+
258
+ Verify every generated artifact before sharing it:
259
+
260
+ ```sh
261
+ enigma chain verify --file .enigma/proof-network/anchor-batch.json
262
+ enigma chain verify --file .enigma/proof-network/capability-grant.json
263
+ enigma chain verify --file .enigma/proof-network/capability-revocation.json
264
+ enigma chain verify --file .enigma/proof-network/benchmark-attestation.json
265
+ ```
266
+
267
+ Safe closing claim: Enigma can create local, public-safe proof-network artifacts that are ready for chain anchoring without exposing memory contents or submitting a transaction.
268
+
269
+ Unsafe claims to avoid:
270
+
271
+ - "A Solana transaction was submitted" unless you separately submitted one outside these local planning commands.
272
+ - "Raw memory is on chain"; that should never be true for these demos.
273
+ - "Providers deleted or forgot the memory."
274
+ - "Provider-native memory is canonical."
275
+ - "Benchmark leadership is proven" unless a reproducible comparison protocol and artifacts are published.
@@ -8,15 +8,17 @@ For most developers, start with the installed CLI before reading the SDK interna
8
8
 
9
9
  ```sh
10
10
  npm install -g enigma-memory
11
- enigma setup --overwrite
11
+ enigma init
12
+ enigma setup --client auto --connect-installed --overwrite
13
+ enigma drive health
14
+ enigma status
12
15
  enigma remember --text-file ./memory.txt
13
- enigma search --query "..."
14
- enigma context --query "..." --optimize
16
+ enigma search --query "project context"
17
+ enigma context --query "project context" --optimize
15
18
  enigma verify --export ./.enigma/export.json
16
- enigma connect claude-desktop --dry-run
17
19
  ```
18
20
 
19
- `enigma setup --overwrite` writes local Enigma artifacts under the workspace `.enigma` path and emits deterministic, public-safe JSON without printing raw memory plaintext. It does not write third-party app configs unless you explicitly run `enigma connect <client>` without `--dry-run`. Treat provider-native memory as non-canonical cache only; the local Enigma vault is canonical.
21
+ `enigma init` creates the local `.enigma` workspace, bundle, and proof artifacts with no provider or cloud credentials. `enigma setup --client auto --connect-installed --overwrite` configures the drive and writes the `mcpServers.enigma` entry into every installed/config-present client it detects, skipping clients that are not installed; preview with `--dry-run` first. `enigma drive health` reports a SMART-style memory-drive health packet (freshness, duplicate rate, tombstone backlog, stale derived artifacts, receipt coverage, connector health) from local metadata only; it is part of the Memory Drive surface in this release, and `enigma status` plus `enigma doctor` cover local passport counts, roots, and connector readiness in every build. Neither setup command prints raw memory plaintext. Treat provider-native memory as non-canonical cache only; the local Enigma vault is canonical.
20
22
 
21
23
  Optional public test-drive loop:
22
24