From 3fb7fe5d2145a59f8715d3f49766c9169a2c47ea Mon Sep 17 00:00:00 2001 From: tianxiaochannel-oss88 Date: Mon, 30 Nov 2026 12:42:02 -0500 Subject: [PATCH 1/4] test: record installed Chrome plugin acceptance --- .../tests/chrome-extension-real-smoke.mjs | 28 ++++++--- .../plugin-independent-packaging.md | 1 + ...lled-plugin-native-messaging-20261130.json | 61 +++++++++++++++++++ 3 files changed, 80 insertions(+), 10 deletions(-) create mode 100644 docs/release/evidence/chrome-installed-plugin-native-messaging-20261130.json diff --git a/apps/desktop/tests/chrome-extension-real-smoke.mjs b/apps/desktop/tests/chrome-extension-real-smoke.mjs index d5433da8f..6595b6bca 100644 --- a/apps/desktop/tests/chrome-extension-real-smoke.mjs +++ b/apps/desktop/tests/chrome-extension-real-smoke.mjs @@ -25,13 +25,18 @@ if (process.platform !== "darwin") { throw new Error("chrome_extension_real_smoke_requires_macos"); } -const extensionRoot = resolve(import.meta.dirname, "../../chrome-extension/dist"); -const hostPath = resolve(import.meta.dirname, "../../../packages/browser-host/dist/native/ling-browser-host"); +const extensionRoot = resolve( + process.env.LING_CHROME_SMOKE_EXTENSION_ROOT?.trim() || resolve(import.meta.dirname, "../../chrome-extension/dist"), +); +const hostPath = resolve( + process.env.LING_CHROME_SMOKE_HOST_PATH?.trim() || resolve(import.meta.dirname, "../../../packages/browser-host/dist/native/ling-browser-host"), +); const colorScheme = process.env.LING_CHROME_SMOKE_COLOR_SCHEME === "dark" ? "dark" : "light"; const browserChannel = process.env.LING_CHROME_SMOKE_CHANNEL === "chromium" ? "chromium" : "chrome"; const browserLocale = process.env.LING_CHROME_SMOKE_LOCALE === "zh-CN" ? "zh-CN" : "en-US"; const headless = process.env.LING_CHROME_SMOKE_HEADLESS !== "0"; const preinstalledExtension = process.env.LING_CHROME_SMOKE_PREINSTALLED === "1"; +const reloadUnpackedOnRestart = process.env.LING_CHROME_SMOKE_RELOAD_UNPACKED_ON_RESTART === "1"; const workspaceCwd = await mkdtemp(resolve(tmpdir(), "ling-chrome-real-workspace-")); const suppliedProfileDir = process.env.LING_CHROME_SMOKE_PROFILE_DIR?.trim(); const profileDir = suppliedProfileDir || await mkdtemp(resolve(tmpdir(), "ling-chrome-real-profile-")); @@ -115,14 +120,7 @@ try { console.log("chrome-smoke:launch-native"); context = await launchChromeContext(); - if (!preinstalledExtension) { - const browser = context.browser(); - assert.ok(browser); - const cdp = await browser.newBrowserCDPSession(); - const loaded = await cdp.send("Extensions.loadUnpacked", { path: extensionRoot }); - await cdp.detach(); - assert.equal(loaded.id, CHROME_BROWSER_PRODUCTION_EXTENSION_ID); - } + if (!preinstalledExtension || reloadUnpackedOnRestart) await loadUnpackedExtension(context); await waitForNativeConnection(context, controller, workspaceCwd, manifestPaths, 35_000); console.log("chrome-smoke:native-connected-without-popup"); @@ -145,6 +143,7 @@ try { context = undefined; await waitFor(() => !controller.snapshot(workspaceCwd).connected, 10_000); context = await launchChromeContext(); + if (reloadUnpackedOnRestart) await loadUnpackedExtension(context); await waitForNativeConnection(context, controller, workspaceCwd, manifestPaths, 35_000); console.log("chrome-smoke:chrome-restart-connected-without-popup"); @@ -275,6 +274,15 @@ function launchChromeContext() { }); } +async function loadUnpackedExtension(browserContext) { + const browser = browserContext.browser(); + assert.ok(browser); + const cdp = await browser.newBrowserCDPSession(); + const loaded = await cdp.send("Extensions.loadUnpacked", { path: extensionRoot }); + await cdp.detach(); + assert.equal(loaded.id, CHROME_BROWSER_PRODUCTION_EXTENSION_ID); +} + async function waitFor(predicate, timeoutMs) { const deadline = Date.now() + timeoutMs; while (!await predicate()) { diff --git a/docs/design/integrations/plugin-independent-packaging.md b/docs/design/integrations/plugin-independent-packaging.md index 4934c938c..13d2f68e6 100644 --- a/docs/design/integrations/plugin-independent-packaging.md +++ b/docs/design/integrations/plugin-independent-packaging.md @@ -62,6 +62,7 @@ Release records should include platform signatures, actual operation, third-part - Using an isolated user configuration, local development directory, and temporary package signing, Office candidates go through first install, update, reread, and offline rollback in a real daemon. The macOS helper responds to `driver_status` at all three stages. Update tests to use another archived version of the same helper. The preflight for the macOS candidate helper recognizes that Excel 16.91 is running and returns `permission_required`. The signed version still needs to be authorized by system Automation and accepted by actual workbook operations. Automated regression covers empty workspace installation, cross-workspace display and rollback, preserving workspace enabled state, and cache tamper rejection. - The macOS candidate package for Ling for Chrome validates Native Messaging auto-connection, all six browser tools, pause recovery, and disable and re-enable in an isolated configuration of real Chrome. The 0.1.2 released by the Chrome Web Store is consistent with the executable code and pop-up files of the candidate archive. The differences are in the four icons, update address and store metadata. Store-installed extensions still need to be accepted together with an officially signed Native Host. [Chrome Build Candidate](https://github.com/ling-stack-org/ling-plugin-chrome-browser/actions/runs/45081594739) · [Chrome Web Store](https://chromewebstore.google.com/detail/ling-for-chrome/mbmlnnfhebclljonhedpjghbhibfapei) +- The public `v0.1.1-dev.1` macOS arm64 plugin archive was also installed into an isolated temporary cache. Its extracted Native Host and extension ZIP passed Native Messaging auto-connect, Chrome restart reconnect, pause and resume, all six browser tools, disable, and re-enable. This remains unsigned development evidence and does not close the stable catalog gate. [Installed-package evidence](../../release/evidence/chrome-installed-plugin-native-messaging-20261130.json) · [Chrome development release](https://github.com/ling-stack-org/ling-plugin-chrome-browser/releases/tag/v0.1.1-dev.1) - An independent review of Cua Driver checked source code commits, patches, binary digests, and two platform locks against four original archives. The new lock completes native reconstruction and MCP probes on four independent runners, and the 7 stable files of macOS and 8 stable files of Windows are consistent one by one. Windows probes cover Medium integrity, state directory user ACLs, link denials, and configuration persistence. Release documents to record the source of this batch of pre-signing products and subsequent platform signing steps. [Cua Driver Release Document](https://github.com/ling-stack-org/ling-plugin-cua-driver/blob/main/docs/RELEASE.md) - Cua Driver's native workflow generates pre-signing archives from two reverified builds, complete with SHA-256 receipts for locks and payloads. The independent repository's `seal:release` generates a provider seal from a formal signature and an audited lock, and rechecks the seal and platform signature when packaging. Windows also verifies the integrity of directory coverage executables and seals them. [Archive before signing](https://github.com/ling-stack-org/ling-plugin-cua-driver/pull/8) · [Seal generation](https://github.com/ling-stack-org/ling-plugin-cua-driver/pull/9) diff --git a/docs/release/evidence/chrome-installed-plugin-native-messaging-20261130.json b/docs/release/evidence/chrome-installed-plugin-native-messaging-20261130.json new file mode 100644 index 000000000..9590fb129 --- /dev/null +++ b/docs/release/evidence/chrome-installed-plugin-native-messaging-20261130.json @@ -0,0 +1,61 @@ +{ + "schemaVersion": 1, + "kind": "ling.chrome.installed-plugin-native-messaging", + "status": "passed", + "target": "macos-arm64", + "signingTier": "unsigned_dev", + "distributionChannel": "development", + "release": { + "repository": "ling-stack-org/ling-plugin-chrome-browser", + "tag": "v0.1.1-dev.1", + "asset": "official-chrome-browser-0.1.1-darwin-arm64.ling-plugin.zip", + "assetUrl": "https://github.com/ling-stack-org/ling-plugin-chrome-browser/releases/download/v0.1.1-dev.1/official-chrome-browser-0.1.1-darwin-arm64.ling-plugin.zip", + "assetSha256": "930b43f9a1d42a67df9b300ba9438ea106e868f1400253948fffc5cde51caea0", + "assetSizeBytes": 290624, + "producerWorkflowRun": 45096848377, + "sourceCommit": "09b4e5525051da7a0a6833b85e3e7547436c478c" + }, + "runtime": { + "hostVersion": "0.1.1", + "hostProtocol": "ling.chrome.native.v1", + "hostSigning": "adhoc", + "hostSha256": "3af2618d86c2539d129ba09a85b9e1c564a687480225a5d5fdda831fbcc723fe", + "hostSizeBytes": 650352, + "extensionVersion": "0.1.2", + "extensionManifestSha256": "ed371bfdc9ccd85676873617741a528ff5a05988d4410de0bb423b2400913025", + "extensionZipSha256": "30afa446714ffd495aa45ec090f5298b62ed046fec374c97d6e71e294d54770c", + "extensionZipSizeBytes": 30654 + }, + "environment": { + "browser": "Chrome", + "headless": true, + "extensionMode": "unpacked-from-installed-plugin-archive", + "nativeHostMode": "extracted-installed-plugin-runtime", + "workspace": "temporary-isolated-workspace", + "profile": "temporary-isolated-Chrome-profile", + "extensionReloadedAfterRestart": true + }, + "checks": { + "nativeMessagingAutoConnect": true, + "chromeRestartReconnect": true, + "pause": true, + "resume": true, + "browserTools": [ + "chrome_tabs", + "chrome_snapshot", + "chrome_click", + "chrome_type", + "chrome_navigate", + "chrome_screenshot" + ], + "disable": true, + "reenable": true, + "transport": "native_messaging", + "extensionId": "mbmlnnfhebclljonhedpjghbhibfapei" + }, + "limitations": [ + "This is development evidence only; the Native Host uses ad-hoc signing and does not close Developer ID, notarization, or stable catalog gates.", + "The extension was loaded from the package archive in an isolated profile; Chrome Web Store publication and signed-host acceptance remain separate gates.", + "This run does not prove Excel workbook operations, Cua Driver operations, Windows x64 behavior, or update and offline rollback." + ] +} From 29c924b6367898613c06e9a21991e44a5616d81d Mon Sep 17 00:00:00 2001 From: tianxiaochannel-oss88 Date: Mon, 30 Nov 2026 12:56:04 -0500 Subject: [PATCH 2/4] ci: include daemon in desktop validation closure --- apps/desktop/package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 62c4a6222..50ce4675c 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -76,6 +76,7 @@ "@electron/asar": "4.3.2", "@electron/osx-sign": "2.7.2", "@fontsource-variable/inter": "5.3.0", + "@ling-stack/daemon": "workspace:*", "@playwright/test": "1.65.0", "@types/react": "^19.2.18", "@types/react-dom": "^19.2.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 64c04791a..1eda55ab0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,6 +128,9 @@ importers: '@fontsource-variable/inter': specifier: 5.3.0 version: 5.3.0 + '@ling-stack/daemon': + specifier: workspace:* + version: link:../../packages/daemon '@playwright/test': specifier: 1.65.0 version: 1.65.0 From f76e7f53c85566c2f1966535055c67afc88efa6f Mon Sep 17 00:00:00 2001 From: tianxiaochannel-oss88 Date: Mon, 30 Nov 2026 13:23:38 -0500 Subject: [PATCH 3/4] test: account for desktop daemon validation dependency --- scripts/ci/execution-workflow.test.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/ci/execution-workflow.test.mjs b/scripts/ci/execution-workflow.test.mjs index 5ab843798..e3deeca66 100644 --- a/scripts/ci/execution-workflow.test.mjs +++ b/scripts/ci/execution-workflow.test.mjs @@ -129,7 +129,10 @@ test("workflow transformations keep daemon test-only work outside the unit matri }); await assertScopeOutputs(classifyChangedFiles({ files: ["packages/daemon/test/macos-native-command.test.mjs"] }), { - mode: "affected", packages: ["@ling-stack/cli", "@ling-stack/daemon"], daemon: true, daemonPlatforms: ["darwin"], daemonSuites: ["daemon"], + mode: "affected", packages: ["@ling-stack/cli", "@ling-stack/daemon", "@ling-stack/desktop"], + testPackages: ["@ling-stack/cli", "@ling-stack/daemon"], + typecheckPackages: ["@ling-stack/cli", "@ling-stack/daemon", "@ling-stack/desktop"], + daemon: true, daemonPlatforms: ["darwin"], daemonSuites: ["daemon"], macosNative: true, matrix: [{ suite: "packages", shard: 0 }], }); }); From f9b79019cf4c66b01097ae6ab29f4771861a26c2 Mon Sep 17 00:00:00 2001 From: tianxiaochannel-oss88 Date: Mon, 30 Nov 2026 15:03:38 -0500 Subject: [PATCH 4/4] docs: record plugin archive verification evidence --- docs/design/integrations/plugin-independent-packaging.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/design/integrations/plugin-independent-packaging.md b/docs/design/integrations/plugin-independent-packaging.md index 13d2f68e6..47dcd2da8 100644 --- a/docs/design/integrations/plugin-independent-packaging.md +++ b/docs/design/integrations/plugin-independent-packaging.md @@ -63,6 +63,7 @@ Release records should include platform signatures, actual operation, third-part - Using an isolated user configuration, local development directory, and temporary package signing, Office candidates go through first install, update, reread, and offline rollback in a real daemon. The macOS helper responds to `driver_status` at all three stages. Update tests to use another archived version of the same helper. The preflight for the macOS candidate helper recognizes that Excel 16.91 is running and returns `permission_required`. The signed version still needs to be authorized by system Automation and accepted by actual workbook operations. Automated regression covers empty workspace installation, cross-workspace display and rollback, preserving workspace enabled state, and cache tamper rejection. - The macOS candidate package for Ling for Chrome validates Native Messaging auto-connection, all six browser tools, pause recovery, and disable and re-enable in an isolated configuration of real Chrome. The 0.1.2 released by the Chrome Web Store is consistent with the executable code and pop-up files of the candidate archive. The differences are in the four icons, update address and store metadata. Store-installed extensions still need to be accepted together with an officially signed Native Host. [Chrome Build Candidate](https://github.com/ling-stack-org/ling-plugin-chrome-browser/actions/runs/45081594739) · [Chrome Web Store](https://chromewebstore.google.com/detail/ling-for-chrome/mbmlnnfhebclljonhedpjghbhibfapei) - The public `v0.1.1-dev.1` macOS arm64 plugin archive was also installed into an isolated temporary cache. Its extracted Native Host and extension ZIP passed Native Messaging auto-connect, Chrome restart reconnect, pause and resume, all six browser tools, disable, and re-enable. This remains unsigned development evidence and does not close the stable catalog gate. [Installed-package evidence](../../release/evidence/chrome-installed-plugin-native-messaging-20261130.json) · [Chrome development release](https://github.com/ling-stack-org/ling-plugin-chrome-browser/releases/tag/v0.1.1-dev.1) +- On 2026-11-30, the Office Documents `v0.1.0-dev.1` and Ling for Chrome `v0.1.1-dev.1` macOS arm64 and Windows x64 archives passed their Release `SHA256SUMS.txt` checks, ZIP integrity checks, manifest identity, provenance and runtime checksum inventory checks. The Cua Driver `v0.2.0-dev.1` macOS arm64 and Windows x64 pre-sign archives and their release checksums passed the same download and archive checks. The catalog and artifact signing-key check also passed in [workflow run 46497949298](https://github.com/ling-stack-org/ling-stack/actions/runs/46497949298). These are development and pre-signing records; they do not close the platform-signature, provider-seal or stable-catalog gates. - An independent review of Cua Driver checked source code commits, patches, binary digests, and two platform locks against four original archives. The new lock completes native reconstruction and MCP probes on four independent runners, and the 7 stable files of macOS and 8 stable files of Windows are consistent one by one. Windows probes cover Medium integrity, state directory user ACLs, link denials, and configuration persistence. Release documents to record the source of this batch of pre-signing products and subsequent platform signing steps. [Cua Driver Release Document](https://github.com/ling-stack-org/ling-plugin-cua-driver/blob/main/docs/RELEASE.md) - Cua Driver's native workflow generates pre-signing archives from two reverified builds, complete with SHA-256 receipts for locks and payloads. The independent repository's `seal:release` generates a provider seal from a formal signature and an audited lock, and rechecks the seal and platform signature when packaging. Windows also verifies the integrity of directory coverage executables and seals them. [Archive before signing](https://github.com/ling-stack-org/ling-plugin-cua-driver/pull/8) · [Seal generation](https://github.com/ling-stack-org/ling-plugin-cua-driver/pull/9)