Skip to content

fix: strip upstream analytics and every path that reveals the fork - #73

Merged
pseudoseed merged 17 commits into
mainfrom
t3/verify-analytics-fully-stripped
Nov 25, 2026
Merged

pseudoseed merged 17 commits into
mainfrom
t3/verify-analytics-fully-stripped

Conversation

@pseudoseed

Copy link
Copy Markdown
Owner

Problem

Upstream T3 Code was publicly called out for default-on telemetry: reading ~/.codex/auth.json and ~/.claude.json to hash account ids, a persistent device id, model and token usage sent through ingest.t3.codes to PostHog, and Axiom relay traces that web and mobile cannot turn off. The fork had only stubbed these out. The startup auth-file reads and the device/account hashes on every WebSocket URL were still live, and several paths still contacted or named upstream: t3 update and SSH installs pulled upstream's telemetry-enabled build, copied links used app.t3.codes, triage filed issues on upstream's repo, and agent feedback existed only to send reports to T3.

Change

  • Removed product analytics end to end: the server telemetry module and every call site, owner and device id hashing, the anonymous install id, client connection metadata on WebSocket URLs, relay client tracing, and expo-observe.
  • Removed agent feedback, in-app triage, and the GitHub star prompt with its star RPC.
  • t3 update, server self-update, the mobile update check and SSH remote install now use pseudoseed/t3code_dev releases. ship-mac.sh builds and uploads the darwin-arm64 CLI archive and SHA256SUMS. Linux and Windows SSH hosts get a clear "no archive" message.
  • Copied thread, prompt and pairing links use the server's own origin, or t3code:// when none is reachable. Mobile drops upstream's EAS owner, project id, update URL and t3.codes associated domains.
  • Runtime block: the server fails DNS for t3.codes, posthog.com and axiom.co, and the desktop main window cancels requests to them.
  • scripts/no-upstream-telemetry.test.ts fails CI if an upstream sync reintroduces any of it. The sync-upstream skill says to delete reintroduced analytics, not stub it.
  • Local usage stats (Usage page, per-model token and cost tracking) are unchanged. The model manifest still refreshes from upstream's GitHub by choice.

Scope

Fork-only privacy work requested by the owner. Not for upstream.

Verification

  • vp run check:changed: format, lint, knip, graphql, typecheck (43 packages) and react compiler pass. 146 of 152 test files pass. The 6 failures are local environment only: Node 22.23.4 here vs the pinned 26.13.1 (regex modifiers in evals, statement.stat in 2 orchestrator tests), the mobile node:sea bundling error (reproduced on the base commit in a clean worktree), and 2 ssh gzip tests tied to macOS tar. CI is the authority.
  • The guard test was shown failing on a planted ingest.t3.codes string, then passing.
  • The server DNS block is tested with a real fetch in a child process: it fails with ENOTFOUND without ever reaching the real resolver.
  • The owner's live database has zero feedback cards or events, so removing the feedback turn item type strands nothing.

Claude Opus 5.5 via Claude Code in PseudoCode.

🤖 Generated with Claude Code

pseudoseed and others added 14 commits November 24, 2026 12:37
PseudoCode already turned T3 Connect relay tracing into a no-op, but the
code, build-time trace credentials and opt-out plumbing were still shipped.

Delete the shared relayTracing module and every withRelayClientTracing /
withLocalTracing wrapper across server, client-runtime, web and mobile.
Drop the trace fields from public cloud config, app config and build
scripts, the desktop relay telemetry IPC channel, and the
T3CODE_TELEMETRY_ENABLED forwarding that only fed it. User-configured
OTLP export is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fork had disabled upstream's analytics with no-op stubs, but the server
still read ~/.codex/auth.json and ~/.claude.json at startup to hash account
ids, clients still put hashed device and Connect account ids on every
WebSocket URL, and expo-observe still shipped in the mobile app.

Removed the server telemetry module and every call site (MCP tool events,
turn and token analytics, feature usage, guest share, Codex sign-in events,
startup heartbeat and owner recording, the anonymous install id), the client
owner and device params and their device id store, and expo-observe. Agent
feedback reports now stay on the machine.

Added a runtime block: the server fails DNS for ingest.t3.codes, posthog.com
and axiom.co, and the desktop main window session cancels requests to them.
scripts/no-upstream-telemetry.test.ts fails CI if a sync brings any of it back.

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

# Conflicts:
#	docs/internals/08_product-analytics.md
#	packages/client-runtime/src/connection/resolver.ts
Also drops expo-observe from the lockfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removes the GitHub star prompt and its star RPC, the T3 Code git identity on
stack rebases, the T3 Code credit in new project READMEs, and upstream's EAS
owner, project id and update URL in the mobile config. Web download, mobile
and privacy links point at the fork's repository. Requests name PseudoCode
instead of T3 Code to GitHub and OpenAI. The runtime blocklist now covers
all of t3.codes, not just its ingest host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The triage feature told agents to fetch upstream's playbook, clone the
upstream repo and file issues there. Remove it on every surface instead
of retargeting it.

- server: TriageService, `t3 triage` CLI, server.prepareTriage handler,
  triage capability, RPC instrumentation and shard weight entries
- contracts and client-runtime: prepareTriage RPC, input/result/error
  schemas, permission scope, capability flag
- web: command palette action, triage draft hero, machine-switch playbook
  carry-over, boot error triage command, the handleNewThread prompt option
  that only triage used
- mobile: command palette action, new-task machine-switch carry-over
- shared triagePrompt helpers, i18n strings, docs/user/triage.md, the
  .github triage playbook and via-triage issue template

Old servers that still report `capabilities.triage` decode fine since
excess struct keys are ignored. No setting or keybinding named triage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SSH remote installs, `t3 update`, server self-update, the mobile server update check, the
install scripts, and the desktop recovery links all pointed at pingdotgg/t3code, so they
fetched upstream's build. They now read pseudoseed/t3code_dev releases tagged
pseudocode-v<version>; the repository and tag prefix live once in cliRelease.ts.

The fork has no nightly or preview releases, so `t3 update --channel` takes only stable and
the mobile check compares every host against the latest stable release. The SSH runner reads
SHA256SUMS first and stops with a clear message when the release has no archive for the host.

ship-mac.sh now builds, notarizes (through the keychain profile, newly supported by
build-cli-archive.ts), smoke-tests, and uploads the darwin-arm64 CLI archive and SHA256SUMS.

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

# Conflicts:
#	apps/web/src/branding.ts
#	apps/web/src/lib/bootError.ts
Agent feedback only existed to send reports to upstream T3 through
analytics, which this fork already strips, so reports were stored locally
and every card closed as cancelled. Remove the feature on every surface:
the t3_feedback MCP tool, `t3 feedback` CLI, feedback store and service,
the agentFeedback setting and capability, the feedback_request turn item
and event, the answer RPC, web and mobile cards and settings rows, the
runtime instruction line, its eval case, and unused translations.

Migration 108 stays since migrations are append-only. A settings.json that
still holds agentFeedback decodes with the key ignored.

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

# Conflicts:
#	apps/server/src/auth/RpcAuthorization.test.ts
#	apps/server/src/feedback/FeedbackReport.ts
Copied thread links, prompt links, pairing links and links handed to
outside MCP clients were built on upstream's hosted app (app.t3.codes),
which this fork does not run.

Copied links now use the environment's own web app: the address this
client reaches it on, else a LAN or tailnet endpoint the server
advertises, else the t3code:// app scheme. Pairing links use the
endpoint's own /pair URL. Outside MCP clients get links on the origin
they called. A pasted server link becomes a chip when the clipboard's
T3 fragment carries that thread, and MCP still points a pasted link at
its thread id. Old app.t3.codes thread links still parse, without any
network access.

The mobile app drops the app.t3.codes and clerk.t3.codes associated
domains and Android intent filter (the .well-known files go too), and
its Legal screen opens the fork's telemetry doc instead of t3.codes.
The hosted app URL used by T3 Connect sign-in and approval now has no
default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:XXL labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 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 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
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 186.2 KiB 186.2 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 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
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 188.1 KiB 188.1 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: 21a4a88 · PR result: da72a5f · 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 and others added 3 commits November 24, 2026 15:10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The boot error page runs before the app bundle, so its new import from
@t3tools/shared broke the bundled dev bootstrap. Also updates a client
runtime test that still expected connectionMethod on the socket URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pseudoseed
pseudoseed merged commit bb0d45b into main Nov 25, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:XXL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant