[BUG]: review_ckpt.py passes a run that has .pt files no chain entry covers
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
Research direction
Start with simple/review_ckpt.py, especially main() and the loop over chain entries, then inspect the checkpoint writing flow described in the issue. Add tests for uncovered .pt files and ckpt.tmp, including the listed base and conversation model cases, and update simple/README.md. Done means uncovered files are reported as findings and the command exits 1.
Written by the indexing model from the issue text.
Description
Bug Description
simple/review_ckpt.py RUN is the review that runs before checkpoints are published. Its docstring says it checks every ckpt-XXXXX.pt in RUN, but main() only reviews the files that chain entries point to:
for entry in chain:
path = run / f"ckpt-{entry['index']:05d}.pt"
if not path.exists():
continue
...
Any other .pt file in RUN is skipped without a word, and the review still exits 0. That includes:
- a checkpoint with no chain entry.
trainwritesckpt-NNNNN.ptbefore it appends the entry ("Checkpoint first, then the chain entry, so a crash between them is harmless"), so a crash between the two leaves exactly this file; - a leftover
ckpt.tmp, from a crash duringtorch.save; base-model.ptorconversation-model.ptwhen the chain has nobaseorfinalentry.
Those files are pickles that would be published with the run without the content review the script exists for.
Steps to Reproduce
On main, with a run holding an honest ckpt-00000.pt for entry 0 and a copy of it saved as ckpt-00001.pt (no entry 1):
$ python simple/review_ckpt.py RUN; echo exit $?
{"file": "ckpt-00000.pt", ..., "result": "PASS"}
exit 0
ckpt-00001.pt isn't mentioned.
Expected Behavior
Fail closed: every .pt file (and ckpt.tmp) in RUN that no chain entry covers is reported as a finding, and the script exits 1.
Impact
The publication review can pass a run that contains unreviewed checkpoint files.
I'd like to fix this in main(), with tests for each case and a note in simple/README.md. This was found with an AI coding agent (Claude Code, Claude Opus 5.5), and I checked it locally.
Environment Details
main at d9531ad, Windows, Python 3.12, CPU.
- Dominant language
- Python
- Stars
- 27
- Forks
- 72
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 45
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/OpenVerifiableLLM
-
[BUG]: ovl.py verify --weights crashes with AttributeError on checkpoint .pt filesPossibly taken @Anurag1428 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/OpenVerifiableLLM#387 · 1 comment ·
Maintainers usually reply within 1 day
-
[BUG]: verify_segment accepts empty, wrong-phase, or non-positive fork exclusions as MATCHPossibly taken @Arnav0107 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/OpenVerifiableLLM#385 · 3 comments ·
Maintainers usually reply within 1 day
-
[BUG]: preparation.lock install fails on macOSPossibly taken @darshith2527-sketch claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AOSSIE-Org/OpenVerifiableLLM#357 · 3 comments ·
Maintainers usually reply within 1 day
-
[BUG]: Forked runs omit timestamps for inherited chain entriesPossibly taken @pavithra-r06 claimed this 9 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AOSSIE-Org/OpenVerifiableLLM#334 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
[BUG]: DigiCert timestamp verification fails on Windows because system_ca() ignores Windows CA bundlesPossibly taken @pavithra-r06 claimed this 9 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AOSSIE-Org/OpenVerifiableLLM#290 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in AOSSIE-Org/OpenVerifiableLLM
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
bad-antics/lateralus-lang#1140 ·
Maintainers usually reply within 4 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
fixture good first issue help wanted vendor:cisco
Difficulty 1/5 1-3 hours Newbie friendliness 85/100