Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
fdf4001
fix: remove relay client tracing
pseudoseed Nov 24, 2026
9c8ef56
fix: strip product analytics and block upstream telemetry hosts
pseudoseed Nov 24, 2026
bce2767
Merge branch 't3/remove-relay-client-tracing' into t3/verify-analytic…
pseudoseed Nov 24, 2026
9d1cefb
test(desktop): window session mock covers the telemetry request block
pseudoseed Nov 24, 2026
7a8f6fc
fix: drop upstream identifiers and block the whole t3.codes domain
pseudoseed Nov 24, 2026
30f0883
fix: remove in-app triage
pseudoseed Nov 24, 2026
396bee5
Merge branch 't3/remove-in-app-triage' into t3/verify-analytics-fully…
pseudoseed Nov 24, 2026
f9bb545
fix(web): boot error page links to the fork's releases and issues
pseudoseed Nov 24, 2026
ae0d3fd
fix: install and update the CLI from fork releases
pseudoseed Nov 24, 2026
e1a7bd1
Merge branch 't3/cli-install-update-fork-releases' into t3/verify-ana…
pseudoseed Nov 24, 2026
39f4d85
fix: remove agent feedback
pseudoseed Nov 24, 2026
29a4def
Merge branch 't3/remove-agent-feedback' into t3/verify-analytics-full…
pseudoseed Nov 24, 2026
f9cbbc0
fix: build shared links on the server's own origin
pseudoseed Nov 24, 2026
3038efd
Merge branch 't3/shared-links-server-origin' into t3/verify-analytics…
pseudoseed Nov 24, 2026
1fb7473
fix(web): drop upstream app store links from About
pseudoseed Nov 24, 2026
9df6004
test(server): self-update mirror test expects fork release tags
pseudoseed Nov 24, 2026
da72a5f
fix(web): boot error page keeps fork links without importing packages
pseudoseed Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .agents/skills/contribution-triage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ Enforce [CONTRIBUTING.md](../../../CONTRIBUTING.md), the authoritative eligibili
close PRs with established violations and send eligible PRs to Macroscope for deeper review.
Carry out authorized moderation through completion, without per-PR approval requests.
This skill does not define automatic closure rules for issues or discussions.
End-user `npx t3 triage` diagnostics belong to
[the support playbook](../../../.github/triage/PLAYBOOK.md).

## Determine invocation mode and scope

Expand Down
32 changes: 29 additions & 3 deletions .agents/skills/ship-pseudocode/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ description: Build and ship the PseudoCode fork of T3 Code. Covers the signed ma
PseudoCode is the pseudoseed fork of T3 Code. Every artifact is built on a Mac by hand, because
upstream's release workflow cannot run in this fork (see [CI cannot release this fork](#ci-cannot-release-this-fork)).

Two ship targets exist: a signed macOS DMG and an iOS TestFlight build. Windows, Linux, and Android
are unbuilt here.
Two ship targets exist: a signed macOS DMG with the darwin-arm64 `t3` CLI archive, and an iOS
TestFlight build. Windows, Linux, and Android are unbuilt here.

## Ship it

One command each. Both run from anywhere in the repo.

```sh
.agents/skills/ship-pseudocode/scripts/ship-mac.sh # arm64 DMG; the fork ships no Intel build
.agents/skills/ship-pseudocode/scripts/ship-mac.sh # arm64 DMG and t3 CLI; no Intel build
.agents/skills/ship-pseudocode/scripts/ship-ios.sh # TestFlight upload
```

Expand Down Expand Up @@ -56,6 +56,30 @@ upload as done and processing rather than waiting on it.
`ship-ios.sh` bumps only the `.env.local` it runs in, so copy in the one with the highest
`T3CODE_IOS_BUILD_NUMBER` first.

## The t3 CLI archive

SSH remote installs, `t3 update`, server self-update, and the mobile "check for server update"
all read the fork's GitHub releases, not upstream's. The repository and the `pseudocode-v` tag
prefix live in one place, `packages/shared/src/cliRelease.ts`; `scripts/install.sh` and
`scripts/install.ps1` repeat them because shell cannot import it. An upstream sync that touches
those lines must keep the fork values, or every one of those paths installs upstream's build.

`ship-mac.sh` builds `t3-<version>-darwin-arm64.tar.gz` after the DMG verifies, signs it with the
same Developer ID, notarizes it through the same keychain profile (`APPLE_KEYCHAIN_PROFILE`, read
by `scripts/build-cli-archive.ts`), runs `scripts/smoke-cli-archive.ts`, writes `SHA256SUMS`, and
uploads both to the release. A missing "Notarized t3" line fails the run.

Only darwin-arm64 builds here. Node single-executables do not run on Intel Macs, so there is no
darwin-x64 archive anywhere. Linux archives bundle `libatomic` found through `ldd` and `dpkg` and
need `patchelf`, so they need a Linux host or container. Windows cross-builds need `cargo-xwin`
and the MSVC Rust targets, and ship unsigned without Azure Trusted Signing. A release's
`SHA256SUMS` lists what it publishes. On any other platform an SSH host stops with "publishes no
t3 archive for <platform>" and `t3 update` with "No release archive was published", both before
downloading; the fix is to install that `t3` version on the host by hand.

The fork publishes no nightly or preview builds, so `t3 update --channel` accepts only `stable`
and the mobile check compares every host against the latest stable release.

## Credentials

Set them up once by following [`ROTATION.md`](ROTATION.md). The short version of the rules:
Expand Down Expand Up @@ -141,3 +165,5 @@ been done.
| `Failed to create release, "workflow" scope` | `gh` resolved to the `upstream` remote, where this account has read only. The script passes `--repo` derived from `origin`. |
| Release tag and DMG filename disagree | The version bump missed `apps/server/package.json`. |
| "Check for updates" does nothing | The build ran without `T3CODE_DESKTOP_UPDATE_REPOSITORY`, so the app has no `app-update.yml` and reports updates as disabled. |
| `The t3 CLI archive was NOT notarized` | No notary credentials reached `build-cli-archive.ts`, so it signed without notarizing. A hand-run build must export `APPLE_KEYCHAIN_PROFILE`. |
| SSH host: `publishes no t3 archive for ...` | The release has no archive for that host. Only darwin-arm64 ships; install that `t3` version on the host by hand. |
38 changes: 35 additions & 3 deletions .agents/skills/ship-pseudocode/scripts/ship-mac.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
# Signed, notarized, stapled macOS DMG for the PseudoCode fork.
# Signed, notarized, stapled macOS DMG for the PseudoCode fork, plus the darwin-arm64 t3 CLI
# archive and SHA256SUMS that SSH installs and `t3 update` download from the same release.
#
# ship-mac.sh
#
Expand Down Expand Up @@ -69,6 +70,37 @@ spctl --assess --verbose=4 --type exec "$APP"
cleanup
trap - EXIT

# SSH installs and `t3 update` fetch SHA256SUMS and t3-<version>-<platform> from this release
# tag. Only darwin-arm64 builds on a Mac: Linux archives need a Linux host (ldd, dpkg,
# patchelf, libatomic) and Windows needs cargo-xwin, so those hosts get a clear "no archive"
# error instead of a download.
CLI_DIR=release/cli
CLI_ARCHIVE="$CLI_DIR/t3-$VERSION-darwin-arm64.tar.gz"
CLI_SUMS="$CLI_DIR/SHA256SUMS"
CLI_LOG="$(mktemp -t pseudocode-cli)"
RESOURCE_MONITOR_DIR="$(mktemp -d)"
mkdir -p "$RESOURCE_MONITOR_DIR/darwin-arm64"
cp native/resource-monitor/target/aarch64-apple-darwin/release/t3-resource-monitor \
"$RESOURCE_MONITOR_DIR/darwin-arm64/"

echo
echo "Building the t3 CLI archive. Log: $CLI_LOG"
node apps/server/scripts/cli.ts build-exe 2>&1 | tee "$CLI_LOG"
T3CODE_CLI_MAC_SIGN_IDENTITY="$(security find-identity -v -p codesigning |
sed -n 's/.*"\(Developer ID Application: [^"]*\)".*/\1/p' | head -n 1)" \
node scripts/build-cli-archive.ts --platform mac --arch arm64 --version "$VERSION" \
--resource-monitor-dir "$RESOURCE_MONITOR_DIR" --output-dir "$CLI_DIR" 2>&1 | tee -a "$CLI_LOG"
rm -rf "$RESOURCE_MONITOR_DIR"

# A bare executable cannot be stapled, so Apple's online ticket is the only proof; without it
# macOS kills t3 on first run on another machine.
if ! grep -q "Notarized t3" "$CLI_LOG"; then
echo "The t3 CLI archive was NOT notarized. See $CLI_LOG." >&2
exit 1
fi
node scripts/smoke-cli-archive.ts --archive "$CLI_ARCHIVE" --expect-version "$VERSION"
(cd "$CLI_DIR" && shasum -a 256 "$(basename "$CLI_ARCHIVE")" > SHA256SUMS)

# Publish after verification, never before: an unnotarized DMG on a release page
# is worse than no DMG, because macOS refuses to open it and the download looks
# like the product is broken.
Expand All @@ -80,7 +112,7 @@ REPO="$T3CODE_DESKTOP_UPDATE_REPOSITORY"
# "Check for updates" needs more than the DMG. electron-updater reads
# `latest-mac.yml` to learn the version, then downloads the zip, so a release
# holding only a DMG looks to the app like no release at all.
ASSETS=(release/latest-mac.yml "$DMG" "$DMG.blockmap" "$ZIP" "$ZIP.blockmap")
ASSETS=(release/latest-mac.yml "$DMG" "$DMG.blockmap" "$ZIP" "$ZIP.blockmap" "$CLI_ARCHIVE" "$CLI_SUMS")
for asset in "${ASSETS[@]}"; do
if [ ! -f "$asset" ]; then
echo "Missing update artifact: $asset" >&2
Expand All @@ -105,7 +137,7 @@ else
--draft \
--target "$COMMIT" \
--title "PseudoCode $VERSION" \
--notes "Desktop build for macOS. Signed and notarized."
--notes "Desktop build and t3 CLI for macOS arm64. Signed and notarized."
fi

echo
Expand Down
9 changes: 9 additions & 0 deletions .agents/skills/sync-upstream/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ Run it before the sync PR merges. Its defaults compare against `origin/main`, wh
the old fork once the PR lands. Done when every line it lists is restored or accounted for in the PR
body.

Upstream keeps adding analytics, owner hashing and trace export; the fork has none. A conflict
inside code the fork deleted is resolved by keeping it deleted, and upstream code that adds new
analytics calls is removed, not stubbed. `scripts/no-upstream-telemetry.test.ts` fails on anything
that slips through; see [08_product-analytics.md](../../../docs/internals/08_product-analytics.md).

The CLI release repository and `pseudocode-v` tag prefix in `packages/shared/src/cliRelease.ts`
(and in `scripts/install.sh` and `scripts/install.ps1`) stay on the fork. Taking upstream's lines
makes SSH installs and `t3 update` install upstream's build; `cliRelease.test.ts` fails if they do.

### 4. Bump the version

Raise the version in the 4 files [ship-pseudocode](../ship-pseudocode/SKILL.md) names, and commit
Expand Down
5 changes: 3 additions & 2 deletions .coderabbit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ const DOC_RULES = [
},
{
files: "docs/internals/08_product-analytics.md",
applyTo: "{apps/server/src/telemetry,apps/server/src/feedback}/**/*.ts",
applyTo:
"{packages/shared/src/telemetryBlocklist.ts,apps/server/src/outboundHttp.ts,apps/desktop/src/window/TelemetryRequestBlock.ts,scripts/no-upstream-telemetry.test.ts}",
instructions:
"Hold analytics identity, attribution, and privacy boundaries to docs/internals/08_product-analytics.md.",
"Hold the no-analytics rule and the runtime host block to docs/internals/08_product-analytics.md.",
},
{
files: "docs/internals/09_connection-runtime.md",
Expand Down
78 changes: 0 additions & 78 deletions .github/ISSUE_TEMPLATE/via-triage.yml

This file was deleted.

Loading
Loading