Repository navigation
fix(scicode): emit policy trajectory for rollout health - #4087
Draft
mpatel31415 wants to merge 2 commits into
Draft
mpatel31415 wants to merge 2 commits into
mpatel31415 wants to merge 2 commits into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Signed-off-by: Martyna Patelka <[email protected]>
mpatel31415
force-pushed
the
mpatelka/scicode-trajectory-health
branch
from
October 6, 2026 06:32
1c0dfb1 to
4ae44a4
Compare
Signed-off-by: Martyna Patelka <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ng_trajectorywith one invocation and turn per generated substep. Each turn carries the exact model response ID, substep prompt, output, and rollout identity so Gym can join it to captured model calls.Why
An evaluated SciCode smoke on Gym
d782137efproduced 16/16 rollouts and 192/192 model-call captures, but all 16 quality verdicts were unobserved because the verifier output had no turns or invocations. This fixes the producer gap. No separate issue is needed because the failure is already tracked in the ongoing certification work. The patch is based directly ond782137ef, so its isolated evaluation pin excludes unrelated newer Gym commits.Validation
PYTHONPATH=.:responses_api_agents/scicode_agent python -m pytest -q responses_api_agents/scicode_agent/tests/test_app.py --disable-warnings— 44 passed.PYTHONPATH=.:resources_servers/scicode python -m pytest -q resources_servers/scicode/tests/test_app.py --disable-warnings— 18 passed.pre-commit run --all-files— passed.97970ef41: the same 44 agent and 18 verifier tests plus repository-wide pre-commit pass. The producer/collector integration test now uses a sourceproblem_iddifferent from the evaluator task index and asserts no trajectory-identity gap.run(), joins their response IDs to captured calls in Gym's rollout finalizer, and checks that the public rollout health checker reports healthy with no unobserved checks. The verifier test confirms the trajectory survives scoring with the original reward.Rollout evidence and benchmark impact
The first new-pin JHB smoke
844856on4ae44a475showed 12 captured calls, trajectory turns and invocations per completed row, but its first 11 rows carriedproducer_trajectory_identity_mismatch: task_id. The producer used evaluator task indices0/1while Gym canonicalizes SciCode trajectories to sourceproblem_idvalues77/11. Follow-up commit97970ef41makes the producer use the canonical source identity without changing requests, model calls, scoring or reward. The smoke on4ae44a475is diagnostic only; a fresh smoke on97970ef41must confirm zero identity gaps and healthy native quality before full benchmark reruns.The prior real-model SciCode smoke on Gym
d782137efconfirmed complete model-call capture but exposed the missing trajectory. A new real-model smoke using this commit is required before this PR is ready for review. The 16-input smoke score is diagnostic only. Full benchmark scores and acceptance bands must be recomputed on the final Gym commit; previous SciCode scores cannot certify it.