Skip to content

Repair official Linux 26.1117.31558 drift - #70

Merged
avifenesh merged 1 commit into
mainfrom
fix/official-linux-26.1117
Nov 20, 2026
Merged

avifenesh merged 1 commit into
mainfrom
fix/official-linux-26.1117

Conversation

@avifenesh

@avifenesh avifenesh commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Repair the drift from the new signed OpenAI Linux package 26.1117.31558 (upstream issue ilysenko#1702), which turned every fork PR's nix and signed-baseline checks red.

  • nix/upstream-linux-packages.json: pins for 26.1117.31558 (amd64 and arm64), the same file and format as upstream's pin bot.
  • Shared libraries: rspack module headers now come as id:(function(e,t,n){...}); findCodexRequestExportName (assets.js) and the automation schedule module walker accept that form. The app-server transports moved into the app-server-host utility process: main-process chunk discovery now includes app-server-host*.js, and a main-process descriptor can read sibling chunks (context.mainProcessChunks). global-shortcuts-portal.js accepts the quit lifecycle without the hotkey window manager and the new beginCapture owner-window lookup.
  • nix/elf-runtime-manifest.json: the package now ships resources/node (byte-identical to resources/cua_node/bin/node), so it joins the required dynamic executables with the same interpreter strategy; target inventory counts and digests updated for both architectures (validate-upstream, fix and audit pass on the extracted amd64 package).
  • flake.nix: the package no longer bundles a Tectonic executable (only resources/tectonic/compiler scripts; the LaTeX plugin finds tectonic through CODEX_TECTONIC_PATH or PATH), so the two resources/tectonic/tectonic --version runtime probes are removed and the ELF test asserts none remain.
  • shared-app-server-socket: the authority now belongs to the app-server-host utility process. The host stops it on SIGTERM and exit, and a restarted host takes over through the existing orphan-reaper checks instead of refusing with "already owned". README updated.
  • Feature contracts updated for the new shapes in 29 features. Old shapes stay accepted where the existing fixtures use them.
  • One descriptor removed: reasoning-visibility transcript. Its projection (transcript-activity-item-) no longer exists; grouping now follows the classifier the feature's standalone descriptor already patches, so reasoning stays separate from tool groups.
  • No feature disabled and no ciPolicy changed. Known upstream change a patch cannot cover: the AppShots availability atom now also checks a Statsig gate.

Validation (dev box, against the extracted signed 26.1117.31558 bundle):

  • scripts/ci/verify-official-linux-features.js: "Official Linux feature audit passed: 54 ASAR feature scenario(s)".
  • Every linux-features/* test and scripts/patches test with CODEX_SIGNED_EXTRACTED_APP set: 0 failures.
  • bash scripts/ci/run-node-checks.sh all: 2152 tests, 0 failures.
  • scripts/ci/validate-nix-pins.sh: pins current.

@avifenesh
avifenesh force-pushed the fix/official-linux-26.1117 branch from bf1bd40 to d08bb08 Compare November 20, 2026 05:22
@avifenesh

Copy link
Copy Markdown
Owner Author

Independent review (fresh context, read-only)

Verdict: PASS, with one medium and one low finding, both fixed in the amended commit.

  1. Medium (fixed): shared-app-server-socket's authority moved into the app-server-host utility process, which Desktop can restart within a session. A crashed host left a live authority and the new host refused with "already owned"; on quit, stopping the authority depended on a race with worker.kill(). Now the host stops the authority on SIGTERM and exit, and a restarted host runs the existing orphan-reaper checks (dead owner, recorded identity, PID 1 or systemd --user adoption, one listener, unchanged lock and socket) before reclaiming. Tests cover the SIGTERM stop, the exit stop and the restart takeover; README updated.
  2. Low (fixed): global-shortcuts-portal.js made hotkeyWindowLifecycleManager optional; a later build listing it in another position could have been absorbed by the trailing field group. It now throws when the header has that key but the group did not capture it; test added.
  3. Info: the wider main-process chunk set (app-server-host*.js) only adds places to look; on 26.1117 only main-process-shared-app-server-socket changes a host chunk across all main-bundle descriptors enabled one at a time.

Checked: the shared-library diffs (findCodexRequestExportName, automation-schedule rspackModuleRange, engine mainProcessChunks frozen and deleted after each descriptor, the global-shortcuts capture rewrite), shared-app-server-socket runtime (host-scope symbol resolution, environment reaching the utility process, attached CLI owner checks, idempotence), the reasoning-visibility transcript removal (anchors absent from every webview asset; the new grouper only groups "groupable" items, so the standalone classification covers reasoning), usage-limit-send-attempt's single shared reasons module, remote-mobile-control's hoisted gate constant, and the test diffs.

After the fixes, on the dev box against the extracted 26.1117.31558 bundle: signed feature and patch tests 1974 run, 0 failures; full audit 54 scenarios passed; run-node-checks.sh all 2152 tests, 0 failures.

Refresh the nix pins for 26.1117.31558 and update the feature patch contracts the new signed bundle broke: rspack modules wrapped as id:(function(e,t,n){...}), the app-server transports moved into the app-server-host utility process, locale catalogs moved to gzip JSON, and per-feature shape changes. The reasoning-visibility transcript descriptor is removed: its projection no longer exists and the standalone classification now separates reasoning from tool groups.
@avifenesh
avifenesh force-pushed the fix/official-linux-26.1117 branch from d08bb08 to b416936 Compare November 20, 2026 05:29
@avifenesh
avifenesh merged commit b416936 into main Nov 20, 2026
14 checks passed
@avifenesh
avifenesh deleted the fix/official-linux-26.1117 branch November 20, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant