@nexart/mcp-server 0.0.0-stage → 0.1.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 +53 -0
- package/CONTRIBUTING.md +56 -0
- package/LICENSE +202 -0
- package/NOTICE +14 -0
- package/README.md +340 -2
- package/SECURITY.md +76 -0
- package/THIRD_PARTY_NOTICES.md +111 -0
- package/dist/adapters.d.ts +16 -0
- package/dist/adapters.js +48 -0
- package/dist/approve-public.d.ts +2 -0
- package/dist/approve-public.js +65 -0
- package/dist/contracts.d.ts +48 -0
- package/dist/contracts.js +34 -0
- package/dist/create-confidential.d.ts +2 -0
- package/dist/create-confidential.js +34 -0
- package/dist/instrumentation/openai-worker.d.ts +1 -0
- package/dist/instrumentation/openai-worker.js +26 -0
- package/dist/instrumentation/openai.d.ts +51 -0
- package/dist/instrumentation/openai.js +197 -0
- package/dist/limits.d.ts +15 -0
- package/dist/limits.js +62 -0
- package/dist/lookup/contracts.d.ts +38 -0
- package/dist/lookup/contracts.js +22 -0
- package/dist/lookup/verify.d.ts +54 -0
- package/dist/lookup/verify.js +110 -0
- package/dist/network/client.d.ts +26 -0
- package/dist/network/client.js +188 -0
- package/dist/network/contracts.d.ts +104 -0
- package/dist/network/contracts.js +54 -0
- package/dist/network-tools.d.ts +5 -0
- package/dist/network-tools.js +32 -0
- package/dist/owner/create.d.ts +52 -0
- package/dist/owner/create.js +117 -0
- package/dist/owner/custody.d.ts +33 -0
- package/dist/owner/custody.js +200 -0
- package/dist/owner/host.d.ts +10 -0
- package/dist/owner/host.js +70 -0
- package/dist/owner/publisher.d.ts +21 -0
- package/dist/owner/publisher.js +27 -0
- package/dist/owner/reconcile.d.ts +16 -0
- package/dist/owner/reconcile.js +109 -0
- package/dist/receipts/contracts.d.ts +72 -0
- package/dist/receipts/contracts.js +33 -0
- package/dist/receipts/verify.d.ts +4 -0
- package/dist/receipts/verify.js +104 -0
- package/dist/record/contracts.d.ts +281 -0
- package/dist/record/contracts.js +70 -0
- package/dist/record/customer.d.ts +40 -0
- package/dist/record/customer.js +99 -0
- package/dist/record/policy.d.ts +46 -0
- package/dist/record/policy.js +67 -0
- package/dist/record/publication.d.ts +23 -0
- package/dist/record/publication.js +148 -0
- package/dist/record/record.d.ts +12 -0
- package/dist/record/record.js +93 -0
- package/dist/record/state.d.ts +44 -0
- package/dist/record/state.js +84 -0
- package/dist/record-tools.d.ts +10 -0
- package/dist/record-tools.js +85 -0
- package/dist/recover-confidential.d.ts +2 -0
- package/dist/recover-confidential.js +13 -0
- package/dist/results.d.ts +8 -0
- package/dist/results.js +83 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +39 -0
- package/dist/stdio.d.ts +2 -0
- package/dist/stdio.js +104 -0
- package/dist/trust/lifecycle.d.ts +13 -0
- package/dist/trust/lifecycle.js +42 -0
- package/dist/trust/policy.d.ts +14 -0
- package/dist/trust/policy.js +6 -0
- package/dist/verify.d.ts +3 -0
- package/dist/verify.js +56 -0
- package/dist/write/approval.d.ts +5 -0
- package/dist/write/approval.js +95 -0
- package/dist/write/attest.d.ts +14 -0
- package/dist/write/attest.js +140 -0
- package/dist/write/config.d.ts +11 -0
- package/dist/write/config.js +12 -0
- package/dist/write/contracts.d.ts +229 -0
- package/dist/write/contracts.js +61 -0
- package/dist/write/post.d.ts +11 -0
- package/dist/write/post.js +105 -0
- package/dist/write/profile.d.ts +19 -0
- package/dist/write/profile.js +114 -0
- package/dist/write/seal.d.ts +3 -0
- package/dist/write/seal.js +49 -0
- package/dist/write-tools.d.ts +4 -0
- package/dist/write-tools.js +36 -0
- package/docs/age-version-compatibility.md +46 -0
- package/docs/architecture.md +72 -0
- package/docs/compatibility.md +163 -0
- package/docs/contracts.md +127 -0
- package/docs/examples/customer-claude-desktop.json +14 -0
- package/docs/examples/customer-consent.json +15 -0
- package/docs/examples/customer-custody.json +8 -0
- package/docs/examples/customer-policy.json +43 -0
- package/docs/licensing-review.md +109 -0
- package/docs/milestone-1-validation.md +110 -0
- package/docs/milestone-2.md +291 -0
- package/docs/milestone-3.2.md +291 -0
- package/docs/milestone-3.md +274 -0
- package/docs/milestone-4a.md +221 -0
- package/docs/milestone-4b1.md +220 -0
- package/docs/milestone-4b2.md +260 -0
- package/docs/public-default.md +263 -0
- package/docs/recording-schema-compatibility.md +46 -0
- package/docs/release.md +311 -0
- package/docs/security-fixes.md +47 -0
- package/docs/security.md +195 -0
- package/docs/standalone-acceptance.md +81 -0
- package/docs/validation.md +85 -0
- package/package.json +51 -4
- package/server.json +20 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Stage 2 validation record
|
|
2
|
+
|
|
3
|
+
Executed on **2026-11-10**, Node **v24.22.1**, pnpm **10.26.1**.
|
|
4
|
+
This record describes actual checks, not expected future results.
|
|
5
|
+
|
|
6
|
+
## Build and tests
|
|
7
|
+
|
|
8
|
+
| Command | Actual result |
|
|
9
|
+
| --- | --- |
|
|
10
|
+
| `pnpm --filter @workspace/nexart-mcp-server run build` | Passed; TypeScript emitted the stdio server |
|
|
11
|
+
| `pnpm --filter @workspace/nexart-mcp-server test` | 45 tests, 45 passed, 0 failed, 0 skipped |
|
|
12
|
+
| `pnpm --filter @workspace/nexart-mcp-server run check:clean-install` | Passed; fresh temporary dependency tree, frozen lock, 22 packages from the offline store, build and all 45 tests |
|
|
13
|
+
| `pnpm --filter @workspace/nexart-mcp-server run benchmark` | All 8 measured workload types returned valid integrity |
|
|
14
|
+
| `pnpm --filter @workspace/nexart-mcp-server run evidence` | Both real stdio sessions discovered all four tools and completed all six positive fixture invocations |
|
|
15
|
+
|
|
16
|
+
The final unit/integration/conformance run took approximately 4.5 seconds.
|
|
17
|
+
The clean-install rerun took approximately 4.4 seconds for the tests after
|
|
18
|
+
dependency installation and compilation. Timing is environment-dependent.
|
|
19
|
+
|
|
20
|
+
The clean-install check is a fresh installation from a populated offline
|
|
21
|
+
package store, **not** an uncached public-registry download or an independent
|
|
22
|
+
operating-system test. It respects the frozen repository lockfile and does
|
|
23
|
+
not run dependency lifecycle scripts.
|
|
24
|
+
|
|
25
|
+
## Real MCP invocation evidence
|
|
26
|
+
|
|
27
|
+
Client: **`@modelcontextprotocol/client@2.4.0`**.
|
|
28
|
+
Transport: official stdio client spawning the compiled Node server.
|
|
29
|
+
|
|
30
|
+
Both sessions discovered exactly:
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
nexart_verify_ai_cer
|
|
34
|
+
nexart_verify_consequential_cer
|
|
35
|
+
nexart_verify_governed_execution
|
|
36
|
+
nexart_verify_project_bundle
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
| Fixture | Tool | Legacy result | Modern result |
|
|
40
|
+
| --- | --- | --- | --- |
|
|
41
|
+
| AI V1 | `nexart_verify_ai_cer` | `valid / OK / sdk.ok=true` | `valid / OK / sdk.ok=true` |
|
|
42
|
+
| AI V2 | `nexart_verify_ai_cer` | `valid / OK / sdk.ok=true` | `valid / OK / sdk.ok=true` |
|
|
43
|
+
| Consequential | `nexart_verify_consequential_cer` | `valid / OK / sdk.ok=true` | `valid / OK / sdk.ok=true` |
|
|
44
|
+
| Governed 0.1 | `nexart_verify_governed_execution` | `valid / OK / sdk.ok=true` | `valid / OK / sdk.ok=true` |
|
|
45
|
+
| Governed 0.2 | `nexart_verify_governed_execution` | `valid / OK / sdk.ok=true` | `valid / OK / sdk.ok=true` |
|
|
46
|
+
| Mixed AI Project | `nexart_verify_project_bundle` | `valid / OK / sdk.ok=true` | `valid / OK / sdk.ok=true` |
|
|
47
|
+
|
|
48
|
+
Legacy negotiated `2025-11-25`; modern pinned `2026-07-28` without fallback.
|
|
49
|
+
In every positive invocation, Node signature verification remained
|
|
50
|
+
`not_performed` and signer trust remained `not_established`.
|
|
51
|
+
|
|
52
|
+
The transport suite also submitted a tampered version of each of these
|
|
53
|
+
fixtures in each session. All produced structured `invalid` outcomes rather
|
|
54
|
+
than transport failures. Strict-envelope errors were sanitized and the
|
|
55
|
+
connection remained usable. Oversized tool arguments returned
|
|
56
|
+
`INPUT_TOO_LARGE`. Pre-parse hard size/depth violations exited safely.
|
|
57
|
+
|
|
58
|
+
## Test coverage
|
|
59
|
+
|
|
60
|
+
- Positive AI V1/V2, consequential, governed 0.1/0.2, mixed AI Projects.
|
|
61
|
+
- All 15 entries from the two published AI compatibility-vector files,
|
|
62
|
+
including their three Project vectors, dispatched to the correct tools.
|
|
63
|
+
- Exact scoped SDK outcome projection on supported positive and negative inputs.
|
|
64
|
+
- Modified certificate hashes, modified project hash, altered embedded steps.
|
|
65
|
+
- Unsupported families, AI protocols, governed envelope versions and profiles.
|
|
66
|
+
- Invalid artifact schemas and strict argument-envelope validation.
|
|
67
|
+
- Size, depth, breadth, total-node, cycle and Project-step limits.
|
|
68
|
+
- Confidential AI/Governed fixtures, redacted SDK diagnostics and hostile
|
|
69
|
+
metadata that must not become model-visible diagnostics.
|
|
70
|
+
- Attestation metadata presence does not enable authenticity/trust claims.
|
|
71
|
+
- Already-aborted request rejection and documented synchronous cancellation limits.
|
|
72
|
+
- Tool discovery, advertised schemas, normal tool invocation in both eras.
|
|
73
|
+
- Malformed JSON skipped by SDK with subsequent valid-message recovery.
|
|
74
|
+
- stdout/stderr separation, stdin EOF, SIGTERM and hard input-limit shutdown.
|
|
75
|
+
- Clean dependency installation, compilation and complete test rerun.
|
|
76
|
+
|
|
77
|
+
## Workload measurements
|
|
78
|
+
|
|
79
|
+
Each workload was sampled **30 times**. Durations include application guards,
|
|
80
|
+
SDK verification and safe output projection, excluding process startup and
|
|
81
|
+
MCP round-trip overhead.
|
|
82
|
+
|
|
83
|
+
| Workload | Serialized bundle bytes | Median ms | p95 ms | Max ms |
|
|
84
|
+
| --- | ---: | ---: | ---: | ---: |
|
|
85
|
+
| AI V1 | 778 | 0.035 | 0.259 | 1.903 |
|
|
86
|
+
| AI V2 | 1,144 | 0.066 | 1.184 | 1.238 |
|
|
87
|
+
| Consequential | 1,077 | 0.227 | 2.269 | 7.713 |
|
|
88
|
+
| Governed 0.1 | 2,370 | 0.559 | 2.241 | 2.714 |
|
|
89
|
+
| Governed 0.2 | 2,637 | 0.430 | 2.053 | 2.322 |
|
|
90
|
+
| Mixed AI Project | 2,991 | 0.167 | 0.476 | 0.771 |
|
|
91
|
+
| 100-step Project | 402,171 | 4.094 | 7.028 | 7.568 |
|
|
92
|
+
| Near-limit metadata | 850,797 | 2.318 | 3.747 | 4.035 |
|
|
93
|
+
|
|
94
|
+
These samples did not demonstrate a need for workers. They are not a
|
|
95
|
+
worst-case resource proof or a hard cancellation/deadline guarantee.
|
|
96
|
+
|
|
97
|
+
## Explicit remaining limitations
|
|
98
|
+
|
|
99
|
+
No final acceptance test is failing. Initial integration defects encountered
|
|
100
|
+
during development were corrected before the passing runs above; they are
|
|
101
|
+
not being hidden as skipped tests.
|
|
102
|
+
|
|
103
|
+
Desktop MCP hosts were not manually tested. Other legacy protocol revisions
|
|
104
|
+
were not individually tested. There is no security certification, production
|
|
105
|
+
deployment, formal worst-case runtime bound, independently frozen consequential
|
|
106
|
+
compatibility fixture, receipt/signature/trust verification, RFC 3161
|
|
107
|
+
cryptographic verification or remote multi-tenant access.
|
|
108
|
+
|
|
109
|
+
The test client and server use the same official SDK release; broader
|
|
110
|
+
cross-implementation conformance remains a later release check.
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
# Milestone 2 — contracts, implementation and acceptance
|
|
2
|
+
|
|
3
|
+
Scope: three additive read-only MCP tools. The existing four verifier schemas,
|
|
4
|
+
SDK adapters, limits, outputs and execution semantics are unchanged.
|
|
5
|
+
The executable remains private, `UNLICENSED`, version `0.1.0`. No SDK version
|
|
6
|
+
changes, external-repository edits, Git operations, publishing, database,
|
|
7
|
+
OAuth, remote multitenancy or later-milestone features are part of this work.
|
|
8
|
+
|
|
9
|
+
## New MCP contracts
|
|
10
|
+
|
|
11
|
+
All inputs are strict objects. Hashes must match `^sha256:[0-9a-f]{64}$`.
|
|
12
|
+
No caller-selected URL, origin, manifest, key, pin, lifecycle exception, path,
|
|
13
|
+
credential or alternate Node is accepted.
|
|
14
|
+
|
|
15
|
+
### `nexart_lookup_cer`
|
|
16
|
+
|
|
17
|
+
Input: `{ "certificateHash": "sha256:<64 lowercase hex>" }`.
|
|
18
|
+
|
|
19
|
+
GET `/v1/resolve/cer/:certificateHash`, validating `ok`, `schemaVersion:"1.0"`,
|
|
20
|
+
`artifactType:"cer"`, top-level identity, proof, verification, bundle and links.
|
|
21
|
+
Unknown upstream extensions are discarded by the disclosure projection;
|
|
22
|
+
they are not tool output. Identity/proof/bundle/receipt hashes must all equal
|
|
23
|
+
the requested hash. Any additional declared certificate hash in an envelope,
|
|
24
|
+
its bundle/attestation or canonical-certificate metadata must agree too.
|
|
25
|
+
The declared identity bundle type must match the returned bundle.
|
|
26
|
+
|
|
27
|
+
Recognized complete bundles are checked by the same published SDK dispatch
|
|
28
|
+
as the offline tools. Original/canonical content is never fetched separately,
|
|
29
|
+
used to repair a redacted projection, reconstructed or resealed.
|
|
30
|
+
|
|
31
|
+
### `nexart_lookup_project_bundle`
|
|
32
|
+
|
|
33
|
+
Input: `{ "projectHash": "sha256:<64 lowercase hex>" }`.
|
|
34
|
+
|
|
35
|
+
GET `/v1/resolve/project/:projectHash`, validating the published resolver
|
|
36
|
+
contract and matching top-level, proof, bundle-integrity and optional
|
|
37
|
+
Project-receipt hashes. A null historical bundle/receipt is handled explicitly.
|
|
38
|
+
Local integrity requires published `verifyProjectBundle` success **and
|
|
39
|
+
`projectHashValid === true`**. No Node aggregate verdict is authoritative.
|
|
40
|
+
The Project receipt's presence does not authenticate it.
|
|
41
|
+
|
|
42
|
+
### Lookup output, both tools
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
contractVersion: "1"
|
|
46
|
+
lookup: found | not_found_or_not_public | unavailable | rejected
|
|
47
|
+
reasonCode: fixed wrapper code or safely projected published SDK code
|
|
48
|
+
family: recognized family or null
|
|
49
|
+
integrity: valid | invalid | indeterminate | not_performed
|
|
50
|
+
integrityScope: "returned_bundle"
|
|
51
|
+
sdk: existing allowlisted SDK result projection or null
|
|
52
|
+
receiptPresent: boolean
|
|
53
|
+
nodeSignature: "not_performed"
|
|
54
|
+
signerTrust: "not_established"
|
|
55
|
+
limitations: fixed scope statements
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
`found` is lookup success, not verification success. Redacted material that
|
|
59
|
+
prevents checking the original produces `indeterminate`/`not_performed`,
|
|
60
|
+
never an assertion that the original failed integrity. A supported complete
|
|
61
|
+
bundle with a locally detected hash failure produces `invalid`. Unknown
|
|
62
|
+
families are not verified. No bundle, content, prompt, I/O, openings, salts,
|
|
63
|
+
canonical strings, account metadata, internal identifiers, full receipt,
|
|
64
|
+
envelope, key material or raw SDK/Node diagnostics is returned.
|
|
65
|
+
|
|
66
|
+
HTTP 404 maps to `NOT_FOUND_OR_NOT_PUBLIC`: private, hidden, deleted,
|
|
67
|
+
nonexistent and backend-masked absence cannot be distinguished. It never
|
|
68
|
+
asserts that a private artifact exists. HTTP 409 permits only allowlisted
|
|
69
|
+
`INCOMPLETE_PROOF`/`INTEGRITY_MISMATCH` body codes and reports
|
|
70
|
+
`UPSTREAM_INCOMPLETE_PROOF`/`UPSTREAM_INTEGRITY_MISMATCH`; these are upstream
|
|
71
|
+
claims, not locally verified integrity failures. Other conflicts are
|
|
72
|
+
`UPSTREAM_PROOF_CONFLICT`; 429 is `RATE_LIMITED`; 5xx is
|
|
73
|
+
`UPSTREAM_UNAVAILABLE`. Raw diagnostic messages are always discarded.
|
|
74
|
+
|
|
75
|
+
### `nexart_verify_node_receipt`
|
|
76
|
+
|
|
77
|
+
Two input modes:
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{"source":"public_lookup","certificateHash":"sha256:<64 lowercase hex>"}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
{
|
|
85
|
+
source: "inline",
|
|
86
|
+
certificateHash: "sha256:<64 lowercase hex>",
|
|
87
|
+
receipt: complete signed CER receipt object,
|
|
88
|
+
signatureB64Url: detached signature string
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The public mode rejects inline receipt/signature fields. Inline mode requires
|
|
93
|
+
both. Both modes require an external expected certificate hash; the wrapper
|
|
94
|
+
never takes the expected identity from the receipt itself.
|
|
95
|
+
|
|
96
|
+
Supported signed fields:
|
|
97
|
+
|
|
98
|
+
* `receiptVersion:"attestation.receipt.v1"`, `attestationId`, `certificateHash`,
|
|
99
|
+
`nodeRuntimeHash`, `protocolVersion`, `nodeId`, `attestorKeyId`.
|
|
100
|
+
* Optional signed `attestedAt`, `timestampType`, `timestampStatus`,
|
|
101
|
+
`timestampProvider`. Missing/invalid time prevents lifecycle acceptance.
|
|
102
|
+
|
|
103
|
+
Current protocol versions are `1.2.0`, `1.3.0`, `1.3.1`. Extra receipt fields
|
|
104
|
+
are rejected, never silently stripped before verification. The complete
|
|
105
|
+
original accepted object is passed unchanged to the published AI SDK
|
|
106
|
+
`verifyNodeReceiptSignature`. No handwritten Ed25519/canonicalization exists
|
|
107
|
+
in runtime. Project receipt versions are `UNSUPPORTED_RECEIPT_VERSION`; no
|
|
108
|
+
renaming `projectHash`/`registeredAt` into CER fields or structural casts to
|
|
109
|
+
invent compatibility occur.
|
|
110
|
+
|
|
111
|
+
Output is a strict safe summary:
|
|
112
|
+
|
|
113
|
+
```text
|
|
114
|
+
contractVersion: "1"
|
|
115
|
+
reasonCode
|
|
116
|
+
signature: valid | invalid | not_performed
|
|
117
|
+
hashBinding: match | mismatch | not_performed
|
|
118
|
+
nodeIdentity: match | mismatch | not_established
|
|
119
|
+
keyStatus: active | deprecated | revoked | unknown | unavailable
|
|
120
|
+
keyLifecycle: valid | invalid | unknown
|
|
121
|
+
lifecycleCode
|
|
122
|
+
signerTrust: trusted_under_policy | rejected | not_established
|
|
123
|
+
artifactIntegrity: "not_performed"
|
|
124
|
+
sdk: {ok, code} | null
|
|
125
|
+
limitations: fixed scope statements
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
`signature:valid` is mathematical verification under the selected discovery
|
|
129
|
+
key, **not approval of that key**. Signed hash/Node-identity mismatch or
|
|
130
|
+
revocation may coexist with a valid signature but cannot gain trust.
|
|
131
|
+
Timestamp fields are signed metadata, not cryptographic RFC 3161 verification.
|
|
132
|
+
Neither receipt mode claims artifact integrity, execution truth, producer
|
|
133
|
+
authorization, confidential-opening verification or completeness.
|
|
134
|
+
|
|
135
|
+
## Network controls
|
|
136
|
+
|
|
137
|
+
* Only `https://node.nexart.io`, two encoded exact-hash resolver paths and
|
|
138
|
+
`/.well-known/nexart-node.json`. No resolver-provided link is followed.
|
|
139
|
+
* GET only; no credentials, retries, conditional-cache reuse or redirects.
|
|
140
|
+
Redirect responses are rejected; 304 is not accepted as a successful lookup.
|
|
141
|
+
* Shared maximum two active operations and eight queued operations.
|
|
142
|
+
Receipt lookup plus manifest uses one slot and one operation deadline.
|
|
143
|
+
* Five-second total deadline includes queue, headers, body and post-work abort
|
|
144
|
+
checks. Caller cancellation is linked through requests and body reads.
|
|
145
|
+
* At most two requests per public-receipt operation; all others at most one.
|
|
146
|
+
* Decoded resolver body at most 1,048,576 bytes; manifest 65,536 bytes; conflict
|
|
147
|
+
diagnostic body 8,192 bytes. Declared oversized responses are rejected early.
|
|
148
|
+
Decoded streaming bytes are counted even with absent/smaller content length.
|
|
149
|
+
* JSON content type and valid UTF-8 required; lexical depth capped before
|
|
150
|
+
parsing. Existing depth/value/container limits apply to parsed responses.
|
|
151
|
+
Manifest maximum 32 keys; receipt argument maximum 16,384 bytes.
|
|
152
|
+
* Lookup logical output remains at most 262,144 bytes; receipt output is
|
|
153
|
+
inherently bounded by its fixed fields, enums and short SDK codes.
|
|
154
|
+
* Timers, listeners, readers and semaphore slots are released on completion,
|
|
155
|
+
failure, deadline and cancellation. No cache, persistence or evidence logs.
|
|
156
|
+
|
|
157
|
+
The synchronous published verifier cannot be forcibly preempted mid-call.
|
|
158
|
+
Pre-call input bounds and post-call cancellation/deadline checks apply; this
|
|
159
|
+
does not claim worker-process isolation or a hard CPU interruption guarantee.
|
|
160
|
+
|
|
161
|
+
## Trust bootstrap and lifecycle
|
|
162
|
+
|
|
163
|
+
The server expects exactly `nexart-node-prod-1`. Production key pins start
|
|
164
|
+
empty and **no live-discovered key has been approved**. The manifest alone
|
|
165
|
+
cannot establish signer trust, including its active key or a rotated key.
|
|
166
|
+
The caller cannot supply policy.
|
|
167
|
+
|
|
168
|
+
Mandatory signed `attestorKeyId` selects an exact manifest entry using the
|
|
169
|
+
published selector. The manifest is rejected on duplicate key IDs; unknown
|
|
170
|
+
IDs never fall back to `activeKid`. Unknown/unsupported key material cannot
|
|
171
|
+
produce acceptance. The published SDK performs the cryptographic check.
|
|
172
|
+
|
|
173
|
+
Server-controlled pins can independently approve a specific kid and exact
|
|
174
|
+
raw public-key material. Only a matching pin can enable scoped
|
|
175
|
+
`trusted_under_policy`, with matching hash/Node identity, valid signature and
|
|
176
|
+
known-valid lifecycle. Duplicate pins, changed material or rotation do not
|
|
177
|
+
silently gain trust. These configuration types are not MCP request fields.
|
|
178
|
+
|
|
179
|
+
Revoked keys never gain trust, even if their signatures verify. Deprecated
|
|
180
|
+
keys require an explicit usable upper bound for historical acceptance.
|
|
181
|
+
Missing, malformed or contradictory lifecycle metadata/time is unknown.
|
|
182
|
+
The SDK's lifecycle checker is called without globally dropping `notBefore`.
|
|
183
|
+
|
|
184
|
+
An audited Node behavior publishes the primary key's process boot as
|
|
185
|
+
`notBefore`, even though upstream internally may not enforce it as inception.
|
|
186
|
+
A receipt predating that advertised bound retains its signature result but
|
|
187
|
+
has **unknown historical lifecycle**, not trusted acceptance. No blanket
|
|
188
|
+
restart exception exists. Only a separately approved exact-key pin may supply
|
|
189
|
+
an explicit historical lower bound and documented provenance. None is
|
|
190
|
+
configured in production.
|
|
191
|
+
|
|
192
|
+
Discovery is not an authenticated historical/revocation archive, and
|
|
193
|
+
node-issued `attestedAt` is not independent trusted time. These limitations
|
|
194
|
+
remain even after a future pin is approved.
|
|
195
|
+
|
|
196
|
+
## Verification and reproducibility
|
|
197
|
+
|
|
198
|
+
### Observed acceptance result
|
|
199
|
+
|
|
200
|
+
**PASS — local implementation, safety tests, protocol compatibility and
|
|
201
|
+
installed-package acceptance. UNVERIFIED — positive deployed resolver
|
|
202
|
+
compatibility.** No required local check failed.
|
|
203
|
+
|
|
204
|
+
The completed isolated run on Node 24.22.1 / pnpm 10.26.1 recorded:
|
|
205
|
+
|
|
206
|
+
| Command/check | Observed result |
|
|
207
|
+
| --- | --- |
|
|
208
|
+
| `pnpm run build` (root) | PASS |
|
|
209
|
+
| `pnpm --version` (isolated checkout) | 10.26.1 |
|
|
210
|
+
| `pnpm install --frozen-lockfile --ignore-scripts` | PASS, independent checkout with shared registry cache allowed |
|
|
211
|
+
| `pnpm run build` (isolated checkout) | PASS |
|
|
212
|
+
| `pnpm exec node --test --test-concurrency=1 tests/transport.test.mjs tests/unit.test.mjs` | PASS: 45/45 original tests |
|
|
213
|
+
| `pnpm test` | PASS: 114/114; 0 failures, cancelled or skipped |
|
|
214
|
+
| `pnpm run evidence` | PASS: real stdio, both protocol revisions, all seven tools |
|
|
215
|
+
| `pnpm run benchmark` | PASS: existing eight workload checks |
|
|
216
|
+
| `pnpm pack --pack-destination <evidence-directory>` | PASS |
|
|
217
|
+
| `pnpm add --save-exact --ignore-scripts <packed-tarball>` (fresh consumer) | PASS |
|
|
218
|
+
| Consumer's installed `.bin/nexart-mcp-server` | PASS: both revisions, all seven tools; positive/tampered/unavailable/redacted calls |
|
|
219
|
+
| Installed executable stdin EOF | PASS: exit 0, no signal, JSON-RPC-only stdout |
|
|
220
|
+
|
|
221
|
+
Each protocol revision has an offline-fixture session and a synthetic-network
|
|
222
|
+
session, both in development and installed evidence. The network sessions
|
|
223
|
+
record successful CER/Project local verification, rejected tampered bundles,
|
|
224
|
+
valid receipt signatures with `signerTrust:not_established`, invalid modified
|
|
225
|
+
receipt signatures, unavailable hashes and sanitized strict-envelope errors.
|
|
226
|
+
|
|
227
|
+
The original `adapters`, `contracts`, `limits`, `results`, `stdio` and `verify`
|
|
228
|
+
source files were also compared byte-for-byte to the previously validated
|
|
229
|
+
standalone tarball: all six are unchanged. Only registration was added in
|
|
230
|
+
the original `server.ts`.
|
|
231
|
+
|
|
232
|
+
```sh
|
|
233
|
+
pnpm run build
|
|
234
|
+
pnpm run validate:release
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
The validator performs independent frozen installation/build, the original
|
|
238
|
+
45 tests, the expanded suite, actual development MCP stdio, package packing,
|
|
239
|
+
fresh consumer installation and the installed executable in both protocol
|
|
240
|
+
eras (`2025-11-25`, `2026-07-28`). All seven tools are discovered. The original
|
|
241
|
+
six good/tampered families and each new tool's positive, tampered, unavailable
|
|
242
|
+
and argument-redaction cases are exercised. EOF is separately observed with
|
|
243
|
+
exit zero and JSON-RPC-only stdout.
|
|
244
|
+
|
|
245
|
+
Synthetic transport uses a test-only preload replacing fetch at the fixed
|
|
246
|
+
origin. Test signing uses ephemeral in-memory test keys, never production
|
|
247
|
+
private keys. The preload is not imported by runtime and production accepts
|
|
248
|
+
no environment-based origin override. Fixtures are not an approved deployed
|
|
249
|
+
positive resolver fixture.
|
|
250
|
+
|
|
251
|
+
Read `generated-artifacts/milestone-2/release-summary.json`,
|
|
252
|
+
`baseline-tests.log`, `regression-tests.log`, `development-invocations.log`
|
|
253
|
+
and `installed-invocations.json` for observed outcomes. Prior milestone
|
|
254
|
+
evidence is retained in its original directory.
|
|
255
|
+
|
|
256
|
+
**Positive deployed resolver acceptance: UNVERIFIED.** No approved synthetic
|
|
257
|
+
public positive fixture was supplied. No private/customer artifact was used
|
|
258
|
+
to fill that gap and no upstream repository/service was changed.
|
|
259
|
+
|
|
260
|
+
Observed upstream issues remain: potentially sensitive resolver canonical/
|
|
261
|
+
context/proof sections; public redaction incompatible with full original
|
|
262
|
+
hash checking in some families; current-discovery lifecycle provenance
|
|
263
|
+
insufficient for historical key inception; distinct unsupported Project
|
|
264
|
+
receipts; indistinguishable 404s that can include backend-masked absence.
|
|
265
|
+
|
|
266
|
+
## Exact implementation file inventory
|
|
267
|
+
|
|
268
|
+
Added:
|
|
269
|
+
|
|
270
|
+
* `src/network-tools.ts`
|
|
271
|
+
* `src/network/client.ts`, `src/network/contracts.ts`
|
|
272
|
+
* `src/lookup/contracts.ts`, `src/lookup/verify.ts`
|
|
273
|
+
* `src/receipts/contracts.ts`, `src/receipts/verify.ts`
|
|
274
|
+
* `src/trust/policy.ts`, `src/trust/lifecycle.ts`
|
|
275
|
+
* `tests/network-fixtures.mjs`, `tests/network-preload.mjs`
|
|
276
|
+
* `tests/network-tools.test.mjs`
|
|
277
|
+
* `tests/network-transport.mjs`, `tests/network-transport.test.mjs`
|
|
278
|
+
* `docs/milestone-2.md`
|
|
279
|
+
|
|
280
|
+
Modified:
|
|
281
|
+
|
|
282
|
+
* `src/server.ts` — additive registrations only.
|
|
283
|
+
* `tests/client.mjs`, `tests/transport.test.mjs`
|
|
284
|
+
* `tests/transport-evidence.mjs`, `tests/installed-package.mjs`
|
|
285
|
+
* `tests/clean-install.mjs`
|
|
286
|
+
* `package.json` — description only; versions/privacy/license unchanged.
|
|
287
|
+
* `README.md`, `docs/contracts.md`, `docs/architecture.md`, `docs/compatibility.md`,
|
|
288
|
+
`docs/security.md`, `docs/validation.md`
|
|
289
|
+
* `.agents/memory/node-receipt-audit.md` — durable approved boundary, not runtime.
|
|
290
|
+
|
|
291
|
+
Generated ignored release evidence is not source or a publication.
|