Repository navigation
feat: support volumetric stocks with water and product uncertainty - #258
Merged
Merged
Conversation
Preserve real-water, assay and physical bounds through rounded stock delivery. Retain nutrient reserve and pH-range saturation checks. Refs #257.
The new product-stock path reaches analytical validation instead of the former blanket rejection. Update that assertion and document the three new error codes. Refs #257.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #258 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 136 137 +1
Lines 16175 16235 +60
Branches 3287 3302 +15
=========================================
+ Hits 16175 16235 +60
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rafatahmed
marked this pull request as ready for review
November 16, 2026 22:19
This was referenced Nov 17, 2026
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.
Summary
Fixed-ratio recipes previously rejected volumetric stocks with real-water/product uncertainty. This adds an explicit supplied-product g/L basis and replays rounded mL doses through the existing inventory and chemistry checks.
Closes #257. Legacy pure-compound stocks remain supported. No lab-management features added; laboratory testing remains deferred.
Evidence
After: gram/mL equivalence, invalid/overfilled preparation rejection, dose rounding, uncertainty and name-collision regressions pass.
Merge Danger
Door: two-way
Opt-in stock contract; no data migration or thermodynamic-constant changes. Do not merge during this validation task.
Blast Radius: planning
Shared uncertainty mass bounds and stock validation also serve existing recipe modes. Compatibility and exact-coverage checks remain required. Stock evidence integration and laboratory testing are deferred.