Two related fixes after self-review of #2396: 1. workspace_bootstrap.go:62 — `SET status = 'failed'` was missed in the initial sweep. Now parameterized as $3 with models.StatusFailed. Test fixed with the additional WithArgs sentinel. 2. Drift gate now scans production .go AST for hard-coded `UPDATE workspaces … SET status = '<literal>'` and fails with file:line. This catches the kind of miss the first commit just fixed — the original migration-vs-codebase axis only verified AllWorkspaceStatuses ⊆ enum, not "no raw literals in writes." Verified the gate fires: dropped a synthetic 'failed' literal into internal/handlers/_drift_sanity.go and confirmed the gate flagged "internal/handlers/_drift_sanity.go:6 → SET status = 'failed'". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| architecture_test.go | ||
| postgres_migrate_test.go | ||
| postgres_schema_migrations_test.go | ||
| postgres.go | ||
| redis.go | ||
| workspace_status_enum_drift_test.go | ||