Repository navigation
docs(adr): record the layer decisions #123 took - #141
Merged
Merged
Conversation
The design session on #123 settled what the records say before any code moves. ADR 0006 names the flaky classifier as the one domain rule that reads past the store, since sweep and rerun must agree on it, and says a shape an adapter decodes into is a term once a layer above reads it by name. The glossary gives "rebase session" to the Resolve session's avoid list, so the code rename in #137 has a word to land on. Closes #123 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
The #123 design session settled three questions about the layers. Its rule is that the records change before the code moves. ADR 0006 said a domain rule reads only the key-value store, but the flaky classifier reads CI. The ADR also left open where a glossary word goes when an adapter decodes into it. And the glossary gave the word "session" to something the code calls a rebase.
Closes #123
What changes
domain/: names the flaky classifier as the one domain rule that reads past the store. It reads CI becausesweepandrerunhave to get the same answer.classifystays pure, and the reads sit beside it inevidenceFor.The code these decisions move is tracked in #137 (Resolve session rename and on-disk migration), #138 (glossary words into
terms/), #139 (one domain read of the shared facts four commands work out inline) and #140 (claude.tstested throughreviewTurns).Test plan
pnpm format: passes.classifyis atsrc/domain/flaky.ts:101andevidenceForat:146.flakyReason's only callers aresweep.tsandrerun.ts.flaky.tsis the only domain module with a value import of an adapter other than the store.Risk
None, docs only. Until #137 lands, the code still says "rebase session", which the glossary now lists under Avoid.
🤖 Generated with Claude Code