8000 Close catalogue follow-ups: formulation provenance, counterion sodium, band-end chemistry by rafatahmed · Pull Request #27 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

Close catalogue follow-ups: formulation provenance, counterion sodium, band-end chemistry - #27

Merged
rafatahmed merged 8 commits into
mainfrom
feat/catalogue-followups
Oct 19, 2026
Merged

rafatahmed merged 8 commits into
mainfrom
feat/catalogue-followups

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

Summary

Closes the three follow-ups of the traceable catalogue (design §12). Stacked on #26.

  • F1: provenance on formulation results. Each recommend() salt entry (and the workflow recommendation) carries provenance: recordId, identityId, analysisBasis, documents and flags. The result also carries identitiesSha256. Records without provenance say unattributed; nothing is guessed. solve_weights and forward are unchanged.
  • F2: counterion sodium in formulation rows. After the fit, recommend adds formula-counterion sodium that is not already assayed as Na to the Na row and incidentalContributions. This covers chelates (D2) and CH - micro's borax/molybdate. A warning names the source. Grams, eligibility and the fit are unchanged.
    • The pepper workflow's incidental Na goes from 0.048 to 1.722 ppm. A tight Na maximum can now mark such recipes for review or make them infeasible. Values are in the CHANGELOG.
  • F3: chemistry at the band ends. calculate_irrigation_ec_band(...) returns nominal, minimum and maximum irrigation results (pH, supersaturation warnings, EC).
    • The ends are corner cases (every product at its minimum, or every product at its maximum), not statistical bounds.
    • An open end returns not_supported / band_end_open.
    • A grade whose ranges are not proportional can give assay_charge_residual_too_large at an end.

Docs: docs/materials.md and CHANGELOG.md. Plan: docs/superpowers/plans/2026-10-19-catalogue-followups.md.

Test plan

  • Full suite: 270 tests OK locally
  • API reference --check and release hygiene tests pass
  • CI green

Base automatically changed from feat/traceable-catalogue to main October 19, 2026 06:24
@rafatahmed
rafatahmed merged commit 3d00cd6 into main Oct 19, 2026
4 checks passed
@rafatahmed
rafatahmed deleted the feat/catalogue-followups branch October 19, 2026 06:32
@rafatahmed rafatahmed self-assigned this Oct 19, 2026
rafatahmed added a commit that referenced this pull request Nov 7, 2026
Close catalogue follow-ups: formulation provenance, counterion sodium, band-end chemistry
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

0