Skip to content

fix: harden verification — pymatgen degradation, leaderboard TTL, retraction detection#45

Merged
VibeCodingScientist merged 1 commit intomainfrom
fix/verification-hardening
Feb 17, 2026
Merged

fix: harden verification — pymatgen degradation, leaderboard TTL, retraction detection#45
VibeCodingScientist merged 1 commit intomainfrom
fix/verification-hardening

Conversation

@VibeCodingScientist
Copy link
Owner

Summary

  • materials_adapter: Module-level graceful degradation for pymatgen & mp-api — local checks (CIF parse, symmetry, composition) return AMBER score=0.5 instead of crashing when libraries unavailable; REST API fallback still works
  • ml_repro_adapter: Replace boolean leaderboard cache with 6-hour TTL; stale data served if refresh fails, preventing stale-forever bug
  • citation_verifier: Check CrossRef update-to field for retraction/withdrawal/correction notices — retracted papers score 0.1, corrected papers score 0.7; retraction info included in verification details
  • skill.md: Document retraction detection capability

Test plan

  • Verify API starts clean with no import errors
  • Confirm materials_adapter loads without pymatgen (graceful degradation path)
  • Confirm leaderboard cache refreshes after TTL expiry
  • Confirm retracted DOI gets score penalty in citation verification

🤖 Generated with Claude Code

…raction detection

- materials_adapter: module-level try/except for pymatgen & mp-api with
  PYMATGEN_AVAILABLE / MP_API_AVAILABLE flags; local checks degrade to
  score=0.5 instead of crashing when libraries are absent
- ml_repro_adapter: replace boolean leaderboard cache with 6-hour TTL;
  stale data served if refresh fails (no stale-forever bug)
- citation_verifier: check CrossRef update-to field for retraction /
  withdrawal / correction notices; retracted papers score 0.1, papers
  with corrections score 0.7
- skill.md: document retraction detection in citation verifier

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@VibeCodingScientist VibeCodingScientist merged commit de95412 into main Feb 17, 2026
1 of 3 checks passed
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