8000 fix: resolve EC evidence and chemistry provenance audit findings by rafatahmed · Pull Request #247 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

fix: resolve EC evidence and chemistry provenance audit findings - #247

Merged
rafatahmed merged 2 commits into
mainfrom
fix/audit-provenance-claims
Nov 12, 2026
Merged

rafatahmed merged 2 commits into
mainfrom
fix/audit-provenance-claims

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

Summary

Positive Magsul dose -> unsupported manufacturer EC total; retain disputed evidence
Chemistry build -> hash all three inputs and canonical provenance manifest
Public claims -> supported capabilities and dated comparison

Closes #244. Closes #245. Closes #246.

P1 preserves the disputed 1.2 mS/cm brochure value without selecting a replacement. P2 documents reproducible versioned PHREEQC extraction, retaining database_sha256 as the base-file alias. P4 aligns the README and current publication drafts.

The original MINTEQ database, both extension files, 197 aqueous records and 28 phases are unchanged. Chemistry JSON changes are provenance metadata only. P3 is verification only; P5 remains separate.

Evidence

  • Before: Magsul contributed an unqualified screening total, provenance hashed only the base file, and current texts made inconsistent priority claims.
    After: regression checks cover unsupported positive/mixed doses, unchanged zero-dose/other-anchor behavior, tampered inputs/manifests, and deterministic generation.
  • Full local discovery: 1,390 tests, 1,388 passed, two Windows-inapplicable POSIX skips, no failures/errors. This preceded integration of subsequently merged main changes; current-head cross-platform CI is required.
  • After integration: 82 affected tests passed, with 100% statement/branch coverage across all four changed runtime/tool modules. Ruff and API-reference checks passed.
  • Required live PHREEQC, opt-in source downloads, 225 reaction checks, byte-identical regeneration, strict Sphinx and isolated wheel/sdist verification passed before integration.

Merge Danger

Door: two-way

Reversible code/documentation changes; no database replacement, deployment or release.

Blast Radius: Screening

Consumers must handle unsupported manufacturer screening for positive Magsul doses. Provenance schema becomes 2 while preserving the legacy base hash. No chemistry constants or P5 evidence change. This does not establish physical validation or authorize merging.

@rafatahmed rafatahmed added bug Something isn't working documentation Improvements or additions to documentation labels Nov 12, 2026
@rafatahmed rafatahmed self-assigned this Nov 12, 2026
@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 Flahax | 🛠️ Build #35843180 | 📁 Comparing e8b2abb against latest (2d0429b)

  🔍 Preview build  

5 files changed · ± 5 modified

± Modified

@codecov
codecov Bot commented Nov 12, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2d0429b) to head (e8b2abb).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #247   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          115       116    +1     
  Lines        13736     13798   +62     
  Branches      2721      2733   +12     
=========================================
+ Hits         13736     13798   +62     
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 merged commit 31c1e8e into main Nov 12, 2026
13 checks passed
@rafatahmed
rafatahmed deleted the fix/audit-provenance-claims branch November 12, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

1 participant

0