[BUG]: verify never checks release_hashes_sha256, so the released files are not tied to the timestamped anchor
Maintainers usually reply within 1 day
@ArnabOPP is already working on this.
Since Nov 19, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 63/100
Research direction
Start with cmd_verify in simple/ovl.py, then read the verification steps in docs/verify.md and the relevant CONTRIBUTING test guidance. Check how the anchor’s release_hashes_sha256 relates to release-hashes.txt, including the missing-field case and the exclusion fork question. Done when tests show honest inputs pass and tampered hashes or a missing field fail closed.
Written by the indexing model from the issue text.
Description
Summary
anchor.json commits to release_hashes_sha256, the SHA-256 of release-hashes.txt, but ovl.py verify never reads it. cmd_verify (simple/ovl.py) only requires chain_entries and chain_head_sha256 from the anchor. So the documented consistency check does not show that the downloaded files are the ones the timestamped anchor lists, which is what the README and docs/verify.md say it shows ("the released files match the timestamped record").
How I checked
anchor.jsonof the released run (release/simple-run/) has these keys:chain_entries,chain_head_index,chain_head_sha256,chain_jsonl_sha256,commit,dataset,final_model,final_state,path,release_hashes_sha256,schema.grep release_hashes_sha256 simple/*.pyfinds nothing in the v1.1.0 tag or onmain(commit 1c63518).sha256sum -c --ignore-missing release-hashes.txtonly checks files against the list it is given, so it trusts that list.
Reproduce
- Download
release/simple-run/as in the README (withoutckpt-*.pt). - Append a space to
recipe.json. - Replace the
recipe.jsonline inrelease-hashes.txtwith the new hash. - Run the README's two steps:
sha256sum -c --ignore-missing release-hashes.txtprintsrecipe.json: OK.python ovl-code/simple/ovl.py verify --run . --weights conversation-model.ptstill passes, because it never looks atrecipe.jsonor atrelease-hashes.txt.
I ran this on the real release files, on Windows with the v1.1.0 ovl.py and --no-timestamps. The timestamps cover only the bytes of anchor.json, so editing the anchor to match would break them, but nothing connects release-hashes.txt to the anchor.
Expected
verify fails closed when the files it is given are not the ones the anchor lists.
Suggested change (for discussion)
verifycompares the SHA-256 ofrelease-hashes.txtwithrelease_hashes_sha256in the anchor, and exits with an error if they differ or the field is missing.- Optionally,
verifyalso hashes the files in the run folder thatrelease-hashes.txtlists (those present, like--ignore-missing) and fails on a mismatch, so one command replacessha256sum -c. - Tests, as in CONTRIBUTING: honest input passes, and tampered input fails (a changed
recipe.jsonwith a matchingrelease-hashes.txt, a changedrelease-hashes.txt, an anchor without the field). - No change to the bits: this reads existing fields and files only.
Open questions: should an older anchor without the field fail or warn (the contributing rules say fail closed), and does the exclusion fork's anchor have the same field?
Workaround in the docs
PR #358 adds a one-line check to the documented steps (python -c that asserts the hash of release-hashes.txt equals release_hashes_sha256). It works in bash, PowerShell and CMD. This issue is about making verify do it itself.
AI use
I used Claude Code to investigate and draft this issue and to run the commands above.
- 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 today. 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]: review_ckpt.py passes a run that has .pt files no chain entry coversPossibly taken @arshil42 claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/OpenVerifiableLLM#332 · 4 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