Skip to content

fix(data-repo): runlog index marks damaged .jsonl.gz rows with an error field - #194

Merged
mbreiser merged 1 commit into
mainfrom
fix/runlog-index-gz-errors
Sep 9, 2026
Merged

fix(data-repo): runlog index marks damaged .jsonl.gz rows with an error field#194
mbreiser merged 1 commit into
mainfrom
fix/runlog-index-gz-errors

Conversation

@mbreiser

@mbreiser mbreiser commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #193, from the 2026-09-09 Codex cross-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 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 carries error and the Action log gets a WARNING line, so a damaged upload is visible as damaged.

  • Plain-file and clean-gz rows are unchanged — no key is added; index.json verified byte-identical on real v1 folders (rig7, bench02) against the current script.
  • Tests: truncated + unreadable cases (never raise), error absent otherwise, errors land in index.json for 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

…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>
@mbreiser
mbreiser merged commit e7fd22b into main Sep 9, 2026
1 check passed
@mbreiser
mbreiser deleted the fix/runlog-index-gz-errors branch September 9, 2026 13:46
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