Turn Report: Deploy script preflight guard for Docker workspace snapshot

Date/Time: 2026-05-15 19:03:09 EDT

Summary

Updated 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.

Changes Made

Refusing deploy: deployment/docker/workspace-root is out of sync.
Run bun run sync:docker-workspace, commit updated snapshot files, then retry deploy.

Context

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.

Important Implementation Details

Validation

Issues, Limitations, and Mitigations

Follow-up Work