Database-design skill: prove derivation changes against old-shape stores - #87
Open
lucasrcezimbra wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lucasrcezimbra
marked this pull request as ready for review
August 17, 2026 18:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 asb7b2ebcafter 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