enigma-memory 0.1.8 → 0.1.10
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.
- package/docs/developer-ecosystem.md +1 -1
- package/docs/hosted-cloud-product.md +21 -2
- package/docs/sdk-api.md +22 -1
- package/package.json +5 -1
- package/packages/hosted-cloud/src/index.js +865 -1
- package/packages/mcp-server/src/index.js +1 -1
- package/scripts/build-hosted-api-key-lifecycle.mjs +274 -0
- package/scripts/build-hosted-customer-lifecycle.mjs +456 -0
- package/scripts/build-installer-assets.mjs +1 -1
- package/scripts/run-standard-memory-benchmarks.mjs +1 -1
|
@@ -60,7 +60,7 @@ The example app prints ids, counts, roots, and verification status only. It does
|
|
|
60
60
|
|
|
61
61
|
## CLI and CI loop
|
|
62
62
|
|
|
63
|
-
The CI example installs Node 24, installs the published `enigma-memory@0.1.
|
|
63
|
+
The CI example installs Node 24, installs the published `enigma-memory@0.1.10` package, runs:
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
66
|
npx --yes --package enigma-memory enigma setup --overwrite
|
|
@@ -10,13 +10,17 @@ The source package now has pure contract builders and validators in `packages/ho
|
|
|
10
10
|
- tenant records;
|
|
11
11
|
- hosted vault records;
|
|
12
12
|
- API key metadata records;
|
|
13
|
+
- API key lifecycle packets for issue/rotate/revoke/audit readiness;
|
|
13
14
|
- usage billing records;
|
|
14
15
|
- dashboard summaries;
|
|
15
16
|
- backup drill records;
|
|
16
|
-
- incident and SLA reference records
|
|
17
|
+
- incident and SLA reference records;
|
|
18
|
+
- customer lifecycle packets that aggregate those surfaces for launch-readiness evidence.
|
|
17
19
|
|
|
18
20
|
These functions are contract and validation code only. They do not call an auth provider, billing provider, cloud deployment, KMS, backup target, support desk, status page, SIEM, or model provider. They are safe to import as package code because they do not start servers, read user files, mutate deployment state, publish packages, or contact external accounts.
|
|
19
21
|
|
|
22
|
+
The lifecycle packet public APIs are `buildCustomerLifecyclePacket(input)` / `validateCustomerLifecyclePacket(packet)` and `buildApiKeyLifecyclePacket(input)` / `validateApiKeyLifecyclePacket(packet)` under `enigma-memory/hosted-cloud`; the script commands below emit the same schemas for release evidence.
|
|
23
|
+
|
|
20
24
|
The validators enforce hosted-cloud boundaries:
|
|
21
25
|
|
|
22
26
|
- contract artifacts must include `operator_evidence_refs` for auth provider, billing provider, legal docs, data processing terms, support ownership, and external security review;
|
|
@@ -24,10 +28,11 @@ The validators enforce hosted-cloud boundaries:
|
|
|
24
28
|
- raw memory, plaintext prompts, provider responses, transcripts, credential-looking values, token values, private keys, and API key secret material are rejected;
|
|
25
29
|
- financial outcome claims, token ROI/profit claims, provider-side deletion claims, and model-forgetting claims are rejected;
|
|
26
30
|
- API key contracts store identifiers, fingerprints, scopes, rotation refs, and timestamps only, not key material;
|
|
31
|
+
- API key lifecycle packets store issue/rotate/revoke/audit evidence refs, event refs, fingerprints, opaque subjects, readiness status, and operator approval refs only; they reject raw key material, provider payloads, customer memory, plaintext prompts, credentials, ROI claims, provider-deletion claims, and model-forgetting claims;
|
|
27
32
|
- hosted vault contracts are opaque-record and plaintext-minimized contracts only;
|
|
28
33
|
- billing records remain contract records until an external billing provider invoice flow is wired.
|
|
29
34
|
|
|
30
|
-
|
|
35
|
+
Individual surface builders emit `readiness.contract_ready: true`, `readiness.integration_kind: "contract_validator_only"`, and `readiness.hosted_cloud_sellable: false` because contract readiness is not provider wiring, legal approval, security review, or operator go-live approval. A customer lifecycle packet may only mark `hosted_cloud_sellable: true` when every lifecycle surface has a provided evidence ref and an explicit operator go-live approval ref is supplied; the packet remains evidence validation, not live hosted SaaS or provider wiring. An API key lifecycle packet keeps `customer_api_keys_live:false` by default and can become live-ready only when every required issue/rotate/revoke/audit evidence ref is provided and an operator approval ref is supplied. That live-ready state is still evidence validation only: it does not issue a customer API key, create a secret, call an auth provider, rotate/revoke a provider credential, or prove provider-side deletion.
|
|
31
36
|
|
|
32
37
|
## Externally blocked before hosted cloud can be sold
|
|
33
38
|
|
|
@@ -44,6 +49,20 @@ Hosted cloud remains blocked until an operator wires and records evidence for al
|
|
|
44
49
|
|
|
45
50
|
A `provided` operator evidence ref means the contract can point to external evidence. It still does not by itself make hosted cloud sellable; an operator must complete the release checklist and issue go-live approval. A `blocked_external_dependency` ref is an explicit blocker, not fake evidence.
|
|
46
51
|
|
|
52
|
+
## Customer lifecycle packet
|
|
53
|
+
|
|
54
|
+
`npm run production:hosted-customer -- --tenant <id> --domain <domain> --environment <env> --out <file>` builds `enigma.hosted_cloud.customer_lifecycle_packet.v1` readiness evidence for a tenant launch packet. Operators may pass repeatable `--evidence-ref <key=status:ref>` values and `--operator-go-live-ref <ref>` when real external evidence exists. The command writes public-safe validation evidence only: it creates no hosted account, tenant, vault, API key, invoice, support ticket, backup, Cloudflare resource, provider resource, secret, or deployment.
|
|
55
|
+
|
|
56
|
+
The lifecycle packet records lifecycle phases, required surfaces, external blockers, missing evidence refs, no-secret/no-plaintext guarantees, and the sellability gate. Missing surfaces, blocked evidence refs, or absent operator go-live approval keep `hosted_cloud_sellable:false`.
|
|
57
|
+
|
|
58
|
+
## API key lifecycle packet
|
|
59
|
+
|
|
60
|
+
`npm run production:hosted-api-key -- --tenant <id> --subject <opaque-subject-ref> --operation <issue|rotate|revoke|audit> --out <file>` builds `enigma.hosted_cloud.api_key_lifecycle_packet.v1` readiness evidence for one customer API key lifecycle operation. Operators may pass repeatable `--evidence-ref <phase=status:ref>` values for the phases required by that operation, plus `--operator-approval-ref <ref>` when a reviewed operator approval exists.
|
|
61
|
+
|
|
62
|
+
The command writes public-safe validation evidence only. It must not receive or print raw API keys, bearer tokens, credentials, provider response bodies, plaintext prompts, raw memory, customer content, financial ROI claims, provider deletion claims, or model forgetting claims. It creates no hosted account, customer API key, provider secret, KMS key, rotation job, revocation job, audit export, invoice, support ticket, Cloudflare resource, provider resource, or deployment.
|
|
63
|
+
|
|
64
|
+
The packet records lifecycle events, required evidence refs, missing evidence refs, malformed operation blockers, the operator approval ref, readiness status, `customer_api_keys_live`, and no-secret/no-plaintext guarantees. Missing evidence refs, blocked evidence refs, malformed operation surfaces, or absent operator approval keep `customer_api_keys_live:false`.
|
|
65
|
+
|
|
47
66
|
## Non-claims
|
|
48
67
|
|
|
49
68
|
Hosted cloud collateral must not say or imply:
|
package/docs/sdk-api.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SDK and API guide
|
|
2
2
|
|
|
3
|
-
This guide covers the public package imports for `enigma-memory@0.1.
|
|
3
|
+
This guide covers the public package imports for `enigma-memory@0.1.10`. The SDK runs locally by default: vaults, passports, context packs, receipts, relay/gateway demo state, storage contracts, metering artifacts, settlement artifacts, and hosted-cloud contract packets are package-level developer surfaces. They are not evidence of hosted Enigma cloud, live customer API key issuance, provider-side deletion, provider model forgetting, token ROI, invoice savings, compliance certification, or benchmark leadership.
|
|
4
4
|
|
|
5
5
|
## Install and import style
|
|
6
6
|
|
|
@@ -157,6 +157,27 @@ const job = createPermissionlessMemoryJob({
|
|
|
157
157
|
});
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
+
### `enigma-memory/hosted-cloud`
|
|
161
|
+
|
|
162
|
+
The hosted-cloud module emits public-safe contract/readiness evidence only. Customer API key lifecycle packets model issue, rotate, revoke, and audit readiness with evidence refs, opaque subject refs, fingerprints, missing-evidence refs, readiness status, and operator approval refs. They never contain raw key material, provider payloads, plaintext prompts, raw memory, credentials, ROI claims, provider deletion claims, or model forgetting claims.
|
|
163
|
+
|
|
164
|
+
```js
|
|
165
|
+
import {
|
|
166
|
+
buildApiKeyLifecyclePacket,
|
|
167
|
+
validateApiKeyLifecyclePacket,
|
|
168
|
+
} from 'enigma-memory/hosted-cloud';
|
|
169
|
+
|
|
170
|
+
const packet = buildApiKeyLifecyclePacket({
|
|
171
|
+
tenant_id: 'tenant-alpha',
|
|
172
|
+
subject_ref: 'subject-ref-alpha',
|
|
173
|
+
environment: 'production',
|
|
174
|
+
operation: 'audit',
|
|
175
|
+
});
|
|
176
|
+
const valid = validateApiKeyLifecyclePacket(packet);
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
`customer_api_keys_live` stays `false` unless the issue/rotate/revoke/audit evidence refs are complete and an operator approval ref is supplied. Even then, the packet is readiness evidence validation only; it does not issue a key, create a secret, call KMS or auth providers, rotate or revoke a provider credential, or prove provider-side deletion.
|
|
180
|
+
|
|
160
181
|
## Verifying exported proof
|
|
161
182
|
|
|
162
183
|
Package consumers should verify exported bundles through the CLI or MCP verifier rather than importing source-only verifier internals. Treat full bundles as private unless you have reviewed and removed local import key material before sharing:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enigma-memory",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Provider-agnostic AI memory passport and offline-verifiable proof layer.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -84,6 +84,8 @@
|
|
|
84
84
|
"scripts/monitor-live-endpoints.mjs",
|
|
85
85
|
"scripts/collect-hosted-backend-live-evidence.mjs",
|
|
86
86
|
"scripts/build-hosted-probe-worker.mjs",
|
|
87
|
+
"scripts/build-hosted-customer-lifecycle.mjs",
|
|
88
|
+
"scripts/build-hosted-api-key-lifecycle.mjs",
|
|
87
89
|
"scripts/build-edge-backend-workers.mjs",
|
|
88
90
|
"scripts/validate-cloudflare-worker-inspect.mjs",
|
|
89
91
|
"scripts/validate-production-manifests.mjs",
|
|
@@ -175,6 +177,8 @@
|
|
|
175
177
|
"production:edge-deploy": "node scripts/deploy-edge-backend-workers.mjs",
|
|
176
178
|
"production:edge-live": "node scripts/collect-edge-backend-bootstrap-evidence.mjs",
|
|
177
179
|
"production:ref-draft": "node scripts/build-hosted-ref-draft.mjs",
|
|
180
|
+
"production:hosted-customer": "node scripts/build-hosted-customer-lifecycle.mjs",
|
|
181
|
+
"production:hosted-api-key": "node scripts/build-hosted-api-key-lifecycle.mjs",
|
|
178
182
|
"production:storage-bootstrap": "node scripts/cloudflare-storage-bootstrap.mjs",
|
|
179
183
|
"production:worker-inspect": "node scripts/validate-cloudflare-worker-inspect.mjs",
|
|
180
184
|
"production:cloudflare-credentials": "node scripts/validate-cloudflare-credentials.mjs",
|