Repository navigation
Description
Ruling from Jackson (2026-09-02): J5 Code must never share on-disk locations or environment names with an installed upstream T3 Code. Someone running both must get two fully independent apps. The home directory already moved to ~/.j5code (issue #33); this ticket finishes the job.
Measured inventory (j5/main)
On-disk paths still bound to .t3 (collision-capable):
- Worktree state default
<worktree>/.t3—scripts/dev-runner.ts(precedence comment and resolution near lines 323 and 678–706),apps/server/src/cli/pair.ts(worktree lookup ~257–267),@t3tools/shared/devHome, and.gitignore(.t3). - Telemetry anonymous-id fallback
~/.t3/telemetry/anonymous-id—apps/server/src/telemetry/Identify.ts~252. - Tests that assert the old shape (
config.test.ts"without touching ~/.t3" is the guard to keep;bootService.test.ts,service.test.tsfixtures use.t3paths as inputs only).
Environment variables — one collision-capable, the rest cosmetic:
T3CODE_HOME— read byapps/server/src/cli/config.ts:107,cli/pair.ts:264,scripts/dev-runner.ts(exported to the child),apps/desktop/src/app/DesktopEarlyElectronStartup.ts:54,apps/server/src/serviceLauncher.ts:603(required), and written into generated systemd units byapps/server/src/cloud/bootService.ts:64. Hazard: a machine that setsT3CODE_HOMEfor upstream T3 (Jackson's Linux box does, for thet3devservice) would silently point a J5 server at upstream's state. This is the same class of defect as the old~/.t3default, reachable from a real deployment.- ~30 other
T3CODE_*names (T3CODE_PORT,_HOST,_MODE,_LOG_LEVEL, trace/OTLP settings, dev-runner offsets, desktop mock ports). Sharing these with upstream is a nuisance, not a data collision.
Scope of this ticket
- Worktree state directory becomes
<worktree>/.j5code(dev runner,pair, shared devHome helper,.gitignore), with the same precedence rules as today. - Telemetry fallback path moves under
~/.j5code. T3CODE_HOMEis replaced byJ5CODE_HOMEeverywhere it is read or written (server config, pair, dev runner, desktop startup, service launcher, systemd unit generation,docs/j5/dogfood-runtime.mdand the operator scripts underscripts/j5/). No compatibility shim: pre-dogfood, an ambientT3CODE_HOMEmust be ignored by J5 entirely — that is the point.- Tests: keep the "never touches
~/.t3" guard and add its twin: an ambientT3CODE_HOMEdoes not influence J5's base dir.
Deferred to the naming audit: renaming the cosmetic T3CODE_* settings. They touch many upstream files for no isolation gain; do them in one sweep when the glossary rename happens.
Every touched file here is upstream-owned, so each edit is an enumerated FORK.md integration case with anchors. Contributor rule reference: docs/j5/process/working-in-the-repo.md.
Activity