Repository navigation
feat(rollouts): integrate v2 trajectory collection and health readers - #5661
Conversation
57c426e to
ed2f271
Compare
67055eb to
e2b26ad
Compare
AdamRajfer
left a comment
There was a problem hiding this comment.
Nit: nemo_gym/orchestration/collect_evidence.py still reads trajectory["rollout_id"], and the recovery planner compares it with the row's rollout id. With 2.0 that key is capture_key, so recovery reports every trial's trajectory as incomplete. It is reported only and gates nothing, but the same capture_key fallback you added in rollout_health.py would fix it.
AdamRajfer
left a comment
There was a problem hiding this comment.
Approving; the collect_evidence rollout_id read I noted is report-only and can follow separately.
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
I found three correctness risks: metadata-only v2 results retain capture content in generated turns, compatible invocation snapshots can cause trajectory projection to fail, and equivalent failure events can be treated as conflicts. I also suggest documenting the new schema-selection contract.
I inspected all 15 changed files and their directly affected capture, projection, replay, export, and health paths. This was a static review; I didn't execute tests.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
e2b26ad to
57c8706
Compare
ed2f271 to
066d805
Compare
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
The three prior correctness findings are fixed in the current source:
- Capture-derived turns now omit prompt, answer, and reasoning when payloads are disabled, while preserving metadata and independent producer turns.
- Invocation reconciliation retains one owner per invocation ID, fills unknown instance identity, and diagnoses conflicting owners without dropping unrelated tools.
- Failure-event comparison normalizes equivalent encodings before detecting conflicts, preserving valid causal links and cause/cycle validation.
The schema-selection documentation also addresses the prior note and matches the inspected selection paths.
I inspected the relevant regression tests and directly affected collection, replay, and configuration paths. No eligible findings remain in this follow-up. The previously reviewed tree wasn't supplied, so I couldn't independently compare the inter-review delta; this wasn't a fresh whole-PR review. This was a static review; I didn't execute tests.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
|
/ok to test 066d805 |
066d805 to
41b09f5
Compare
57c8706 to
491168e
Compare
|
/ok to test 41b09f5 |
|
/review |
AdamRajfer
left a comment
There was a problem hiding this comment.
Re-read the diff at d470b05 against my earlier review.
The failure_report_unavailable gap is addressed: it is v2-only, v1 projection drops it, and the new tests cover omitted and invalid reports with repeated default enrichment staying strictly ATIF-exportable. The two items you recorded as v2 follow-ups (observer clock domain on Gym model capture, and collect_evidence/recovery reading rollout_id instead of capture_key) are still open in the code, as described. Both only affect runs that opt in to 2.0, and nothing gates on them, so I'm fine with them landing separately. I don't see anything else that blocks.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42461672284 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42537217222 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42538278820 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42596355185 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42599751696 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42606354908 |
Integrates the v2 timing contract with collection, enrichment, and health readers. Select
model_call_capture.trajectory_schema_version: "2.0"to retain qualified timing; the default remains v1.GDPval now passes the configured schema version explicitly instead of inferring it from producer evidence. Health identity falls back to v2
capture_keywhen the outer rollout identifier is absent. Timing summaries respect clock domains and leave unsupported interval unions unknown.Interrupted tools remain
incompleteunless tool-local evidence proves timeout or cancellation. Enclosing timeout evidence still drives timeout health classification; the tool-failure marker check treats timeout, cancellation, and incomplete statuses consistently.Collection applies the selected schema with or without enrichment. Metadata-only capture omits synthesized turn text while preserving joins. Compatible invocation snapshots and equivalent failure-event encodings merge without discarding valid evidence; conflicting owners remain diagnosed.
Schema #5660 is merged; this PR targets main, followed by #5507.
Omitted or invalid saved failure reports produce a v2-only
failure_report_unavailablediagnostic. Successful v1 rollouts retain strict ATIF exportability; tool-specific missing-failure diagnostics keep their documented policy.V2 follow-ups: populate observer clock domains on Gym model capture, and migrate trial-evidence/recovery readers from
rollout_idtocapture_key. Until then, multi-call time splits can remain unmeasured and those trial readers can report incomplete operation joins.