Repository navigation
fix(capture): link backend exchanges to native model call identities - #5903
Conversation
Signed-off-by: Igor Gitman <[email protected]>
Signed-off-by: Igor Gitman <[email protected]> # Conflicts: # responses_api_models/vllm_model/tests/test_app.py
Signed-off-by: Igor Gitman <[email protected]>
Signed-off-by: Igor Gitman <[email protected]>
|
/ok to test 0d8be81 |
|
/review mode=strict reset=true |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
LGTM. No concerns found.
I reviewed all four changed files and traced identity propagation through capture persistence, token capture, and vLLM transport events. The capture middleware shares the same call identity with the handler and capture records. The transport context gives that identity precedence over trace headers without changing model payloads.
Static review only. I did not execute tests or independently verify the reported validation. One delegated report was not returned, so I covered its capture-state lifecycle and correlation-test scope directly.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
cmunley1
left a comment
There was a problem hiding this comment.
lgtm. is there a consumer of this field?
cc @AdamRajfer
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44800567728 |
What changed
Persist the native capture's rollout/model-call identity in ASGI request state and include that trusted identity in vLLM backend transport events. Exporters can then join a native call to its actual backend exchange even when two samples have identical prompts. Context-only matching cannot distinguish those samples safely.
The state identity takes precedence over caller-supplied trace headers. This adds transport-log metadata without changing model-visible requests or responses. No separate issue is needed for this focused capture fix.
Validation
pre-commit run --all-filespassed; commit carries DCO sign-off.gym env test +entrypoint=responses_api_models/vllm_model +should_validate_data=truepassed (1,003 tests).Core capture changes require full CI classification; the full eight-shard server suite was not run locally.
Current-main refresh (2026-11-16): includes main
fc109f3f845e4f25526b20e01cc785a02e84f5ad. Validated head0d8be81893b7af42b7313c244f3f6313a400822e: 2212 passed, 5 warnings. All-file pre-commit, whitespace and DCO checks passed. Three independent local review passes: SHIP using the protected-main rubric; this is not hosted approval. Hosted CI and maintainer review for this head remain independent.