feat(hf): publish recovery_report.json alongside the network - #135
feat(hf): publish recovery_report.json alongside the network#135AlexanderFengler wants to merge 1 commit into
Conversation
`validation_report.json` says the artifact is structurally sound; it cannot see a recovery failure, because the gate has no recovery check in it. With recovery_report.json excluded from the upload, a network whose recovery verdict is false ships looking clean, and the only evidence that travels with it is the one that could not have caught the problem. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Warning Review limit reachedNext included review available in 3 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
The change is small, correctly scoped (include pattern + test), and directly covers the previously missing artifact in the upload selection logic.
Pull request overview
Ensures HuggingFace uploads include recovery_report.json alongside other model artifacts, so downstream users can see parameter-recovery failures that are not detectable from validation_report.json gate checks.
Changes:
- Add
recovery_report.jsontoDEFAULT_INCLUDE_PATTERNSused byupload_model(). - Extend the dual-layout HF upload dry-run test fixture and assertions to cover
recovery_report.json.
File summaries
| File | Description |
|---|---|
src/lanfactory/hf/upload.py |
Adds recovery_report.json to the default artifact include patterns so it is published to the Hub. |
tests/hf/test_dual_layout.py |
Updates the test fixture to generate recovery_report.json and asserts it is included in the dry-run upload listing. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
|
Wrong package — closing.
And it is unnecessary: I pattern-matched onto |
recovery_report.jsonwas missing fromDEFAULT_INCLUDE_PATTERNS, so it never reached the Hub.That matters because the two reports answer different questions.
validation_report.jsonsays the artifact is structurally sound, loads in HSSM, and produces a plausible density. It cannot see a recovery failure — the gate has no recovery check in it. So a network whose parameter-recovery verdict ispassed: falseships looking entirely clean, and the only quality evidence a downstream reader gets is the one that could not have detected the problem.Concretely:
gamma_drift_angleis onfranklab/HSSM_stagingwithvalidation_report.jsonreporting all gates passed, while its standalone recovery verdict ispassed: false(2 coverage failures, 3 bias-rate failures). Nothing in the published bundle says so.One line in the include patterns, plus fixture and assertion in
test_dual_layout.py.96 passed, 1 skipped; ruff clean.
🤖 Generated with Claude Code