refactor: remove cross-version investigation workflow

This commit is contained in:
morluto
2026-09-29 08:06:43 +08:00
parent 0d96275b68
commit 81996df7a5
42 changed files with 66 additions and 3750 deletions
+1 -30
View File
@@ -1,4 +1,3 @@
import { readFile } from "node:fs/promises";
import { join } from "node:path";
import { execFile } from "node:child_process";
import { promisify } from "node:util";
@@ -17,28 +16,6 @@ const verifyMcpToolsAndPrompts = async (client, mcpOptions) => {
await prompts.verifyPromptCompletion(client, mcpOptions, false);
};
const verifyMcpReplay = async (client, mcpOptions, investigationReplay) => {
const replay = await client.callTool(
{
name: "find_changed_behavior",
arguments: { investigation_run: investigationReplay.arguments },
},
mcpOptions,
);
const replayEvidence = json(prompts.mcpText(replay));
const replayWorkspace = json(
await readFile(investigationReplay.workspacePath, "utf8"),
);
if (
replay.isError === true ||
replayEvidence.evidence_id !== investigationReplay.evidenceId ||
replayWorkspace.revision !== investigationReplay.revision
)
throw new Error(
"packaged MCP did not replay with workspace-only authority",
);
};
const verifyMcpTargetFree = async (client, mcpOptions) => {
const status = await client.callTool(
{ name: "binary_session", arguments: {} },
@@ -179,12 +156,7 @@ const verifyMcpEvidenceBundle = async (client, mcpOptions, evidenceRoot) => {
};
/** Connect to the packaged MCP server and exercise the target-free catalog. */
export async function verifyPackageMcp({
cli,
environment,
evidenceRoot,
investigationReplay,
}) {
export async function verifyPackageMcp({ cli, environment, evidenceRoot }) {
const diagnosed = json(
(
await execute(cli, ["mcp", "doctor", "--json"], {
@@ -216,7 +188,6 @@ export async function verifyPackageMcp({
await client.connect(transport);
const mcpOptions = { timeout: 15_000 };
await verifyMcpToolsAndPrompts(client, mcpOptions);
await verifyMcpReplay(client, mcpOptions, investigationReplay);
await verifyMcpTargetFree(client, mcpOptions);
await verifyMcpUnknownProvider(client, mcpOptions);
await verifyMcpBinaryLifecycle(client, mcpOptions);