@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/docs/release.md DELETED
@@ -1,311 +0,0 @@
1
- # First npm and MCP Registry release
2
-
3
- Release version: `0.1.0`
4
-
5
- ## Approval gates
6
-
7
- Final public-distribution configuration is authorised; the owner alone executes
8
- publication manually. Name/version remain
9
- `@nexart/mcp-server@0.1.0`, subject to a final registry availability check.
10
- Artnames Ltd confirmed original-code ownership and authorised Apache-2.0, now
11
- applied in LICENSE/NOTICE and the manifest. The owner explicitly authorised
12
- removing `private:true` for the final candidate. SECURITY.md uses the designated
13
- security@nexart.io contact. The owner independently tests mailbox delivery and
14
- monitoring and confirms npm publishing authority before executing publication;
15
- this preparation does not claim those checks complete.
16
- Public npm distribution does not require a public GitHub repository.
17
-
18
- Before public release the owner must:
19
-
20
- 1. **Completed:** original-code ownership confirmation and Apache-2.0 licence
21
- authorisation from Artnames Ltd, with standard LICENSE and scoped NOTICE.
22
- This does not authorise third-party SDKs/fixtures. See [the rights review](licensing-review.md).
23
- 2. **Completed for the inspected npm archive:** external SDK MIT declarations
24
- and archive boundaries were reviewed. No third-party redistribution blocker
25
- was identified in the MCP tarball. SDK notice packaging corrections belong
26
- upstream; excluded fixtures/private history are public-GitHub concerns only.
27
- Do not publish those excluded materials without separate clearance.
28
- 3. **Completed configuration:** removal of `private:true` is expressly authorised
29
- for this final preparation. The agent must not publish. Prepared
30
- `publishConfig` targets public access on `https://registry.npmjs.org/`.
31
- 4. Confirm npm `@nexart` scope publishing permission after owner browser login/
32
- 2FA. The current CLI returned ENEEDAUTH; no account was available for a
33
- permission check, and no login/token was requested or performed by the agent.
34
- Registry namespace `artnames` authority is a separate later Registry step,
35
- not an npm publication gate. Matching metadata does not prove authority.
36
- 5. Test delivery and monitoring of the owner-designated security@nexart.io route
37
- documented in [SECURITY.md](../SECURITY.md). No response SLA is promised.
38
- GitHub private vulnerability reporting is one option for a public repository,
39
- not a requirement to make this repository public. A real monitored alternative
40
- suffices for npm while the source repository remains private.
41
-
42
- SDK-side findings and public-repository fixture permissions are tracked in
43
- [the rights review](licensing-review.md), not conflated with npm gates.
44
-
45
- No approved production trust pin is added. Do not claim trusted production
46
- signer verification; `UNAPPROVED_KEY` remains an expected fail-closed result.
47
-
48
- ## Versioning and release management
49
-
50
- Use Semantic Versioning. PATCH releases are backward-compatible corrections;
51
- MINOR releases add backward-compatible capabilities. For stable versions >=1.0.0,
52
- breaking changes require MAJOR and a migration guide.
53
-
54
- During 0.x development, a breaking change must increment MINOR and reset PATCH
55
- (for example 0.1.3 → 0.2.0), never hide in a patch. Compatible additions also use
56
- MINOR; document breaking changes prominently so users do not infer stability from
57
- 0.x ranges. Transition to 1.0.0 is an explicit stable-contract decision. Keep
58
- client commands version-pinned where repeatability matters.
59
-
60
- For each approved version update, synchronise:
61
-
62
- - `package.json.version`;
63
- - `server.json.version` and its npm package version;
64
- - the matching `CHANGELOG.md` entry and current status;
65
- - this document's release-version marker, commands, README examples and any
66
- current release instructions (historical milestone records stay unchanged);
67
- - release assertions when tied to the intended release contract.
68
-
69
- The pnpm v9 lockfile has no root package version, so a version-only change needs
70
- no invented lockfile edit. Regenerate/review it with the pinned pnpm when
71
- dependencies/importer data actually change; verify frozen install afterward.
72
- Use tags `v0.1.0`, `v0.1.1`, `v0.2.0`, etc. Do not reuse tags or npm versions.
73
- Do not use an automatic versioning command that commits/tags without explicit
74
- owner approval.
75
-
76
- ### Release checklist
77
-
78
- 1. **Change review:** verify scope, backwards compatibility and rights/notices;
79
- exclude separate Node/SDK/Terminal changes and customer data.
80
- 2. **Version selection:** apply the policy above, check registry availability,
81
- and approve the version.
82
- 3. **Changelog:** move reviewed Unreleased items to the matching version;
83
- at the actual release cut finalise status/date without inventing history.
84
- 4. **Security checks:** review dependency audit and security regressions,
85
- trust/consent/disclosure limits, archive contents and private reporting route.
86
- Run additional security scanning when warranted; findings are not cleared by
87
- a passing test count.
88
- 5. **Complete tests:** run all top-level and validation test files, no skips.
89
- 6. **Build:** frozen clean checkout, compilation and typecheck on Node 24.
90
- 7. **Archive inspection:** use the npm-created archive, verify metadata,
91
- licence/notices, file boundary and retained hash.
92
- 8. **Clean installation:** npm production-only tarball consumer; both protocols,
93
- implicit executable discovery, recording/recovery and fail-closed consent.
94
- 9. **npm publication:** only after rights, final licence/private changes and
95
- explicit approval; publish the exact newly validated archive with 2FA.
96
- 10. **MCP Registry:** confirm namespace control; validate matching metadata and
97
- register the already-public exact npm version.
98
- 11. **Public verification:** anonymous npm metadata/download/install, compare
99
- published `dist.integrity` to the validated candidate, client protocol check
100
- and Registry lookup. No new live certifications are needed.
101
- 12. **Git/GitHub release:** owner reviews/commits the exact release state, creates
102
- the matching annotated tag and pushes branch/tag manually. Create the GitHub
103
- release through the owner UI using the changelog and approved artifact/hash.
104
-
105
- Any change to packed files after validation requires a newly validated archive.
106
- Publication is manual; validation runs no Git, npm publish or Registry publish.
107
-
108
- ## Replit Shell: after all gates are approved
109
-
110
- Execute the blocks in the same private Bash session. They deliberately stop
111
- while the package remains private or UNLICENSED. Do not paste tokens into
112
- commands, chat, logs or repository files. Never enable shell tracing.
113
-
114
- The final candidate is already configured without private:true under explicit
115
- owner authorisation. Before publishing, the owner must test mailbox delivery/
116
- monitoring and confirm npm authority; no agent authentication is needed.
117
-
118
- ### 1. Validate and select the fresh archive
119
-
120
- ```bash
121
- set -euo pipefail
122
- set +x
123
- cd /home/runner/workspace
124
- node --input-type=module <<'NODE'
125
- import assert from 'node:assert/strict';
126
- import fs from 'node:fs';
127
- const p = JSON.parse(fs.readFileSync('package.json'));
128
- assert.equal(process.versions.node.split('.')[0], '24');
129
- assert.equal(p.name, '@nexart/mcp-server');
130
- assert.equal(p.version, '0.1.0');
131
- assert.notEqual(p.private, true, 'STOP: publication has not been enabled');
132
- assert.ok(p.license && p.license !== 'UNLICENSED', 'STOP: approve licensing first');
133
- assert.ok(['LICENSE', 'LICENSE.md', 'LICENSE.txt'].some(f => fs.existsSync(f)),
134
- 'STOP: approved licence file is missing');
135
- assert.equal(p.mcpName, 'io.github.artnames/nexart-mcp-server');
136
- NODE
137
-
138
- pnpm install --frozen-lockfile --ignore-scripts
139
- pnpm run validate:release
140
- export SUMMARY="$(ls -t generated-artifacts/npm-release/run-*/release-summary.json | head -n 1)"
141
- export TGZ="$(node -e '
142
- const fs=require("node:fs"),path=require("node:path");
143
- const s=JSON.parse(fs.readFileSync(process.argv[1]));
144
- if(s.result!=="PASS" || s.manifest.private===true || s.manifest.license==="UNLICENSED")
145
- throw Error("STOP: no approved passing candidate");
146
- process.stdout.write(path.resolve(s.package.archive));
147
- ' "$SUMMARY")"
148
- sha256sum "$TGZ"
149
- tar -tzf "$TGZ"
150
- ```
151
-
152
- Review the archive listing and recorded test/installed results before continuing.
153
- The archive includes the approved Apache licence and scoped NOTICE.
154
- Historical private preparation archives must not be published. Use only the
155
- newly validated public-configuration archive, after owner-side checks.
156
-
157
- ### 2. Check availability and authenticate
158
-
159
- Enable account 2FA on npm's website, preferably a security key/passkey, and
160
- confirm scope/team permissions. A public 404 is not a reservation or proof of
161
- scope control. If 0.1.0 is already published, stop; do not overwrite it or change
162
- version without approval.
163
-
164
- ```bash
165
- node --input-type=module <<'NODE'
166
- const r=await fetch('https://registry.npmjs.org/@nexart%2fmcp-server/0.1.0');
167
- if(r.status===200) throw Error('STOP: 0.1.0 is already published');
168
- if(r.status!==404) throw Error(`STOP: availability check failed (${r.status})`);
169
- console.log('0.1.0 is not publicly visible; confirm scope permission separately.');
170
- NODE
171
-
172
- umask 077
173
- export AUTH_DIR="$(mktemp -d "$HOME/.cache/nexart-npm-auth.XXXXXX")"
174
- export NPM_CONFIG_USERCONFIG="$AUTH_DIR/npmrc"
175
- install -m 600 /dev/null "$NPM_CONFIG_USERCONFIG"
176
- npm login --auth-type=web --registry=https://registry.npmjs.org/
177
- npm whoami --registry=https://registry.npmjs.org/
178
- npm org ls nexart --json --registry=https://registry.npmjs.org/
179
- npm access list packages "$(npm whoami --registry=https://registry.npmjs.org/)" \
180
- --json --registry=https://registry.npmjs.org/
181
- ```
182
-
183
- Review organisation role/team settings and confirm permission to create the
184
- new @nexart/mcp-server package. Write permission on a different SDK is not
185
- proof of new-package creation permission. If these queries do not establish it,
186
- confirm with an npm organisation owner in npm's website before continuing.
187
- No package-creation permission is claimed by a publication dry run.
188
-
189
- Open npm's displayed URL in your browser. Current interactive publication
190
- requires 2FA. Legacy access tokens are no longer supported. Granular
191
- bypass-2FA tokens are not needed for this procedure; do not create one for it.
192
- The login file contains credentials: do not print/share it. npm CLI documentation
193
- contains some stale legacy-token wording; use the current account-security rules.
194
-
195
- ### 3. Publish the exact tested archive
196
-
197
- ```bash
198
- npm publish "$TGZ" --dry-run --ignore-scripts \
199
- --access public --registry=https://registry.npmjs.org/
200
- read -r -p "Type PUBLISH to publish @nexart/mcp-server@0.1.0 publicly: " CONFIRM
201
- test "$CONFIRM" = PUBLISH
202
- npm publish "$TGZ" --ignore-scripts \
203
- --access public --tag latest --registry=https://registry.npmjs.org/
204
- ```
205
-
206
- Complete any browser/2FA challenge; do not pass a token or OTP in command-line
207
- arguments. Name/version combinations cannot be reused after publication.
208
-
209
- ### 4. Verify anonymous access and install
210
-
211
- ```bash
212
- env -i PATH="$PATH" HOME="$HOME" NPM_CONFIG_USERCONFIG=/dev/null \
213
- npm view @nexart/mcp-server@0.1.0 name version license bin dist.integrity \
214
- --registry=https://registry.npmjs.org/
215
-
216
- export PUBLIC_CONSUMER="$(mktemp -d "$HOME/.cache/nexart-public-consumer.XXXXXX")"
217
- printf '{"name":"nexart-public-check","version":"1.0.0","private":true}\n' \
218
- > "$PUBLIC_CONSUMER/package.json"
219
- (
220
- cd "$PUBLIC_CONSUMER"
221
- env -i PATH="$PATH" HOME="$HOME" NPM_CONFIG_USERCONFIG=/dev/null \
222
- npm install --omit=dev --ignore-scripts --registry=https://registry.npmjs.org/ \
223
- @nexart/mcp-server@0.1.0
224
- )
225
- npm logout --registry=https://registry.npmjs.org/
226
- rm -f "$NPM_CONFIG_USERCONFIG"
227
- rmdir "$AUTH_DIR"
228
- unset NPM_CONFIG_USERCONFIG AUTH_DIR
229
- ```
230
-
231
- The package page is https://www.npmjs.com/package/@nexart/mcp-server.
232
- Use the README's explicit subprocess command with an MCP client to verify the
233
- published version's protocol behaviour; an idle terminal launch is not a protocol test.
234
-
235
- ## Official MCP Registry
236
-
237
- The Registry is a separate metadata publication, currently in preview.
238
- `server.json.name` equals the package's `mcpName`; package identifier and
239
- version match the npm release, with `stdio` transport and no required secret.
240
- Default verification requires no certification API key.
241
-
242
- Install the official `mcp-publisher` binary using the official quickstart.
243
- Do not regenerate/overwrite the prepared server.json with `init`.
244
- After npm publication and separate Registry approval:
245
-
246
- ```bash
247
- cd /home/runner/workspace
248
- mcp-publisher login github
249
- mcp-publisher validate
250
- mcp-publisher publish
251
- curl --fail --silent --show-error \
252
- 'https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.artnames/nexart-mcp-server'
253
- ```
254
-
255
- Authenticate as an account authorised for the `artnames` GitHub namespace.
256
- Do not share device codes or credentials. Registration is not client-specific
257
- marketplace approval, nor a hosted endpoint. Replit's custom MCP connection UI
258
- requires HTTPS; this release adds no HTTP transport or bridge.
259
-
260
- ## Manual Git release tag and GitHub release
261
-
262
- These are owner-executed instructions only. No Git operation was performed
263
- during preparation. Do not push unresolved upstream fixtures or other unapproved
264
- material. First clear repository redistribution checks, review and manually
265
- commit the approved release files;
266
- confirm `origin` is the standalone `artnames/nexart-mcp-server` repository and
267
- the HEAD commit is the source of the validated/published archive.
268
-
269
- ```bash
270
- set -euo pipefail
271
- cd /home/runner/workspace
272
- git remote get-url origin
273
- git status --short
274
- git add -- LICENSE NOTICE package.json server.json README.md CHANGELOG.md \
275
- SECURITY.md CONTRIBUTING.md THIRD_PARTY_NOTICES.md replit.md \
276
- docs/release.md docs/licensing-review.md docs/security.md \
277
- docs/compatibility.md docs/validation.md \
278
- tests/installed-package.mjs tests/release-validation.mjs \
279
- tests/release-packaging.test.mjs
280
- git diff --cached --check
281
- git diff --cached --stat
282
- read -r -p "Type COMMIT after reviewing the staged release and rights clearance: " CONFIRM
283
- test "$CONFIRM" = COMMIT
284
- git commit -m "Prepare NexArt MCP Server 0.1.0 release"
285
- test -z "$(git status --porcelain)"
286
- node -e 'if(require("./package.json").version!=="0.1.0") throw Error("Version mismatch")'
287
- export RELEASE_BRANCH="$(git symbolic-ref --quiet --short HEAD)"
288
- git tag -a v0.1.0 -m "NexArt MCP Server 0.1.0"
289
- git push origin "$RELEASE_BRANCH"
290
- git push origin refs/tags/v0.1.0
291
- git ls-remote --tags origin refs/tags/v0.1.0 'refs/tags/v0.1.0^{}'
292
- ```
293
-
294
- Stop if the working tree is not clean, origin is wrong or the tag exists.
295
- The explicit add list avoids blanket staging of customer/generated material.
296
- It does not grant permission to push upstream fixtures already in repository
297
- history; review that history/rights before publishing the repository.
298
- Do not force-push or move an existing release tag. In GitHub's release UI select
299
- `v0.1.0`, use the reviewed changelog, and attach only approved distribution/hash
300
- evidence—not the workspace, credentials, policies, recovery or upstream fixtures
301
- without redistribution authority.
302
-
303
- ## Sources
304
-
305
- - https://docs.npmjs.com/creating-and-publishing-scoped-public-packages
306
- - https://docs.npmjs.com/requiring-2fa-for-package-publishing-and-settings-modification
307
- - https://docs.npmjs.com/about-access-tokens
308
- - https://docs.npmjs.com/cli/v11/commands/npm-exec
309
- - https://modelcontextprotocol.io/registry/quickstart
310
- - https://modelcontextprotocol.io/registry/package-types
311
- - https://docs.replit.com/build/connect-via-mcp
@@ -1,47 +0,0 @@
1
- # Disclosure and approval-integrity corrections
2
-
3
- These are two narrowly scoped corrections following the comprehensive local
4
- security validation. Neither changes SDK cryptography, the CER body, Node
5
- visibility semantics, trust pins, dependency versions or public-off defaults.
6
-
7
- ## Confidential submission descriptors
8
-
9
- Private and public confidential submissions accept only the supported
10
- `protectedSet` descriptor keys: `stabilitySchemeId`, `protectedSetId` and
11
- `protectedFields`. The pinned SDK still validates their values and commitments.
12
- Additional descriptor keys are rejected before HTTP, not removed or resealed.
13
- Read-only SDK verification remains unchanged.
14
-
15
- This closes a disclosure-policy gap: a certificate can have valid SDK integrity
16
- while containing extra, hash-covered descriptor data that must not be sent.
17
-
18
- ## Authenticated local approvals
19
-
20
- New local approval files use grant version `1` and authenticate the version,
21
- profile, context digest, issuance and expiry with a domain-separated HMAC. The
22
- context digest still binds the exact CER body, account, destination and public
23
- visibility. Consumption checks the MAC in constant time, enforces the existing
24
- five-minute window and retains exclusive creation and atomic single-use claims.
25
-
26
- Unsigned legacy files fail closed. Owners must create a fresh approval using the
27
- updated owner CLI; existing grants are not silently upgraded. Rejected claimed
28
- files are consumed and removed, as before.
29
-
30
- This only protects against editing grant files without the credential. A process
31
- controlling the owner's OS user, terminal or credentials is not separated from
32
- the owner by this mechanism. Keep public submission off on an agent-controlled
33
- same-user host; a genuinely separate trusted operator boundary is still needed.
34
-
35
- ## Validation
36
-
37
- Run `node tests/validation/run.mjs` for an isolated frozen install, build,
38
- all original and expanded tests, benchmark, package inspection and installed
39
- CLI checks on both MCP protocol revisions. It requires zero failed/skipped tests
40
- and permits only these two production source changes relative to the retained
41
- pre-fix baseline. Evidence is written separately under
42
- `generated-artifacts/security-fixes-validation/`, preserving the original
43
- failure report.
44
-
45
- All network exercise uses synthetic fixtures and loopback servers. Passing this
46
- validation does not prove live Canonical Node acceptance, public-host isolation
47
- or production release readiness, and does not authorize any live submission.
package/docs/security.md DELETED
@@ -1,195 +0,0 @@
1
- # Security and trust boundaries
2
-
3
- For vulnerability handling, use [the private reporting policy](../SECURITY.md).
4
- A working reporting route must be confirmed before public release; no address,
5
- response SLA or production probing permission is implied. Contributor and
6
- redistribution boundaries are in [CONTRIBUTING.md](../CONTRIBUTING.md) and
7
- [the rights review](licensing-review.md).
8
-
9
- ## Milestone 4B.2 customer delegation
10
-
11
- Explicit `NEXART_RECORD_CERTIFICATION_CONFIG` plus customer consent and policy
12
- connects the recording tool to the existing attestation pipeline using only
13
- `NEXART_NODE_API_KEY`. A key alone never enables this new path. The consent is
14
- rechecked before actual submission; no per-CER human prompt is claimed.
15
- Customer delegation intentionally allows an agent-accessible process to use the
16
- configured key. Same-user shell/filesystem access may obtain and use it directly;
17
- local policy and counters cannot constrain such use or create Node-enforced
18
- scopes/quotas. No remote publisher, credential broker or guard bypass is added.
19
- The isolated-owner factory and legacy manual workflows remain separate and
20
- unchanged in authority. See [4B.2 setup and limitations](milestone-4b2.md).
21
-
22
- ## Current recording custody boundary
23
-
24
- The opt-in recording tool creates age-encrypted recovery custody. Without the
25
- explicit customer-delegation configuration above it connects no publisher. Node/public is intent,
26
- not permission; unavailable authorization returns setup-required with zero
27
- POSTs. Provider instrumentation and owner-only recovery are library/CLI paths,
28
- not MCP plaintext/opening surfaces. At-rest encryption does not isolate
29
- plaintext from an agent already handling it. Same-UID owner-approval assertions
30
- and worker threads are not security boundaries. Existing Mac publication
31
- guards, owner policy, single-use grants and empty trust pins remain intact.
32
- See [4B.1 contracts and limitations](milestone-4b1.md).
33
-
34
- ## Historical Milestone 4A isolated-owner automation
35
-
36
- The original isolated orchestration library is not an MCP authority surface.
37
- Customer delegation and the recording tool were added separately afterward.
38
- A trusted application may evaluate an
39
- owner-preauthorized disclosure/budget policy and issue an internal exact-body
40
- grant; ordinary MCP requests still require their existing manual approval.
41
- The packaged owner publisher checks the retained isolated-Mac boundary before
42
- accessing credentials. It remains unavailable on this host.
43
-
44
- Policy paths, custody, credentials, capture-source assertions and authorization
45
- ports are trusted application configuration, never model inputs. Direct
46
- library embedding in isolated mode requires independently enforced agent exclusion. Same-UID
47
- shell/terminal access defeats local isolation. Local budget counters are not
48
- account-wide Node quotas. The original library custody path needed an external
49
- encryption boundary; current recording uses age-encrypted custody. See [the historical contract and
50
- remaining deployment blockers](milestone-4a.md).
51
-
52
- ## Public-default and owner custody
53
-
54
- Omitted attestation visibility selects public, not permission to publish.
55
- Public capability still defaults off. Independent exact-body approval, strict
56
- protectedSet descriptors, authenticated expiry, single-use claiming, fixed
57
- destination/credential/account/profile binding and no automatic POST retry are
58
- unchanged. Explicit private does not need a public grant; there is no downgrade.
59
-
60
- The legacy owner confidential creation CLI commits input/output using SDK
61
- CSPRNG salts. It is not an MCP tool. It retains original plaintext and openings
62
- only after explicit owner approval of unencrypted local file custody on an
63
- owner-encrypted volume. No recovery material is returned through MCP. Owner-only
64
- modes do not protect against same-UID agents, administrators, malware, cloud
65
- backup, or device compromise. Never operate it in an agent-accessible account.
66
- Lost recovery material prevents later disclosure verification; partial files are
67
- preserved on failure. Review readable metadata before exporting only `cer.json`.
68
-
69
- The C runner refuses live execution without a root-provisioned isolated Mac policy,
70
- matching owner UID, root-controlled Node, package and dependency tree. An
71
- administrator must actually deny agent access to the device/account, credentials,
72
- terminal and approval state. A root policy attests that external condition; it
73
- cannot discover hidden agents or make a false assertion true. Do not provision it
74
- on a same-UID agent host. See [setup and limitations](public-default.md).
75
-
76
- ## Opt-in write operations
77
-
78
- The default seven tools retain the read-only boundaries below. Milestone 3 adds
79
- separately opt-in sealing and Node attestation. Attestation can persist evidence,
80
- consume quota and, with public authorization, publish evidence that cannot be
81
- recalled from caches. It is not an offline/read-only operation.
82
-
83
- See [Milestone 3](milestone-3.md) for the bounded disclosure profile, complete
84
- source-backed resolver exposure assessment, single-use controlling-terminal
85
- owner approvals, fixed-target POST limits, outcome ambiguity and identity
86
- semantics. A model with arbitrary same-UID shell/filesystem access can defeat
87
- the local-owner boundary; keep isolated-owner public enablement off in that
88
- configuration. Customer delegation separately accepts this limitation under
89
- explicit consent and never claims same-user isolation.
90
- No production key pins are approved and no identity provider is authenticated.
91
-
92
- ## Threat model and scope
93
-
94
- This local child process accepts untrusted inline evidence from an MCP host.
95
- The host/OS account controls its process lifetime, executable and filesystem.
96
- There is no remote caller or tenant boundary in this milestone. Adding
97
- network access or sharing this process across tenants requires a new security
98
- design; the current stdio process is not an authenticated service.
99
-
100
- The runtime imports only the MCP server SDK, Zod, NexArt SDKs and
101
- Node built-ins. The original four tools never contact the Canonical Node. No tool follows evidence URLs,
102
- reads model-selected files, executes evidence content, signs records or opens
103
- an HTTP port. Owner-configured recording/custody reads its protected configuration
104
- and writes encrypted recovery. Opt-in runtime creation uses published SDK
105
- constructors; it is not limited to test fixture generation.
106
-
107
- The three Milestone 2 tools read only exact-hash resolver paths and the public
108
- key manifest at `https://node.nexart.io`. They use no Node API credentials,
109
- redirects, arbitrary origins, filesystem paths or automatic retries. See
110
- [the implemented network/trust policy](milestone-2.md) for exact controls.
111
- Test-only ephemeral Ed25519 signing is confined to test fixtures/preloads.
112
-
113
- ## Cryptographic authority
114
-
115
- Only published SDK verifiers canonicalize, hash and verify CERs. The adapter
116
- dispatches explicitly by family and, for governed evidence, envelope version.
117
- There is no family inference, fallback verification or normalization of
118
- integrity-bearing data. The Canonical Node's Project Bundle aggregate response
119
- is not called or trusted. A Project Bundle must have verified hash integrity.
120
-
121
- SDK `ok` is operation-scoped, not proof that the evidence describes reality.
122
- Consequential producer identity is a claim. Governed verification does not
123
- authenticate producers or recompute reported state hashes; those SDK fields
124
- remain visible. Ordinary CER integrity checks do not establish completeness.
125
- Attestation metadata presence never enables signature/trust flags. The
126
- separate receipt tool computes signature mathematics with the published SDK,
127
- but no production pin is approved. It cannot establish production signer
128
- trust from manifest discovery alone.
129
-
130
- ## Confidentiality and diagnostics
131
-
132
- - Read-only inline evidence is processed in memory, not persisted or logged.
133
- Opt-in recording persists encrypted recovery and CER custody; authorised Node
134
- certification submits the approved CER for persistence and possibly public access.
135
- - Credential/private-key/opening parameters do not exist. The argument
136
- envelope rejects unknown members. Do not supply such material.
137
- - Evidence itself can be sensitive. A local MCP host can still store prompts,
138
- arguments and returned results; host-side data handling is outside this
139
- process's control.
140
- - SDK error messages can contain producer-controlled values or field names.
141
- Output therefore uses a disclosure allowlist and redacted diagnostic arrays.
142
- Step IDs, execution IDs, hashes and raw evidence are not returned.
143
- - Protocol/tool validation errors are replaced with constant messages while
144
- preserving the SDK's wire-era metadata (including modern `resultType`).
145
- - stderr contains constant readiness/error tokens only; stdout is protocol
146
- only. Uncaught SDK verification exceptions become `SDK_EXCEPTION`, without
147
- a stack or original message. Third-party process-start failures are not
148
- a tool contract and remain a local installation concern.
149
-
150
- There is no general memory-zeroization promise; recording's age encryption is
151
- an at-rest boundary, not same-user isolation. Crash dumps, a hostile
152
- OS account, a compromised dependency, and MCP-host retention are outside the
153
- implemented boundary. Package lock integrity and supply-chain review remain
154
- important.
155
-
156
- ## Resource handling and cancellation
157
-
158
- Byte/depth guards run before the SDK parses incoming frames. Iterative
159
- application guards then check JSON depth, breadth, total complexity and
160
- serialized argument size before evidence verification. The Project Bundle
161
- step cap is independent of schema validity. Logical output is bounded, and
162
- errors never echo submitted material.
163
-
164
- The synchronous verifiers run on the main event loop. Measurements cover
165
- individual families, 100-step Projects, and near-limit metadata; they do not
166
- constitute a worst-case execution-time proof. Those measurements did not
167
- justify adding worker infrastructure.
168
-
169
- An already-delivered abort signal prevents the SDK invocation. A check after
170
- the SDK returns can observe an already-aborted signal, but cancellation
171
- notifications cannot interrupt synchronous code while it blocks the event
172
- loop. There is **no hard deadline or guaranteed mid-call cancellation**.
173
- The host may terminate the child process as a last resort. If future workloads
174
- need deterministic preemption or measurements expose excessive blocking,
175
- introduce measured worker isolation under a separate change.
176
-
177
- Stdin EOF and SIGINT/SIGTERM close the SDK and release the original stdin
178
- source as well as the guarded stream. Hard input-limit failures close with
179
- exit status 1. Malformed JSON lines are deliberately skipped by the pinned
180
- official SDK parser, and a subsequent valid message remains usable.
181
-
182
- ## Further gates — not implemented
183
-
184
- The initial public lookup and CER receipt controls are implemented separately
185
- from the original verifier contracts. Production key pins, historical
186
- exceptions, authenticated historical manifests and Project-receipt verification
187
- are not approved. Independently authorized pin material and lifecycle
188
- provenance are required before expanding trusted acceptance.
189
-
190
- Creation/attestation use separately configured custody, authorisation and upstream
191
- credentials. Automatic POST retry is deliberately absent; ambiguous outcomes
192
- need reconciliation, not blind resubmission. Remote multi-tenant access needs
193
- OAuth, audience/issuer validation, per-tool permissions, tenant-bound sessions,
194
- quotas, origin/host controls and explicit credential mapping. None of these
195
- can be inferred from the local read-only implementation.
@@ -1,81 +0,0 @@
1
- # Milestone 1.1 acceptance result
2
-
3
- Executed on 2026-11-10 with Node v24.22.1 and pnpm 10.26.1.
4
- This report was written after packing and testing; the tested tarball contains
5
- the validation methodology, while this repository report records its outcome.
6
-
7
- ## Observed results
8
-
9
- | Check | Outcome |
10
- | --- | --- |
11
- | Standalone frozen install in fresh temporary checkout | PASS |
12
- | Build in that checkout | PASS |
13
- | Complete existing regression suite | 45 passed; 0 failed; 0 skipped |
14
- | Development stdio invocation evidence | PASS |
15
- | Package build and local tarball creation | PASS |
16
- | Tarball installation in separate fresh consumer | PASS |
17
- | Consumer-installed executable, not development entry point | PASS |
18
- | Legacy negotiation | 2025-11-25 |
19
- | Modern negotiation, pinned | 2026-07-28 |
20
- | Tool discovery | All four tools in both sessions |
21
- | Installed positive verification | 6 per session, 12 total |
22
- | Installed tampered verification | 6 rejected per session, 12 total |
23
- | Installed argument-error redaction | PASS in both sessions |
24
- | Installed client close | PASS in both sessions |
25
- | Installed process stdout / EOF | Protocol-only JSON-RPC; exit code 0 |
26
- | Fixture preservation | All 5 files byte-identical |
27
- | Runtime preservation | All 7 emitted modules identical after removing comments |
28
-
29
- The regression runner reported 4,830 ms. Installation/build command wall times
30
- and all raw output are preserved in `generated-artifacts/milestone-1.1/`.
31
-
32
- ## Current benchmark observations
33
-
34
- 30 samples per workload; application guards, SDK work and safe projection are
35
- included, while process startup and MCP transport overhead are excluded.
36
-
37
- | Workload | Median ms | p95 ms | Max ms |
38
- | --- | ---: | ---: | ---: |
39
- | AI V1 | 0.033 | 0.342 | 1.900 |
40
- | AI V2 | 0.064 | 0.566 | 1.171 |
41
- | Consequential | 0.214 | 0.647 | 8.015 |
42
- | Governed 0.1 | 0.770 | 3.778 | 3.901 |
43
- | Governed 0.2 | 0.562 | 2.206 | 2.366 |
44
- | Mixed AI Project | 0.145 | 0.765 | 0.882 |
45
- | 100-step Project | 4.434 | 8.305 | 10.331 |
46
- | Near-limit metadata | 2.173 | 3.710 | 4.239 |
47
-
48
- Every measured workload returned valid integrity. No hard deadline, worst-case
49
- runtime bound, worker isolation or mid-call cancellation is claimed.
50
-
51
- ## Package and delivery
52
-
53
- The root package is `@nexart/mcp-server@0.1.0`, `private:true`.
54
- The dedicated lock is 5,645 bytes with one root importer; it no longer
55
- references the retired application workspace. Exact SDK versions are unchanged.
56
-
57
- The archive is `generated-artifacts/milestone-1.1/nexart-mcp-server-0.1.0.tgz`.
58
- It includes build output, source, tests/fixtures, documentation, build config
59
- and lock/config files. No npm publication, GitHub creation or Git operation
60
- was performed.
61
-
62
- The user authorized archiving and stopping the API/Canvas previews. Their
63
- sources, old manifests/configuration and dependencies remain recoverable in
64
- `.local/retired-preview-workspace/`, not the standalone distribution.
65
-
66
- ## Remaining gates
67
-
68
- - Original code remains `UNLICENSED`; the user explicitly chose not to add MIT.
69
- - Upstream manifests declare MIT, but complete fixture permissions/notices
70
- remain to be confirmed before public redistribution.
71
- - Desktop hosts and other operating systems were not tested.
72
- - A shared pnpm cache was used; no empty-cache claim is made.
73
- - The actual GitHub repository is not created or cloned: a clean copy of the
74
- standalone repository inputs was tested, without the old workspace.
75
-
76
- These licensing gates block public redistribution, not the demonstrated
77
- technical independence or local private use.
78
-
79
- **Can this repository now be cloned independently, installed from a frozen
80
- lockfile, built and used as a functioning MCP server without the original
81
- Replit workspace? YES.**