fix(ci): restore qualification and reduce validation overhead

Use one typed-checker worker by default without changing semantic scope or caller overrides. Reuse the bounded CLI worker for pure argument validation while retaining fresh-process coverage and all upstream cases.

Keep registration tests independent of real package-runner downloads while asserting the actual prewarm command and startup context. Pass the advertised binary_session definition by name to package verification, retaining default SDK validation and complete catalog/contract checks while avoiding compilation of unrelated tool outputs. Preserve all four installed-tarball scenarios and existing deadlines.

Strengthen Hermes preview operation/backup assertions and clarify physical-path routing documentation.

Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
This commit is contained in:
gensokyo-dev authored and GitHub committed 2026-10-28 00:20:07 +08:00
1 parent bcc6775dc1
commit 6eb37a7749
10 files changed
+314 -73

No files matched your search

+2 -1
View File
@@ -91,7 +91,8 @@ try {
typed
? {
...process.env,
GOMAXPROCS: process.env.GOMAXPROCS ?? "2",
// One worker reuses its checker caches across the full file queue.
GOMAXPROCS: process.env.GOMAXPROCS ?? "1",
GOMEMLIMIT: process.env.GOMEMLIMIT ?? "1024MiB",
}
: process.env,
+8 -1
View File
@@ -36,9 +36,16 @@ export const verifyCompleteToolCatalog = async (client, options) => {
);
}
}
const sessionDefinition = listed.tools.find(
({ name }) => name === "binary_session",
);
if (sessionDefinition === undefined)
throw new Error("packaged MCP omitted the binary_session definition");
const status = await client.callTool(
{ name: "binary_session", arguments: {} },
options,
// The SDK otherwise compiles every listed output schema on the first call.
// Keep its default validation for the actual named tool being exercised.
{ ...options, toolDefinition: sessionDefinition },
);
const expanded = requireMcpLifecycleResult(status, "binary_session");
const availability = expanded.tool_availability;