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

Open
rafatahmed wants to merge 2 commits into
mainfrom
fix/audit-provenance-claims
Open

rafatahmed wants to merge 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

This branch has not been deployed

No deployments
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