Repository navigation
feat(audit): attach _sources to every TOML; delete license ratchet (#175) - #196
Merged
Merged
Conversation
) One-time audit per ADR-0003 §4. Every material node in src/pymat/data/*.toml now carries a _sources._default placeholder pointing at py-mat's aggregate curation history. The license CI gate (#174) is now active over the full corpus — the ratchet file self-deletes as the audit completes. Provenance is honest, not fabricated: each placeholder declares license = "proprietary-reference-only" and ref-text that explicitly says "py-mat curation history; values from handbook/vendor/Wikidata aggregate (pre-#175 audit)". Future per-source PRs (#158-#173) sweep through and overwrite individual entries with verifiable citations (Wikidata QIDs, NIST datasets, vendor URLs, etc.). Audit summary: ceramics.toml 13 materials electronics.toml 16 materials gases.toml 14 materials liquids.toml 6 materials metals.toml 39 materials plastics.toml 25 materials scintillators.toml 19 materials -- TOTAL 132 _default entries added across 7 TOML files Tooling: scripts/audit_attach_sources.py (stdlib-only, idempotent — safe to re-run; appends new sections to file end so existing formatting and comments are preserved). Verification: - python scripts/check_licenses.py passes (no ratchet) - LICENSES-DATA.md regenerated (still empty: no CC-BY sources yet) - Full pytest passes (582 passed, 11 skipped) - ruff check / ruff format clean Closes #175
gerchowl
enabled auto-merge (squash)
May 6, 2026 21:07
This was referenced May 6, 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
One-time #175 audit. Every material node in
src/pymat/data/*.tomlnow carries a_sources._defaultplaceholder; the.github/license-ratchet.txtis deleted so the #174 CI gate now covers the full data corpus.The placeholder is honest, not fabricated —
license = "proprietary-reference-only",reftext explicitly says values are aggregate curation history pre-#175. Future per-source PRs (#158-#173) overwrite individual entries with verifiable citations.Tooling:
scripts/audit_attach_sources.pyis stdlib-only, idempotent, and appends new sections at file end (preserves all existing formatting and comments).Audit count: 132
_defaultentries added across 7 TOML filesTest plan
python scripts/check_licenses.pypasses without ratchetLICENSES-DATA.mdregenerated (still empty — no CC-BY sources yet)ruff check/ruff formatcleanCloses #175