Skip to content

feat(release): build Linux desktop and t3 archives for PseudoCode releases - #84

Merged
pseudoseed merged 2 commits into
mainfrom
t3/linux-build-ms-a2
Dec 6, 2026
Merged

pseudoseed merged 2 commits into
mainfrom
t3/linux-build-ms-a2

Conversation

@pseudoseed

Copy link
Copy Markdown
Owner

PseudoCode ships only a macOS DMG and a darwin-arm64 t3 archive. Linux packages can't be built on the Mac (build-desktop-artifact.ts refuses), so there was no way to install the fork on a Linux box, and SSH installs to Linux hosts stopped with "publishes no t3 archive".

What changed

  • .github/workflows/pseudocode-linux.yml (fork-only, started by hand with tag=pseudocode-v<version>):
    • Looks up the release and builds the exact commit it is pinned to. Refuses a commit that isn't on main, or one whose apps/server/package.json disagrees with the tag.
    • Builds the AppImage, .deb and t3-<version>-linux-<arch>.tar.gz on ubuntu-24.04 (x64) and ubuntu-24.04-arm (arm64). Smoke-tests the CLI archive and opens the x64 app under Xvfb, the same check upstream runs.
    • Adds the files to the release. dry_run=true builds without uploading. Uploading runs only from main.
    • Security: no secrets, actions pinned by SHA, and no checkout action, so no token is stored in the clone. The build job has contents: read. The two jobs with write access never run repo or dependency code. The publish job accepts only the eight expected Linux file names, so nothing the build drops can overwrite the signed macOS files.
  • SHA256SUMS rebuilt from the release. ship-mac.sh and the workflow both regenerate it from the sha256 digests GitHub records for every t3-* asset. It goes up last, together with the update manifest. Neither side carries the other's lines forward, so a failed or repeated run can't drop a platform. I checked the helper against pseudocode-v0.1.15: it reproduces the published file byte for byte.
  • ship-mac.sh stops when the release lookup fails for any reason other than "release not found". Before, a network blip could create a second draft with the same tag.
  • AppImage name fix. It was hardcoded to T3-Code-<arch>.AppImage and now follows T3CODE_APP_NAME (PseudoCode-x86_64.AppImage), still without a version so the updater can replace it in place.
  • Docs: the ship-pseudocode and sync-upstream skills now cover the Linux step.

Verification

  • Regression test names the updatable AppImage after the fork's app name: failed before the fix (expected 'T3-Code-${arch}.${ext}' to equal 'PseudoCode-${arch}.${ext}'), and scripts/build-desktop-artifact.test.ts passes 59/59 after it.
  • vp run check:changed exited 0 (format, lint, knip, typecheck for 44 packages, tests).
  • Publish allowlist: extracted from the workflow and run against 7 file sets. It accepts the expected eight and rejects latest-mac.yml, a DMG, the darwin t3 archive, SHA256SUMS, a wrong-version .deb, and a missing file.
  • An independent Opus 5.5 security review found no injection or token-scope problems. Its findings are all fixed here: the checksum merge could drop lines after a failed --clobber upload, there was no file allowlist, a lookup error was treated as "missing", and nothing checked the commit was on main.
  • Not proven until it runs on GitHub: the build itself. Next step after merge is a dry_run against pseudocode-v0.1.15.

Model: Claude Opus 5.5, Claude Code in PseudoCode.

🤖 Generated with Claude Code

pseudoseed and others added 2 commits December 5, 2026 22:36
The Linux AppImage name was hardcoded to T3-Code, so a PseudoCode build
published T3-Code-x86_64.AppImage while every other artifact followed
T3CODE_APP_NAME. It now uses the same base name, still without a version
so electron-updater can replace it in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eases

Linux packages cannot be built on the Mac, so a dispatch-only workflow
builds the AppImage, .deb and t3 CLI archive for x64 and arm64 on GitHub's
Ubuntu runners from the commit a release is pinned to, then adds them to
that release. It uses no secrets; only the jobs that read or write the
release get write access, the publish job accepts only the eight expected
file names, and dry_run builds without uploading.

SHA256SUMS is now rebuilt from the hashes GitHub records for every t3
archive on the release, in both ship-mac.sh and the workflow, so neither
can drop the other's lines. ship-mac.sh also stops on a release lookup
error instead of creating a second draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 1.02 MiB 1.02 MiB 0 B (0.0%) 1.19 MiB ✅
Codex long turn running, history page rows 845 845 0 (0.0%) 845 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 154.6 KiB 154.6 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 43.9 KiB 43.9 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 43.9 KiB 43.9 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 1.03 MiB 1.03 MiB 0 B (0.0%) 1.19 MiB ✅
Claude long turn running, history page rows 845 845 0 (0.0%) 845 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 156.4 KiB 156.4 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 44.5 KiB 44.5 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 44.5 KiB 44.5 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: b4c5338 · PR result: a6b37e7 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@pseudoseed
pseudoseed merged commit 1c95648 into main Dec 6, 2026
41 of 43 checks passed
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