Skip to content

test: record the remaining hosted call replays in the store:false script - #544

Merged
franciscojavierarceo merged 3 commits into
vllm-project:mainfrom
sohom-cs:fix/replayed-call-items-492
Nov 26, 2026
Merged

franciscojavierarceo merged 3 commits into
vllm-project:mainfrom
sohom-cs:fix/replayed-call-items-492

Conversation

@sohom-cs

@sohom-cs sohom-cs commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Following the #492 close note, the remaining store: false replays (an inline code_interpreter_call, and the by-id replays of mcp_call, web_search_call and code_interpreter_call items) are recorded against OpenAI in a suite of the existing record_store_false_cassettes.sh instead of a new script and cassette directory. OpenAI accepts every request and main already lowers all three types (#505), so no gateway code changes; ARCHITECTURE.md no longer says a replayed mcp_call or web_search_call is not lowered.

Changes by API

No wire change: a recorder suite and its cassette, a characterization test, and docs.

Test Plan

  • Recording: STORE_FALSE_SUITE=hosted-calls, one cassette, store_false/store-false-hosted-calls-openai-reference-gpt-5.6-sol-nonstreaming.yaml (gpt-5.6-sol, every request HTTP 200). Turns 1-2 run the code-interpreter prompt with store: false and send its items back inline; turns 3-11, once each for an mcp_call, a web_search_call and a code_interpreter_call, store the response that makes the call and send its output items back with store: false, as returned and as item_reference.
  • replayed_calls_characterization_test.rs reads that cassette and checks every turn: status, store, declared tools, the item types sent and returned, and that the by-id replays name the stored items.
  • pre-commit run --files <changed files>: pass.
  • cargo clippy -p agentic-server-core --all-targets -- -D warnings: clean.
  • cargo test -p agentic-server-core --test replayed_calls_characterization_test --test relayed_stream_validation_test --test multi_agent_contract_test: pass.

The cassette holds OpenAI's recordings of these exact requests, made with this PR's earlier separate script. Run against a stub server that returns them, the suite sends the same request bodies, replayed input included, and writes the same file byte for byte.

Not run: the gateway set, which needs MCP, web search and the code-interpreter runtime. The gateway also has no item_reference input type, so it refuses the item_reference replays (turns 5, 8 and 11).

Add OpenAI reference recordings of mcp_call, web_search_call and
code_interpreter_call items sent back with store: false, inline and by
id, with the scenario script that records them and a characterization
test. The rehydrate test now asserts the exact upstream input for all
three types from previous_response_id, a conversation, a by-id replay
and an inline replay. New unit tests pin how a replayed MCP call is
named, including in a compaction summary. No gateway code changes.

Part of vllm-project#492.

Signed-off-by: Sohom Chakraborty <[email protected]>
@sohom-cs sohom-cs changed the title test: record OpenAI replays of gateway calls and pin their model input test: record the remaining hosted call replays in the store:false script Nov 18, 2026
@sohom-cs
sohom-cs marked this pull request as ready for review November 18, 2026 16:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T16:30:05.291513Z 627b249 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

}

/// `read_file` listed after `read.file`, which takes the sanitized name they share.
const RENAMED_READ_FILE: &str = "mcp__files__read_file__33ad240685";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sohom-cs I dont think these unit tests are necessary. you have recorded the cassettes you should be doing integration tests in replayed_calls_characterization_test.rs should be sufficient

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I removed the unit tests in 1225609. Per your #492 note there is no separate script or cassette directory any more: the replays are a STORE_FALSE_SUITE=hosted-calls suite in record_store_false_cassettes.sh with one cassette in store_false/, and replayed_calls_characterization_test.rs now checks every turn of that cassette. I can go back to the separate script and directory if you prefer.

@maralbahari

Copy link
Copy Markdown
Collaborator

@sohom-cs could you please resolve merge conflict and address the comment so that we can merge this in thank you

As the vllm-project#492 close note asks, the replays the existing scenarios do not
cover become STORE_FALSE_SUITE=hosted-calls of
record_store_false_cassettes.sh instead of a separate script and
cassette directory: an inline code_interpreter_call replay, and the
mcp_call, web_search_call and code_interpreter_call items of a stored
response sent back by id, as returned and as item_reference. The
cassette keeps the OpenAI recordings of those requests.

The separate script, replayed_calls/ and the unit tests that pinned
model input are removed; replayed_calls_characterization_test.rs now
checks the one cassette. ARCHITECTURE.md keeps the correction that
replayed calls are lowered, and the API page drops its pointer to vllm-project#492.

Signed-off-by: Sohom Chakraborty <[email protected]>

@franciscojavierarceo franciscojavierarceo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the hosted-call recordings now use the existing recorder, and the characterization test covers the recorded turns. looks good to me.

@franciscojavierarceo
franciscojavierarceo merged commit 087832b into vllm-project:main Nov 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants