@strixgov/mcp-proxy 0.2.3 → 0.2.4
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 +11 -0
- package/examples/github-reference/README.md +34 -0
- package/examples/github-reference/acceptance.mjs +668 -0
- package/examples/github-reference/claims-matrix.md +34 -0
- package/examples/github-reference/demo-script.md +17 -0
- package/examples/github-reference/package-lock.json +1326 -0
- package/examples/github-reference/package.json +23 -0
- package/examples/github-reference/reuse-inventory.md +24 -0
- package/package.json +4 -4
- package/test/package-contract.test.mjs +12 -0
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import crypto from "node:crypto";
|
|
3
|
+
import fs from "node:fs/promises";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import os from "node:os";
|
|
6
|
+
import { spawnSync } from "node:child_process";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
import { setTimeout as delay } from "node:timers/promises";
|
|
9
|
+
|
|
10
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
11
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
12
|
+
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
|
|
13
|
+
import {
|
|
14
|
+
CallToolRequestSchema,
|
|
15
|
+
ListToolsRequestSchema,
|
|
16
|
+
} from "@modelcontextprotocol/sdk/types.js";
|
|
17
|
+
import { githubCapabilities } from "@strixgov/capabilities-mcp-common/github";
|
|
18
|
+
import {
|
|
19
|
+
approveSigned,
|
|
20
|
+
buildProxyConfig,
|
|
21
|
+
createApproverKey,
|
|
22
|
+
guardPaths,
|
|
23
|
+
respond,
|
|
24
|
+
} from "@strixgov/guard";
|
|
25
|
+
import { startProxy } from "@strixgov/mcp-proxy";
|
|
26
|
+
import { computePolicyVersion } from "@strixgov/tool-gateway";
|
|
27
|
+
import { verifyExecutionOutcomeRecord } from "@strixgov/verifier/execution-outcome";
|
|
28
|
+
|
|
29
|
+
const HERE = path.dirname(fileURLToPath(import.meta.url));
|
|
30
|
+
const CONSUMER = process.cwd();
|
|
31
|
+
const BASE_EVIDENCE_DIR = process.env.STRIX_EVIDENCE_DIR
|
|
32
|
+
? path.resolve(process.env.STRIX_EVIDENCE_DIR)
|
|
33
|
+
: path.resolve(CONSUMER, "evidence");
|
|
34
|
+
const RUN_ID = new Date().toISOString().replaceAll(":", "-");
|
|
35
|
+
const EVIDENCE_DIR = path.join(BASE_EVIDENCE_DIR, `run-${RUN_ID}`);
|
|
36
|
+
const TEST_ACTOR = "synthetic-fixture-agent";
|
|
37
|
+
const FIXTURE_OWNER = "strix-demo";
|
|
38
|
+
const FIXTURE_REPO = "offline-fixture";
|
|
39
|
+
const APPROVAL_TIMEOUT_MS = 1800;
|
|
40
|
+
const POLL_INTERVAL_MS = 250;
|
|
41
|
+
const APPROVER_LABEL = "synthetic-local-reviewer";
|
|
42
|
+
const PASS_PHRASE = crypto.randomBytes(24).toString("base64url");
|
|
43
|
+
|
|
44
|
+
const scenarioResults = [];
|
|
45
|
+
const fixtureExecutions = [];
|
|
46
|
+
const fixtureOutcomes = [];
|
|
47
|
+
const approvalRequests = [];
|
|
48
|
+
const approvalRecords = [];
|
|
49
|
+
|
|
50
|
+
function record(id, status, details) {
|
|
51
|
+
scenarioResults.push({ id, status, details });
|
|
52
|
+
console.log(`${id}: ${status} — ${details}`);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function appendFixtureCall(call) {
|
|
56
|
+
fixtureExecutions.push({ at: new Date().toISOString(), ...call });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function tool(name, description) {
|
|
60
|
+
return {
|
|
61
|
+
name,
|
|
62
|
+
description,
|
|
63
|
+
inputSchema: { type: "object", additionalProperties: true },
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
async function buildFixtureStack({ policy, approval, storagePath }) {
|
|
68
|
+
const upstreamServer = new Server(
|
|
69
|
+
{ name: "strix-offline-github-fixture", version: "1.0.0" },
|
|
70
|
+
{ capabilities: { tools: {} } },
|
|
71
|
+
);
|
|
72
|
+
upstreamServer.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
73
|
+
tools: [
|
|
74
|
+
tool("get_file_contents", "Read fixture repository file contents."),
|
|
75
|
+
tool("merge_pull_request", "Fixture-only GitHub-shaped merge; never called through the proxy."),
|
|
76
|
+
tool("create_branch", "Create an in-memory fixture branch."),
|
|
77
|
+
tool("delete_repository", "Unclassified destructive fixture tool."),
|
|
78
|
+
],
|
|
79
|
+
}));
|
|
80
|
+
upstreamServer.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
81
|
+
const name = request.params.name;
|
|
82
|
+
const args = request.params.arguments ?? {};
|
|
83
|
+
appendFixtureCall({ name, args, route: "upstream-server" });
|
|
84
|
+
if (name === "get_file_contents") {
|
|
85
|
+
fixtureOutcomes.push({ at: new Date().toISOString(), name, status: "READ_RETURNED", detail: "synthetic fixture data only" });
|
|
86
|
+
return { content: [{ type: "text", text: "FIXTURE README: no real repository was read." }] };
|
|
87
|
+
}
|
|
88
|
+
if (name === "create_branch") {
|
|
89
|
+
fixtureOutcomes.push({ at: new Date().toISOString(), name, status: "FIXTURE_WRITE_SUCCEEDED", detail: "branch recorded in memory only" });
|
|
90
|
+
return { content: [{ type: "text", text: "FIXTURE_WRITE_SUCCEEDED: branch recorded in memory only." }] };
|
|
91
|
+
}
|
|
92
|
+
if (name === "merge_pull_request") {
|
|
93
|
+
fixtureOutcomes.push({ at: new Date().toISOString(), name, status: "FIXTURE_REFUSED", detail: "no production merge path is configured" });
|
|
94
|
+
return {
|
|
95
|
+
isError: true,
|
|
96
|
+
content: [{ type: "text", text: "FIXTURE REFUSED: no production merge path is configured." }],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
fixtureOutcomes.push({ at: new Date().toISOString(), name, status: "FIXTURE_REFUSED", detail: "unknown tool" });
|
|
100
|
+
return { isError: true, content: [{ type: "text", text: "FIXTURE_REFUSED: unknown tool." }] };
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
const [upstreamClientTransport, upstreamServerTransport] = InMemoryTransport.createLinkedPair();
|
|
104
|
+
await upstreamServer.connect(upstreamServerTransport);
|
|
105
|
+
const upstreamClient = new Client(
|
|
106
|
+
{ name: "strix-proxy-upstream-fixture-client", version: "1.0.0" },
|
|
107
|
+
{ capabilities: {} },
|
|
108
|
+
);
|
|
109
|
+
await upstreamClient.connect(upstreamClientTransport);
|
|
110
|
+
|
|
111
|
+
const [consumerTransport, proxyServerTransport] = InMemoryTransport.createLinkedPair();
|
|
112
|
+
const consumer = new Client(
|
|
113
|
+
{ name: "strix-fixture-consumer", version: "1.0.0" },
|
|
114
|
+
{ capabilities: {} },
|
|
115
|
+
);
|
|
116
|
+
const receipts = [];
|
|
117
|
+
const handle = await startProxy({
|
|
118
|
+
serverId: "github",
|
|
119
|
+
capabilities: githubCapabilities,
|
|
120
|
+
policy,
|
|
121
|
+
approval,
|
|
122
|
+
storagePath,
|
|
123
|
+
onReceipt: (receipt) => receipts.push(receipt),
|
|
124
|
+
transport: {
|
|
125
|
+
kind: "test",
|
|
126
|
+
upstreamClient,
|
|
127
|
+
serverTransport: proxyServerTransport,
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
await consumer.connect(consumerTransport);
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
consumer,
|
|
134
|
+
upstreamClient,
|
|
135
|
+
upstreamServer,
|
|
136
|
+
handle,
|
|
137
|
+
receipts,
|
|
138
|
+
async close() {
|
|
139
|
+
try { await consumer.close(); } catch {}
|
|
140
|
+
try { await handle.stop(); } catch {}
|
|
141
|
+
try { await upstreamServer.close(); } catch {}
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function denied(resultOrError) {
|
|
147
|
+
return resultOrError instanceof Error || resultOrError?.isError === true;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
async function expectDenied(promise, label) {
|
|
151
|
+
let outcome;
|
|
152
|
+
try {
|
|
153
|
+
outcome = await promise;
|
|
154
|
+
} catch (error) {
|
|
155
|
+
outcome = error;
|
|
156
|
+
}
|
|
157
|
+
assert.ok(denied(outcome), `${label}: expected a denial/error, got ${JSON.stringify(outcome)}`);
|
|
158
|
+
return outcome;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
async function waitForRequests(env, count, timeoutMs = 1200) {
|
|
162
|
+
const deadline = Date.now() + timeoutMs;
|
|
163
|
+
while (Date.now() < deadline) {
|
|
164
|
+
const { approvalsDir } = guardPaths(env.STRIX_GUARD_HOME);
|
|
165
|
+
const names = await fs.readdir(approvalsDir).catch(() => []);
|
|
166
|
+
const ids = names.filter((name) => name.endsWith(".request.json"))
|
|
167
|
+
.map((name) => name.slice(0, -".request.json".length));
|
|
168
|
+
if (ids.length >= count) return ids.sort();
|
|
169
|
+
await delay(10);
|
|
170
|
+
}
|
|
171
|
+
throw new Error(`Timed out waiting for ${count} pending approval request(s)`);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
async function readRequest(env, requestId) {
|
|
175
|
+
const requestPath = path.join(guardPaths(env.STRIX_GUARD_HOME).approvalsDir, `${requestId}.request.json`);
|
|
176
|
+
const raw = await fs.readFile(requestPath, "utf8");
|
|
177
|
+
const request = JSON.parse(raw);
|
|
178
|
+
approvalRequests.push({ requestId, requestSha256: crypto.createHash("sha256").update(raw).digest("hex"), request });
|
|
179
|
+
return request;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
async function approveRequest(env, requestId) {
|
|
183
|
+
const result = await approveSigned(requestId, {
|
|
184
|
+
env,
|
|
185
|
+
io: {
|
|
186
|
+
isTty: true,
|
|
187
|
+
confirm: async () => true,
|
|
188
|
+
secret: async () => PASS_PHRASE,
|
|
189
|
+
print: () => {},
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
let response = null;
|
|
193
|
+
try { response = JSON.parse(await fs.readFile(result.responsePath, "utf8")); } catch {}
|
|
194
|
+
approvalRecords.push({
|
|
195
|
+
requestId,
|
|
196
|
+
decision: "APPROVED",
|
|
197
|
+
approverLabel: result.label,
|
|
198
|
+
kid: result.kid,
|
|
199
|
+
response,
|
|
200
|
+
responseCapturedBeforeConsumption: Boolean(response?.signature),
|
|
201
|
+
});
|
|
202
|
+
return result;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
async function denyRequest(env, requestId, reason = "SYNTHETIC_TEST_DENY") {
|
|
206
|
+
const result = await respond(requestId, { approved: false, by: APPROVER_LABEL, reason, env });
|
|
207
|
+
approvalRecords.push({ requestId, decision: "DENIED", approverLabel: APPROVER_LABEL, reason, signed: false });
|
|
208
|
+
return result;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
async function markApprovalConsumed(env, requestId, outcome) {
|
|
212
|
+
const record = [...approvalRecords].reverse().find((entry) => entry.requestId === requestId);
|
|
213
|
+
if (!record) throw new Error(`Missing approval record for ${requestId}`);
|
|
214
|
+
const dir = guardPaths(env.STRIX_GUARD_HOME).approvalsDir;
|
|
215
|
+
record.outcome = outcome;
|
|
216
|
+
record.requestFileRemoved = !(await fs.access(path.join(dir, `${requestId}.request.json`)).then(() => true, () => false));
|
|
217
|
+
record.responseFileRemoved = !(await fs.access(path.join(dir, `${requestId}.response.json`)).then(() => true, () => false));
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
async function waitSettled(promise) {
|
|
221
|
+
return Promise.race([
|
|
222
|
+
promise.then((value) => ({ state: "fulfilled", value }), (error) => ({ state: "rejected", error })),
|
|
223
|
+
delay(APPROVAL_TIMEOUT_MS + 1200).then(() => ({ state: "timeout" })),
|
|
224
|
+
]);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
async function packageVersions() {
|
|
228
|
+
const names = [
|
|
229
|
+
"@modelcontextprotocol/sdk",
|
|
230
|
+
"@strixgov/capabilities-mcp-common",
|
|
231
|
+
"@strixgov/guard",
|
|
232
|
+
"@strixgov/mcp-adapter",
|
|
233
|
+
"@strixgov/mcp-proxy",
|
|
234
|
+
"@strixgov/tool-gateway",
|
|
235
|
+
"@strixgov/verifier",
|
|
236
|
+
];
|
|
237
|
+
const rows = [];
|
|
238
|
+
for (const name of names) {
|
|
239
|
+
const file = path.join(CONSUMER, "node_modules", ...name.split("/"), "package.json");
|
|
240
|
+
const pkg = JSON.parse(await fs.readFile(file, "utf8"));
|
|
241
|
+
rows.push({ name: pkg.name, version: pkg.version });
|
|
242
|
+
}
|
|
243
|
+
return rows;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
async function walkFiles(root) {
|
|
247
|
+
const files = [];
|
|
248
|
+
async function visit(dir) {
|
|
249
|
+
for (const entry of await fs.readdir(dir, { withFileTypes: true })) {
|
|
250
|
+
const full = path.join(dir, entry.name);
|
|
251
|
+
if (entry.isDirectory()) await visit(full);
|
|
252
|
+
else files.push(full);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
await visit(root);
|
|
256
|
+
return files;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function runVerifier(receiptFile, jwksFile) {
|
|
260
|
+
const verifier = path.join(CONSUMER, "node_modules", "@strixgov", "verifier", "bin", "verify.mjs");
|
|
261
|
+
return spawnSync(process.execPath, [verifier, "chain", receiptFile, "--jwks", jwksFile], {
|
|
262
|
+
cwd: CONSUMER,
|
|
263
|
+
encoding: "utf8",
|
|
264
|
+
timeout: 20_000,
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
async function writeEvidenceFiles({ storagePath, firstKid, lastKid, policyBundle }) {
|
|
269
|
+
const runtimeFiles = await walkFiles(storagePath);
|
|
270
|
+
const receiptSource = runtimeFiles.find((file) => path.basename(file) === "receipts.jsonl");
|
|
271
|
+
const jwksSource = runtimeFiles.find((file) => path.basename(file) === "public-jwk.json");
|
|
272
|
+
assert.ok(receiptSource, `No persisted receipts.jsonl found under ${storagePath}`);
|
|
273
|
+
assert.ok(jwksSource, `No public-jwk.json found under ${storagePath}`);
|
|
274
|
+
await fs.mkdir(EVIDENCE_DIR, { recursive: true });
|
|
275
|
+
const receiptFile = path.join(EVIDENCE_DIR, "receipts.jsonl");
|
|
276
|
+
const jwksFile = path.join(EVIDENCE_DIR, "public-jwk.json");
|
|
277
|
+
await fs.copyFile(receiptSource, receiptFile);
|
|
278
|
+
await fs.copyFile(jwksSource, jwksFile);
|
|
279
|
+
|
|
280
|
+
const verification = runVerifier(receiptFile, jwksFile);
|
|
281
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "verifier-chain.stdout.txt"), verification.stdout ?? "");
|
|
282
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "verifier-chain.stderr.txt"), verification.stderr ?? "");
|
|
283
|
+
assert.equal(verification.status, 0, `Published verifier rejected the untampered receipt chain: ${verification.stdout}\n${verification.stderr}`);
|
|
284
|
+
|
|
285
|
+
const receiptRows = (await fs.readFile(receiptFile, "utf8")).trim().split("\n").map((line) => JSON.parse(line));
|
|
286
|
+
const outcomesSource = runtimeFiles.find((file) => path.basename(file) === "execution-outcomes.jsonl");
|
|
287
|
+
assert.ok(outcomesSource, `No persisted execution-outcomes.jsonl found under ${storagePath}`);
|
|
288
|
+
const outcomesFile = path.join(EVIDENCE_DIR, "execution-outcomes.jsonl");
|
|
289
|
+
await fs.copyFile(outcomesSource, outcomesFile);
|
|
290
|
+
const outcomeRows = (await fs.readFile(outcomesFile, "utf8")).trim().split("\n").map((line) => JSON.parse(line));
|
|
291
|
+
const receiptsById = new Map(receiptRows.map((receipt) => [receipt.receiptId, receipt]));
|
|
292
|
+
const jwks = JSON.parse(await fs.readFile(jwksFile, "utf8"));
|
|
293
|
+
const outcomeChecks = outcomeRows.map((outcome) => {
|
|
294
|
+
const authorizationReceipt = receiptsById.get(outcome.authorizationReceiptId);
|
|
295
|
+
return {
|
|
296
|
+
outcomeId: outcome.outcomeId,
|
|
297
|
+
executionStatus: outcome.executionStatus,
|
|
298
|
+
verification: verifyExecutionOutcomeRecord(outcome, {
|
|
299
|
+
jwks: { keys: [jwks] },
|
|
300
|
+
authorizationReceipt,
|
|
301
|
+
}),
|
|
302
|
+
};
|
|
303
|
+
});
|
|
304
|
+
assert.ok(outcomeChecks.length > 0, "Expected at least one signed execution outcome");
|
|
305
|
+
assert.ok(outcomeChecks.every((check) => check.verification.verificationStatus === "VERIFIED"),
|
|
306
|
+
`Independent execution-outcome verification failed: ${JSON.stringify(outcomeChecks)}`);
|
|
307
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "execution-outcome-verification.json"), `${JSON.stringify(outcomeChecks, null, 2)}\n`);
|
|
308
|
+
|
|
309
|
+
const originalLines = (await fs.readFile(receiptFile, "utf8")).trim().split("\n");
|
|
310
|
+
assert.ok(originalLines.length >= 2, "Expected multiple receipts to prove persisted history/restart");
|
|
311
|
+
const first = JSON.parse(originalLines[0]);
|
|
312
|
+
assert.ok(typeof first.signature === "string" && first.signature.length > 4, "First receipt has no signature");
|
|
313
|
+
first.signature = `${first.signature[0] === "A" ? "B" : "A"}${first.signature.slice(1)}`;
|
|
314
|
+
originalLines[0] = JSON.stringify(first);
|
|
315
|
+
const tamperedFile = path.join(EVIDENCE_DIR, "tampered-receipts.jsonl");
|
|
316
|
+
await fs.writeFile(tamperedFile, `${originalLines.join("\n")}\n`);
|
|
317
|
+
const tamperCheck = runVerifier(tamperedFile, jwksFile);
|
|
318
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "verifier-tamper.stdout.txt"), tamperCheck.stdout ?? "");
|
|
319
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "verifier-tamper.stderr.txt"), tamperCheck.stderr ?? "");
|
|
320
|
+
assert.notEqual(tamperCheck.status, 0, "Published verifier accepted a tampered signature");
|
|
321
|
+
|
|
322
|
+
assert.equal(firstKid, lastKid, "Proxy restart changed the receipt signing key unexpectedly");
|
|
323
|
+
assert.equal(jwks.kid, firstKid, "Published JWK does not match receipt signing key");
|
|
324
|
+
|
|
325
|
+
const packageManifest = {
|
|
326
|
+
createdAt: new Date().toISOString(),
|
|
327
|
+
node: process.version,
|
|
328
|
+
npmUserAgent: process.env.npm_config_user_agent ?? null,
|
|
329
|
+
gitCommit: process.env.STRIX_GIT_COMMIT ?? null,
|
|
330
|
+
gitBranch: process.env.STRIX_GIT_BRANCH ?? null,
|
|
331
|
+
consumerPath: CONSUMER,
|
|
332
|
+
fixture: "in-memory GitHub-shaped MCP server; no GitHub network calls or credentials",
|
|
333
|
+
upstreamServer: {
|
|
334
|
+
name: "strix-offline-github-fixture",
|
|
335
|
+
version: "1.0.0",
|
|
336
|
+
transport: "MCP InMemoryTransport",
|
|
337
|
+
externalGitHubProcess: false,
|
|
338
|
+
},
|
|
339
|
+
packages: await packageVersions(),
|
|
340
|
+
};
|
|
341
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "environment-manifest.json"), `${JSON.stringify(packageManifest, null, 2)}\n`);
|
|
342
|
+
const policyEvidence = {
|
|
343
|
+
policies: Object.fromEntries(Object.entries(policyBundle).map(([name, policy]) => [name, {
|
|
344
|
+
policy,
|
|
345
|
+
policyRevision: computePolicyVersion(policy),
|
|
346
|
+
}])),
|
|
347
|
+
capabilities: githubCapabilities.map(({ id, name, risk, mode }) => ({ id, name, risk, mode })),
|
|
348
|
+
};
|
|
349
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "policy-and-capabilities.json"), `${JSON.stringify(policyEvidence, null, 2)}\n`);
|
|
350
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "scenario-results.json"), `${JSON.stringify({
|
|
351
|
+
completeAcceptance: false,
|
|
352
|
+
releaseReady: false,
|
|
353
|
+
scenarios: scenarioResults,
|
|
354
|
+
blockers: [
|
|
355
|
+
"Published MCP proxy does not wire Mode-3 execution authorization.",
|
|
356
|
+
"The GitHub merge PEP is source-reference-only and has no production caller.",
|
|
357
|
+
"Official GitHub MCP merge input lacks an atomic head-SHA precondition.",
|
|
358
|
+
"Current published verifier is 1.24.1; repository candidate 1.24.2 is unpublished.",
|
|
359
|
+
"Gateway is in-process; a separate service outage is not applicable to this demo topology.",
|
|
360
|
+
],
|
|
361
|
+
}, null, 2)}\n`);
|
|
362
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "fixture-executions.jsonl"), fixtureExecutions.map((entry) => JSON.stringify(entry)).join("\n") + "\n");
|
|
363
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "fixture-outcomes.jsonl"), fixtureOutcomes.map((entry) => JSON.stringify(entry)).join("\n") + "\n");
|
|
364
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "approval-requests.jsonl"), approvalRequests.map((entry) => JSON.stringify(entry)).join("\n") + "\n");
|
|
365
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "approval-responses-and-consumption.jsonl"), approvalRecords.map((entry) => JSON.stringify(entry)).join("\n") + "\n");
|
|
366
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "verifier-results.json"), `${JSON.stringify({ intactChainExitCode: verification.status, tamperedChainExitCode: tamperCheck.status, executionOutcomeCount: outcomeChecks.length, executionOutcomesVerified: outcomeChecks.length }, null, 2)}\n`);
|
|
367
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "run-boundary.txt"), [
|
|
368
|
+
"Synthetic local MCP fixture only. No GitHub credentials, server process, API call, repository access, or merge.",
|
|
369
|
+
`Receipts verified by published @strixgov/verifier@${(await packageVersions()).find((p) => p.name === "@strixgov/verifier").version}.`,
|
|
370
|
+
"A signed DENY receipt is interception evidence. A fixture execution log is only evidence of the in-memory fixture handler.",
|
|
371
|
+
"The fixture does not establish a GitHub merge or a production single-use execution grant.",
|
|
372
|
+
].join("\n") + "\n");
|
|
373
|
+
|
|
374
|
+
const evidenceFiles = (await fs.readdir(EVIDENCE_DIR)).filter((name) => name !== "sha256sums.txt").sort();
|
|
375
|
+
const sums = [];
|
|
376
|
+
for (const name of evidenceFiles) {
|
|
377
|
+
const bytes = await fs.readFile(path.join(EVIDENCE_DIR, name));
|
|
378
|
+
sums.push(`${crypto.createHash("sha256").update(bytes).digest("hex")} ${name}`);
|
|
379
|
+
}
|
|
380
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "sha256sums.txt"), sums.join("\n") + "\n");
|
|
381
|
+
console.log(`Evidence directory: ${EVIDENCE_DIR}`);
|
|
382
|
+
console.log(`Published verifier chain check: PASS (${originalLines.length} receipts); tampered check: REJECTED as expected.`);
|
|
383
|
+
return { receipts: originalLines.length, evidenceDir: EVIDENCE_DIR };
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
async function main() {
|
|
387
|
+
await fs.mkdir(EVIDENCE_DIR, { recursive: true });
|
|
388
|
+
const runtimeRoot = await fs.mkdtemp(path.join(os.tmpdir(), "strix-github-reference-"));
|
|
389
|
+
const storePath = path.join(runtimeRoot, "proxy-store");
|
|
390
|
+
const guardHome = path.join(runtimeRoot, "guard-home");
|
|
391
|
+
const guardEnv = { ...process.env, STRIX_GUARD_HOME: guardHome };
|
|
392
|
+
const guardPathSet = guardPaths(guardHome);
|
|
393
|
+
const approver = await createApproverKey({
|
|
394
|
+
passphrase: PASS_PHRASE,
|
|
395
|
+
label: APPROVER_LABEL,
|
|
396
|
+
env: guardEnv,
|
|
397
|
+
});
|
|
398
|
+
const guardConfig = buildProxyConfig({
|
|
399
|
+
serverId: "github",
|
|
400
|
+
entry: { command: "@modelcontextprotocol/server-github", args: [] },
|
|
401
|
+
paths: { ...guardPathSet, receiptsDir: path.join(runtimeRoot, "guard-receipts") },
|
|
402
|
+
approver,
|
|
403
|
+
});
|
|
404
|
+
assert.equal(guardConfig.policy.riskOverrides.LOW, "ALLOW");
|
|
405
|
+
assert.equal(guardConfig.policy.default, "APPROVAL_REQUIRED");
|
|
406
|
+
guardConfig.approval.timeoutMs = APPROVAL_TIMEOUT_MS;
|
|
407
|
+
guardConfig.approval.pollIntervalMs = POLL_INTERVAL_MS;
|
|
408
|
+
guardConfig.approval.requestDir = guardPathSet.approvalsDir;
|
|
409
|
+
|
|
410
|
+
let firstKid;
|
|
411
|
+
let lastKid;
|
|
412
|
+
let initial;
|
|
413
|
+
try {
|
|
414
|
+
// GH-01/02/08: use Guard's GitHub pack and the published proxy/gateway.
|
|
415
|
+
initial = await buildFixtureStack({
|
|
416
|
+
policy: {
|
|
417
|
+
rules: {
|
|
418
|
+
"mcp.github.get_file_contents": "ALLOW",
|
|
419
|
+
"mcp.github.merge_pull_request": "DENY",
|
|
420
|
+
},
|
|
421
|
+
default: "DENY",
|
|
422
|
+
},
|
|
423
|
+
storagePath: storePath,
|
|
424
|
+
});
|
|
425
|
+
const readResult = await initial.consumer.callTool({
|
|
426
|
+
name: "get_file_contents",
|
|
427
|
+
arguments: { owner: FIXTURE_OWNER, repo: FIXTURE_REPO, path: "README.md", ref: "main" },
|
|
428
|
+
_meta: { strix_actor_id: TEST_ACTOR, strix_actor_role: "demo" },
|
|
429
|
+
});
|
|
430
|
+
assert.match(readResult.content?.[0]?.text ?? "", /FIXTURE README/);
|
|
431
|
+
assert.equal(fixtureExecutions.filter((x) => x.name === "get_file_contents").length, 1);
|
|
432
|
+
record("GH-01", "PASS_FIXTURE_ONLY", "published proxy allowed a read and returned local fixture contents");
|
|
433
|
+
|
|
434
|
+
const mergeArgs = { owner: FIXTURE_OWNER, repo: FIXTURE_REPO, pull_number: 47, merge_method: "squash" };
|
|
435
|
+
await expectDenied(initial.consumer.callTool({ name: "merge_pull_request", arguments: mergeArgs }), "GH-02 merge");
|
|
436
|
+
assert.equal(fixtureExecutions.filter((x) => x.name === "merge_pull_request").length, 0);
|
|
437
|
+
record("GH-02", "PASS_INTERCEPTED", "explicit DENY; signed proxy receipt emitted; zero fake-upstream merge invocations");
|
|
438
|
+
|
|
439
|
+
await expectDenied(initial.consumer.callTool({
|
|
440
|
+
name: "delete_repository",
|
|
441
|
+
arguments: { owner: FIXTURE_OWNER, repo: FIXTURE_REPO },
|
|
442
|
+
}), "GH-08 unclassified delete");
|
|
443
|
+
assert.equal(fixtureExecutions.filter((x) => x.name === "delete_repository").length, 0);
|
|
444
|
+
record("GH-08", "PASS_INTERCEPTED", "unclassified destructive tool denied by default; zero fake-upstream calls");
|
|
445
|
+
firstKid = initial.handle.signingKey.kid;
|
|
446
|
+
await initial.close();
|
|
447
|
+
initial = null;
|
|
448
|
+
|
|
449
|
+
// GH-03/05/06/07: signed Guard file approvals, still fixture-only.
|
|
450
|
+
let gated = await buildFixtureStack({
|
|
451
|
+
policy: guardConfig.policy,
|
|
452
|
+
approval: guardConfig.approval,
|
|
453
|
+
storagePath: storePath,
|
|
454
|
+
});
|
|
455
|
+
const baselineMergeArgs = { owner: FIXTURE_OWNER, repo: FIXTURE_REPO, pull_number: 47, merge_method: "squash" };
|
|
456
|
+
const mergePending = gated.consumer.callTool({ name: "merge_pull_request", arguments: baselineMergeArgs });
|
|
457
|
+
const [mergeRequestId] = await waitForRequests(guardEnv, 1);
|
|
458
|
+
const mergeRequest = await readRequest(guardEnv, mergeRequestId);
|
|
459
|
+
assert.equal(mergeRequest.capability.id, "mcp.github.merge_pull_request");
|
|
460
|
+
assert.deepEqual(mergeRequest.invocation.args, baselineMergeArgs);
|
|
461
|
+
assert.equal(fixtureExecutions.filter((x) => x.name === "merge_pull_request").length, 0);
|
|
462
|
+
await denyRequest(guardEnv, mergeRequestId);
|
|
463
|
+
await expectDenied(mergePending, "GH-03 denied pending merge");
|
|
464
|
+
await markApprovalConsumed(guardEnv, mergeRequestId, "DENIED_BEFORE_DISPATCH");
|
|
465
|
+
record("GH-03", "PASS_HELD_AND_DENIED", "exact owner/repo/PR/method request was held; zero merge invocations; synthetic reviewer denied it");
|
|
466
|
+
|
|
467
|
+
const changedMergeRequests = [
|
|
468
|
+
{ ...baselineMergeArgs, repo: "different-fixture" },
|
|
469
|
+
{ ...baselineMergeArgs, pull_number: 48 },
|
|
470
|
+
{ ...baselineMergeArgs, merge_method: "rebase" },
|
|
471
|
+
];
|
|
472
|
+
let changedRequestIds = [];
|
|
473
|
+
for (const changedArgs of changedMergeRequests) {
|
|
474
|
+
const pending = gated.consumer.callTool({ name: "merge_pull_request", arguments: changedArgs });
|
|
475
|
+
const [requestId] = await waitForRequests(guardEnv, 1);
|
|
476
|
+
const request = await readRequest(guardEnv, requestId);
|
|
477
|
+
assert.deepEqual(request.invocation.args, changedArgs);
|
|
478
|
+
assert.notEqual(requestId, mergeRequestId);
|
|
479
|
+
changedRequestIds.push(requestId);
|
|
480
|
+
await denyRequest(guardEnv, requestId, "CHANGED_PAYLOAD_REQUIRES_NEW_DECISION");
|
|
481
|
+
await expectDenied(pending, "GH-05 changed merge request");
|
|
482
|
+
await markApprovalConsumed(guardEnv, requestId, "DENIED_BEFORE_DISPATCH");
|
|
483
|
+
}
|
|
484
|
+
assert.equal(fixtureExecutions.filter((x) => x.name === "merge_pull_request").length, 0);
|
|
485
|
+
record("GH-05", "PARTIAL_BLOCKED", "changed repo/PR/method calls obtained fresh request IDs; official tool has no target-branch/head-SHA argument and no integrated execution grant");
|
|
486
|
+
|
|
487
|
+
const branchArgs = {
|
|
488
|
+
owner: FIXTURE_OWNER,
|
|
489
|
+
repo: FIXTURE_REPO,
|
|
490
|
+
branch: "demo-only/created-once",
|
|
491
|
+
from_branch: "main",
|
|
492
|
+
};
|
|
493
|
+
const branchPending = gated.consumer.callTool({ name: "create_branch", arguments: branchArgs });
|
|
494
|
+
const [branchRequestId] = await waitForRequests(guardEnv, 1);
|
|
495
|
+
const branchRequest = await readRequest(guardEnv, branchRequestId);
|
|
496
|
+
assert.equal(branchRequest.capability.id, "mcp.github.create_branch");
|
|
497
|
+
await approveRequest(guardEnv, branchRequestId);
|
|
498
|
+
const branchResult = await branchPending;
|
|
499
|
+
await markApprovalConsumed(guardEnv, branchRequestId, "APPROVED_AND_FIXTURE_DISPATCHED");
|
|
500
|
+
assert.match(branchResult.content?.[0]?.text ?? "", /FIXTURE_WRITE_SUCCEEDED/);
|
|
501
|
+
const afterOneBranch = fixtureExecutions.filter((x) => x.name === "create_branch").length;
|
|
502
|
+
assert.equal(afterOneBranch, 1);
|
|
503
|
+
record("GH-06", "PARTIAL_APPROVAL_FILE_LAYER", "one exact signed Guard approval released one in-memory create_branch fixture call; fixture outcome only");
|
|
504
|
+
|
|
505
|
+
const replayPending = gated.consumer.callTool({ name: "create_branch", arguments: branchArgs });
|
|
506
|
+
const [replayRequestId] = await waitForRequests(guardEnv, 1);
|
|
507
|
+
assert.notEqual(replayRequestId, branchRequestId);
|
|
508
|
+
assert.equal(fixtureExecutions.filter((x) => x.name === "create_branch").length, afterOneBranch);
|
|
509
|
+
await denyRequest(guardEnv, replayRequestId, "REPLAY_REQUIRES_NEW_APPROVAL");
|
|
510
|
+
await expectDenied(replayPending, "GH-06 replay request");
|
|
511
|
+
await markApprovalConsumed(guardEnv, replayRequestId, "DENIED_REPLAY_REQUIRES_NEW_APPROVAL");
|
|
512
|
+
assert.equal(fixtureExecutions.filter((x) => x.name === "create_branch").length, afterOneBranch);
|
|
513
|
+
|
|
514
|
+
const raceArgs = { ...branchArgs, branch: "demo-only/race" };
|
|
515
|
+
const beforeRace = fixtureExecutions.filter((x) => x.name === "create_branch").length;
|
|
516
|
+
const raceOne = gated.consumer.callTool({ name: "create_branch", arguments: raceArgs });
|
|
517
|
+
const raceTwo = gated.consumer.callTool({ name: "create_branch", arguments: raceArgs });
|
|
518
|
+
const raceIds = await waitForRequests(guardEnv, 2);
|
|
519
|
+
assert.equal(new Set(raceIds).size, 2, "Concurrent requests must have distinct request IDs");
|
|
520
|
+
await Promise.all([
|
|
521
|
+
approveRequest(guardEnv, raceIds[0]),
|
|
522
|
+
denyRequest(guardEnv, raceIds[1], "ONLY_ONE_SYNTHETIC_APPROVAL"),
|
|
523
|
+
]);
|
|
524
|
+
const raceOutcomes = await Promise.all([waitSettled(raceOne), waitSettled(raceTwo)]);
|
|
525
|
+
assert.equal(raceOutcomes.filter((x) => x.state === "fulfilled").length, 1);
|
|
526
|
+
assert.equal(fixtureExecutions.filter((x) => x.name === "create_branch").length - beforeRace, 1);
|
|
527
|
+
await markApprovalConsumed(guardEnv, raceIds[0], "APPROVED_AND_FIXTURE_DISPATCHED");
|
|
528
|
+
await markApprovalConsumed(guardEnv, raceIds[1], "DENIED_BEFORE_DISPATCH");
|
|
529
|
+
record("GH-07", "PARTIAL_APPROVAL_FILE_LAYER", "two concurrent fixture calls received distinct signed-approval request IDs; one approved, one denied, exactly one fixture invocation");
|
|
530
|
+
lastKid = gated.handle.signingKey.kid;
|
|
531
|
+
await gated.close();
|
|
532
|
+
gated = null;
|
|
533
|
+
|
|
534
|
+
// GH-09: invalid policy fails before a call can be dispatched.
|
|
535
|
+
let invalidPolicyStack;
|
|
536
|
+
let invalidPolicyRejected = false;
|
|
537
|
+
try {
|
|
538
|
+
invalidPolicyStack = await buildFixtureStack({
|
|
539
|
+
policy: { rules: {}, default: "NOT_A_POLICY_DECISION" },
|
|
540
|
+
storagePath: storePath,
|
|
541
|
+
});
|
|
542
|
+
} catch {
|
|
543
|
+
invalidPolicyRejected = true;
|
|
544
|
+
} finally {
|
|
545
|
+
if (invalidPolicyStack) await invalidPolicyStack.close();
|
|
546
|
+
}
|
|
547
|
+
assert.ok(invalidPolicyRejected, "Invalid policy must fail closed at proxy startup");
|
|
548
|
+
record("GH-09-policy", "PASS_FAIL_CLOSED", "invalid policy rejected at startup before downstream dispatch");
|
|
549
|
+
|
|
550
|
+
const blockedApprovalPath = path.join(runtimeRoot, "not-a-directory");
|
|
551
|
+
await fs.writeFile(blockedApprovalPath, "not a directory");
|
|
552
|
+
const failedStoreConfig = {
|
|
553
|
+
...guardConfig.approval,
|
|
554
|
+
requestDir: blockedApprovalPath,
|
|
555
|
+
timeoutMs: 200,
|
|
556
|
+
pollIntervalMs: POLL_INTERVAL_MS,
|
|
557
|
+
};
|
|
558
|
+
const failedStore = await buildFixtureStack({
|
|
559
|
+
policy: { default: "APPROVAL_REQUIRED" },
|
|
560
|
+
approval: failedStoreConfig,
|
|
561
|
+
storagePath: storePath,
|
|
562
|
+
});
|
|
563
|
+
try {
|
|
564
|
+
await expectDenied(failedStore.consumer.callTool({
|
|
565
|
+
name: "create_branch",
|
|
566
|
+
arguments: { ...branchArgs, branch: "demo-only/store-unavailable" },
|
|
567
|
+
}), "GH-09 unavailable approval store");
|
|
568
|
+
assert.equal(fixtureExecutions.filter((x) => x.args?.branch === "demo-only/store-unavailable").length, 0);
|
|
569
|
+
} finally {
|
|
570
|
+
await failedStore.close();
|
|
571
|
+
}
|
|
572
|
+
record("GH-09-approval-store", "PASS_FAIL_CLOSED", "unwritable approval request path refused the call before the fixture handler");
|
|
573
|
+
record("GH-09-gateway", "NOT_APPLICABLE_TO_LOCAL_TOPOLOGY", "the gateway executes in-process; this architecture has no separate remote gateway service to disconnect");
|
|
574
|
+
|
|
575
|
+
// GH-11 restart: re-open the same receipt store and key, then read again.
|
|
576
|
+
const restarted = await buildFixtureStack({
|
|
577
|
+
policy: { rules: { "mcp.github.get_file_contents": "ALLOW" }, default: "DENY" },
|
|
578
|
+
storagePath: storePath,
|
|
579
|
+
});
|
|
580
|
+
try {
|
|
581
|
+
const restartRead = await restarted.consumer.callTool({
|
|
582
|
+
name: "get_file_contents",
|
|
583
|
+
arguments: { owner: FIXTURE_OWNER, repo: FIXTURE_REPO, path: "README.md", ref: "main" },
|
|
584
|
+
});
|
|
585
|
+
assert.match(restartRead.content?.[0]?.text ?? "", /FIXTURE README/);
|
|
586
|
+
lastKid = restarted.handle.signingKey.kid;
|
|
587
|
+
} finally {
|
|
588
|
+
await restarted.close();
|
|
589
|
+
}
|
|
590
|
+
record("GH-11", "PASS_LOCAL_PERSISTENCE", "proxy restarted with the same storage and key; earlier receipts were retained for independent verification");
|
|
591
|
+
|
|
592
|
+
// GH-12 direct-route limitation: bypass only the local fixture proxy.
|
|
593
|
+
const direct = await buildFixtureStack({ policy: { default: "DENY" }, storagePath: storePath });
|
|
594
|
+
try {
|
|
595
|
+
const receiptCountBefore = direct.receipts.length;
|
|
596
|
+
const beforeDirect = fixtureExecutions.length;
|
|
597
|
+
await direct.upstreamClient.callTool({
|
|
598
|
+
name: "merge_pull_request",
|
|
599
|
+
arguments: { owner: FIXTURE_OWNER, repo: FIXTURE_REPO, pull_number: 47, merge_method: "squash" },
|
|
600
|
+
});
|
|
601
|
+
assert.equal(fixtureExecutions.length, beforeDirect + 1);
|
|
602
|
+
assert.equal(direct.receipts.length, receiptCountBefore);
|
|
603
|
+
} finally {
|
|
604
|
+
await direct.close();
|
|
605
|
+
}
|
|
606
|
+
record("GH-12", "LIMITATION_DEMONSTRATED", "direct test client invoked the in-memory upstream without a proxy receipt; no credentials or live route exist in this test estate");
|
|
607
|
+
|
|
608
|
+
record("GH-04", "BLOCKED", "no merge was approved or executed: published MCP mode 3 is unwired, PEP is reference-only, and the official merge surface lacks an atomic full-head-SHA parameter");
|
|
609
|
+
assert.equal(fixtureExecutions.filter((x) => x.name === "merge_pull_request").length, 1,
|
|
610
|
+
"The only merge fixture invocation should be the explicit GH-12 direct-route coverage demonstration");
|
|
611
|
+
|
|
612
|
+
const files = await walkFiles(storePath);
|
|
613
|
+
const receiptFile = files.find((file) => path.basename(file) === "receipts.jsonl");
|
|
614
|
+
assert.ok(receiptFile);
|
|
615
|
+
const receiptRows = (await fs.readFile(receiptFile, "utf8")).trim().split("\n").map((line) => JSON.parse(line));
|
|
616
|
+
assert.ok(receiptRows.length >= 6, `Expected several signed receipt records, got ${receiptRows.length}`);
|
|
617
|
+
assert.ok(receiptRows.every((row) => row.signature), "Every stored proxy receipt must have a signature");
|
|
618
|
+
await writeEvidenceFiles({
|
|
619
|
+
storagePath: storePath,
|
|
620
|
+
firstKid,
|
|
621
|
+
lastKid,
|
|
622
|
+
policyBundle: {
|
|
623
|
+
explicitDeny: {
|
|
624
|
+
rules: { "mcp.github.get_file_contents": "ALLOW", "mcp.github.merge_pull_request": "DENY" },
|
|
625
|
+
default: "DENY",
|
|
626
|
+
},
|
|
627
|
+
guardApproval: guardConfig.policy,
|
|
628
|
+
},
|
|
629
|
+
});
|
|
630
|
+
record("GH-10", "PASS_TAMPER_DETECTED", "published verifier 1.24.1 accepted the intact chain and rejected the altered signature");
|
|
631
|
+
} finally {
|
|
632
|
+
if (initial) await initial.close();
|
|
633
|
+
await fs.rm(runtimeRoot, { recursive: true, force: true });
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
const summary = {
|
|
637
|
+
completeAcceptance: false,
|
|
638
|
+
releaseReady: false,
|
|
639
|
+
scenarioCount: scenarioResults.length,
|
|
640
|
+
results: scenarioResults,
|
|
641
|
+
evidenceDir: EVIDENCE_DIR,
|
|
642
|
+
executionBoundary: "All upstream operations were in-memory synthetic fixtures. No real GitHub merge or API operation occurred.",
|
|
643
|
+
};
|
|
644
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "summary.json"), `${JSON.stringify(summary, null, 2)}\n`);
|
|
645
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "scenario-results.json"), `${JSON.stringify({
|
|
646
|
+
completeAcceptance: false,
|
|
647
|
+
releaseReady: false,
|
|
648
|
+
scenarios: scenarioResults,
|
|
649
|
+
blockers: [
|
|
650
|
+
"Published MCP proxy does not wire Mode-3 execution authorization.",
|
|
651
|
+
"The GitHub merge PEP is source-reference-only and has no production caller.",
|
|
652
|
+
"Official GitHub MCP merge input lacks an atomic head-SHA precondition.",
|
|
653
|
+
"Current published verifier is 1.24.1; repository candidate 1.24.2 is unpublished.",
|
|
654
|
+
"Gateway is in-process; a separate service outage is not applicable to this demo topology.",
|
|
655
|
+
],
|
|
656
|
+
}, null, 2)}\n`);
|
|
657
|
+
const finalEvidenceFiles = (await fs.readdir(EVIDENCE_DIR)).filter((name) => name !== "sha256sums.txt").sort();
|
|
658
|
+
const finalSums = [];
|
|
659
|
+
for (const name of finalEvidenceFiles) {
|
|
660
|
+
const bytes = await fs.readFile(path.join(EVIDENCE_DIR, name));
|
|
661
|
+
finalSums.push(`${crypto.createHash("sha256").update(bytes).digest("hex")} ${name}`);
|
|
662
|
+
}
|
|
663
|
+
await fs.writeFile(path.join(EVIDENCE_DIR, "sha256sums.txt"), finalSums.join("\n") + "\n");
|
|
664
|
+
console.log(`Summary: ${EVIDENCE_DIR}/summary.json`);
|
|
665
|
+
console.log("FULL ACCEPTANCE: BLOCKED — this fixture verifies only the existing published Mode-1/2 proxy path.");
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
await main();
|