From 8fc0e6c48f2489a2c71050c20e5d60aa0b97a894 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 2 Nov 2026 17:36:14 +0000 Subject: [PATCH 1/4] chore(deps): drop the unused claude-agent-sdk-research-292 alias The root devDependency installed a second, older Agent SDK and its eight native platform packages for the mechanical-hygiene research harness, which #1542 removed. Nothing imports it any more. The lockfile refresh is a plain `bun install`, not a rebuild: the shipped SDK stays at 0.3.293 and its platform packages move from nested to hoisted entries with unchanged integrity hashes. Refs #2509 Co-Authored-By: Claude Opus 5.5 --- bun.lock | 35 ++++++------------------ package.json | 1 - tests/shipped-claude-runtime-pin.test.ts | 6 ++-- 3 files changed, 11 insertions(+), 31 deletions(-) diff --git a/bun.lock b/bun.lock index d1de3771f2..3f76ede043 100644 --- a/bun.lock +++ b/bun.lock @@ -9,7 +9,6 @@ "@modelcontextprotocol/sdk": "^1.29.0", "@types/bun": "^1.4.2", "axe-core": "^4.13.0", - "claude-agent-sdk-research-292": "npm:@anthropic-ai/claude-agent-sdk@0.3.292", "github-slugger": "^2.0.0", "mdast-util-to-string": "^4.0.0", "oxlint": "^1.79.0", @@ -503,21 +502,21 @@ "@anthropic-ai/claude-agent-sdk": ["@anthropic-ai/claude-agent-sdk@0.3.293", "", { "optionalDependencies": { "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.293", "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.293", "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.293", "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.293", "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.293", "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.293", "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.293", "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.293" }, "peerDependencies": { "@anthropic-ai/sdk": ">=0.93.0", "@modelcontextprotocol/sdk": "^1.29.0", "zod": "^4.0.0" } }, "sha512-DVfn46SmpfB7xaKuUHsAC+qwY27hOLHNbvF7FoNOAXLZPRTeCr68SjhBjlFOtk+jz5Nf7pfUwnIUDFcdVih6Dg=="], - "@anthropic-ai/claude-agent-sdk-darwin-arm64": ["@anthropic-ai/claude-agent-sdk-darwin-arm64@0.3.292", "", { "os": "darwin", "cpu": "arm64" }, "sha512-VbE0eqQoAast5oQW0ZQleVkX/hJhjuTJfVrFlTlF7b7gdybl08UguRugezVS8fAZfePVo0rJYAnkafxL0API+g=="], + "@anthropic-ai/claude-agent-sdk-darwin-arm64": ["@anthropic-ai/claude-agent-sdk-darwin-arm64@0.3.293", "", { "os": "darwin", "cpu": "arm64" }, "sha512-E2rwiiHr3LwYzBuTROVDpJkts4QmYCrW39ZIN1qixVSNQhSEiz5LjaKxzrwq0xgPgQDU0vd2fLMG1k72BgD24w=="], - "@anthropic-ai/claude-agent-sdk-darwin-x64": ["@anthropic-ai/claude-agent-sdk-darwin-x64@0.3.292", "", { "os": "darwin", "cpu": "x64" }, "sha512-z1ChVMQC5uFrCsMUleQ67B1w+v8vLJNoHjl/qowv0DqVbTLWQ8Qz1ejQWdrZPezdT10BTpyss8kNf8G4wOrsOA=="], + "@anthropic-ai/claude-agent-sdk-darwin-x64": ["@anthropic-ai/claude-agent-sdk-darwin-x64@0.3.293", "", { "os": "darwin", "cpu": "x64" }, "sha512-UJD8kX1XDhMqs/0LLxD012h+S9U3Q8XPbRSNcnPQEMNAoEF+lh898xPbVnkUgPKl3jUOUyqYRwFRwDiUJD+GJg=="], - "@anthropic-ai/claude-agent-sdk-linux-arm64": ["@anthropic-ai/claude-agent-sdk-linux-arm64@0.3.292", "", { "os": "linux", "cpu": "arm64" }, "sha512-ziGXVP0Kjjg531fUNZh/1lkT8MQKc77qFinqvQ7N7ZbR7Kr/wVRhs3kSb2s7A1+z/3TNsPiQJManEmbw61U+Hw=="], + "@anthropic-ai/claude-agent-sdk-linux-arm64": ["@anthropic-ai/claude-agent-sdk-linux-arm64@0.3.293", "", { "os": "linux", "cpu": "arm64" }, "sha512-B3M5gw6pPH/ckMtrLtGg4ZY1adLVnPoXkEV+Ruu0j/gdFzwuLWR64Spa0RCsbo7BXVN6w5NTqkuZk+HBfsPUZA=="], - "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": ["@anthropic-ai/claude-agent-sdk-linux-arm64-musl@0.3.292", "", { "os": "linux", "cpu": "arm64" }, "sha512-6UIxxeHsQQcHheip8P+6q1kf5UQ1D7RJgso423IZeMjyBX1pMlX6LII8b59/1sBfaO1Q5YZ8JKDGr7f4+GtE0A=="], + "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": ["@anthropic-ai/claude-agent-sdk-linux-arm64-musl@0.3.293", "", { "os": "linux", "cpu": "arm64" }, "sha512-l5Nfwox69bBMEccSQfPQFOq9hbSqQIMsi4H/UXaMSsqgnxunXuKEBXb5klXZJwk4vUt/NzeqAjB/UFbKqW29HQ=="], - "@anthropic-ai/claude-agent-sdk-linux-x64": ["@anthropic-ai/claude-agent-sdk-linux-x64@0.3.292", "", { "os": "linux", "cpu": "x64" }, "sha512-dnMVyLxpg8mUzEqAtxhv+5oBxdiYjCLIBHLPFM4z7cuk+Se6SwgyHPRGipp8rOociJBS8yyB7QXJh+RO41y+Kg=="], + "@anthropic-ai/claude-agent-sdk-linux-x64": ["@anthropic-ai/claude-agent-sdk-linux-x64@0.3.293", "", { "os": "linux", "cpu": "x64" }, "sha512-MtqXROSQiuqOCNXfC4k3/3DVfgTNLEdaT5jp/omaZeiPtnRtfCz2KTtBTVG4IwbEDFaKsqfzPsPFzN7X6avwkg=="], - "@anthropic-ai/claude-agent-sdk-linux-x64-musl": ["@anthropic-ai/claude-agent-sdk-linux-x64-musl@0.3.292", "", { "os": "linux", "cpu": "x64" }, "sha512-5XA1nW1/OAUBxaJNFmttfJov9CrqYanOqlmP6yvXWx+iSEWKICNv2ghnnipYEJXUeof6JjZlarS8IHaJol1trA=="], + "@anthropic-ai/claude-agent-sdk-linux-x64-musl": ["@anthropic-ai/claude-agent-sdk-linux-x64-musl@0.3.293", "", { "os": "linux", "cpu": "x64" }, "sha512-5N30l2Y17ZV9q0TGCMXtrkTleX+RVtUMoOL+48qQ7ZrKWGYYBtVDS59cIXDv+TAGqoyYVmklw0W2Sy4dA40BwQ=="], - "@anthropic-ai/claude-agent-sdk-win32-arm64": ["@anthropic-ai/claude-agent-sdk-win32-arm64@0.3.292", "", { "os": "win32", "cpu": "arm64" }, "sha512-feA6NlAVnbGBGgnJ6VkYldofuCwW5H6wt+6sWuLDVIasn013X3sWrCSS4awseN3tyey4/0UKG/+ElNATaZaN4w=="], + "@anthropic-ai/claude-agent-sdk-win32-arm64": ["@anthropic-ai/claude-agent-sdk-win32-arm64@0.3.293", "", { "os": "win32", "cpu": "arm64" }, "sha512-WvPf8cXna446bTx2U4WVQc5+iUgDn94ve8aauvWwcG8n9oa+1wNCKNGFxk8HvS7DQJhF8dfrCbcF068uNFqYNw=="], - "@anthropic-ai/claude-agent-sdk-win32-x64": ["@anthropic-ai/claude-agent-sdk-win32-x64@0.3.292", "", { "os": "win32", "cpu": "x64" }, "sha512-hIXHmaaV1FIH7AVhw7PFX7TW13hPRGsSj/wP/Bio9N03sqbaOg6lLidKn4qC8xtvAlDTpC+6nGieLjjQQB7SwA=="], + "@anthropic-ai/claude-agent-sdk-win32-x64": ["@anthropic-ai/claude-agent-sdk-win32-x64@0.3.293", "", { "os": "win32", "cpu": "x64" }, "sha512-SVaIDHtpCwM0r0m9jzue1U7yktIZ1eJhR1O3e0UCHYTJluaIXty5m6DzqhG4rjnEoNlEAl9rQLqPigS/R5+IiQ=="], "@anthropic-ai/sdk": ["@anthropic-ai/sdk@0.124.0", "", { "dependencies": { "json-schema-to-ts": "^3.1.1", "standardwebhooks": "^1.0.0" }, "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["zod"], "bin": { "anthropic-ai-sdk": "bin/cli" } }, "sha512-cN5O8i9UVxHeOQAzj/XjshWXG8KiibJDw9OGpH2Z/eR3n/RBxdoLxDJOcfqAJWvjaMDFfHTBADU04hWRJVkDyA=="], @@ -1479,8 +1478,6 @@ "chromium-bidi": ["chromium-bidi@17.0.2", "", { "dependencies": { "mitt": "^3.0.1", "zod": "^3.24.1" }, "peerDependencies": { "devtools-protocol": "*" } }, "sha512-5v9GQFhTktFvotn/OFNJBmKLKRAb6n9r0bVCwf7sHgWc3/JryK0bj1nn93L3pHFrfgcsu6Be6EWsDi+1XHTGDg=="], - "claude-agent-sdk-research-292": ["@anthropic-ai/claude-agent-sdk@0.3.292", "", { "optionalDependencies": { "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.292", "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.292", "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.292", "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.292", "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.292", "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.292", "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.292", "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.292" }, "peerDependencies": { "@anthropic-ai/sdk": ">=0.93.0", "@modelcontextprotocol/sdk": "^1.29.0", "zod": "^4.0.0" } }, "sha512-C5XI/19uArTg3jjgayN9CSQxJilRciBko007AdPmHXwQqbAzdUldaPUQtDp8Pm6QJg5Aw3jI1G1eIJOBrx4xKQ=="], - "cliui": ["cliui@9.0.1", "", { "dependencies": { "string-width": "^7.2.0", "strip-ansi": "^7.1.0", "wrap-ansi": "^9.0.0" } }, "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w=="], "clone": ["clone@2.1.2", "", {}, "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w=="], @@ -2577,22 +2574,6 @@ "@antfu/install-pkg/package-manager-detector": ["package-manager-detector@1.8.0", "", {}, "sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A=="], - "@anthropic-ai/claude-agent-sdk/@anthropic-ai/claude-agent-sdk-darwin-arm64": ["@anthropic-ai/claude-agent-sdk-darwin-arm64@0.3.293", "", { "os": "darwin", "cpu": "arm64" }, "sha512-E2rwiiHr3LwYzBuTROVDpJkts4QmYCrW39ZIN1qixVSNQhSEiz5LjaKxzrwq0xgPgQDU0vd2fLMG1k72BgD24w=="], - - "@anthropic-ai/claude-agent-sdk/@anthropic-ai/claude-agent-sdk-darwin-x64": ["@anthropic-ai/claude-agent-sdk-darwin-x64@0.3.293", "", { "os": "darwin", "cpu": "x64" }, "sha512-UJD8kX1XDhMqs/0LLxD012h+S9U3Q8XPbRSNcnPQEMNAoEF+lh898xPbVnkUgPKl3jUOUyqYRwFRwDiUJD+GJg=="], - - "@anthropic-ai/claude-agent-sdk/@anthropic-ai/claude-agent-sdk-linux-arm64": ["@anthropic-ai/claude-agent-sdk-linux-arm64@0.3.293", "", { "os": "linux", "cpu": "arm64" }, "sha512-B3M5gw6pPH/ckMtrLtGg4ZY1adLVnPoXkEV+Ruu0j/gdFzwuLWR64Spa0RCsbo7BXVN6w5NTqkuZk+HBfsPUZA=="], - - "@anthropic-ai/claude-agent-sdk/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": ["@anthropic-ai/claude-agent-sdk-linux-arm64-musl@0.3.293", "", { "os": "linux", "cpu": "arm64" }, "sha512-l5Nfwox69bBMEccSQfPQFOq9hbSqQIMsi4H/UXaMSsqgnxunXuKEBXb5klXZJwk4vUt/NzeqAjB/UFbKqW29HQ=="], - - "@anthropic-ai/claude-agent-sdk/@anthropic-ai/claude-agent-sdk-linux-x64": ["@anthropic-ai/claude-agent-sdk-linux-x64@0.3.293", "", { "os": "linux", "cpu": "x64" }, "sha512-MtqXROSQiuqOCNXfC4k3/3DVfgTNLEdaT5jp/omaZeiPtnRtfCz2KTtBTVG4IwbEDFaKsqfzPsPFzN7X6avwkg=="], - - "@anthropic-ai/claude-agent-sdk/@anthropic-ai/claude-agent-sdk-linux-x64-musl": ["@anthropic-ai/claude-agent-sdk-linux-x64-musl@0.3.293", "", { "os": "linux", "cpu": "x64" }, "sha512-5N30l2Y17ZV9q0TGCMXtrkTleX+RVtUMoOL+48qQ7ZrKWGYYBtVDS59cIXDv+TAGqoyYVmklw0W2Sy4dA40BwQ=="], - - "@anthropic-ai/claude-agent-sdk/@anthropic-ai/claude-agent-sdk-win32-arm64": ["@anthropic-ai/claude-agent-sdk-win32-arm64@0.3.293", "", { "os": "win32", "cpu": "arm64" }, "sha512-WvPf8cXna446bTx2U4WVQc5+iUgDn94ve8aauvWwcG8n9oa+1wNCKNGFxk8HvS7DQJhF8dfrCbcF068uNFqYNw=="], - - "@anthropic-ai/claude-agent-sdk/@anthropic-ai/claude-agent-sdk-win32-x64": ["@anthropic-ai/claude-agent-sdk-win32-x64@0.3.293", "", { "os": "win32", "cpu": "x64" }, "sha512-SVaIDHtpCwM0r0m9jzue1U7yktIZ1eJhR1O3e0UCHYTJluaIXty5m6DzqhG4rjnEoNlEAl9rQLqPigS/R5+IiQ=="], - "@aws-sdk/credential-provider-sso/@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.1138.0", "", { "dependencies": { "@aws-sdk/core": "^3.978.1", "@aws-sdk/nested-clients": "^3.997.46", "@aws-sdk/types": "^3.974.6", "@smithy/core": "^3.35.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-GpyAr0DD63YOEmYFM6Df+gJuIgC92MMTiBK4FTKfxii5MJ9ge20epR7LyroulscYlG89J+ZB2ivFDPjvfQhzdw=="], "@babel/code-frame/js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], diff --git a/package.json b/package.json index be1299e4e2..f19cb6edd9 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,6 @@ "@modelcontextprotocol/sdk": "^1.29.0", "@types/bun": "^1.4.2", "axe-core": "^4.13.0", - "claude-agent-sdk-research-292": "npm:@anthropic-ai/claude-agent-sdk@0.3.292", "github-slugger": "^2.0.0", "mdast-util-to-string": "^4.0.0", "oxlint": "^1.79.0", diff --git a/tests/shipped-claude-runtime-pin.test.ts b/tests/shipped-claude-runtime-pin.test.ts index a2bc6d7b48..8deb73c09a 100644 --- a/tests/shipped-claude-runtime-pin.test.ts +++ b/tests/shipped-claude-runtime-pin.test.ts @@ -1,8 +1,8 @@ // The public backend's exact Agent SDK and bundled Claude CLI pair. This half // of the hygiene research-runtime test protects what ships, so it stays in -// product proof (#1386). The research 0.3.292 / 2.1.292 pair and its -// independence from this one were checked by the mechanical-hygiene spike -// harness, removed with the #838 evaluation machinery. +// product proof (#1386). The research 0.3.292 / 2.1.292 pair was checked by +// the mechanical-hygiene spike harness, removed with the #838 evaluation +// machinery; the root no longer installs that pair (#2509). import { test, expect } from "bun:test"; import { readFileSync } from "node:fs"; import { dirname, join } from "node:path"; From ddff51c2ac0073017452cec4a2dca548eca5cf9a Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 2 Nov 2026 17:41:26 +0000 Subject: [PATCH 2/4] docs(decisions): move the runtime record's bun.lock citations with the lock Dropping the research alias shifts the shipped SDK entry to bun.lock:503 and hoists its platform packages, so the nested-entry anchor no longer exists. Cite the hoisted entry and drop the sentence explaining the old nesting. Refs #2509 Co-Authored-By: Claude Opus 5.5 --- docs/decisions/claude-code-runtime.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/decisions/claude-code-runtime.md b/docs/decisions/claude-code-runtime.md index 5cf4074f1a..7283ae4376 100644 --- a/docs/decisions/claude-code-runtime.md +++ b/docs/decisions/claude-code-runtime.md @@ -73,7 +73,7 @@ next to it. `@schlessera/brain-backend-claude` at `^0.3.241` (`"@anthropic-ai/claude-agent-sdk"`, `packages/ui-backend-claude/package.json:49`), resolved by this repo's - lockfile (`"@anthropic-ai/claude-agent-sdk": [`, `bun.lock:504`): 0.3.278 when + lockfile (`"@anthropic-ai/claude-agent-sdk": [`, `bun.lock:503`): 0.3.278 when this record was written, 0.3.280 from 0.37.0, 0.3.283 from 0.38.0. The binary at `CLAUDE_CODE_PATH` is whatever the host put there. @@ -87,13 +87,13 @@ than recalled: (`node_modules/@anthropic-ai/claude-agent-sdk/sdk.d.ts:1887-1889`). - The built-in executable is a real Claude Code release, shipped as per-platform optional dependencies pinned to the SDK's exact version - (`optionalDependencies`, `bun.lock:504`, eight + (`optionalDependencies`, `bun.lock:503`, eight `claude-agent-sdk--[-musl]@0.3.278` entries), each with an integrity hash in the lockfile - (`"@anthropic-ai/claude-agent-sdk/@anthropic-ai/claude-agent-sdk-linux-x64": [`, - `bun.lock:2588`). The public SDK's platform package is nested because the - private development-only hygiene research alias retains its original292 pair; - the public backend still resolves293. The SDK carries a manifest naming the release and a checksum + (`"@anthropic-ai/claude-agent-sdk-linux-x64": [`, + `bun.lock:513`). The platform packages are hoisted again now that the + development-only hygiene research alias and its 0.3.292 pair are gone + (#2509). The SDK carries a manifest naming the release and a checksum per platform (`node_modules/@anthropic-ai/claude-agent-sdk/manifest.json`: `"version": "2.1.278"`, `linux-x64` checksum `5c47359…`). - It is byte-identical to the standalone release. `sha256sum` of the SDK's From d3c1d874cfc2416547d20eb273664eb33c6a2d48 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 2 Nov 2026 19:01:34 +0000 Subject: [PATCH 3/4] chore(ci): requalify the native diagram installation without the research SDK alias Removing the claude-agent-sdk-research-292 alias changes the hashed top-level installation from 0c2758c0... (843 packages / 59,516 files / 1,833,832,361 bytes) to 47e78ac9... (842 / 59,489 / 1,331,664,273). Per the maintainer ruling on #2509, the frozen #2293 source e8502b6f... was requalified on the new installation by actually running the native SVG/PNG/PDF producer inside its pinned Docker boundary (runtime bf65590d...), and the qualified pin and the self-test constants move together. Receipts are on the PR. Refs #2509 Co-Authored-By: Claude Opus 5.5 --- scripts/native-diagram-inputs.ts | 2 +- tests/native-diagram-inputs.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/native-diagram-inputs.ts b/scripts/native-diagram-inputs.ts index e643f9c239..1f4563249a 100644 --- a/scripts/native-diagram-inputs.ts +++ b/scripts/native-diagram-inputs.ts @@ -17,7 +17,7 @@ export interface NativeDiagramDiagnostic { // Candidate qualification is exact: all source/installation drift requires fresh // execution and requalification. The separate Docker mount boundary closes // active initialization/shared-library reads; byte hashes alone do not. -const qualified:Omit={source:"e8502b6ffb3c575f2e9a1c93dea8dbf5ceda93ece367da9d542cb10b1c9ac32b",installation:"0c2758c046f2b69d5f33b66521baf3098db5f44256b73ec96961c98d381e6245"}; +const qualified:Omit={source:"e8502b6ffb3c575f2e9a1c93dea8dbf5ceda93ece367da9d542cb10b1c9ac32b",installation:"47e78ac9977d948dd35bfcb1d916aa3e2f6ddab976bb047eebc2a531cdf8403d"}; const caller="packages/ui-kit/vitest.config.ts",owner="packages/ui-react/tests/browser/diagram-export-command.ts"; const sourcePins:Record={ "packages/ui-kit/vitest.config.ts": "e724696a55955e9f32d396b2031214600086533c3f9b8baabcc1c6bb7311f1db", diff --git a/tests/native-diagram-inputs.test.ts b/tests/native-diagram-inputs.test.ts index e31100e8c4..4a8856983d 100644 --- a/tests/native-diagram-inputs.test.ts +++ b/tests/native-diagram-inputs.test.ts @@ -10,7 +10,7 @@ const repo=resolve(import.meta.dir,".."),roots:string[]=[],owner="packages/ui-re // Git archive filters, or a newly computed candidate fingerprint for this control. const frozen="0d780605fe1ea9a281cce947b1f0074f3f3e7acc"; const qualifiedSource="e8502b6ffb3c575f2e9a1c93dea8dbf5ceda93ece367da9d542cb10b1c9ac32b"; -const qualifiedInstallation="0c2758c046f2b69d5f33b66521baf3098db5f44256b73ec96961c98d381e6245"; +const qualifiedInstallation="47e78ac9977d948dd35bfcb1d916aa3e2f6ddab976bb047eebc2a531cdf8403d"; const ownedPaths=[...diagramSourceSetup,...diagramSourceDomains.map(name=>`packages/${name}`),owner,caller,"scripts/ci-proof.ts"]; afterEach(()=>{for(const root of roots.splice(0))rmSync(root,{recursive:true,force:true});}); function fixture(current=false){ @@ -54,7 +54,7 @@ test("fixed native qualification binds the independently frozen complete source expect(control.diagnostic(),"FROZEN_NATIVE_INSTALLATION_MUST_MATCH_QUALIFIED_BYTES: recover this owned install from a fresh private cache; never refresh qualification pins").toMatchObject({ status:"qualified",stage:"complete",sourceInputs:859, actual:{source:qualifiedSource,installation:qualifiedInstallation}, - installation:{packages:843,files:59516,bytes:1833832361} + installation:{packages:842,files:59489,bytes:1331664273} }); expect(binding?.files.length,"COMPLETE_NATIVE_QUALIFICATION_WITHOUT_DOCKER_OR_IMAGE_LOOKUP").toBe(859); expect(binding?.files.toSorted()).toEqual(nativeDiagramSourceInventory(control.root).inputs.map(entry=>entry.path).toSorted()); From 926fcd5b0b87270103b03c416d34f35c14d48339 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 2 Nov 2026 21:44:30 +0000 Subject: [PATCH 4/4] test(experiments): resolve the placement probe's native binary from the SDK entry Dropping the claude-agent-sdk-research-292 alias hoists the shipped SDK's platform packages to the top level, so the probe's hardcoded nested path no longer exists. Resolve the binary the way the SDK does, from its own entry, and require its digest to match the SDK manifest's checksum, so a hoisted binary of another version cannot stand in for the shipped one. Refs #2509 Co-Authored-By: Claude Opus 5.5 --- experiments/fixtures/runtime-placement-probe.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/experiments/fixtures/runtime-placement-probe.ts b/experiments/fixtures/runtime-placement-probe.ts index c168e34bd0..6e1890aa15 100644 --- a/experiments/fixtures/runtime-placement-probe.ts +++ b/experiments/fixtures/runtime-placement-probe.ts @@ -2,7 +2,8 @@ import assert from "node:assert/strict"; import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; -import { dirname, join, resolve } from "node:path"; +import { createRequire } from "node:module"; +import { join, resolve } from "node:path"; import { captureSurface } from "../../scripts/capture-turn-surface.js"; import { observedSkills } from "../../scripts/turn-surface-skills.js"; @@ -11,8 +12,11 @@ assert.deepEqual(networkInterfaces, ["lo"], "OWNED_CLAUDE_REQUIRES_OFFLINE_NAMES const root = resolve(import.meta.dir, "../../tmp"); mkdirSync(root, { recursive: true }); const outside = mkdtempSync(join(root, "odysseus-cli-placement-")); const inside = mkdtempSync(join(tmpdir(), "odysseus-cli-placement-")); -const sdk = dirname(Bun.resolveSync("@anthropic-ai/claude-agent-sdk", join(import.meta.dir, "../../packages/ui-backend-claude/src"))); -const installed = join(sdk, `node_modules/@anthropic-ai/claude-agent-sdk-linux-${process.arch}/claude`); +// Resolve the platform binary from the SDK entry, as the SDK itself does, so +// nested and hoisted layouts both find the package the SDK would launch. +const sdkRequire = createRequire(Bun.resolveSync("@anthropic-ai/claude-agent-sdk", join(import.meta.dir, "../../packages/ui-backend-claude/src"))); +const installed = sdkRequire.resolve(`@anthropic-ai/claude-agent-sdk-linux-${process.arch}/claude`); +const manifest = JSON.parse(readFileSync(sdkRequire.resolve("./manifest.json"), "utf8")); try { const paths = [outside, inside].map(root => { writeFileSync(join(root, "package.json"), '{"name":"odysseus-owned-cli-control"}\n'); @@ -20,6 +24,7 @@ try { }); const digest = (path: string) => new Bun.CryptoHasher("sha256").update(readFileSync(path)).digest("hex"); const installedDigest = digest(installed), runtimeDigests = paths.map(digest); + assert.equal(installedDigest, manifest.platforms[`linux-${process.arch}`].checksum, "OWNED_CLAUDE_NATIVE_MATCHES_SDK_MANIFEST"); assert.deepEqual(runtimeDigests, [installedDigest, installedDigest], "OWNED_CLAUDE_NATIVE_BYTES_MATCH"); const results = []; for (const path of paths) {