# E1: raw XDG cache path with trailing space

Captured **1/1 requested row**, before and after, for [#32559](https://git.cafe/pingdotgg/t3code/pull/32559) ([GitHub mirror #32559](https://github.com/pingdotgg/t3code/pull/32559)). **PASS.** No additional PR behavior outside updater cleanup and install-record handling was observed. Ordinary startup side effects are exhaustively listed by path in the linked snapshot inventory.

Environment: Ubuntu 24.04.4 LTS x86_64; Electron 44.10.1 (Node 24.22.1); Xvfb 21.1.12 via `headless-desktop`; app 0.1.8. Both launches used `--no-sandbox --disable-gpu --password-store=basic`. Each revision was installed with `vp install` and built with `vp pack` in its own detached checkout. Its unchanged production main/preload bundles were staged with a renamed standalone Electron executable and `resources/app`; native `app.isPackaged=true` is recorded, with no property override. Build logs, source hashes, bundle hashes, and metadata accompany the recordings.

Fresh synthetic HOME, T3CODE_HOME, XDG config/data/runtime/cache, and TMPDIR for each side; backend disabled; T3CODE_DEV_SEED=0. No live T3 database was read or seeded. The same reused driver handles both sides. The wrapper records metadata, captures the real registered updater IPC listener, and passively forwards fs.mkdir. E1 invokes `desktop:update-get-state` through that registered handler; it does not exercise a renderer roundtrip. Automatic checking/downloading is disabled, but configure-time cleanup executes. No download or installer is required for this startup row. Other feed/download logic from the reused driver remains available but is not exercised here.

The exact absolute paths are printed as JSON in each transcript. Relative paths are:

```json
{"XDG_CACHE_HOME":"<run>/cache ","realPending":"<run>/cache /t3code-updater/pending","trimmedPathDecoy":"<run>/cache/t3code-updater/pending/decoy.AppImage"}
```

The real cache contains `pending/old-payload.AppImage`, `pending/update-info.json`, `update.zip`, `current.blockmap`, and `sentinel`; an additional unrelated sentinel sits beside the updater cache. The record targets the running version 0.1.8 from 0.0.1.

Steps: seed both trees and the applied record; list/hash all scoped files; launch the actual Electron app under headless-desktop; wait for completed configuration and IPC registration; list/hash again and request updater state; assert decoy and sibling hashes; quit; record final state; reap all started session descendants. The app does not emit a success-cleanup log; timestamped filesystem snapshots and actual updater-state responses provide the evidence. Headless portal/PipeWire warnings are retained and do not affect the assertions.

| Step (UTC) | Before | After |
| --- | --- | --- |
| Capture window | 2026-11-10T16:04:08.356Z–2026-11-10T16:04:08.972Z | 2026-11-10T16:04:08.972Z–2026-11-10T16:04:09.636Z |
| Seed listing + hashes | 2026-11-10T16:04:08.423Z | 2026-11-10T16:04:09.036Z |
| Updater configured / IPC registered | 2026-11-10T16:04:08.837Z | 2026-11-10T16:04:09.465Z |
| Updater IPC state response | 2026-11-10T16:04:08.879Z | 2026-11-10T16:04:09.508Z |
| Decoy hash assertion | 2026-11-10T16:04:08.880Z | 2026-11-10T16:04:09.508Z |
| Electron exit | 2026-11-10T16:04:08.942Z | 2026-11-10T16:04:09.610Z |
| Final listing + hashes | 2026-11-10T16:04:08.949Z | 2026-11-10T16:04:09.615Z |

| Before | After |
| --- | --- |
| SHA [20c3dd3689](https://git.cafe/pingdotgg/t3code/commit/20c3dd3689782bfcb1a04332086d08017028c718) | SHA [cc3188460e](https://git.cafe/pingdotgg/t3code/commit/cc3188460ec3d52aa9acaffa7418784ddb04c264) |
| [before-E1-recording.zip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/62ec5638c1b4d2b3/before-E1-recording.zip) | [after-E1-recording.zip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/92de6446a896561f/after-E1-recording.zip) |
| Both pending trees remain; applied record consumed. | Only `cache /t3code-updater/pending` is removed; trimmed-path decoy stays; applied record consumed. |
| update.zip, current.blockmap, real sentinel and unrelated sentinel hashes unchanged. | update.zip, current.blockmap, real sentinel and unrelated sentinel hashes unchanged. |

Shared SHA256 invariants (asserted on both sides):

| File | SHA256 |
| --- | --- |
| Trimmed-path pending decoy | `d848724a218a3d88e49a3c5da215c711722d8ef478811ef3037565aec4f4579c` |
| update.zip | `bd8c1f84b7486d391150e4b507a7ac6d7d2cd8faf54b00eda484f4c6eaa6576b` |
| current.blockmap | `d399573a178ca290c08ff0878012e56621d777c9d97a99c1d698a5db9d9a4a56` |
| Real cache sentinel | `824afd296786ea6d11cec2fff3c7167f94eb3b0704fc283e1a8ba0bd77865b8e` |
| Unrelated sentinel | `a94ef07b1e5d1691b7a594916d338d2112ba78276853a47b356ba896b56a7b69` |

Listing/hash comparison: [state-diffs.zip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/189b41c2d60525e4/state-diffs.zip) contains E1-state-diff.md (all scoped snapshots and final cross-revision difference) and E1-state-diff.json (scoped and full settled cross-revision differences). Each recording contains timestamped script transcript/timing files for scriptreplay, raw Electron logs, provenance, seed config/record, milestone manifests, result assertions, and settlement manifest.

## What else changed

Snapshot coverage: isolated home, trimmed cache decoy, literal trailing-space cache, xdg-config, xdg-data, xdg-runtime, tmp, and t3. Metadata includes type, mode, size, and SHA256. Snapshot inventories do not claim to trace every transient syscall or unrelated paths elsewhere on the machine. Generated credentials, keyring/profile/database contents are excluded from uploads; manifests carry metadata only.

- Chromium creates profile/partition databases, preferences, caches, local storage and GPU cache files; generated paths/bytes vary between runs and are not attributed to this PR.
- Desktop protocol registration creates mimeapps.list, an application entry, MIME cache, and icon directory.
- headless-desktop creates isolated keyring/NSS, D-Bus/accessibility, portal, and session state. Settlement diffs include session cleanup.
- T3 creates clerk/log directories, a first-launch marker and shell-environment cache; its settings loader normalizes the synthetic desktop-settings.json.
- The only modified pre-existing file outside expected pending/record cleanup is that desktop-settings.json normalization. Other observed changes are generated startup files/directories.

Every other settled path change is listed in [what-else-changed.md](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/5e15fb2fa8cd2654/what-else-changed.md) and each bundle's what-else-changed.json: **140** before, **145** after. Complete cross-revision settled differences are in [state-diffs.zip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/189b41c2d60525e4/state-diffs.zip).

## Drivers, cleanup, and limits

The uploaded capture-entry.cjs and supervise.py are reused unchanged; prepare/run/record/package are adapted only for this scratch area, exact commits, and E1 fixture/assertions. adapt-drivers.py records those adaptations to the original downloaded drivers.

[prepare.mjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/1aab01e543b47a92/prepare.mjs)

[capture-entry.cjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e02e2c948993ec47/capture-entry.cjs)

[run.mjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/c6dad02d59f02757/run.mjs)

[record.mjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/7218478312a54c3f/record.mjs)

[package.mjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/553a82247ae71b55/package.mjs)

[supervise.py](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/002e0aa06082c027/supervise.py)

[adapt-drivers.py](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/29cb2de381313088/adapt-drivers.py)

[build-provenance.zip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4cf68cdb785d61b0/build-provenance.zip)

[inventory.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b45171cfe32b189d/inventory.json)

Both tracked Electron PIDs exited with code 0 and were verified absent. Each transcript ends with `SUPERVISOR all started descendants reaped`. No feed server, dev server, emulator or device lease was started for E1. Both additional worktrees were removed after uploading the evidence; scratch is retained. The lead worktree and concurrent capture-2 files were not modified. No commit, push, PR edit or forge mutation occurred.

Unverified requested rows: **none**. This proves the requested Linux trailing-space XDG_CACHE_HOME case. Native macOS/Windows, whitespace-only variables, downloads, native installation, and renderer interaction are outside this row's scope.

AI-assisted; verified with the tests and tools listed above.

## Upload output (verbatim)

[before-E1-recording.zip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/62ec5638c1b4d2b3/before-E1-recording.zip)
[after-E1-recording.zip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/92de6446a896561f/after-E1-recording.zip)
[state-diffs.zip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/189b41c2d60525e4/state-diffs.zip)
[what-else-changed.md](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/5e15fb2fa8cd2654/what-else-changed.md)
[build-provenance.zip](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4cf68cdb785d61b0/build-provenance.zip)
[prepare.mjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/1aab01e543b47a92/prepare.mjs)
[capture-entry.cjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e02e2c948993ec47/capture-entry.cjs)
[run.mjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/c6dad02d59f02757/run.mjs)
[record.mjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/7218478312a54c3f/record.mjs)
[package.mjs](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/553a82247ae71b55/package.mjs)
[supervise.py](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/002e0aa06082c027/supervise.py)
[adapt-drivers.py](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/29cb2de381313088/adapt-drivers.py)
[inventory.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b45171cfe32b189d/inventory.json)

FRICTION: none
