Repository navigation
fix(agent): retain graded root response IDs on SAT - #6957
Draft
init-nikhil wants to merge 1 commit into
Draft
init-nikhil wants to merge 1 commit into
init-nikhil wants to merge 1 commit into
Conversation
Signed-off-by: Nikhil Deshmudre <nikhil.deshmudre@gmail.com>
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.
What does this PR do?
SAT results from OpenCode, Pi, Hermes and Codex can contain a harness wrapper ID and rendered output that differ from the original served reply. Preserve the original response ID for the specific root message that supplies the graded answer, and forward it as
result.terminal_response_id.Pi keeps the ID on its final rendered assistant message. Hermes carries the SDK ID through its existing normalization/build bridge, retaining only the current root message and rejecting answer mutations. OpenCode follows the actual export renderer; Codex joins its provider message ID after checking that the native root transcript agrees with the rendered CLI history. Both resolve through the existing authenticated token-capture manifest. Three small identity fields survive capture commits and shared-ledger reads in both ordinary and Forest modes; diagnostic body logging is not required.
Missing or ambiguous evidence leaves the declaration absent. A verifier replacing the response ID or output cannot inherit the original declaration. No separate issue is needed for this focused attribution fix.
Validation
pre-commit run --all-files: passed, including package layering.git diff --cached --check: passed; commit includes DCO sign-off.Rollouts
Native model and verifier qualification is pending independently. This PR remains a draft; the local tests exercise the production adapter and capture paths with controlled services.
Compatibility and benchmark impact
No configuration change is required for existing token-capture training. Existing wrapper IDs and verifier-facing output stay intact. The optional field is omitted when unknown. The additional manifest fields require serving and consuming processes to use the matching Gym schema; older records without these labels use the existing fallback. Attribution may now identify the graded root reply despite later helper calls or output rendering. Legacy /run behavior is unchanged.
Checklist
pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).