Date/Time: 2026-05-15 19:03:09 EDT
scripts/deploy.ts so ./deploy now fails fast when
deployment/docker/workspace-root is stale. The script now runs
bun run check:docker-workspace during local prechecks and prints a clear remediation
message to run sync + commit before deployment.
localWorkspaceSnapshotPrecheck() in scripts/deploy.ts.localMainPrecheck()localBranchPrecheck()Refusing deploy: deployment/docker/workspace-root is out of sync. Run bun run sync:docker-workspace, commit updated snapshot files, then retry deploy.
bun.lockdeployment/docker/workspace-root/bun.lock
The deployment compose stack builds from a snapshot under
deployment/docker/workspace-root. If that snapshot drifts from the active
workspace graph, Docker build-time bun install --frozen-lockfile fails remotely.
This change catches drift locally before any remote rollout starts.
spawnSync("bun", ["run", "check:docker-workspace"]) with inherited stdio for transparent output../deploy main and ./deploy current-branch flows.bun run scripts/deploy.ts --helpbun run check:docker-workspace (after lock sync)bun run check:docker-workspace on the server in remote rollout before docker compose up -d --build.bun run check:docker-workspace to PR checks to prevent stale snapshots reaching main.islandflow-k4f.