8000 docs(adr): record the layer decisions #123 took by dominikwozniak · Pull Request #141 · dominikwozniak/dw-mc · GitHub
[go: up one dir, main page]

Skip to content

docs(adr): record the layer decisions #123 took - #141

Merged
dominikwozniak merged 1 commit into
mainfrom
docs/123-layer-decisions
Sep 22, 2026
Merged

dominikwozniak merged 1 commit into
mainfrom
docs/123-layer-decisions

Conversation

@dominikwozniak
Copy link
Copy Markdown
Owner

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

  • ADR 0006, domain/: names the flaky classifier as the one domain rule that reads past the store. It reads CI because sweep and rerun have to get the same answer. classify stays pure, and the reads sit beside it in evidenceFor.
  • ADR 0006, terms: a word the glossary names that an adapter decodes into is a term once a layer above reads it by name. The adapter keeps the schema and the read.
  • CONTEXT.md: the Resolve session's Avoid line gets "rebase session".

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.ts tested through reviewTurns).

Test plan

  • pnpm format: passes.
  • I checked the ADR's claims against the code. classify is at src/domain/flaky.ts:101 and evidenceFor at :146. flakyReason's only callers are sweep.ts and rerun.ts. flaky.ts is 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

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>
@dominikwozniak
dominikwozniak merged commit a33ef96 into main Sep 22, 2026
1 check passed
@dominikwozniak
dominikwozniak deleted the docs/123-layer-decisions branch September 22, 2026 16:37
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.

refactor: take the design questions the layers have left open

1 participant

0