@nexart/mcp-server 0.1.0 → 0.3.0

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 (54) hide show
  1. package/CHANGELOG.md +114 -8
  2. package/CONTRIBUTING.md +7 -5
  3. package/README.md +69 -36
  4. package/SECURITY.md +11 -9
  5. package/THIRD_PARTY_NOTICES.md +4 -4
  6. package/dist/contracts.js +3 -2
  7. package/dist/json-schema.d.ts +9 -0
  8. package/dist/json-schema.js +20 -0
  9. package/dist/lookup/contracts.js +2 -1
  10. package/dist/network/contracts.d.ts +2 -2
  11. package/dist/owner/create.d.ts +2 -2
  12. package/dist/owner/custody.d.ts +7 -0
  13. package/dist/owner/custody.js +35 -16
  14. package/dist/protocol-safety.d.ts +3 -0
  15. package/dist/protocol-safety.js +16 -0
  16. package/dist/receipts/contracts.d.ts +2 -2
  17. package/dist/receipts/contracts.js +2 -1
  18. package/dist/receipts/verify.js +1 -1
  19. package/dist/record/contracts.d.ts +46 -4
  20. package/dist/record/contracts.js +5 -0
  21. package/dist/record/record.d.ts +3 -0
  22. package/dist/record/record.js +6 -2
  23. package/dist/record-tools.d.ts +4 -0
  24. package/dist/record-tools.js +21 -6
  25. package/dist/server.d.ts +11 -1
  26. package/dist/server.js +5 -5
  27. package/dist/stdio.js +3 -19
  28. package/dist/trust/policy.js +8 -2
  29. package/dist/write/attest.d.ts +3 -0
  30. package/dist/write/attest.js +2 -1
  31. package/dist/write/contracts.d.ts +6 -6
  32. package/dist/write/contracts.js +2 -1
  33. package/docs/consumer-guide.md +214 -0
  34. package/package.json +20 -6
  35. package/server.json +9 -3
  36. package/docs/age-version-compatibility.md +0 -46
  37. package/docs/architecture.md +0 -72
  38. package/docs/compatibility.md +0 -163
  39. package/docs/contracts.md +0 -127
  40. package/docs/licensing-review.md +0 -109
  41. package/docs/milestone-1-validation.md +0 -110
  42. package/docs/milestone-2.md +0 -291
  43. package/docs/milestone-3.2.md +0 -291
  44. package/docs/milestone-3.md +0 -274
  45. package/docs/milestone-4a.md +0 -221
  46. package/docs/milestone-4b1.md +0 -220
  47. package/docs/milestone-4b2.md +0 -260
  48. package/docs/public-default.md +0 -263
  49. package/docs/recording-schema-compatibility.md +0 -46
  50. package/docs/release.md +0 -311
  51. package/docs/security-fixes.md +0 -47
  52. package/docs/security.md +0 -195
  53. package/docs/standalone-acceptance.md +0 -81
  54. package/docs/validation.md +0 -85
package/CHANGELOG.md CHANGED
@@ -2,18 +2,124 @@
2
2
 
3
3
  Notable changes are recorded following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
4
  Version selection follows [Semantic Versioning](https://semver.org/) and the
5
- [0.x policy and release checklist](docs/release.md#versioning-and-release-management).
5
+ [0.x release policy](docs/consumer-guide.md#release-policy).
6
6
 
7
- ## [Unreleased]
7
+ ## [0.3.0]
8
8
 
9
- Future changes belong here under Added, Changed, Deprecated, Removed, Fixed
10
- or Security as applicable. Do not invent historical releases.
9
+ ### Compatibility
10
+
11
+ - Use AI Execution SDK 1.4.1. All four V2 sampling parameters remain required
12
+ and accept either a finite number or explicit `null` when unavailable.
13
+ Missing values are rejected; no sampling defaults are invented.
14
+
15
+ ### Added
16
+
17
+ - Hosted customer setup guidance and non-certifying configuration checks using
18
+ the customer's protected API-key header and approved saved policy revision.
19
+ - Normal multi-execution hosted certification through the existing NexArt
20
+ authorisation and Node paths, with account eligibility and Node-enforced
21
+ customer quotas. Normal recording needs no per-execution permit or prompt.
22
+ - Authenticated customer evidence listing and CER, receipt and encrypted recovery
23
+ downloads, with separate current-account/organisation read authority.
24
+
25
+ ### Security
26
+
27
+ - Recording startup always runs the complete existing storage preflight:
28
+ packaged CA and verified database TLS, restricted runtime role and forced
29
+ tenant RLS, immutable operation protections, native age encryption readiness
30
+ and service authentication. Recording requires the versioned policy contract.
31
+ - Distinct executions retain independent durable reservations; identical replay
32
+ cannot dispatch a second Node request. Uncertain outcomes require reconciliation,
33
+ never an automatic retry or replacement execution ID.
34
+ - Installed the production Ed25519 `k1` public-key pin following independent owner
35
+ verification against the active Node signer. Rotation requires separate
36
+ approval; no historical lifecycle exceptions were added. Signature validity
37
+ remains distinct from approved signer identity and certificate binding.
38
+ - Local recording stays disabled by default and requires independently configured
39
+ owner consent, policy and encrypted custody. Hosted recording remains subject
40
+ to customer authorisation and custody checks in a controlled production rollout,
41
+ not unrestricted GA. Preparing the npm release does not change hosted settings.
42
+
43
+ ### Documentation
44
+
45
+ - Updated installation examples for 0.3.0, API-key onboarding, saved policy
46
+ requirements, transport differences and customer evidence retrieval.
47
+ - Recorded the successful real Claude → hosted MCP → NexArt Node certification
48
+ and owner-local confidential recovery, including complete HMAC commitment-opening
49
+ verification with an explicit SDK `VERIFIED` result.
50
+ - Distinguished the tested nine-tool hosted recording-plus-setup configuration,
51
+ its eight-tool recording-disabled rollback, and the seven-tool local stdio
52
+ default with separately enabled/configured local recording.
53
+ - Identified npm 0.2.0 as the current published release and 0.3.0 as the candidate;
54
+ npm and MCP Registry publication remain separate owner-managed actions.
55
+ - Internal operator runbooks, signer candidates, acceptance evidence, credentials
56
+ and customer recovery material remain outside the npm package allowlist.
57
+
58
+ ## [0.2.0]
59
+
60
+ ### Release hardening
61
+
62
+ - Restrict npm documentation to reviewed consumer guidance and placeholder
63
+ configuration examples; exclude internal runbooks and acceptance evidence.
64
+ - Explicitly describe existing any-JSON inputs and SDK metadata maps without
65
+ changing runtime validation, cryptography or certification authorisation.
66
+ - Validate actual discovery schemas, exact archive contents and independently
67
+ installed synthetic tool execution.
68
+ - Candidate validation passed 602 package tests and 145 separate hosted
69
+ regression tests, with no failures or skipped tests. Official MCP Inspector
70
+ portability lint reported zero errors and zero warnings for the emitted
71
+ schemas in both supported protocol revisions.
72
+
73
+ ### Added
74
+
75
+ - Separate portable hosted Streamable HTTP transport at `/` with `/health`,
76
+ shared tool registration/runtime ports, SDK protocol negotiation and a
77
+ Node 24 adapter. Hosted server configuration and operator tooling are
78
+ repository-only, not part of the npm stdio distribution.
79
+ - Host/Origin/CORS checks, body/depth/response/deadline bounds, bounded admission
80
+ and ingress rate limiting, shared lookup concurrency and redacted diagnostics.
81
+ - Synthetic SDK-client HTTP regressions for both wire eras and real local sockets.
82
+ - Integration with the existing nexart.io Lovable/Supabase authorisation
83
+ contract, customer-scoped policy enforcement and approved age recovery
84
+ recipients, reusing the existing MCP-to-Node certification path.
85
+ - Durable PostgreSQL operation reservations, tenant isolation and encrypted
86
+ recovery custody, with bounded acceptance controls and replay safeguards.
87
+ - Conservative potentially-sent/unknown outcome persistence with no lease-based
88
+ retry permission, plus positive receipt-bound reconciliation.
89
+ - Isolated PostgreSQL concurrency, expiry, restart and commit-ambiguity tests.
90
+
91
+ ### Security
92
+
93
+ - Backend context and operation bindings are snapshotted across asynchronous work.
94
+ Capabilities are hashed at rest; opaque outcomes do not assert Node account
95
+ quotas or independently approved signer trust.
96
+ - HTTP explicitly excludes operator-local stdio credentials and write settings.
97
+ - Missing or invalid customer authority, policy or recovery readiness fails
98
+ closed. General hosted certification remains disabled; the successful bounded
99
+ private acceptance does not enable general customer submissions.
100
+ - Production signer trust remains separately unapproved: certificate integrity,
101
+ receipt signature validity, confidential-opening verification and independently
102
+ approved signer trust remain distinct results.
103
+
104
+ ### Documentation
105
+
106
+ - Corrected the published status of npm/MCP Registry v0.1.0 without inventing a
107
+ publication date or changing its archived distribution.
108
+ - Clarified that Lovable/Supabase owns the nexart.io dashboard/backend integration;
109
+ earlier Bridge-based integration and credential-retention proposals are superseded.
110
+ - Updated earlier prototype-stage notes to reflect completed hosted integration
111
+ and controlled private certification acceptance, including independent customer
112
+ recovery and confidential-opening verification.
113
+ - The hosted service was restored to verification-only operation after acceptance.
114
+ This npm candidate neither changes that deployment nor modifies the accepted
115
+ record, receipt or recovery evidence. Internal acceptance procedures and
116
+ evidence remain excluded from the npm archive.
11
117
 
12
118
  ## [0.1.0] — Initial public release
13
119
 
14
- **Status: prepared release candidate, not published.** No publication date is
15
- asserted. The owner must resolve legal/publication gates before releasing, then
16
- finalise this status/date at the actual release cut before final validation.
120
+ **Status: published on npm and listed in the official MCP Registry.** Publication
121
+ and clean-client acceptance were confirmed by the owner. No publication date is
122
+ inferred. The original archive and historical validation evidence are retained.
17
123
 
18
124
  ### Added
19
125
 
@@ -46,7 +152,7 @@ finalise this status/date at the actual release cut before final validation.
46
152
  - Original standalone MCP Server code is licensed Apache-2.0 on Artnames Ltd's
47
153
  express ownership confirmation and authorisation; LICENSE and scoped NOTICE
48
154
  are included without changing the runtime sources.
49
- - Public npm configuration prepared under owner authorisation; not published.
155
+ - Public npm configuration prepared under owner authorisation and subsequently published.
50
156
  Private reporting uses owner-designated security@nexart.io, with delivery/
51
157
  monitoring and npm publishing authority to be checked by the owner.
52
158
  Third-party code is not relicensed;
package/CONTRIBUTING.md CHANGED
@@ -2,14 +2,16 @@
2
2
 
3
3
  ## Current status
4
4
 
5
- This repository is preparing its first public release. Original standalone
5
+ The v0.1.0 npm package and official MCP Registry entry are published. Original standalone
6
6
  MCP Server code is licensed Apache-2.0 on Artnames Ltd's express ownership
7
7
  confirmation and authorisation, including applicable development contributions.
8
8
  See LICENSE, NOTICE and THIRD_PARTY_NOTICES.md. Third-party material retains
9
9
  its own terms; separate NexArt repositories are not relicensed. The npm package
10
- is prepared for public npm distribution, not yet published. The GitHub repository
11
- may remain private. The owner checks npm authority and security mailbox operation
12
- before manual publication.
10
+ is publicly installable independently of this development repository. The GitHub
11
+ repository may remain private. The proposed v0.2.0 hosted implementation remains
12
+ subject to the [consumer compatibility scope](docs/consumer-guide.md#installation-and-compatibility). Do not
13
+ change separate NexArt repositories without owner approval or publish/deploy
14
+ automatically.
13
15
 
14
16
  Contributions intentionally submitted for inclusion are governed by Apache-2.0
15
17
  section 5 unless explicitly stated otherwise or covered by a separate agreement.
@@ -50,7 +52,7 @@ evidence or weaken owner-only filesystem checks for temporary test convenience.
50
52
  No real provider/Node submissions or production credentials belong in tests.
51
53
 
52
54
  Update [CHANGELOG.md](CHANGELOG.md) under Unreleased and assess the
53
- [versioning policy](docs/release.md#versioning-and-release-management).
55
+ [versioning policy](docs/consumer-guide.md#release-policy).
54
56
  The repository owner manually approves versions, Git commits/tags/pushes,
55
57
  npm/Registry publication and GitHub releases. No automatic publication workflow
56
58
  or Git operation is part of validation.
package/README.md CHANGED
@@ -3,12 +3,32 @@
3
3
  NexArt evidence verification, bounded public lookup and opt-in confidential AI
4
4
  recording and customer-authorised Node certification over MCP stdio.
5
5
 
6
- **Release candidate:** `@nexart/mcp-server@0.1.0`. The package remains
7
- **prepared for public npm distribution; not yet published**. Original MCP Server code is
6
+ **Published:** `@nexart/mcp-server@0.2.0`, also listed in the official MCP
7
+ Registry as `io.github.artnames/nexart-mcp-server`. Original MCP Server code is
8
8
  licensed under **Apache-2.0** on Artnames Ltd's express ownership confirmation
9
9
  and authorisation; see [LICENSE](LICENSE), [NOTICE](NOTICE) and
10
- [third-party exclusions](THIRD_PARTY_NOTICES.md). Public installation commands
11
- below apply only after the owner publishes; no publication has occurred.
10
+ [third-party exclusions](THIRD_PARTY_NOTICES.md).
11
+
12
+ **Prepared release:** `@nexart/mcp-server@0.3.0`. It has not been published.
13
+ Installation examples below target 0.3.0 once published; use 0.2.0 until then.
14
+ Release preparation does not activate the hosted service or publish a package.
15
+
16
+ **Hosted service:** `https://mcp.nexart.io/` provides Streamable HTTP, with health
17
+ at `/health`. The tested production configuration exposes **nine tools**: seven
18
+ verification/lookup tools, non-certifying customer setup and
19
+ `nexart_record_execution`. A real Claude → hosted MCP → NexArt Node certification
20
+ and owner-local confidential recovery have passed, including complete HMAC
21
+ commitment-opening verification with an explicit `VERIFIED` result.
22
+ Hosted certification is a **controlled production rollout, not unrestricted GA**:
23
+ current customer eligibility, saved policy revision, visibility, custody and Node
24
+ authorisation/quota checks still apply. Authenticated dashboard evidence access
25
+ is separate from public tool discovery.
26
+
27
+ **Local stdio:** default discovery remains **seven tools**. Local recording must
28
+ be explicitly enabled and independently configured with owner-controlled
29
+ consent, policy and encrypted custody; hosted settings do not configure it.
30
+ The hosted deployment is separate from this npm archive and is not modified by
31
+ release preparation. See the [consumer guide](docs/consumer-guide.md).
12
32
 
13
33
  ## Relationship to NexArt
14
34
 
@@ -26,7 +46,7 @@ Seven read-only tools are available without credentials:
26
46
 
27
47
  | Tool | Scope |
28
48
  | --- | --- |
29
- | `nexart_verify_ai_cer` | AI V1/V2 integrity using AI SDK 1.4.0 |
49
+ | `nexart_verify_ai_cer` | AI V1/V2 integrity using AI SDK 1.4.1 |
30
50
  | `nexart_verify_consequential_cer` | Consequential V1 using SDK 0.1.0 |
31
51
  | `nexart_verify_governed_execution` | Governed envelope 0.1/0.2 using SDK 0.4.2 |
32
52
  | `nexart_verify_project_bundle` | AI Project Bundle V1, including Project hash verification |
@@ -48,16 +68,16 @@ Omitted certification intent selects Node/public; explicit private and local-onl
48
68
  modes remain available. Missing authorisation returns setup-required, not a
49
69
  silent local/private fallback. No per-CER human prompt is required in delegated mode.
50
70
 
51
- Use [customer setup and consent examples](docs/milestone-4b2.md),
52
- [encrypted custody, recovery and provider instrumentation](docs/milestone-4b1.md)
53
- and [age compatibility](docs/age-version-compatibility.md).
71
+ Use [customer setup and consent examples](docs/consumer-guide.md#customer-recording-setup),
72
+ [encrypted custody and recovery guidance](docs/consumer-guide.md#recovery-and-security)
73
+ and [age compatibility](docs/consumer-guide.md#customer-recording-setup).
54
74
  The recording tool is not automatic observation of all client activity.
55
75
  Its MCP provenance is `producer_supplied`, not authenticated provider evidence.
56
76
 
57
77
  Legacy opt-in `nexart_seal_ai_v2` and `nexart_attest_cer` remain separate,
58
- with their existing [write contracts](docs/milestone-3.md) and owner-approval
78
+ with their existing [write boundaries](docs/consumer-guide.md#customer-recording-setup) and owner-approval
59
79
  requirements. Legacy ordinary sealing does not silently become confidential.
60
- The stricter [isolated-owner mode](docs/milestone-4a.md) remains separate from
80
+ The stricter [isolated-owner mode](docs/consumer-guide.md#customer-recording-setup) remains separate from
61
81
  customer-authorised delegation; ordinary delegated setup needs no Mac root policy.
62
82
 
63
83
  ## Requirements
@@ -72,10 +92,10 @@ customer-authorised delegation; ordinary delegated setup needs no Mac root polic
72
92
 
73
93
  ## Install and configure
74
94
 
75
- ### After public npm release
95
+ ### Public npm installation
76
96
 
77
97
  ```bash
78
- npm install @nexart/mcp-server@0.1.0
98
+ npm install @nexart/mcp-server@0.3.0
79
99
  ```
80
100
 
81
101
  Launch the installed `node_modules/.bin/nexart-mcp-server` (or its `mcp-server`
@@ -86,7 +106,7 @@ alias), with Node 24 on PATH. For clients that use an `mcpServers` configuration
86
106
  "mcpServers": {
87
107
  "nexart": {
88
108
  "command": "npx",
89
- "args": ["--yes", "--package=@nexart/mcp-server@0.1.0", "nexart-mcp-server"]
109
+ "args": ["--yes", "--package=@nexart/mcp-server@0.3.0", "nexart-mcp-server"]
90
110
  }
91
111
  }
92
112
  }
@@ -100,7 +120,7 @@ other configured servers, and fully restart Claude Desktop. This example enables
100
120
  only the seven read-only tools. If desktop PATH resolution fails, install locally
101
121
  and use the absolute executable path, with an empty `args` array.
102
122
  The [delegated recording example](docs/examples/customer-claude-desktop.json)
103
- and [setup guide](docs/milestone-4b2.md) add recording/custody/consent settings.
123
+ and [setup guide](docs/consumer-guide.md#customer-recording-setup) add recording/custody/consent settings.
104
124
  Do not enable certification until the owner has approved those settings.
105
125
 
106
126
  ### Generic stdio clients
@@ -109,7 +129,7 @@ The explicit executable avoids client ambiguity. The `mcp-server` alias also
109
129
  supports npm's default executable selection:
110
130
 
111
131
  ```bash
112
- npx --yes @nexart/mcp-server@0.1.0
132
+ npx --yes @nexart/mcp-server@0.3.0
113
133
  ```
114
134
 
115
135
  An idle server waits for MCP messages; it is not an interactive terminal UI.
@@ -122,13 +142,13 @@ encrypted custody and delegated certification using the setup guide, not model
122
142
  arguments or chat. Keep credentials, identities and recovery material out of
123
143
  client-visible evidence and source control.
124
144
 
125
- ### Before release: local archive
145
+ ### Contributor validation: local archive
126
146
 
127
147
  ```bash
128
148
  pnpm install --frozen-lockfile --ignore-scripts
129
149
  pnpm run validate:release
130
150
  # Use the archive path printed by validation, in a separate consumer:
131
- npm install /absolute/path/to/nexart-mcp-server-0.1.0.tgz
151
+ npm install /absolute/path/to/nexart-mcp-server-0.3.0.tgz
132
152
  ```
133
153
 
134
154
  The archive contains compiled runtime/types, documentation, Registry metadata
@@ -198,6 +218,8 @@ Use local-only recording first, without any Node key:
198
218
  ```
199
219
 
200
220
  Replace sample identifiers/timestamps with the actual execution metadata.
221
+ All four `parameters` fields are required. Supply a finite number when known,
222
+ or explicit `null` when unavailable; do not invent values or omit fields.
201
223
  Sensitive fields receive fresh SDK commitments, while complete recovery material
202
224
  is retained with age encryption. Readable metadata still needs disclosure review.
203
225
  Use the owner-only `nexart-recover-confidential` command and the recovery guide;
@@ -213,7 +235,7 @@ Losing recovery material can make later disclosure impossible.
213
235
  A desktop JSON `env` entry stores the key in plaintext on disk; if used,
214
236
  restrict access and accept that limitation explicitly.
215
237
  3. Set `NEXART_RECORD_CERTIFICATION_CONFIG` to an owner-only versioned consent
216
- file, with policy/state/approval paths from the [customer setup guide](docs/milestone-4b2.md).
238
+ file, with policy/state/approval paths from the [customer setup guide](docs/consumer-guide.md#customer-recording-setup).
217
239
  4. Explicitly acknowledge automation, public disclosure and quota consumption.
218
240
  Configure the allowed visibility, credential fingerprint, readable fields,
219
241
  validity/expiry and maximum certification attempts.
@@ -250,7 +272,8 @@ cached permanently; review it before enabling automatic public certification.
250
272
  - **Replit:** developers can install the Node package inside a project.
251
273
  Replit Agent's documented custom MCP integration accepts an HTTPS endpoint;
252
274
  this stdio-only package is not directly connectable through that URL-based UI.
253
- A separately approved hosted transport/bridge would be needed.
275
+ The separate hosted endpoint supports authorised recording in its tested
276
+ nine-tool configuration during the controlled production rollout.
254
277
  - **Windows:** not validated; recording/custody relies on POSIX ownership,
255
278
  permissions and external age. Do not infer Windows support from npm availability.
256
279
 
@@ -263,9 +286,12 @@ remain separate release gates.
263
286
 
264
287
  Integrity is not proof that an execution occurred, that content is true, or that
265
288
  the history is complete. Receipt signature validity, hash binding, Node identity,
266
- key lifecycle and signer trust are distinct results. **No production key pins
267
- or historical exceptions are approved**: a valid production receipt may report
268
- `UNAPPROVED_KEY` / signer trust not established. Manifest discovery is not trust approval.
289
+ key lifecycle and signer trust are distinct results. Version 0.3.0 includes the
290
+ independently owner-approved production Ed25519 `k1` pin for `nexart-node-prod-1`.
291
+ Trust still requires matching key bytes, certificate binding, Node identity and
292
+ valid lifecycle. No historical exceptions are supplied. Unknown keys report
293
+ `UNAPPROVED_KEY`; changed bytes for a pinned key report `PIN_MISMATCH`.
294
+ Manifest discovery is not trust approval.
269
295
 
270
296
  Verification-envelope signatures and RFC 3161 timestamp cryptography are not
271
297
  verified. Project receipts, authenticated producers and completeness are not
@@ -275,7 +301,7 @@ Public certification can permanently disclose readable metadata, consume quota
275
301
  and persist evidence. Commitments protect selected fields, not all metadata.
276
302
  Encryption at rest does not hide plaintext from an agent that already handled it.
277
303
  Same-UID agents may read credentials or modify local policy; local budgets are
278
- not Node-enforced account quotas. See [security boundaries](docs/security.md).
304
+ not Node-enforced account quotas. See [security boundaries](docs/consumer-guide.md#recovery-and-security).
279
305
 
280
306
  ## Development and release validation
281
307
 
@@ -288,16 +314,24 @@ pnpm run validate:release
288
314
 
289
315
  `pnpm test` covers both top-level and validation test directories. Release
290
316
  validation independently installs/builds a temporary checkout, runs the complete
291
- suite (578 accepted baseline tests), packs with npm, installs a production-only
317
+ suite, packs with npm, installs a production-only
292
318
  consumer and checks both MCP revisions, all existing executable paths, encrypted
293
319
  recovery and npm's implicit binary discovery. No production Node submissions
294
320
  or credentials are used. Every run writes a new directory under
295
321
  `generated-artifacts/npm-release/`; historical evidence is never overwritten.
296
322
 
297
- See [validation](docs/validation.md), [release and publication procedure](docs/release.md),
298
- [compatibility and provenance](docs/compatibility.md), [contracts](docs/contracts.md)
323
+ The latest full v0.2.0 candidate validation passed **602 package tests** and a
324
+ separate **145 hosted regression tests**, with no failures or skipped tests.
325
+ Official MCP Inspector portability lint against the candidate's emitted schemas
326
+ reported **0 errors and 0 warnings** for both supported protocol revisions.
327
+ These candidate checks do not imply a new production deployment or additional
328
+ production certification.
329
+
330
+ See [release policy](docs/consumer-guide.md#release-policy),
331
+ [compatibility](docs/consumer-guide.md#installation-and-compatibility), [contracts](docs/consumer-guide.md#tools-and-schemas)
299
332
  and [third-party notices and unresolved permissions](THIRD_PARTY_NOTICES.md).
300
- Licensing and final publication require explicit owner approval.
333
+ Original MCP Server code is licensed Apache-2.0; third-party exclusions remain
334
+ unchanged. Final publication requires explicit owner approval.
301
335
 
302
336
  ## Troubleshooting
303
337
 
@@ -310,7 +344,7 @@ Licensing and final publication require explicit owner approval.
310
344
  | Certification reports setup-required/denied | Check consent, policy expiry/revocation, fingerprint, allowed fields/visibility and durable attempt limits; a key alone is insufficient |
311
345
  | Node outcome unknown | Retain custody/attempt records and follow reconciliation; do not automatically retry |
312
346
  | Public lookup returns not found | Confirm the exact hash and public availability; private/hidden records are deliberately indistinguishable from absence |
313
- | Valid signature with `UNAPPROVED_KEY` | Expected without independently approved production trust pins; do not convert it to trusted success |
347
+ | Valid signature with `UNAPPROVED_KEY` | The signer key is not approved, including an unapproved rotated key; do not convert it to trusted success |
314
348
  | Client fails schema/protocol negotiation | Use the documented command and tested protocol versions; host-specific compatibility beyond reported tests is not established |
315
349
 
316
350
  Share only constant reason codes and sanitized environment/version information.
@@ -322,20 +356,19 @@ Do not publish raw CERs, policies, keys, identities, openings or customer logs.
322
356
  - [Getting started and the AI Evidence Layer](https://docs.nexart.io/docs/getting-started)
323
357
  - [Verification guide](https://docs.nexart.io/docs/verification)
324
358
  - [Public verifier](https://verify.nexart.io/)
325
- - [Security reporting policy](SECURITY.md) and [security boundaries](docs/security.md)
359
+ - [Security reporting policy](SECURITY.md) and [security boundaries](docs/consumer-guide.md#recovery-and-security)
326
360
  - [Contribution policy](CONTRIBUTING.md)
327
- - [Changelog](CHANGELOG.md) and [versioning/release checklist](docs/release.md)
328
- - [Rights review, authorised licence and exclusions](docs/licensing-review.md)
361
+ - [Changelog](CHANGELOG.md) and [release policy](docs/consumer-guide.md#release-policy)
362
+ - [Third-party rights and exclusions](THIRD_PARTY_NOTICES.md)
329
363
 
330
364
  Copyright 2026 Artnames Ltd. Original standalone MCP Server code is licensed
331
365
  under Apache-2.0, including applicable development contributions as confirmed by
332
366
  the owner. This does not relicense SDKs, Node, Verification Terminal, upstream
333
367
  fixtures or other products. Upstream material retains its own rights and notices.
334
- The publication guard has been removed under the owner's explicit release
335
- preparation authorisation. The owner will confirm npm publishing authority and
336
- test delivery/monitoring of security@nexart.io before manual publication.
368
+ Public npm distribution was authorised by the owner. Future publication remains
369
+ manual and requires owner approval, publishing authority and a reviewed archive.
337
370
  The archive does not bundle SDKs or fixtures;
338
371
  upstream SDK notice corrections and public-repository fixture/history clearance
339
372
  are separate from this npm release. Public GitHub visibility is not required.
340
- The security contact is owner-designated; mailbox testing is not claimed by
341
- this preparation. No response SLA is promised.
373
+ The security contact is owner-designated; this repository review does not verify
374
+ mailbox delivery or monitoring. No response SLA is promised.
package/SECURITY.md CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  ## Release/support scope
4
4
 
5
- `0.1.0` is an unpublished release candidate, not a supported public release.
6
- Node 24 and local stdio are the intended scope. Linux is automatically tested;
5
+ `0.1.0` remains published; this checkout prepares the unpublished `0.2.0`
6
+ candidate for Node 24 and stdio. The separate hosted service remains verification-only; see the
7
+ [consumer compatibility scope](docs/consumer-guide.md#installation-and-compatibility). Linux is automatically tested;
7
8
  macOS/Claude Desktop live acceptance is owner-reported. Windows and other
8
9
  individual hosts are not validated. No support period, response deadline or
9
10
  remediation SLA is promised.
@@ -15,9 +16,9 @@ has designated this contact for the standalone MCP Server. Do not open a
15
16
  public issue containing a vulnerability,
16
17
  customer evidence, credentials, recovery material or an exploit.
17
18
 
18
- The owner will independently test mailbox delivery and monitoring before
19
- publication. This preparation has not tested delivery or monitoring and does
20
- not claim either is verified. Send a minimal, non-sensitive initial report;
19
+ This repository review has not tested mailbox delivery or monitoring and does
20
+ not claim either is verified. The owner is responsible for operating this
21
+ reporting route. Send a minimal, non-sensitive initial report;
21
22
  agree a secure transfer method before sending sensitive reproductions.
22
23
  No response deadline, named security team or remediation SLA is promised.
23
24
 
@@ -62,15 +63,16 @@ consume paid quota, or submit live certifications without separate authority.
62
63
  observation of every model execution. Instrumentation assertions are not
63
64
  provider-authenticated signatures.
64
65
  - Artifact integrity, receipt mathematics and signer trust are distinct.
65
- No approved production trust anchors are shipped; `UNAPPROVED_KEY` is not
66
- trusted success. Key discovery alone does not establish trust.
66
+ Version 0.3.0 ships the independently owner-approved production Ed25519 `k1`
67
+ pin, with no historical exceptions. Unknown keys remain `UNAPPROVED_KEY`,
68
+ which is not trusted success. Key discovery alone does not establish trust.
67
69
  - Local limits conservatively reserve attempts and do not enforce Node-wide
68
70
  quota, credential scopes or a financial cap. No automatic POST retries.
69
71
  - Public certification can permanently disclose metadata. Private visibility
70
72
  does not replace commitments, and does not make same-account key access safe.
71
73
  - The package is not an authenticated remote/multi-tenant server.
72
74
 
73
- See [detailed security boundaries](docs/security.md), [compatibility](docs/compatibility.md)
74
- and [customer setup](docs/milestone-4b2.md). Report upstream issues through the
75
+ See [security boundaries](docs/consumer-guide.md#recovery-and-security), [compatibility](docs/consumer-guide.md#installation-and-compatibility)
76
+ and [customer setup](docs/consumer-guide.md#customer-recording-setup). Report upstream issues through the
75
77
  relevant upstream's verified private process; this repository cannot promise
76
78
  changes to NexArt Node, SDKs or the Verification Terminal.
@@ -11,7 +11,7 @@ This supersedes the earlier UNLICENSED preparation status. It does not extend
11
11
  to NexArt Canonical Node, separately maintained SDKs, Verification Terminal or
12
12
  other products. No third-party fixture/dependency is relicensed as original code.
13
13
  The scope is based on the owner's confirmation, not inferred from a repository
14
- name or npm scope. See [the current rights inventory](docs/licensing-review.md).
14
+ name or npm scope. The repository retains a separate internal rights inventory.
15
15
 
16
16
  The owner authorised public-distribution configuration and removal of
17
17
  `private:true`; publication remains manual. The owner will check npm authority
@@ -23,7 +23,7 @@ SDK packaging findings below belong to their separate distributions.
23
23
 
24
24
  | Published package | Version | Manifest license |
25
25
  | --- | --- | --- |
26
- | `@nexart/ai-execution` | 1.4.0 | MIT |
26
+ | `@nexart/ai-execution` | 1.4.1 | MIT |
27
27
  | `@nexart/consequential-execution` | 0.1.0 | MIT |
28
28
  | `@nexart/governed-execution` | 0.4.2 | MIT |
29
29
 
@@ -57,7 +57,7 @@ Fixture files are retained in the repository, not repackaged as original code. T
57
57
  synthetic/public test examples, not customer evidence.
58
58
 
59
59
  - `tests/fixtures/ai/compat-vectors-v1.json` and `compat-vectors-v2.json` came
60
- from the published AI 1.4.0 npm distribution.
60
+ from the published AI 1.4.1 npm distribution.
61
61
  - `tests/fixtures/governed/*.json` came from `artnames/governed-execution` at
62
62
  source revision `c45cba5972157bbc872009b21cdf066cb97c05e2`.
63
63
  The package manifest at that revision declares MIT. Its root listing
@@ -91,7 +91,7 @@ are not required for its validated installation or supported verification scope.
91
91
  The installed MCP server/core/client distributions declare Apache-2.0 and include
92
92
  LICENSE files; Zod declares MIT with a LICENSE. Other installed dependency
93
93
  declarations and licence-file presence are inventoried in
94
- [the rights review](docs/licensing-review.md), including development dependencies.
94
+ the repository's internal rights review, including development dependencies.
95
95
 
96
96
  ## Release gate
97
97
 
package/dist/contracts.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as z from 'zod/v4';
2
+ import { anyJsonValue, sdkMetadata } from './json-schema.js';
2
3
  export const TOOL_NAMES = [
3
4
  'nexart_verify_ai_cer',
4
5
  'nexart_verify_consequential_cer',
@@ -6,10 +7,10 @@ export const TOOL_NAMES = [
6
7
  'nexart_verify_project_bundle',
7
8
  ];
8
9
  export const inputSchema = z.strictObject({
9
- bundle: z.unknown().describe('An inline NexArt artifact. No URLs, paths, credentials or openings.'),
10
+ bundle: anyJsonValue.describe('An inline NexArt artifact. No URLs, paths, credentials or openings.'),
10
11
  });
11
12
  const state = z.enum(['valid', 'invalid', 'not_performed']);
12
- const safeSdkResult = z.record(z.string(), z.unknown());
13
+ const safeSdkResult = sdkMetadata;
13
14
  export const outputSchema = z.strictObject({
14
15
  contractVersion: z.literal('1'),
15
16
  tool: z.enum(TOOL_NAMES),
@@ -0,0 +1,9 @@
1
+ import * as z from 'zod/v4';
2
+ /**
3
+ * Discovery-only spelling of the existing unknown/any-JSON wire contract.
4
+ * Keep runtime validation at the existing handler/SDK boundary. Branch
5
+ * annotations prevent Zod from collapsing anyOf into unportable type arrays.
6
+ */
7
+ export declare const anyJsonValue: z.ZodUnknown;
8
+ /** {} and true are equivalent in this keyword; keep the runtime record intact. */
9
+ export declare const sdkMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -0,0 +1,20 @@
1
+ import * as z from 'zod/v4';
2
+ /**
3
+ * Discovery-only spelling of the existing unknown/any-JSON wire contract.
4
+ * Keep runtime validation at the existing handler/SDK boundary. Branch
5
+ * annotations prevent Zod from collapsing anyOf into unportable type arrays.
6
+ */
7
+ export const anyJsonValue = z.unknown().meta({
8
+ anyOf: [
9
+ { type: 'object', additionalProperties: true },
10
+ { type: 'array', minItems: 0 },
11
+ { type: 'string', minLength: 0 },
12
+ { type: 'number', description: 'Any JSON number.' },
13
+ { type: 'boolean', description: 'Any JSON boolean.' },
14
+ { type: 'null', description: 'JSON null.' },
15
+ ],
16
+ });
17
+ /** {} and true are equivalent in this keyword; keep the runtime record intact. */
18
+ export const sdkMetadata = z.record(z.string(), z.unknown())
19
+ .meta({ additionalProperties: true });
20
+ //# sourceMappingURL=json-schema.js.map
@@ -1,4 +1,5 @@
1
1
  import * as z from 'zod/v4';
2
+ import { sdkMetadata } from '../json-schema.js';
2
3
  import { hashSchema } from '../network/contracts.js';
3
4
  export const LOOKUP_NAMES = ['nexart_lookup_cer', 'nexart_lookup_project_bundle'];
4
5
  export const lookupCerInput = z.strictObject({ certificateHash: hashSchema });
@@ -13,7 +14,7 @@ export const lookupOutput = z.strictObject({
13
14
  ]).nullable(),
14
15
  integrity: z.enum(['valid', 'invalid', 'not_performed', 'indeterminate']),
15
16
  integrityScope: z.literal('returned_bundle'),
16
- sdk: z.record(z.string(), z.unknown()).nullable(),
17
+ sdk: sdkMetadata.nullable(),
17
18
  receiptPresent: z.boolean(),
18
19
  nodeSignature: z.literal('not_performed'),
19
20
  signerTrust: z.literal('not_established'),
@@ -64,8 +64,8 @@ export declare const keySchema: z.ZodObject<{
64
64
  publicKey: z.ZodOptional<z.ZodString>;
65
65
  publicKeySpkiB64: z.ZodOptional<z.ZodString>;
66
66
  status: z.ZodOptional<z.ZodEnum<{
67
- active: "active";
68
67
  deprecated: "deprecated";
68
+ active: "active";
69
69
  revoked: "revoked";
70
70
  }>>;
71
71
  revoked: z.ZodOptional<z.ZodBoolean>;
@@ -89,8 +89,8 @@ export declare const manifestSchema: z.ZodObject<{
89
89
  publicKey: z.ZodOptional<z.ZodString>;
90
90
  publicKeySpkiB64: z.ZodOptional<z.ZodString>;
91
91
  status: z.ZodOptional<z.ZodEnum<{
92
- active: "active";
93
92
  deprecated: "deprecated";
93
+ active: "active";
94
94
  revoked: "revoked";
95
95
  }>>;
96
96
  revoked: z.ZodOptional<z.ZodBoolean>;
@@ -18,8 +18,8 @@ export declare function prepareOwnerConfidential(raw: unknown): {
18
18
  input: string | Record<string, unknown>;
19
19
  output: string | Record<string, unknown>;
20
20
  parameters: {
21
- temperature: number;
22
- maxTokens: number;
21
+ temperature: number | null;
22
+ maxTokens: number | null;
23
23
  topP: number | null;
24
24
  seed: number | null;
25
25
  };
@@ -12,6 +12,13 @@ export declare class EncryptedCustodyError extends Error {
12
12
  constructor(reasonCode: 'ENCRYPTED_CUSTODY_CONFIGURATION_REQUIRED' | 'RECOVERY_ENCRYPTION_FAILED' | 'ENCRYPTED_CUSTODY_DURABILITY_FAILED' | 'RECOVERY_BINDING_FAILED' | 'AGE_VERSION_UNSUPPORTED' | 'AGE_VERSION_CHECK_FAILED');
13
13
  }
14
14
  export declare function checkEncryptedCustody(config: EncryptedCustody): void;
15
+ /** Checked raw-payload port for private storage-only acceptance. Shares the
16
+ * exact native-age primitive with CER recovery; grants no recording authority.
17
+ * The CER-bound wrapper below deliberately retains all its existing checks. */
18
+ export declare function encryptCustodyPayload(bytes: string, config: Pick<EncryptedCustody, 'recipient' | 'ageExecutable'>): Buffer;
19
+ /** Shared in-memory encryption for a durable hosted storage port. No files or
20
+ * private identity, and no new commitment/encryption implementation. */
21
+ export declare function encryptRecoveryForRecipient(bundle: CerAiExecutionBundleV2, snapshot: Record<string, unknown>, openings: OpeningV2[], config: Pick<EncryptedCustody, 'recipient' | 'ageExecutable'>): Buffer;
15
22
  /** Check actual recipient parsing/executable before a paid provider call. */
16
23
  export declare function preflightEncryptedCustody(config: EncryptedCustody): void;
17
24
  /** Verifies every protected domain, not just a selectively supplied subset. */