Repository navigation
Description
Raised by the independent Spec review of PR #853, implementing #819.
Finding
S1 / P2: real Codex Session log edits cannot supply the requested unified diff. #819 asks for “Edit as a unified diff” and tests against real-shaped logs. The first implementation fixture invented a changes[].diff property; the actual retained codex exec --json event provides only a path and a change kind.
Evidence
- The official Codex FileUpdateChange schema has only
pathandkind; the exec event schema agrees. - A real-shaped event is
{"type":"item.completed","item":{"id":"f1","type":"file_change","changes":[{"path":"widgets.rs","kind":"update"}],"status":"completed"}}. - The reviewer supplied a complete HTTP reproduction; the implementing agent ran it exactly and confirmed that the required unified headers and hunks were absent.
- The reproduction is retained in console/reproductions/codex-edit-diff.py on PR #853. From the repository root after building, run
python3 console/reproductions/codex-edit-diff.py; it exits 1 because the log contains no old/new text. - PR Add Console log inventory and live conversation readers #853 corrects the fixture, removes the unsupported property assumption, and shows the complete event with “Patch unavailable in this log.” at src/console/conversation.rs:109. Claude Edit events do retain old/new strings and render unified diff excerpts.
Decision for the Day shift
Decide whether the plain fallback explicitly allowed by #819 is sufficient for Codex events without patch evidence, or whether thirdshift should capture genuine patch evidence for future Codex Session logs. If capture is required, choose its supported source, retention format, scope and behavior for historical logs.
This is not the implementing agent's call: #819 scopes a reader of retained output, while adding new patch capture changes Session log recording and its data contract. Missing historical old/new text cannot be recovered faithfully from a path and kind. Reading a mutable checkout or guessing a patch would not establish what that Session actually changed. The PR therefore keeps the evidence visible and the failing requirement reproduction, with this remaining finding disclosed rather than claiming the requirement is complete.
Activity