From 01a9479679aee925bfa0c77333ccffc0c4557ee7 Mon Sep 17 00:00:00 2001 From: JUN Date: Fri, 20 Nov 2026 01:48:15 +0900 Subject: [PATCH] test(update): classify the managed-release launch-context read in the update lint #8911 made src/update/managed-release.ts import trustedManagedReleaseOptIn from ../cli/launcher-context. The update lint had no reviewed entry for that edge, so the Windows shards reported an unreviewed static dependency and a raw imported capability reference. The accessor only reads the launch context bound at startup. --- tests/helpers/update-import-policy.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/helpers/update-import-policy.ts b/tests/helpers/update-import-policy.ts index 7a7abc7d248..1411d206368 100644 --- a/tests/helpers/update-import-policy.ts +++ b/tests/helpers/update-import-policy.ts @@ -205,6 +205,11 @@ const baseStaticImports: Readonly> = { "import { spawnBindProbe, strictBindProbeScript } from \"./bind-probe\";", "import { withoutUpdateTeardownHandover, withUpdateTeardownHandover } from \"./teardown-handover\";" ], + // #8911: a read-only accessor of the launch context the Node launcher bound at startup; + // it opens no process, file or network capability and only selects update guidance. + "src/update/managed-release.ts": [ + "import { trustedManagedReleaseOptIn } from \"../cli/launcher-context\";" + ], "src/update/mise-launcher-target.ts": [ "import { realpathSync } from \"node:fs\";", "import { dirname, isAbsolute, join } from \"node:path\";",