@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
@@ -1,260 +0,0 @@
1
- # Customer-authorized automatic Node certification
2
-
3
- This release connects opt-in recording to the existing Node attestation pipeline.
4
- It does not change the Node, SDK, evidence format, cryptography or credentials.
5
- The package is private and UNLICENSED; use the locally supplied tarball, not a
6
- registry package assumed to be published. No live submission was used in validation.
7
-
8
- ## Two explicit deployment models
9
-
10
- `createCustomerPublisher()` uses the customer's existing `NEXART_NODE_API_KEY`
11
- under explicit local consent and policy. Ordinary Node 24 desktop installations
12
- do not need root-owned installation, the Mac isolation manifest, or per-CER TTY
13
- approval. This is intentional agent delegation, not an agent-exclusion boundary.
14
-
15
- `createIsolatedOwnerPublisher()` remains separate and still calls
16
- `requireIsolatedMac()` before publication or reconciliation. Its administrator
17
- requirements and the legacy manual workflows have not been bypassed. Neither
18
- mode falls back into the other. Setting a key alone enables no new submissions.
19
-
20
- ## Installation and Claude Desktop setup
21
-
22
- 1. Obtain the owner-approved 4B.2 tarball and compare its SHA-256 with the handoff.
23
- Use Node **24.x** and pnpm **10.26.1** in a separate local consumer directory:
24
-
25
- ```sh
26
- pnpm init
27
- pnpm add --save-exact --ignore-scripts /absolute/path/to/nexart-mcp-server-0.1.0.tgz
28
- ```
29
-
30
- The package is already compiled. Launch Node directly; do not use `pnpm start`
31
- as a stdio command because package-manager output can corrupt the protocol.
32
-
33
- 2. Install age **>=1.2.1 and <2** using your normal system package manager.
34
- Resolve the real executable path (not a symlink) for `ageExecutable`.
35
- Generate and back up the private age identity in a separate owner-controlled
36
- recovery environment. Transfer only its public X25519 recipient to recording.
37
- **Never install the decryption identity in Claude's environment.**
38
-
39
- 3. Create a private configuration directory and separate existing subdirectories:
40
-
41
- ```sh
42
- umask 077
43
- mkdir -p "$HOME/.config/nexart/vault" "$HOME/.config/nexart/attempts" "$HOME/.config/nexart/approvals"
44
- chmod 700 "$HOME/.config/nexart" "$HOME/.config/nexart/vault" \
45
- "$HOME/.config/nexart/attempts" "$HOME/.config/nexart/approvals"
46
- ```
47
-
48
- Use absolute real paths. Ancestors must not be group/world-writable.
49
- Copy [custody](examples/customer-custody.json),
50
- [consent](examples/customer-consent.json) and
51
- [policy](examples/customer-policy.json) templates into that directory.
52
- Set each configuration file to **0600**. No symlinks or hard-linked files.
53
-
54
- 4. Create your account at https://nexart.io and generate your own NexArt API key.
55
- Enter it locally in Claude Desktop's environment configuration, or use your
56
- established OS secret-store launcher that injects `NEXART_NODE_API_KEY`.
57
- This package does not implement a new secret store or read unrelated apps.
58
- Do not paste the key into chat, tool arguments, shell arguments or source.
59
- The JSON environment option stores the key in plaintext on disk: protect the
60
- Desktop configuration file and backups accordingly.
61
-
62
- 5. Edit the templates locally. Match account/credential labels across policy and
63
- consent; these are local context labels, not authenticated Node account IDs.
64
- Replace the fingerprint with SHA-256 of the exact configured key. In an
65
- owner-controlled shell where the variable is already securely injected:
66
-
67
- ```sh
68
- node --input-type=module -e 'import {createHash} from "node:crypto";
69
- const k=process.env.NEXART_NODE_API_KEY;
70
- if(!k||/[\r\n]/.test(k)) process.exit(1);
71
- console.log(createHash("sha256").update(k).digest("hex"));'
72
- ```
73
-
74
- This prints only a local control-plane fingerprint, never the key. It does
75
- not create evidence or contact the Node.
76
-
77
- Choose a short actual UTC allowance period, expiry and maximum attempt count.
78
- **The sample dates and paths must be edited**; consent expiry should cover
79
- only the intended window. The shipped policy permits basic input/output-only
80
- evidence with the four illustrated parameter fields and no identity,
81
- instruction or decision references. It denies additional fields until the
82
- owner reviews and adds their exact readable leaf paths. There are no wildcards.
83
- Do not remove sensitive fields to force an existing CER through the policy.
84
-
85
- For OpenAI `modelEvidence`, select the existing
86
- `ai-v2-openai-disclosure-v1` profile and explicitly approve the corresponding
87
- readable paths and protected-field array indices. The MCP provenance remains
88
- `producer_supplied`; only the trusted provider adapter asserts instrumented
89
- capture. Review identity separately before `declared_allowlisted`.
90
-
91
- 6. Read the public-disclosure and quota implications below. The consent template
92
- starts disabled. Set all four acknowledgement/enablement booleans to `true`
93
- only after accepting them, and keep `revoked:false` with a valid future expiry.
94
-
95
- 7. Merge [the Desktop configuration](examples/customer-claude-desktop.json) into
96
- your existing `mcpServers` configuration without replacing other servers.
97
- On macOS the usual file is
98
- `~/Library/Application Support/Claude/claude_desktop_config.json`.
99
- Use your host's current developer-settings location if different. Replace
100
- every placeholder locally. The absolute Node path avoids GUI PATH issues.
101
- `NEXART_ENABLE_ATTEST`, `NEXART_ENABLE_PUBLIC_ATTEST` and
102
- `NEXART_ENABLE_SEAL` are **not required** for recording; those continue to
103
- control the two separate legacy tools.
104
-
105
- 8. Restart Claude Desktop. Discover `nexart_record_execution` alongside the
106
- seven read-only tools. The two legacy write tools appear only if separately
107
- enabled. Record first in explicit local-only mode to check custody without
108
- Node credentials or submission. Example arguments:
109
-
110
- ```json
111
- {
112
- "kind": "execution",
113
- "execution": {
114
- "executionId": "owner-selected-unique-id",
115
- "timestamp": "2026-11-12T12:00:00.000Z",
116
- "provider": "owner-supplied",
117
- "model": "owner-supplied",
118
- "input": "private input",
119
- "output": "private output",
120
- "parameters": {"temperature": 0, "maxTokens": 8, "topP": null, "seed": null},
121
- "executionRole": "advisory"
122
- },
123
- "createdAt": "2026-11-12T12:00:01.000Z",
124
- "certification": {"mode": "local"}
125
- }
126
- ```
127
-
128
- 9. Only in a **separately authorized live acceptance window**, use a fresh
129
- synthetic execution and omit `certification` for Node/public. Installation
130
- or this documentation is not authorization for a live test. Success must show:
131
- `localIntegrity:"valid"`, `policyAuthorization:"policy_authorized"`,
132
- `submission:"node_reported_accepted"`, `nodeConfirmedVisibility:"public"`,
133
- and separately `receiptSignature:"valid"` / `hashBinding:"match"`.
134
- `signerTrust:"not_established"` is expected without approved production pins.
135
- Report acceptance with unverified receipts as such, not fully verified success.
136
-
137
- 10. Use `"certification":{"mode":"node","visibility":"private"}` for private Node
138
- certification, or `{"mode":"local"}` for no Node operation. Local plus a
139
- visibility selection is invalid. CER input is
140
- `{"kind":"cer","bundle":{...},"certification":{...}}`; no openings are accepted.
141
-
142
- Recording certifies explicitly supplied evidence. It does **not** intercept
143
- all Claude interactions, recover missing executions, authenticate producer
144
- assertions, or automatically run the OpenAI adapter.
145
-
146
- ## Consent, policy and transport contract
147
-
148
- Host configuration is `NEXART_RECORD_CERTIFICATION_CONFIG`, an absolute path to
149
- a strict version-1 `customer_delegated` consent file. Its booleans are actual
150
- booleans, not strings. Unknown keys, unsupported versions and relative paths fail.
151
- The owner selects policy/state/approval paths and account/credential context.
152
- No configuration, key, endpoint, recipient, identity or profile selector is an
153
- MCP argument. A key by itself does not activate the feature.
154
-
155
- Consent is read for each Node-intent record and its normalized contents are
156
- bound for that transaction. Enabled acknowledgements, revocation and expiry are
157
- checked again before reservation/authorization and immediately before the actual
158
- POST. Consent changes reject the in-flight transaction. The existing version-1
159
- policy is re-read and checked at the same authorization boundaries.
160
- There is no interactive `PUBLISH` prompt per eligible CER: customer consent
161
- authorizes the existing internal exact-body single-use approval mechanism.
162
-
163
- New execution → published SDK confidential sealing → durable age custody →
164
- local SDK verification → consent/policy → durable attempt → existing `attest()`
165
- and `AttestPoster` → receipt verification → `RecordResult`.
166
-
167
- The existing Node endpoint, Bearer authentication and explicit
168
- `X-NexArt-Visibility` header are reused. No alternate HTTP implementation,
169
- projection, resealing, visibility fallback, retry queue or remote publisher.
170
- MCP parses JSON and may normalize key order; it preserves every CER value,
171
- commitment, protected set and hash. The prepared JSON body is subsequently bound
172
- and transmitted exactly, without further mutation.
173
-
174
- Profiles deny unsupported metadata. Input/output are committed and present
175
- instruction/decision-reference content must also be protected. Public readable
176
- metadata, parameters, content hashes, identity and allowed provider evidence
177
- remain disclosed. A field allowlist is not a detector of secrets or personal data.
178
- No recovery openings are submitted or returned through MCP.
179
- Existing-CER integrity does not prove external recovery material was retained.
180
-
181
- ## Failures, usage and reconciliation
182
-
183
- Local evidence survives certification failure; the result never calls failure
184
- successful local or private certification. Check `reasonCode` independently of
185
- local validity. The structured output contract is unchanged. Known setup and
186
- policy failures also include a constant actionable text message, never raw
187
- configuration, credentials or paths:
188
-
189
- | Reason / state | Customer action |
190
- | --- | --- |
191
- | `OWNER_PUBLISHER_SETUP_REQUIRED` | Configure the customer consent path; a key alone is insufficient. |
192
- | `CUSTOMER_CERTIFICATION_CONFIG_INVALID` | Fix strict JSON, paths, ownership and 0600/0700 permissions. |
193
- | `CUSTOMER_CONSENT_REQUIRED` | Review and explicitly enable all acknowledgements. |
194
- | `CUSTOMER_CONSENT_EXPIRED_OR_REVOKED` | Owner reviews whether to renew; do not let the model renew consent. |
195
- | `CUSTOMER_CONSENT_CHANGED` | In-flight consent changed; inspect retained attempt before further action. |
196
- | `NODE_CREDENTIAL_UNAVAILABLE` | Configure the customer's key locally; never send it in chat. |
197
- | `POLICY_AUTHORIZATION_DENIED` | Check revocation, expiry, context and credential fingerprint. |
198
- | `POLICY_PROFILE_DENIED` / `POLICY_DISCLOSURE_DENIED` / `POLICY_IDENTITY_DENIED` | Review disclosure eligibility; never strip evidence or broaden policy automatically. |
199
- | `PUBLISHER_LOCAL_BUDGET_EXHAUSTED` | Stop; owner reviews allocated allowance. This is not Node account usage. |
200
- | `ATTEMPT_RESERVATION_BUSY` | Inspect concurrent/stale reservation; no automatic lock removal. |
201
- | `NODE_AUTH_REJECTED` | Owner checks or rotates key; do not repeat the same attempted CER. |
202
- | `NODE_QUOTA_OR_RATE_LIMITED` | Node returned 429; no invented remaining balance or automatic retry. |
203
- | `outcome_unknown` / `ATTEMPT_REQUIRES_OWNER_RECONCILIATION` | Inspect via GET-only reconciliation, never repeat POST. |
204
- | `ACCEPTED_RECEIPT_NOT_VERIFIED` | Node reported acceptance, but independently checked receipt properties did not verify. |
205
-
206
- Attempts are exclusive and persisted before any POST. Failed, interrupted and
207
- duplicate attempts burn local allowance; their files must not be deleted to
208
- retry. No automatic refund, stale-lock expiry or POST retry is provided. A
209
- consent rejection immediately at the transport boundary is `not_sent`, but its
210
- reserved allowance remains burned. Other conservative ambiguity can exist even
211
- where the Node did not receive the request.
212
-
213
- `usage.authoritative:false`, `accountRemaining:null` and
214
- `scope:"publisher_local"` are intentional. The current attestation response does
215
- not provide authoritative account usage. Node visibility is a checked operational
216
- response, not a cryptographically signed visibility guarantee. Receipt signature,
217
- hash binding, signer trust and execution truth are separate properties.
218
-
219
- For owner-controlled reconciliation from the consumer directory:
220
-
221
- ```js
222
- import {createCustomerPublisher} from './node_modules/@nexart/mcp-server/dist/record/customer.js';
223
- const publisher = createCustomerPublisher(process.env.NEXART_RECORD_CERTIFICATION_CONFIG);
224
- const summary = await publisher.reconcile('sha256:THE_EXACT_ATTEMPTED_HASH');
225
- console.log(summary);
226
- ```
227
-
228
- Run only in an authorized owner session with the same environment configuration.
229
- This uses authenticated exact-hash GET, current consent/policy and existing
230
- receipt verification. It never retries POST, refunds allowance or exposes raw
231
- owner proof metadata. An inaccessible proof remains unresolved. It is a library
232
- operation, not a new model-invocable MCP tool.
233
-
234
- ## Rotation, revocation and limitations
235
-
236
- - Revoke a compromised or retired key at nexart.io using existing account
237
- controls; create a replacement, update the local environment and policy
238
- fingerprint/credential context, and restart Desktop. Preserve account context,
239
- policy identity and attempt history so rotation does not reset local accounting.
240
- - Disable/revoke consent to stop new submissions by this implementation.
241
- Revocation at the Node is necessary to stop direct use of a leaked key.
242
- Revocation cannot undo a POST already sent or recall copied public data.
243
- - The customer key has only the authority actually enforced by the Node.
244
- Do not infer new endpoint/visibility scopes, per-key hard quotas or expiry.
245
- - An unrestricted same-user agent may read the key, rewrite policy or use the
246
- key directly. Local file permissions and consent checks do not prevent that.
247
- Local budgets are not server-enforced, account-wide limits.
248
- - Recovery identity exclusion is operator provisioning, not proof provided by
249
- a configuration boolean. Keep the private identity outside agent access.
250
- - Capture provenance and optional producer identity are declarations, not
251
- independent observation or producer authentication.
252
- - Production trust pins remain unapproved. Valid receipts alone do not establish
253
- trusted signer status or truth of the recorded execution.
254
- - Automated validation uses mocked Node responses and installed stdio sessions
255
- for both protocol revisions. A Claude Desktop GUI run and live acceptance are
256
- separate owner-controlled checks, not claimed as completed here.
257
-
258
- Validate a new release with `node tests/validation/run.mjs --milestone-4b2`.
259
- The frozen 454-test tarball is retained; 4B.2 uses its own exclusive evidence
260
- directory and compares every baseline test category before independent install.
@@ -1,263 +0,0 @@
1
- # Public-default certification and owner confidential creation
2
-
3
- ## Independent concepts and compatibility
4
-
5
- - **Confidential evidence:** SDK commitments hide selected content without
6
- encrypting the CER. Readable metadata and hashes remain public/correlatable.
7
- - **Ordinary evidence:** raw producer content; the MCP `from_execution` path
8
- remains ordinary. `from_snapshot` preserves ordinary or precommitted evidence.
9
- Neither contract silently changes confidentiality.
10
- - **Public certification:** omitted visibility or explicit `public`. The MCP
11
- always sends `X-NexArt-Visibility: public` after authorization.
12
- - **Private certification:** explicit `visibility: "private"` and explicit private
13
- HTTP header. Fixture A and its private runner remain unchanged.
14
- - **Publication authorization:** separate host enablement (off by default) and
15
- owner TTY grant binding the exact serialized CER, including unhashed metadata,
16
- credential, destination, account context and disclosure profile. Five-minute
17
- authenticated expiry and atomic single use remain mandatory. No POST retries.
18
- - **Identity:** optional SDK identity is integrity-bound producer declaration;
19
- `verified: true` is not authentication by MCP, Node API key, or an identity provider.
20
- - **Integrity/trust:** SDK integrity and valid Ed25519 signatures do not establish
21
- independently trusted signer identity. Production trust pins remain empty.
22
- - **Execution:** attestation verifies evidence, not observed execution, truth,
23
- completeness, or model/provider provenance.
24
-
25
- Changing the omitted visibility default is intentionally behavior-incompatible
26
- for callers that relied on omission meaning private. They must send explicit
27
- private. Public capability remains off; omitted unapproved requests fail before
28
- POST, never fall back to private. Existing sealed CERs/hashes are never rewritten.
29
- No Node/SDK changes, new cryptography, database or hosted custody service.
30
-
31
- ## Owner confidential creation
32
-
33
- Use a trusted isolated owner account/device, not an agent shell or MCP client.
34
- The owner explicitly approves local file custody at the controlling terminal.
35
- The `nexart-create-confidential` command is not an MCP tool and makes no HTTP
36
- requests. Use an owner-encrypted volume (for example an encrypted APFS volume)
37
- for custody and arrange an owner-only offline backup. The command does not
38
- create encryption or claim to verify the encryption/backup configuration.
39
-
40
- From the validated package directory:
41
-
42
- ```sh
43
- umask 077
44
- mkdir -m 700 /absolute/owner-encrypted-volume/nexart-custody
45
- # Owner writes input.json locally with mode 0600. Do NOT paste plaintext in chat.
46
- chmod 600 /absolute/owner-only/input.json
47
- node dist/create-confidential.js /absolute/owner-only/input.json \
48
- /absolute/owner-encrypted-volume/nexart-custody
49
- ```
50
-
51
- Owner input structure:
52
-
53
- ```json
54
- {
55
- "execution": {
56
- "executionId": "owner-chosen-id",
57
- "timestamp": "2026-11-11T00:00:00.000Z",
58
- "provider": "producer-declared",
59
- "model": "producer-declared",
60
- "input": {"text": "owner-only content"},
61
- "output": {"text": "owner-only result"},
62
- "parameters": {"temperature": 0, "maxTokens": 8, "topP": null, "seed": null},
63
- "executionRole": "advisory"
64
- },
65
- "createdAt": "2026-11-11T00:00:01.000Z"
66
- }
67
- ```
68
-
69
- Input and output always receive SDK 1.4.0 confidential commitments using fresh
70
- SDK-generated 32-byte random salts. No caller salt option exists. Optional
71
- `protectInstruction: true` requires an SDK-supported instruction;
72
- `decisionRefIndexes: [0]` commits selected existing public-string SDK decision
73
- references. Other sensitive-field options are rejected, not silently ignored.
74
- Identity is optional and remains readable. Protecting additional SDK-supported
75
- fields does not automatically make that CER eligible for the narrower existing
76
- MCP submission disclosure profile; it may correctly reject it without alteration.
77
-
78
- After the owner types `RETAIN OWNER RECOVERY`, the command exclusively creates
79
- a certificate-hash-named directory with:
80
-
81
- - `recovery.json`: original execution plaintext **and** SDK openings (salts),
82
- mode 0600. Openings alone do not contain the plaintext needed to verify them.
83
- - `cer.json`: unmodified SDK CER, written only after recovery material is
84
- retained and synchronized. Only this file may be exported after metadata review.
85
-
86
- The directory is mode 0700, existing files are never overwritten, and stdout
87
- contains only a constant status and certificate hash. Failures emit a constant
88
- message, not SDK diagnostics. Private partial files are intentionally retained
89
- for owner recovery. Unsaved openings from a failed creation cannot be recovered;
90
- no successful export is authorized on failure. Do not export any incomplete transaction. There is no
91
- automatic deletion, backup, encrypted file format, remote vault, secure erase,
92
- power-loss guarantee across all filesystems, or protection against same-UID
93
- agents/root/malware. Losing plaintext or salts prevents later opening
94
- verification; it does not invalidate the sealed CER's commitment authenticity.
95
- These are explicit limits of this approved local custody mechanism.
96
-
97
- ## Fixture C and offline Mac preflight
98
-
99
- C is entirely synthetic; its repeated salts are a test vector, **never production
100
- defaults**. Expected SDK 1.4.0 hash:
101
-
102
- `sha256:96d4f83ed3d023030fa44ec08e435cde4f2322f19d59695062b8654f847858f4`
103
-
104
- Minimum: Node 24.x, pnpm 10.26.1, frozen package and local terminal. Extract the
105
- new release archive into a new directory; do not mix it with the 306-test release.
106
- Compare its SHA-256 to the new validation report, not the old archive checksum.
107
-
108
- ```sh
109
- shasum -a 256 /absolute/path/nexart-mcp-server-0.1.0.tgz
110
- # In a fresh directory:
111
- tar -xzf /absolute/path/nexart-mcp-server-0.1.0.tgz
112
- cd package
113
- unset NODE_OPTIONS NODE_PATH
114
- pnpm install --frozen-lockfile --ignore-scripts
115
- pnpm run build
116
- node tests/acceptance/private-run.mjs --preflight A "$HOME/nexart-private-preflight"
117
- node tests/acceptance/public-run.mjs --preflight C "$HOME/nexart-public-acceptance"
118
- ```
119
-
120
- Preflight reads no key, starts no MCP child, and makes no network request. Review
121
- the generated `public-C/request.json`, `preflight.json`, and
122
- `disclosure-review.json`. The last is a complete **source-backed synthetic**
123
- resolver projection, not a captured live response. It includes display bundle,
124
- canonical certificate/envelope payloads, identity/descriptors, proof, verification,
125
- context, timestamps and links. All are checked for C's protected plaintext and
126
- openings. Node-generated signatures/timestamps are public, not secrecy boundaries.
127
-
128
- On the Mac itself (offline, **synthetic credential only**):
129
-
130
- ```sh
131
- node tests/acceptance/public-run.mjs --check-approval C "$HOME/nexart-public-acceptance"
132
- ```
133
-
134
- This runs the existing approval command, requires the owner to type the displayed
135
- `PUBLISH sha256:...` confirmation, then proves single use. It makes no Node call,
136
- never asks for a live key, and saves the actual OS in its validation record.
137
- Linux pseudo-terminal validation does not establish Mac validation or isolation.
138
- Do not rerun in the same output directory after an existing evidence record.
139
-
140
- ## Enforceable host isolation before public enablement
141
-
142
- A controlling terminal, mode 0600, API key, typed declaration, or model argument
143
- does not isolate an agent that has the same UID. There is no trustworthy automatic
144
- test for all possible agent access. The simplest safe deployment is a separate
145
- owner-controlled Mac with no agent shell, remote-control agent, agent-accessible
146
- account credentials, or shared writable installation/approval/custody paths.
147
- Alternatively an administrator can enforce a dedicated account with agents
148
- unable to log in, execute as that UID, read secrets, control its terminal or
149
- modify its executable/dependencies. Exclude shared mounts and remote-control access.
150
-
151
- The live C runner requires administrative provisioning, not an owner/model flag:
152
-
153
- - Root-owned, non-group/world-writable package **and entire dependency tree**
154
- under a dedicated real installation root, including pnpm link targets.
155
- - Root-controlled actual Node executable and all ancestor directories. A normal
156
- user-writable Node manager installation will fail this check.
157
- - Extended macOS ACLs are conservatively rejected, even deny-only ACLs, because
158
- POSIX ownership/modes alone cannot prove that no other account can write.
159
- - A root-owned regular, single-link policy file at
160
- `/Library/Application Support/NexArt/public-acceptance-host.json`, with
161
- root-controlled ancestors and exactly these keys:
162
-
163
- ```json
164
- {
165
- "version": 1,
166
- "ownerUid": 501,
167
- "agentAccess": "denied_by_administrator",
168
- "installationRoot": "/Library/NexArt",
169
- "nodeExecutable": "/absolute/root-controlled/real/node"
170
- }
171
- ```
172
-
173
- 501 is only an example; the administrator must use the actual isolated owner UID
174
- and real Node path. Do not run acceptance as root. Provisioning requires a real
175
- administrator and independent review of agent exclusion; the JSON alone cannot
176
- enforce or discover it. Do not install this policy on a same-UID agent host. The
177
- runner enforces the non-owner-writable policy and executable boundary and refuses
178
- preloads/alternate module paths. It cannot defend a compromised administrator,
179
- Node, OS, owner UID or a false administrative isolation assertion.
180
-
181
- ```sh
182
- node tests/acceptance/public-run.mjs --check-isolation C "$HOME/nexart-public-acceptance"
183
- ```
184
-
185
- **Current blocker:** this project environment is not an isolated Mac. Actual Mac
186
- policy provisioning, owner-command validation and exclusion of agent access have
187
- not been established. No public capability is enabled by this milestone.
188
-
189
- ## Separately authorized one-shot live procedure — NOT authorized now
190
-
191
- Only after a separate owner authorization for C, the account/destination, one
192
- quota-consuming attempt and readback, and after isolation checks pass:
193
-
194
- 1. Owner checks C does not already exist with conflicting visibility; no attempt
195
- to change fixture A or republish an existing private certificate.
196
- 2. Owner executes the command below only on the provisioned isolated Mac.
197
- 3. Runner requires disclosure consent, owner account context, then hidden
198
- terminal entry of the authorized test key. No argv/chat/diagnostic credential.
199
- 4. Existing approval CLI displays the full CER and requests exact `PUBLISH`
200
- confirmation. Approval is not auto-generated from consent or model input.
201
- 5. Existing `nexart_attest_cer` MCP tool is invoked once with omitted visibility.
202
- It sends explicit public only after consuming the exact-body grant.
203
- 6. A permanent attempt marker is created before the call. Any interruption,
204
- rejection or ambiguous result requires owner GET reconciliation, never an
205
- automatic replacement approval or POST retry.
206
- 7. Owner GET must return the exact original CER/hash and public state. SDK
207
- integrity/authenticity and receipt signature/binding/lifecycle are checked
208
- independently; trust remains `not_established`.
209
- 8. A bounded anonymous GET to the fixed exact-hash resolver must return 200 and
210
- pass complete C disclosure/canonical producer-binding checks. Unknown producer
211
- fields fail closed. Raw response bodies, account records and diagnostics are
212
- not retained. The runner saves selected redacted acceptance summaries only.
213
-
214
- ```sh
215
- # FUTURE ONLY — separate live authorization required:
216
- node tests/acceptance/public-run.mjs --execute-authorized C "$HOME/nexart-public-acceptance"
217
- ```
218
-
219
- One-shot markers/evidence files must never be removed to “retry.” Reconcile
220
- unknown outcomes by separately authorized exact-hash GETs. Retire the credential
221
- only after reconciliation according to owner policy. Dedicated keys are not
222
- proof of endpoint-scoped permissions or a hard per-key certification budget.
223
-
224
- ## Browser verifier acceptance
225
-
226
- Open **https://verify.nexart.io**, select **Verify by Certificate Hash**, and paste
227
- the complete SHA-256 certificate identifier. The deployed hash form was inspected
228
- during the accepted audit; no hash deep-link route is assumed.
229
-
230
- Check exact identifier, certificate canonical SHA-256, Ed25519 envelope signature
231
- and producer/attestation/key bindings. The audited AI verifier path's “Verified”
232
- label does not independently verify the SDK receipt or establish pinned signer
233
- trust. Those are separate checks; if the UI implies trusted identity without an
234
- independent trust basis, record a verifier acceptance gap, do not approve pins.
235
-
236
- After the actual live lookup, the owner can record structured manual results:
237
-
238
- ```sh
239
- node tests/acceptance/public-run.mjs --verifier-review C "$HOME/nexart-public-acceptance"
240
- ```
241
-
242
- This records explicit PASS/FAIL owner observations; it does not claim automated
243
- browser verification. A Node-acceptance PASS is not completion of this separate
244
- manual verifier stage. Neither stage was performed during implementation.
245
-
246
- ## Validation and release evidence
247
-
248
- The original 306-test archive/evidence under `security-fixes-validation` is
249
- preserved. Run the new isolated release suite once per new output directory:
250
-
251
- ```sh
252
- node tests/validation/run.mjs --public-default
253
- ```
254
-
255
- It creates `generated-artifacts/public-default-validation`, frozen-installs/builds
256
- in isolation, runs all baseline tests plus focused additions, benchmarks, checks
257
- an exact production-change allowlist against the frozen archive, packs a separate
258
- archive, and independently installs and invokes both MCP protocol revisions.
259
- Two private-path test setup arguments explicitly select private to retain their
260
- original intent; assertions are not weakened. Approval races, tampering, strict
261
- protectedSet validation and all seven read-only/opt-in write tool tests remain.
262
- The package remains private and UNLICENSED; no Git mutations, npm publication,
263
- upstream changes, production key access or live Node attestation are authorized.
@@ -1,46 +0,0 @@
1
- # Recording input discovery compatibility
2
-
3
- The recording tool now advertises a conventional strict root object with five
4
- named properties: `kind`, `execution`, `bundle`, `createdAt`, `certification`.
5
- Only `kind` is required at discovery level. There is no root `oneOf`, `anyOf`
6
- or `allOf`; unknown root properties remain forbidden.
7
-
8
- This addresses hosts that only expose root properties and otherwise display
9
- the prior branch-only schema as an empty object. Nested execution, parameter,
10
- identity and CER constraints remain advertised. Identity hash prefixes use
11
- standard `pattern:"^sha256:"` rather than the nonstandard `starts_with` format.
12
- The JSON Schema draft URI remains `https://json-schema.org/draft/2020-12/schema`.
13
-
14
- Discovery optionality does not change accepted calls. The handler explicitly
15
- parses every request through the original strict `mcpRecordInput` discriminated
16
- union before invoking recording or accessing runtime custody. Invalid branch
17
- combinations return the constant `INVALID_RECORDING_ARGUMENTS`, without echoing
18
- rejected input. The SDK may reject invalid nested/unknown fields even earlier.
19
- Both rejection routes preserve protocol-era response envelopes.
20
-
21
- - `kind:"execution"` requires the existing complete execution shape and a
22
- nonempty `createdAt`; `bundle` is forbidden.
23
- - `kind:"cer"` requires the existing CER shape; execution-only fields are forbidden.
24
- - Local mode plus visibility is rejected; node/public defaults are unchanged.
25
- - Identity runtime checks retain their existing SDK-compatible prefix-only
26
- semantics. Discovery does not impose a new complete-hash requirement.
27
- - SDK artifact integrity/commitment checks still reject corrupt CERs before
28
- invoking the publisher. No CER is stripped, resealed or rewritten for discovery.
29
-
30
- Only the recording contracts/registration sources change. Credentials, customer
31
- consent, policy, encrypted custody, hashing, Node transport, exact-payload
32
- authorization, attempts, usage and receipt/trust verification are not modified.
33
-
34
- Validation uses both MCP revisions (`2025-11-25`, `2026-07-28`), direct handler
35
- side-effect guards and an independently installed tarball. It preserves all 512
36
- baseline tests. The new suite runs with:
37
-
38
- ```sh
39
- node tests/validation/run.mjs --recording-schema
40
- ```
41
-
42
- Evidence is separate from the frozen 512-test package. Actual Claude Desktop
43
- remote-device discovery must still be confirmed by the owner on their Mac:
44
- install the new archive, restart/reconnect the server, ensure cached discovery
45
- is refreshed, confirm all five fields appear and first invoke explicit local
46
- mode. No live Node submission is authorized by this compatibility fix.