Live state first
The single most-repeated lesson on this machine: twelve-plus recurrences of building against a world that no longer exists — invented columns from a stale handover, a "still open" item carried across four handovers a month after it was done, an audit finding two migrations stale, a reviewer's citation superseded by a later migration. Layer: norm + playbook — the one-line norm in the global CLAUDE.md is the everyday trigger; this file is the depth.
The rule
Every document claim — including the repo's own comments, skills, and FORWARD notes — is a claim, not a fact. Before it becomes an input to code, SQL, config, or a fixture, verify it with one cheap probe of the live source. The latest migration, policy, or config is the truth; when two documents disagree, the catalog settles it.
How to apply
- One cheap probe before building: a catalog query for schema claims
(
information_schema,pg_policy,pg_get_functiondef), the deployed surface for behaviour claims, the actual config for settings claims. - The file is not the live object, in either direction. The live database routinely runs ahead of main (raw-applied unmerged migrations) and behind the repo (comments and fixes never applied). A migration file's text is evidence of intent, not of state.
- Query the live distribution, not just the schema, before building on a data assumption — 254 residue rows once would have shipped a correct feature looking broken.
- Structured data needs a parser, not a grep with context lines. Grep-with-context misled on JSON twice; scope schema greps to the block they describe.
- Staleness ranks: "still open" items in handovers, path hints in a repo's own docs, and audit trackers are the most likely claims to be stale — they record status at a moment, not state.
What this skill does not do
It does not probe repo state — fetch, PR lists, and identifier ceilings are parallel-work-recon's territory. It does not define migration verification (that is db-migration-verification's post-apply half; this skill is the pre-compose half).
Why
Documents decay the moment parallel work exists, and composing from a stale description produces confident, wrong artifacts that pass review because the reviewer reads the same stale document. Evidence: PropOS LESSONS_LEARNED Sessions 9, 11, 12, 22, 41, 52, 54, 2026-07-06, 2026-07-08, 2026-07-09, 2026-07-19, 2026-07-20; ASH LESSONS_LEARNED 2026-05-25, 2026-07-10.
Additions from the misses-log sweep (2026-10-22)
-
A time, date or count written into a record is read from a command, never composed. The reading is substituted into the write by the shell, in the same command, so the write path carries it and no hand ever retypes it. On Windows use
Get-Datein PowerShell, not Git Bashdate, which has no time-zone database on this machine and printed GMT during BST. Where substitution is impossible, run the command in its own call and copy what it printed verbatim into the next, with no rounding and no arithmetic. A value no command can give is written as unknown. (ICC L-093, seven instances; library 34, two slips on one day, the second of them hours after a note saying to useGet-Datehad been written into memory and into NOW.md's traps.)An earlier form of this bullet said to run the clock in its own call and forbade taking the reading in the same command as the write, the reverse of the rule above, on the ground that a same-command reading "was typed before it existed". That is true of a typed value and false of a substituted one, and
docs/SKILL_PROPOSALS_2026-11-01.mdflagged the contradiction with library 34 as needing Ben's decision. Resolved 2026-11-05 in favour of library 34, which is the empirically tested half: a separate call still leaves a human or a model carrying the value across the gap, and that is where both of the 2026-10-04 slips happened. Reversible by restoring the old wording. -
"Nothing owed" on a threaded surface is read from every branch that touches us, never from the tail. A comment thread, forum or review is a tree: a reply to us can sit nested under our own comment while someone else holds the newest slot, and a tail read then says "settled" with a reply four days unanswered. To decide whether anything is owed, list the comments whose parent (at any depth) is one of ours and that are newer than our last write there; to decide whether a send is done, find our own landed id. Neither question is answered by who spoke last. (Commonhold L-054, 2026-09-12, and its recurrence L-163, 2026-11-11: a reply under our envoy's comment missed by four daily watch runs and one agent run, all of which read the tail.)


