Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 10, 2026, 9:20 AM ET / 13:20 UTC. Summary PR surface: Source +3, Tests +16. Total +19 across 2 files. Reproducibility: yes. from source inspection: current main filters blank rows before assigning entry diagnostic positions, so a malformed physical row after a blank is reported one line early; the contributor also provides a real after-fix file-open transcript. Review metrics: none identified. Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the physical-line bookkeeping and regression test while preserving blank-row acceptance, then rely on the normal exact-merge-head gate to refresh the behind branch without broadening the parser change. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main filters blank rows before assigning entry diagnostic positions, so a malformed physical row after a blank is reported one line early; the contributor also provides a real after-fix file-open transcript. Is this the best way to solve the issue? Yes. Carrying the original physical line number through the existing load loop is the narrowest maintainable fix and avoids changing accepted input, header parsing, persistence, or session-tree semantics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 328eaa3a23d6. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +3, Tests +16. Total +19 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
|
@clawsweeper re-review I updated the PR body Evidence with a current-head real session-open transcript from |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
ab3c5a0 to
af1fbbc
Compare
af1fbbc to
fb1c6ec
Compare
|
Land-ready proof for exact head
Known proof gaps: none. |
|
Merged via squash.
|
…enclaw#103645) * fix(agent-core): report jsonl entry physical line numbers * fix(agent-core): preserve physical JSONL line numbers * test(agent-core): keep JSONL cleanup lint-safe --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where developers opening a JSONL-backed agent-core session would see an incorrect invalid-entry line number when the session file contained blank JSONL rows before the malformed entry.
Why This Change Was Made
JsonlSessionStoragealready skips blank JSONL rows while loading sessions, so entry diagnostics should still point to the physical source line after those blanks are skipped. The parser now carries each retained row's original line number into entry validation without changing header parsing or storage semantics.User Impact
Developers and operators can trust invalid JSONL session diagnostics to point at the actual malformed row, making session repair and support investigation less misleading.
Evidence
JsonlSessionStorage.opennow reports the malformed entry on physical line 3 when physical line 2 is blank.e896a3a5fcafb912d7f2424cb06f10dc06dfa822.node --import tsx --input-type=module -proof script wrote a temporaryinvalid-entry.jsonl, calledJsonlSessionStorage.open(new NodeExecutionEnv(...), "invalid-entry.jsonl"), and asserted the corrected diagnostic.Real session-open transcript:
node scripts/run-vitest.mjs packages/agent-core/src/harness/session/jsonl-storage.test.tspassed with 1 test file and 7 tests.git diff --check upstream/main...HEADpassed.python .agents\skills\autoreview\scripts\autoreview --mode branch --base upstream/mainpassed with no accepted/actionable findings.line 3 is not valid JSONfor an invalid entry that follows a blank JSONL row.