Repository navigation
Conversation
…_agent Both agents subclass SimpleAgent and inherit its agent sessions, but they build the model input in run(): gdp_pdf_agent from the task's document manifest, labbench2_vlm_agent from the images under verifier_metadata.media_dir. An agent session receives no task data, so under single_agent_turn the model silently answered without the document or the images. Each now overrides _seed_agent_session_state to raise AgentSeedRejectedError, which a seed answers with a terminal 422 naming the reason and the legacy_agent relay to use instead. The shipped configs already use that relay, so nothing they run changes. The test that keeps AGENT_SESSION_AGENT_TYPES in step with the agent apps no longer counts an override whose body only raises: those agents do not implement sessions, and config composition must keep relaying them through /run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
Contributor
Author
|
/ok to test 875223b |
Contributor
This was referenced Nov 5, 2026
…ssions-without-task-inputs Signed-off-by: yaoyu-33 <[email protected]>
…t state hook - Raise the refusal from _new_session_state instead of a raise-only _seed_agent_session_state override, so the repo session contract test (seed hook requires a close hook) passes; the seed still answers a terminal 422 with the same detail and holds no session. - Revert the raise-only AST exemption in test_global_config.py: neither agent defines the seed hook now, so the plain source check already keeps them out of AGENT_SESSION_AGENT_TYPES. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
Contributor
Author
|
/ok to test 68655f0 |
…ssions-without-task-inputs Only gdp_pdf_agent's imports conflicted with main's failed-call typing. Signed-off-by: yaoyu-33 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
/ok to test 33c34d3 |
Contributor
Author
This branch was previously 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 and why
gdp_pdf_agentandlabbench2_vlm_agentsubclassSimpleAgent, so they inherit its agent sessions. But both build the model input inrun():gdp_pdf_agentreads the task's document manifest (verifier_metadata.document_manifest) and adds the page text and images.labbench2_vlm_agentembeds the images and PDFs underverifier_metadata.media_dir.An agent session receives no task data. Put behind
single_agent_turnorsingle_agent_turn_legacy, both agents therefore ran the bare prompt: the model answered without the document or the images, and nothing reported it.Each agent now overrides Simple Agent's
_new_session_state(the state hook its seed and checkpoint restore both call) to raiseAgentSeedRejectedError. The seed answers a terminal 422 that names the reason and says to use alegacy_agentenvironment server. An environment server treats 422 as terminal, so the episode fails once with that message instead of being scored.Neither agent defines
_seed_agent_session_state, so the core tests that keepAGENT_SESSION_AGENT_TYPESand the session close hooks in step with the agent apps need no change: both agents stay out of the set, and config composition keeps relaying them through/run. (An earlier version overrode_seed_agent_session_state, which failedtest_session_contract_repo.py's rule that a seeding agent also implements_close_agent_session_state.)No public issue: this is a fail-closed guard until these agents can receive their documents and images through an agent session. That delivery is a separate change.
Compatibility
gdp_pdfandlabbench2_vlmconfigs (resources server and benchmark) already use alegacy_agentrelay, so nothing they run changes.AGENT_SESSION_AGENT_TYPES, so a config swap to either agent still relays it through/run.single_agent_turnorsingle_agent_turn_legacydirectly at either agent now fails every episode with the 422 message. Before, it scored answers given without the task's inputs.Validation
Primary venv with the worktree on the path, Python 3.13:
responses_api_agents/gdp_pdf_agent/tests: 60 passed, 16 skipped (example manifests not present). Pillow was added from a scratch directory.responses_api_agents/labbench2_vlm_agent/tests: 5 passed.origin/main'sapp.pyswapped in, both new seed tests fail. The agent accepts the seed and returns 200.tests/unit_tests/config/test_global_config.pyandtests/unit_tests/tooling/test_add_legacy_agent_environment_servers.py: 367 passed.pre-commit run --files <changed files>: passed.At
68655f05c(main merged at379ae226d, after a review round that moved the refusal to_new_session_state):test_session_contract_repo.py+test_global_config.py: 233 passed (the contract test failed in CI at875223b30);gdp_pdf_agent+labbench2_vlm_agenttests: 65 passed, 16 skipped;pre-commit run --files: clean.test_global_config.pyis no longer changed by this PR.At
33c34d38d(main028348701merged; onlygdp_pdf_agent's imports conflicted with #5740, which typesrun()'s failed model calls):gdp_pdf_agent+labbench2_vlm_agenttests,test_global_config.pyandtests/unit_tests/agents/test_raw_verify_typed_row.py: 302 passed, 14 skipped;test_session_contract_repo.py: 2 passed;pre-commit run --files: clean.Merging with #5704 / #5706: whichever lands second drops this PR's refusal for that agent, its refusal test and README paragraph. Both edits change
_new_session_state, so the merge conflicts visibly instead of one silently shadowing the other.Rollout evidence
N/A. The change only refuses the agent-session seed, which no shipped config sends to these agents. The new tests drive the agent's real
/v1/agent_sessionsroute. The/runpath the shipped configs use is unchanged.🤖 Generated with Claude Code