Skip to content

docs(adr): ADR-0042 flag remaining-consumer count on consumer removal - #332

Merged
thejefflarson merged 2 commits into
mainfrom
thejefflarson/jef-372-process-flag-a-shared-layers-remaining-consumer-count-when-a
Aug 8, 2026
Merged

docs(adr): ADR-0042 flag remaining-consumer count on consumer removal#332
thejefflarson merged 2 commits into
mainfrom
thejefflarson/jef-372-process-flag-a-shared-layers-remaining-consumer-count-when-a

Conversation

@thejefflarson

Copy link
Copy Markdown
Owner

Summary

Process/ADR change — no engine code. Records a review discipline: when a PR
removes a consumer of a shared layer or abstraction, its description states
the layer's remaining live-consumer count in one line; a drop-to-one is
flagged in review as a refactor smell, not merged silently.

The meta-finding this ADR fixes: per-PR review can't see that a neighboring
PR deleted the premise this one rests on. Concrete precedent used as the
ADR's Context (found in this repo's own history, cited by PR number, no
Linear IDs):

What changed

  1. docs/adr/0042-flag-remaining-consumer-count-on-consumer-removal.md
    new ADR recording the discipline + the perf(model): cache all ollama completions in one bounded client middleware (JEF-362) #189/refactor(engine): remove the model-backed hypothesis stage — deterministic proof only (JEF-363) #190/revert(model): drop the ollama completion cache — redundant + Uncertain-pinning hazard (JEF-364) #191 precedent as Context.
  2. CLAUDE.md — one-line Workflow checklist entry pointing at ADR-0042.
  3. docs/adr/README.md — index row for ADR-0042.

Out of scope (follow-up for the plugin owner)

The ticket also suggests the /work architect step check for cross-PR
premise removal within a review batch. That's the external workflow
plugin (~/.claude/plugins/…), not this repo — flagging here as a
follow-up for whoever owns that plugin, not implementing it in this PR.

Testing

  • cargo test --test self_containment_guard --test file_size_guard — both
    pass (confirms the new ADR carries no JEF-nnn/linear.app references
    and no file exceeds the 1,000-line cap).
  • Manual review: ADR format matches existing ADRs (Context/Decision/
    Consequences/References), README row matches existing row format.
  • soundcheck:pr-review — no Critical/High findings (docs-only diff).
  • /simplify — single-pass manual review (Agent tool unavailable in this
    context); nothing to simplify in a 3-file docs diff.

Closes JEF-372

🤖 Generated with Claude Code

thejefflarson and others added 2 commits August 8, 2026 12:26
Process/review discipline, no engine code: when a PR removes a consumer
of a shared layer or abstraction, its description states the layer's
remaining live-consumer count in one line; a drop-to-one is flagged in
review as a refactor smell, not merged silently.

Concrete precedent recorded as Context: PR #189 added a shared
model-completion cache "so EVERY model consumer is covered"; PR #190
merged eight minutes later and deleted one of its two consumers (the
hypothesis stage); the conjunction — invisible to either single-PR
review — left a redundant, Uncertain-pinning cache that PR #191 had
to revert less than an hour later. Extends ADR-0024's single-PR
redundant-by-construction rule across a two-PR conjunction.

Adds a one-line CLAUDE.md Workflow checklist entry pointing at the
ADR, and a docs/adr/README.md index row.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VtjoJttCvBY4dzCoE4f9vP
@thejefflarson
thejefflarson merged commit b87f176 into main Aug 8, 2026
5 checks passed
@thejefflarson
thejefflarson deleted the thejefflarson/jef-372-process-flag-a-shared-layers-remaining-consumer-count-when-a branch August 8, 2026 20:07
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