Skip to content

Database-design skill: prove derivation changes against old-shape stores - #87

Open
lucasrcezimbra wants to merge 1 commit into
seasonedcc:mainfrom
lucasrcezimbra:skill-derivation-meets-old-stores
Open

Database-design skill: prove derivation changes against old-shape stores#87
lucasrcezimbra wants to merge 1 commit into
seasonedcc:mainfrom
lucasrcezimbra:skill-derivation-meets-old-stores

Conversation

@lucasrcezimbra

Copy link
Copy Markdown

Lesson. In an append-only store, rows written under yesterday's rules are immortal, so a change that re-rules what recorded events mean must be proven against state shaped by the old rules — a fresh-store test can never meet the rows where such a change breaks.

Evidence. PR #83 changed what a backfill failure row means (permission denials became their own outcome). Every gate, three review passes, and a live proof against a freshly seeded store all passed — yet on the first real deployment, 22 archived threads sat permanently failed: their old-shape failure rows had spent the archived-thread final sweep under the old rules, and no new run would ever revisit them. Only a store carrying pre-change history could expose it; the fix (only a completed run spends the final sweep) landed as b7b2ebc after a live install surfaced it.

Why it clears the bar. This is structural to the append-only doctrine, not specific to backfills: any semantic re-ruling of recorded events meets every deployed store's oldest rows. One sentence of policy converts a class of only-found-in-production defects into a seedable unit test.

Not for merging by the session that opened it — this PR is for the maintainer's personal review.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lucasrcezimbra
lucasrcezimbra marked this pull request as ready for review August 17, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant