fix(data-repo): runlog index marks damaged .jsonl.gz rows with an error field - #194
Merged
Conversation
…or field Codex review item 9: a truncated or non-gzip .jsonl.gz was indexed as a run with null end state — indistinguishable from an aborted run. inflate() now reports 'gzip truncated' (head still indexed) or 'gzip unreadable'; the row carries `error` and the Action log gets a WARNING line. Plain-file and clean-gz rows are unchanged (no key added; verified byte-identical on real v1 folders). Tests: truncated + unreadable cases, key absent otherwise. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Follow-up to #193, from the 2026-09-09 Codex cross-review (item 9).
A truncated or non-gzip
.jsonl.gzwas indexed as a run with null end state — indistinguishable from an aborted run.inflate()now returns(text, error):'gzip truncated'(a half-written upload; the head is still indexed, the end state stays unknown) or'gzip unreadable'(nothing recoverable). The row carrieserrorand the Action log gets aWARNINGline, so a damaged upload is visible as damaged.index.jsonverified byte-identical on real v1 folders (rig7, bench02) against the current script.errorabsent otherwise, errors land inindex.jsonfor the damaged files only.Deploy: re-install byte-identical into
reiserlab/cshl-2026-course/.github/scripts/after merge (the Action runs a copy).🤖 Generated with Claude Code