Skip to content

feat: complete Sonneveld recipe search, preparation and feedback - #266

Merged
rafatahmed merged 5 commits into
mainfrom
feat/sonneveld-workflow-followups
Nov 17, 2026
Merged

rafatahmed merged 5 commits into
mainfrom
feat/sonneveld-workflow-followups

Conversation

@rafatahmed

Copy link
Copy Markdown
Owner

Summary

  • Rank available fertilizer alternatives by tolerance attainment and grower preferences. Keep evaluated recipes and failures, and spend a shared search budget on a distinct joint start and residual-guided product retries. Report linear inventory lower bounds per attempted joint reagent and pool.
  • Verify rounded dry, stock and pH-reagent doses. When needed, jointly search adjacent increments and declared separate-stock strengths. Account for declared dry and reagent uncertainty and optional nutrient ceiling reserve.
  • Preserve exact Steiner pH endpoints, the exact strength cap, and failed preparation assessments. Closes fix: preserve Steiner search boundaries and preparation failures #265.
  • Compare a dated root-zone sample with nutrient guides, preview explicit feed changes and require approval of that exact preview before using the calculated A–D targets in batch formulation.

Evidence

  • The Appendix I suite exercises the fixed bicarbonate-equivalent dose, original-inventory pH 5.50 near-fit, admitted sodium nitrate, and the 1,000 L pH 5.50 recovery and rounded feed with sodium nitrate excluded.
  • The original recipe can miss when the inventory is restricted. Regression tests check a budgeted recovery, rank eligible recipes and preserve earlier candidates after later failures. Other tests distinguish a positive linear inventory lower bound from numerical exhaustion.
  • A rounded copper or reagent dose can miss preparation tolerances. Regression tests exercise the adjacent-dose search, separate stock strengths, uncertainty and reserve, and verify that a calculation can recover a passing preparation.
  • Decimal Steiner endpoint and cap regressions verify the exact caller inputs. Failed preparation evidence stays attached to the search. A changed root-zone sample or design requires a new approval.
  • Pinned Ruff, generated API and CLI documentation, error catalogue and whitespace checks pass locally.

Merge risk

The fertilizer and preparation searches are bounded. The linear inventory proof omits charge and phases and is scoped to the attempted reagent and inventory. The preparation check models separate stocks, sampled pH and nominal phase screening. Physical stock compatibility, assay, dissolution and stability, equipment calibration, and the prepared solution's measured pH, EC and nutrient concentrations remain to be validated.

Builds on #261, #263 and #264.

@rafatahmed rafatahmed added the enhancement New feature or request label Nov 17, 2026
@rafatahmed rafatahmed self-assigned this Nov 17, 2026
@read-the-docs-community

read-the-docs-community Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 Flahax | 🛠️ Build #35961918 | 📁 Comparing 7018e88 against latest (ed4a448)

  🔍 Preview build  

5 files changed · ± 5 modified

± Modified

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ed4a448) to head (7018e88).

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #266    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          139       139            
  Lines        16439     16746   +307     
  Branches      3340      3397    +57     
==========================================
+ Hits         16439     16746   +307     
Flag Coverage Δ
unittests 100.00% <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 17, 2026 17:00
@rafatahmed
rafatahmed merged commit 3e70d1a into main Nov 17, 2026
29 checks passed
@rafatahmed
rafatahmed deleted the feat/sonneveld-workflow-followups branch November 17, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: preserve Steiner search boundaries and preparation failures

1 participant