Tier-1 DevX fixes for pains hit repeatedly in practice:
1. ci-gate: cancelled != failed. CI runs with cancel-in-progress, so a
follow-up push cancels the earlier commit's run; the gate counted that
as a failure and printed "CI FAILED", blocking a deploy that never
should have run. Now a cancelled run on a SUPERSEDED (non-tip) commit
exits 3 → the hook skips it quietly (the newer commit deploys); only
genuine failure/timeout/action_required block.
2. Per-SHA deploy logs. Every deploy wrote to one shared
/tmp/push-deploy-fleetcrown.log, so completion-greps matched stale
lines from prior deploys (false PROBLEM/DEPLOYED). Each deploy now
writes /tmp/push-deploy-fleetcrown-<sha>.log (+ a -latest symlink),
and `npm run deploy:status` shows live SHA vs origin/main, health,
in-flight deploy, and the last log's verdict — no more curl|grep.
3. `npm run db:apply-box <file.sql>` applies box DDL AS THE APP ROLE, so
objects are owned by `fleetcrown` and visible to the app. Applying as
`postgres` (the reflex) left tables invisible to the app role — the
drift-check false-failed and rolled back twice. Verified: a table it
creates is owned by the app role.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>