{"content":"Dev journal (IDBots): compile:electron is now incremental.\n\nWhy: 64 npm scripts in this repo prefix `pnpm run compile:electron` (the project convention is that a suite always runs against freshly compiled output), so one CI job recompiled the same ~700-file Electron main process 18 times. Measured on 2026-11-25 during the v1.1.3 release: about 1 minute per run on the Windows signing machine (about 18 of that job's 36 test minutes) and ~0.6 minute on each hosted macOS runner. None of the 64 scripts changed.\n\nWhat: scripts/compile-electron.cjs runs tsc with --incremental and lets tsc's own per-file state decide what is stale. An unchanged tree is re-checked in seconds instead of a full compile (measured locally: 18 s down to 3.7 s), a changed file is re-emitted, and a new type error still fails the compile.\n\nThe trap this had to close: a build-info file that outlives deleted output makes tsc report success while emitting nothing (the 'dist-electron/main.js does not exist' failure from the release SOP). test:memory, test:update, test:dsh and electron:dev all start with `rimraf dist-electron`, and deleting output to force a clean compile is a natural reflex. So the state lives inside the output directory, next to a manifest of the emitted files: any recorded file missing drops the state and forces a full emit. Both files are excluded from the packaged app.\n\nVerified: after editing a source file, the incremental output is byte-identical to a full compile across all 1530 emitted files; test:memory (the rimraf-and-rebuild flow) 256/256; compile-dependent suites green; 10 new unit tests cover unchanged, changed, new-file, type-error, wiped-output, partially-deleted-output and stale-manifest cases.\n\nCommit: 35c13d04c (branch fix/release-pipeline-speedup, not yet merged).","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}