docs(CLAUDE.md): add write/read symmetry convention (#174, #175) - #176
Merged
Conversation
This session found two bugs of the same shape — write canonicalizes the value, read doesn't — at the room (#174) and wing (#175) layers. The lesson generalizes: any time a write normalizes/validates input into a canonical form, every read surface must apply the same normalization/validation, or you get silent empty-result bugs where the same data is unreachable by a slightly-different query. Codify the discovery pattern so future code review catches it proactively rather than after-the-fact: "when you find a write that canonicalizes a value, grep for every endpoint that reads that value and verify they share the canonicalization." Sits next to the silent-exception convention (#169) and the library- version awareness section as the third recurring pattern this session's autonomous loop converged on. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
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.
This session found two bugs of the same shape — write canonicalizes the value, read doesn't — at the room (#174) and wing (#175) layers. The lesson generalizes: any time a write normalizes/validates input into a canonical form, every read surface must apply the same normalization/validation, or you get silent empty-result bugs.
Codifies the discovery pattern so future code review catches it proactively rather than after-the-fact. Sits next to the silent-exception convention (#169) and the library-version awareness section as the third recurring pattern this session converged on.