Commit 49269da
committed
docs(agent-context): warn against hand-mutating the live DB; make verify --db a done-check
The "schema is generated" principle covered "never hand-write SQL" but not the most common
real-world violation: applying a schema change directly to a *running* database — an ad-hoc `psql`
ALTER/CREATE to preview a column or unblock a boot. That drifts the live DB from the metadata +
migration history and collides at the next migrate/boot ("column already exists") — a state no
migration can reproduce. It slips past the metadata-first check precisely because it doesn't feel
like a schema change.
- always-on scaffold: add a principle — the live DB is a derived artifact too; apply schema only via
`meta migrate`; run `meta verify --db` after any DB-touching work.
- metaobjects-verify skill: add a section explaining the failure mode + naming the rationalization
to catch, and positioning `verify --db` as a done-check, not just a CI gate.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XmVe7GGW7EPpxEMdGFHZiX1 parent cfd96cc commit 49269da
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
101 | 124 | | |
102 | 125 | | |
103 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments