8000 docs: ADR 0002, small single-entry modules in the joint and ratio groups stay separate by rafatahmed · Pull Request #330 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

docs: ADR 0002, small single-entry modules in the joint and ratio groups stay separate - #330

Merged
rafatahmed merged 1 commit into
mainfrom
docs/adr-small-modules
Nov 26, 2026
Merged

rafatahmed merged 1 commit into
mainfrom
docs/adr-small-modules

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

Closes #329.

Adds docs/adr/0002-small-single-entry-modules-stay-separate.md. It records that the small single-entry modules in the joint_* and ratio_* groups stay separate: each is a deep module (one or two names over 90 to 280 lines), folding them into joint_solver would move about 800 lines into a 1,175-line file without concentrating complexity, and ratio_stocks and ratio_product_stocks are layers, not duplicates. The consequence is a rule of thumb for future reviews: fold a module only if its interface is nearly as large as its implementation, or if deleting it would make complexity reappear in several callers.

A documentation-only change: no code, test, changelog or API reference change, so the suite and the PHREEQC fixture are not rerun.

@rafatahmed rafatahmed added the documentation Improvements or additions to documentation label Nov 26, 2026
@rafatahmed rafatahmed self-assigned this Nov 26, 2026
@codecov
codecov Bot commented Nov 26, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (17c6a41) to head (b2f4dc5).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #330   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          148       148           
  Lines        17464     17464           
  Branches      3539      3539           
=========================================
  Hits         17464     17464           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rafatahmed
rafatahmed marked this pull request as ready for review November 26, 2026 15:33
@rafatahmed
rafatahmed merged commit 6f735fd into main Nov 26, 2026
29 checks passed
@rafatahmed
rafatahmed deleted the docs/adr-small-modules branch November 26, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Record why the small joint and ratio modules stay separate (ADR 0002)

1 participant

0