Skip to content

docs: say which clients would gain from OpenAI's server-side search (#876) - #954

Merged
amiddavid merged 2 commits into
mainfrom
docs/matrix-876-table
Nov 8, 2026
Merged

amiddavid merged 2 commits into
mainfrom
docs/matrix-876-table

Conversation

@amiddavid

Copy link
Copy Markdown
Collaborator

Summary

How it was checked

🤖 Generated with Claude Code

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 2 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.319 offload-review skill, @amiddavid's session fresh 2 of 2 1 of 2 75a9f5defc91 blocking

Verdict: blocking

Findings

  1. docs/tool-search-matrix.md:25 — the new table contradicts row 14 of the main table about Codex on gpt-5.6
    • What fails: a reader looks up Codex on gpt-5.6. The main table (line 14) says the search tool is
      "Codex's own tool_search", answered by Codex. The new table (line 25) says "None needed",
      because Codex sends no tools. The page now gives two different answers for the same client.
    • Proof: line 14 vs. line 25. Issue #876's step-2 probe measured it: on gpt-5.6 Codex sends
      tools: [] and "No tool_search at all". The closing comment on #876 says the same. The PR
      body also says "Codex on gpt-5.6 sends no tools". So row 14's "Search tool" and "Who answers"
      cells are stale. They predate the probe (row present since #900, commit 44f8318). This PR adds
      the correct facts one section below but leaves the stale row in place.
    • Fix: in row 14, set "Search tool" to None and "Who answers" to -. Keep the rest of the row.

Non-blocking

  • Line 25 says Codex "sends no tools". Codex sends an empty tools array (tools: []). The
    meaning is the same for a reader. Optional wording fix.
  • Line 26 bolds two parts of the client cell and leaves "(the OpenAI SDK, an agent framework)"
    plain. This matches the owner's text in #876, so I left it alone.

What I checked

  • The full diff: one file, docs/tool-search-matrix.md, +14/-2. No code change.
  • Issue #876 in full: body and all comments. The new table transcribes the owner's priority
    decision of 2026-11-08 word for word.
  • Row 27 ("the app declares its own tool_search"): verified in code. NativeSearch
    (tooldefer/clientsearch.go:714) makes the proxy add nothing for such a request.
  • Row 26 (an app on Responses, no search of its own, uses context_guru_tools today): verified in
    code. The gate order at tooldefer/clientsearch.go:311-333 passes a non-Claude, no-native-search
    Responses request to our search tool.
  • Rows 24 and 28 against the main table rows 13 and 15, and against issue #876. They agree.
  • "The tool stays in tools instead of being removed and added back": agrees with
    docs/tool-search-matrix.md:141-143 and with issue #876's cache analysis.
  • The PR needs no mkdocs.yml change: it edits an existing page only.
  • Data dependence and behavior: no change. The PR touches docs only.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 1 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.319 offload-review skill, @amiddavid's session fresh 1 of 2 1 of 2 75a9f5defc91 blocking

Verdict: blocking

Findings

  1. docs/tool-search-matrix.md:25 — the new table contradicts line 14 for Codex on gpt-5.6
    • What fails: a reader asks "which search tool does Codex on gpt-5.6 use?". Line 14 answers
      "Codex's own tool_search, answered by Codex". Line 25 answers "None needed". The page now
      gives two different answers to the same question, 11 lines apart.
    • Proof: the measurement in #876 (comment, 2026-11-08): on gpt-5.6 Codex puts its tools in an
      additional_tools input item, sends tools: [], and "the proxy sees no tool_search and no
      per-tool declaration". So line 14's cells describe gpt-5.5 behavior, not gpt-5.6. The code
      agrees: NativeSearch reads only tools (tooldefer/clientsearch.go:714-724), and a request
      with no tools array stops at no_tools (tooldefer/clientsearch.go:337). The new table is
      the correct side; line 14 is stale.
    • Fix: in line 14, change the "Search tool" and "Who answers" cells for the gpt-5.6 row to
      match the new table (for example: "None needed — Codex sends additional_tools and no
      tools", who answers "-"). The contradiction is created by this PR, so the fix belongs here,
      not in a separate issue.

Non-blocking

  • Line 31, "OpenAI charges for each search": no source in the repo or in #876's issue body. It
    appears only in the owner's priority comment. Keep it only with a link to the pricing.
  • Lines 30-31: "Even there the gain is small" is followed by a benefit ("the tool stays in
    tools"), then a cost. Split the two, so the reader sees which is which.

What I checked

  • The full diff: one file, docs/tool-search-matrix.md, +14 −2. One commit (75a9f5d). No code,
    config, or data-dependence change, so no test is due and no docs/data-dependence.md row moves.
  • The whole page, and each new claim against the code:
    • "Codex on gpt-5.5: the proxy keeps Codex's search and defers nothing" — ApplySearch returns
      native_search before any rewrite (tooldefer/clientsearch.go:327-333). Matches #897.
    • "Codex on gpt-5.6: nothing to defer" — ApplySearch stops at no_tools when tools is not
      an array (tooldefer/clientsearch.go:337-339); NativeSearch scans tools only. Matches the
      #876 measurement (tools: [], tools in additional_tools).
    • "A direct Responses app with no search of its own uses our context_guru_tools" — matches the
      main table's last row and the ApplySearch path for non-Anthropic models with no native
      search.
    • "The same app with its own tool_search: no, native first" — matches the page's own rule
      (line 3) and the NativeSearch gate.
    • "Chat Completions: no, #876 is Responses only" — matches #876 ("Responses only") and
      NativeSearch's IsResponses check.
    • "The tool stays in tools instead of being removed and added back" — matches #876's mechanism
      (defer_loading: true plus {"type":"tool_search"} in tools; no removal, no add-back).
    • "It is the only case" — I enumerated the clients on gpt-5.6+ Responses (Codex 5.5, Codex 5.6,
      a direct app with and without its own search) and Chat Completions. Only the direct app
      without its own search gains. The enumeration is complete.
  • The new table and the closing paragraph match the owner's priority comment on #876
    (2026-11-08, "Priority: low") word for word, including "(low priority)" in the heading line.
  • The main table rows 13-16 against the new table: all agree except line 14 (finding 1).

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Fixed in b7ff241:

  1. Codex on gpt-5.6 (both reviewers, blocking): the main table row now says the search tool is "None". Codex sends an empty tools array and puts its tools in additional_tools. "Who answers" is "-". The row and the new table now agree.
  2. tools: [] (reviewer 2, non-blocking): both places now say "an empty tools array".
  3. Gain and cost (reviewer 1, non-blocking): they are now two separate bullets. The cost line now says "each server-side search is a paid tool call on the OpenAI side". It no longer states a price.

🤖 Generated with Claude Code

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 2 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.319 offload-review skill, @amiddavid's session resumed 2 of 2 2 of 2 b7ff2412d790 approve

Verdict: approve

Findings

None.

Earlier findings

  1. My round-1 finding (row 14 contradicted the new table on Codex gpt-5.6): fixed. Row 14 now
    says the search tool is "None", with "Codex sends an empty tools array and puts its tools in
    additional_tools". "Who answers" is "-". Row 14 and the new table row now agree. Both match
    the #876 probe: on gpt-5.6 Codex sends tools: [] and no tool_search. The code agrees:
    NativeSearch scans tools only (tooldefer/clientsearch.go:714-724), and an empty tools
    array stops at no_tools (tooldefer/clientsearch.go:337-339).
  2. Reviewer 1's round-1 finding (the same contradiction): fixed by the same change. I checked
    it myself; the proof is above. I add no new proof.
  3. My non-blocking note ("sends no tools" vs. tools: []): fixed. Both places now say "an
    empty tools array".
  4. Reviewer 1's non-blocking notes: fixed. Gain and cost are now two labeled bullets. The cost
    bullet says "a paid tool call on the OpenAI side" and states no price, so it needs no pricing
    link.

Non-blocking

  • None.

What I checked

  • Last review: round 1, 75a9f5d, 2026-11-08T14:50:54Z.
  • New commits read: 1 (b7ff241 "docs: Codex on gpt-5.6 uses no search tool; split the #876 gain
    and cost").
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files).
  • New items since my last review: the fix commit b7ff241, and the author's comment of
    2026-11-08T14:54:25Z that lists three fixes. I verified each one against the diff and the code.
  • The full fix diff: one file, docs/tool-search-matrix.md, +8/-4. No code change, so no test is
    due and no docs/data-dependence.md row moves.
  • The new gain bullet ("the tool stays in tools with defer_loading") against issue #876's
    mechanism: defer_loading: true plus one {"type":"tool_search"}, no removal and no add-back.
    It agrees.
  • Row 14's new cells against the new table row and issue #876's probe: all three agree.
  • The rest of the page: the fix touches only rows 14 and 25 and the closing paragraph. Nothing
    else drifted.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 1 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.319 offload-review skill, @amiddavid's session resumed 1 of 2 2 of 2 b7ff2412d790 approve

Verdict: approve

Findings

None.

Earlier findings

  1. Mine, round 1 (line 14 vs. line 25, Codex on gpt-5.6): fixed in b7ff241. Line 14 now says
    the search tool is "None (Codex sends an empty tools array and puts its tools in
    additional_tools)" and "Who answers" is "-". Line 25 says the same. The two tables agree, and
    both match the #876 measurement (gpt-5.6: tools: [], tools in additional_tools, no
    tool_search).
  2. Reviewer 2, round 1 (same contradiction): fixed by the same commit. I checked it myself;
    the proof is above. I add nothing to it.
  3. My non-blocking notes: addressed. The gain and the cost are now two bullets. The cost line
    says "each server-side search is a paid tool call on the OpenAI side" and states no price.
  4. Reviewer 2's non-blocking note (tools: [] wording): fixed. Both places now say "an empty
    tools array".

Non-blocking

  • None.

What I checked

  • Last review: round 1, 75a9f5d, 2026-11-08T14:53:20Z
  • New commits read: 1 (b7ff241 "docs: Codex on gpt-5.6 uses no search tool; split the #876 gain
    and cost")
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files)
  • New items since my last review:
    • Commit b7ff241 (docs/tool-search-matrix.md, +8 −4): read the full diff and the file around
      each change. Verified each new claim below.
    • Author comment at 2026-11-08T14:54:25Z: lists the three fixes. All three are in the commit.
    • Reviewer 2's round-1 review (14:50:54Z, before my last review): read in full now. Its finding
      matches mine; its non-blocking notes are addressed.
  • The new commit's claims against the code and the issues:
    • "Codex sends an empty tools array": with tools: [], ApplySearch passes the no_tools
      gate (the field is an array), decides over zero tools, and defers nothing
      (tooldefer/clientsearch.go:337-383). The row's "Nothing. There is nothing to defer" holds.
    • "Its tools go in additional_tools": matches the #876 step-2 probe (23 KB additional_tools
      item, no per-tool declaration in tools).
    • "The tool stays in tools with defer_loading": matches #876's mechanism
      (defer_loading: true plus {"type":"tool_search"} in tools).
  • The cumulative diff base..HEAD is the round-1 change plus this fix. Nothing else changed. No
    code, config, or data-dependence change, so no test is due and no docs/data-dependence.md row
    moves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant