Repository navigation
Record native capture diagnostics for missing OpenCode steps - #5237
Conversation
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE — one RISK in continuation-close timing diagnostics.
Inspected all four changed files and affected parsing, cleanup, activation retention, model-call association, and canonical trajectory paths. The diagnostics preserve the missing-step gap rather than fabricating turns. One delegated advisory was unavailable; its structural-diagnostics topic was independently inspected. Static review only; tests were not executed.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
Signed-off-by: Frederic Lafrance <[email protected]>
3c3ccc6 to
606c790
Compare
|
The diagnostics-only change is now rebased onto main after its prerequisite was squash-merged, with the missing sign-off added. Head: 606c790. The diagnostic production files are unchanged. Scope decision: retain the current diagnostics and accept the close timing limitation noted in discussion_r4407403610. A null close_requested_at is not evidence that no explicit close occurred; cancellation can capture the receipt before the adapter records that timestamp. This PR does not establish causal close ordering or recover missing native steps. Missing-step and attempt-accounting gaps remain visible and their remediation is deferred. No shared close hook is requested. /review |
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE — the previously reported RISK in continuation-close timing diagnostics remains.
Follow-up review verified the prior finding and its directly affected cleanup, receipt-retention, parsing, and trajectory-projection paths. The author's deliberate acceptance is noted, but no timing correction is present. The final-activation regression preserves the distinction between persisted provider steps and an explicit missing-step gap; it does not recover missing turns.
The previously reviewed tree was unavailable, so inter-review introduction could not be independently established; this was not a fresh whole-PR review. All three assigned topics were completed. One delegated report was unavailable, so its native-step retention/projection topic was independently inspected. Static review only; tests were not executed.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
|
/ok to test 606c790 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE — the prior RISK in continuation-close timing diagnostics remains.
This same-head follow-up verified the unresolved finding and its directly affected cancellation, capture, cleanup, receipt-retention, and trajectory-preservation paths. The author's deliberate acceptance is noted, but the source still records the timestamp after cancellation-triggered capture. The final-activation regression preserves native turns when provider steps exist and explicit gaps when they do not; it does not correct close ordering.
The supplied follow-up baseline is identical to the current head, so there are no inter-review changes to assess. This was not a fresh whole-PR review. All three assigned inspections completed and their results were consolidated. Static review only; tests were not executed.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40924878839 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40934759099 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40944243997 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40967704338 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40971940811 |
Resolve responses_api_agents/opencode_agent/sandbox.py: keep main's `import time` and `close_requested_at` (#5237) beside the branch's collections.abc import and session export fields. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Katherine Huang <[email protected]>
OpenCode can close an activation after a successful model response without enough persisted provider-step evidence to link that response to a native turn. Retain bounded message/part IDs, types and timestamps alongside the existing
turns_unavailablegap, plus capture timing and the cleanup receipt, so the close artifact can identify the missing persistence boundary.The diagnostics omit message content, reasoning, tool arguments and output. Existing turn projection and gap reporting are preserved. This adds evidence for investigating missing steps; it does not establish or fix their underlying cause.
Stacked on #5198. A fresh representative SWE-Together rollout reached a natural timeout with one persisted assistant message and zero parts. The structural diagnostics and confirmed timeout cleanup receipt survived unchanged into the final result. The rollout completed with a valid incorrect verdict; the canonical checker retained
steps.gapas a failure. This confirms diagnostic delivery, not missing-step recovery.