@nexart/mcp-server 0.1.0 → 0.2.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.
- package/CHANGELOG.md +63 -8
- package/CONTRIBUTING.md +7 -5
- package/README.md +47 -31
- package/SECURITY.md +8 -7
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/dist/contracts.js +3 -2
- package/dist/json-schema.d.ts +9 -0
- package/dist/json-schema.js +20 -0
- package/dist/lookup/contracts.js +2 -1
- package/dist/network/contracts.d.ts +2 -2
- package/dist/owner/custody.d.ts +3 -0
- package/dist/owner/custody.js +26 -16
- package/dist/protocol-safety.d.ts +3 -0
- package/dist/protocol-safety.js +16 -0
- package/dist/receipts/contracts.d.ts +2 -2
- package/dist/receipts/contracts.js +2 -1
- package/dist/record/contracts.d.ts +42 -0
- package/dist/record/contracts.js +5 -0
- package/dist/record/record.d.ts +3 -0
- package/dist/record/record.js +6 -2
- package/dist/record-tools.d.ts +3 -0
- package/dist/record-tools.js +15 -5
- package/dist/server.d.ts +11 -1
- package/dist/server.js +5 -5
- package/dist/stdio.js +3 -19
- package/dist/write/attest.d.ts +3 -0
- package/dist/write/attest.js +2 -1
- package/dist/write/contracts.d.ts +2 -2
- package/docs/consumer-guide.md +133 -0
- package/package.json +11 -4
- package/server.json +2 -2
- package/docs/age-version-compatibility.md +0 -46
- package/docs/architecture.md +0 -72
- package/docs/compatibility.md +0 -163
- package/docs/contracts.md +0 -127
- package/docs/licensing-review.md +0 -109
- package/docs/milestone-1-validation.md +0 -110
- package/docs/milestone-2.md +0 -291
- package/docs/milestone-3.2.md +0 -291
- package/docs/milestone-3.md +0 -274
- package/docs/milestone-4a.md +0 -221
- package/docs/milestone-4b1.md +0 -220
- package/docs/milestone-4b2.md +0 -260
- package/docs/public-default.md +0 -263
- package/docs/recording-schema-compatibility.md +0 -46
- package/docs/release.md +0 -311
- package/docs/security-fixes.md +0 -47
- package/docs/security.md +0 -195
- package/docs/standalone-acceptance.md +0 -81
- package/docs/validation.md +0 -85
package/docs/milestone-4b1.md
DELETED
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
# Milestone 4B.1 — recording, encrypted custody and OpenAI V2
|
|
2
|
-
|
|
3
|
-
Additive local developer integration. No remote publisher, delegated Node key,
|
|
4
|
-
new direct-to-Node path, live certification, provider payment or publication is
|
|
5
|
-
authorized by this release. Package remains private and UNLICENSED.
|
|
6
|
-
|
|
7
|
-
## MCP registration and contract
|
|
8
|
-
|
|
9
|
-
`NEXART_ENABLE_RECORD=true` advertises `nexart_record_execution`. All seven
|
|
10
|
-
read-only and both separately opt-in write tools retain their contracts.
|
|
11
|
-
Set `NEXART_RECORD_CUSTODY_CONFIG` to an absolute existing owner-only 0600 JSON
|
|
12
|
-
file beneath a protected 0700 directory:
|
|
13
|
-
|
|
14
|
-
```json
|
|
15
|
-
{
|
|
16
|
-
"version": 1,
|
|
17
|
-
"directory": "/absolute/existing/0700/vault",
|
|
18
|
-
"ageExecutable": "/absolute/real/path/to/age",
|
|
19
|
-
"recipient": "OWNER_APPROVED_AGE_X25519_PUBLIC_RECIPIENT",
|
|
20
|
-
"ownerApproved": true,
|
|
21
|
-
"decryptionIdentityExcluded": true
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
The recipient must be a valid age X25519 recipient. Obtain it from the owner,
|
|
26
|
-
not the model. A copied boolean is an operator assertion, not proof of identity
|
|
27
|
-
exclusion. Protect recipient/configuration administration independently of
|
|
28
|
-
agents; same-UID filesystem modes cannot enforce that separation.
|
|
29
|
-
|
|
30
|
-
The corresponding private identity MUST NOT be installed in Claude Desktop,
|
|
31
|
-
the recording environment, source control, MCP arguments or agent-readable
|
|
32
|
-
storage. Generate and back it up in a separate owner-controlled session.
|
|
33
|
-
No private identity is necessary to encrypt.
|
|
34
|
-
|
|
35
|
-
The tool accepts exactly:
|
|
36
|
-
|
|
37
|
-
```js
|
|
38
|
-
{kind: 'execution', execution: existingStrictExecutionSchema, createdAt: 'ISO timestamp',
|
|
39
|
-
certification: {mode: 'node', visibility: 'public'}}
|
|
40
|
-
// or
|
|
41
|
-
{kind: 'cer', bundle: existingConfidentialAiV2Cer,
|
|
42
|
-
certification: {mode: 'local'}}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
`certification` may be omitted. Mode defaults to Node; visibility defaults
|
|
46
|
-
public. Explicit private remains private; local with visibility is rejected.
|
|
47
|
-
Execution input requires the same executionId, timestamp, provider, model,
|
|
48
|
-
input, output, parameters and executionRole as the existing sealing schema.
|
|
49
|
-
Optional instruction, decision references and identity remain producer-declared.
|
|
50
|
-
Unknown outer/execution/CER keys fail validation. CER input cannot carry
|
|
51
|
-
openings, salts or recovery files. Full SDK integrity/commitment verification
|
|
52
|
-
still runs; the schema alone is not verification.
|
|
53
|
-
|
|
54
|
-
No credentials, endpoint, policy path, profile selector, custody path,
|
|
55
|
-
encryption recipient or approval token is an MCP argument. Host enablement
|
|
56
|
-
does not authorize publication. This adapter NEVER reads a Node credential
|
|
57
|
-
or connects a publisher, including when legacy Node environment variables
|
|
58
|
-
are present. It does not automatically enable the old attestation tool.
|
|
59
|
-
|
|
60
|
-
Raw executions protect input/output, instruction when present and all supplied
|
|
61
|
-
decision references using the pinned SDK's fresh random salts. Successful
|
|
62
|
-
creation requires encrypted durable custody. Existing CERs are never resealed,
|
|
63
|
-
altered or claimed to have locally retained openings.
|
|
64
|
-
|
|
65
|
-
Results retain separate `captureProvenance`, `evidence`, `custody`,
|
|
66
|
-
`localIntegrity`, `certificationIntent`, `policyAuthorization`, `submission`,
|
|
67
|
-
requested/reported visibility, hash, receipt signature, hash binding and signer
|
|
68
|
-
trust. MCP provenance is ALWAYS `producer_supplied`. No CER, plaintext,
|
|
69
|
-
opening, salt, filesystem path or raw exception is returned.
|
|
70
|
-
|
|
71
|
-
With Node requested and no publisher, valid locally retained evidence reports
|
|
72
|
-
`setup_required` / `not_sent`, preserving Node/public or Node/private intent.
|
|
73
|
-
Explicit local returns `not_required` / `not_sent`. Missing encrypted creation
|
|
74
|
-
setup reports `custody_failed`, never successful creation or local fallback.
|
|
75
|
-
Known reason codes distinguish configuration, encryption, binding and
|
|
76
|
-
durability failures. Ciphertext partials remain for owner inspection;
|
|
77
|
-
they are not overwritten, resumed or automatically cleaned up.
|
|
78
|
-
|
|
79
|
-
## OpenAI adapter
|
|
80
|
-
|
|
81
|
-
Import from `dist/instrumentation/openai.js`:
|
|
82
|
-
|
|
83
|
-
```js
|
|
84
|
-
import {runOpenAIRecorded} from './dist/instrumentation/openai.js';
|
|
85
|
-
|
|
86
|
-
const result = await runOpenAIRecorded({
|
|
87
|
-
params: {
|
|
88
|
-
model: 'YOUR_SUPPORTED_TEXT_MODEL',
|
|
89
|
-
input: 'User text',
|
|
90
|
-
instruction: 'System instruction',
|
|
91
|
-
parameters: {temperature: 0, maxTokens: 256},
|
|
92
|
-
executionRole: 'advisory',
|
|
93
|
-
decisionRefs: [] // optional public-string SDK references
|
|
94
|
-
}
|
|
95
|
-
// certification omitted: Node/public INTENT, not authorization
|
|
96
|
-
}, {
|
|
97
|
-
custody: ownerApprovedEncryptedCustody,
|
|
98
|
-
apiKey: () => applicationManagedOpenAIKey
|
|
99
|
-
});
|
|
100
|
-
// result.providerCall: not_started | completed | failed_or_outcome_unknown
|
|
101
|
-
// result.output: plaintext for the calling developer application only
|
|
102
|
-
// result.recording: separated custody/integrity/certification states
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
This is a library adapter, not a provider-invoking MCP tool. It calls published
|
|
106
|
-
`runOpenAIChatExecutionV2` from `@nexart/ai-execution@1.4.0` once. All three
|
|
107
|
-
supported fields and all references are explicitly committed. The returned
|
|
108
|
-
CER, metadata and protected set are retained unchanged.
|
|
109
|
-
|
|
110
|
-
The provider key is trusted runtime configuration, never input. No Node key
|
|
111
|
-
is discovered. Optional trusted `publish` may connect the existing isolated
|
|
112
|
-
4A publisher only in an independently secured application; never put a broad
|
|
113
|
-
Node key in an agent process. Default adapter behavior has no publisher.
|
|
114
|
-
Trusted `request` is a test/embedding transport injection, not an environment,
|
|
115
|
-
tool argument or provider endpoint override.
|
|
116
|
-
|
|
117
|
-
Before the provider call: strict bounds/schema checks, SDK reference validation
|
|
118
|
-
and age encryption readiness. Network work has one fixed OpenAI POST, no
|
|
119
|
-
redirects or retries, a 10-second worker deadline, 64 KiB request/response
|
|
120
|
-
limits, JSON-depth limit and supported text-response checks. The worker-local
|
|
121
|
-
fetch shim leaves application global fetch unchanged. SDK raw errors are
|
|
122
|
-
discarded. The worker is a resource/lifetime control, NOT a security boundary.
|
|
123
|
-
Timeout can follow a billable provider execution: it is not evidence that the
|
|
124
|
-
provider did nothing. No caller should retry automatically on this result.
|
|
125
|
-
|
|
126
|
-
The developer receives output even if subsequent custody/certification fails.
|
|
127
|
-
Such failure never repeats the provider call. Publication-profile rejection
|
|
128
|
-
retains valid encrypted evidence and reports denied certification; local-only
|
|
129
|
-
recording does not require publication eligibility.
|
|
130
|
-
|
|
131
|
-
Only the inspected non-streaming text path is supported. Streaming, tool calls,
|
|
132
|
-
multimodal, Anthropic and wrapper-added identity/appId are deferred. Requested
|
|
133
|
-
model, response-declared model, transaction id and fingerprint are producer-
|
|
134
|
-
transcribed evidence, not independent provider authentication or complete
|
|
135
|
-
execution capture. This adapter does not observe other application activity.
|
|
136
|
-
|
|
137
|
-
## Encrypted recovery format and owner procedure
|
|
138
|
-
|
|
139
|
-
Install standard age >=1.2.1 and <2, using reviewed trusted executable bytes.
|
|
140
|
-
Validation uses age 1.2.1. Mac installation may use `brew install age`;
|
|
141
|
-
configure the absolute real executable path, not a symlink or shell command.
|
|
142
|
-
The age executable is an external runtime prerequisite, not an npm dependency.
|
|
143
|
-
|
|
144
|
-
Each exclusive `sha256-HASH` directory contains only:
|
|
145
|
-
|
|
146
|
-
- `recovery.age`: standard age-encrypted bytes. Decrypted JSON:
|
|
147
|
-
`{format:'nexart-encrypted-recovery-v1',certificateHash,snapshot,openings}`.
|
|
148
|
-
Raw creation stores original execution fields in `snapshot`; the provider
|
|
149
|
-
adapter stores the original uncommitted SDK snapshot.
|
|
150
|
-
- `cer.json`: original confidential CER, readable metadata and hashes included.
|
|
151
|
-
- `committed.json`: format/version/hash, recovery format, ciphertext SHA-256
|
|
152
|
-
and recipient SHA-256. This is a commit record, NOT an authenticated signature.
|
|
153
|
-
|
|
154
|
-
No plaintext temporary recovery files are created. Ciphertext and CER are
|
|
155
|
-
exclusive 0600 files; transaction/vault directories are 0700. File and directory
|
|
156
|
-
fsync complete before success or publication. Partial transactions must not
|
|
157
|
-
be interpreted as successful custody. Standard age authenticates ciphertext;
|
|
158
|
-
unencrypted manifest digests alone are not tamper-resistant.
|
|
159
|
-
|
|
160
|
-
Run recovery only on a separate owner-controlled host/session, with the whole
|
|
161
|
-
transaction directory transferred securely (preserve 0700/0600 modes), the
|
|
162
|
-
backed-up private identity in a 0600 file, and trusted installed package/age:
|
|
163
|
-
|
|
164
|
-
```sh
|
|
165
|
-
nexart-recover-confidential \
|
|
166
|
-
/absolute/vault/sha256-HASH \
|
|
167
|
-
/absolute/owner-only/identity.txt \
|
|
168
|
-
/absolute/real/path/to/age
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Or `node dist/recover-confidential.js` with the same three arguments.
|
|
172
|
-
It decrypts in memory and verifies hash binding, original CER integrity and
|
|
173
|
-
ALL committed domains through `verifyConfidentialV2`. It returns only hash
|
|
174
|
-
and verification summary. Wrong identity, corrupt ciphertext, missing commit
|
|
175
|
-
record, missing/duplicate openings and mismatches fail closed with a generic
|
|
176
|
-
error. It deliberately does not print/export recovered plaintext.
|
|
177
|
-
|
|
178
|
-
Encryption protects stored recovery content, not plaintext already seen by
|
|
179
|
-
the application, agent, MCP host or provider. JavaScript strings are not
|
|
180
|
-
guaranteed zeroizable. File deletion, process compromise and lost decryption
|
|
181
|
-
identity remain risks. Test offline recovery and backup before real data use.
|
|
182
|
-
|
|
183
|
-
## Additive provider disclosure profile
|
|
184
|
-
|
|
185
|
-
Legacy `ai-v2-resolver-reviewed-2026-11` remains unchanged/default.
|
|
186
|
-
New owner-policy-only `ai-v2-openai-disclosure-v1` permits the same confidential
|
|
187
|
-
CER shape plus `modelEvidence` for provider `openai`:
|
|
188
|
-
|
|
189
|
-
- responseDeclaredModel: nonempty <=128 characters;
|
|
190
|
-
- transactionRef: nonempty <=256 characters;
|
|
191
|
-
- providerEvidence: ONLY system_fingerprint, nonempty <=128 characters.
|
|
192
|
-
|
|
193
|
-
Control characters, unknown keys, arbitrary extensions/appId and unreviewed
|
|
194
|
-
metadata are rejected. Existing public descriptor/identity bounds apply.
|
|
195
|
-
Exact owner leaf-path allowlists still apply to every readable value.
|
|
196
|
-
These fields and IO hashes remain readable, including in the canonical CER.
|
|
197
|
-
This profile is not an authenticated assertion about the deployed Node resolver.
|
|
198
|
-
|
|
199
|
-
Only protected owner policy selects the profile. Publisher passes that exact
|
|
200
|
-
profile through its transport gate; MCP and legacy tools cannot select it.
|
|
201
|
-
Policy revocation, expiry, exact-body approval, durable reservation, no-retry,
|
|
202
|
-
receipt signature and empty production trust pins are unchanged.
|
|
203
|
-
|
|
204
|
-
## Deferred 4B.2 gates
|
|
205
|
-
|
|
206
|
-
Evaluate actual Node-enforced credential permissions, hard limits, visibility,
|
|
207
|
-
evidence profiles, read scope, expiry/revocation and duplicate handling.
|
|
208
|
-
Then approve direct bounded delegation or a separate publisher architecture.
|
|
209
|
-
Do not relax the Mac guard or treat same-UID config as owner authorization.
|
|
210
|
-
Public fixture C still requires its separately authorized one-shot owner
|
|
211
|
-
procedure; neither its live run nor production trust approval is part of 4B.1.
|
|
212
|
-
|
|
213
|
-
## Validation
|
|
214
|
-
|
|
215
|
-
`node tests/validation/run.mjs --milestone-4b1` creates exclusive ignored release
|
|
216
|
-
evidence, checks the frozen 392-test archive/category baseline, installs frozen
|
|
217
|
-
dependencies, builds, runs all tests/benchmarks, audits/installs the tarball and
|
|
218
|
-
invokes installed MCP tools under both supported protocol revisions. Installed
|
|
219
|
-
provider/recovery checks use mocked responses and generated synthetic keys only.
|
|
220
|
-
No paid provider or live Node request is used.
|
package/docs/milestone-4b2.md
DELETED
|
@@ -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.
|