Skip to content

fix: accept detailed web-search schema rejection - #165223

Merged
shakkernerd merged 1 commit into
mainfrom
fix/web-search-rejection
Oct 5, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/web-search-rejection

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #165222

What Problem This Solves

The synthetic web-search Docker check reports a failure after the Gateway correctly rejects the deliberately invalid minimal-reasoning request. Its client recognizes raw provider errors and generic Gateway guidance, but misses the current detailed schema rejection with Markdown-escaped punctuation. This is the detailed-error counterpart to the generic guidance repaired in #164925.

User Impact

Release validation can recognize that expected rejection without changing OpenClaw runtime behavior. Unexpected success, unrelated provider failures, and connection failures still fail the check. The scenario continues to verify the successful reply marker, native web-search request shape, reasoning effort, and exact raw provider rejection in Gateway logs.

Why This Change Was Made

The mismatch is in the test client, so the change adds only the precise current rejection to its existing accepted representations. The existing validator cases gain that real error shape and a negative control for an unrelated error with the same LLM request rejected prefix. Production formatting and general error matching remain unchanged.

Evidence

The original release failure shows the intended provider rejection reaching the Gateway. On the remote Mac with Node 24.21.0, the unchanged client rejects that captured error; this candidate passes all eight acceptance and rejection controls in 24 ms. Targeted formatting and native type-aware lint pass.

Both native owner files passed: 23 tests in 1.25 seconds of Vitest execution (528.20 seconds including the normal runtime build preparation). The complete pnpm test:docker:openai-web-search-minimal command passed on Linux in 645.30 seconds, including package construction, tarball integrity checks, and the synthetic scenario. Hosted CI is green. The fixture uses a loopback TLS mock and synthetic credentials; no real-provider test was run.

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 5, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 9:35 PM ET / October 5, 2026, 01:35 UTC (Revision 3).

ClawSweeper review

What this changes

The web-search release-test client accepts the precise Markdown-escaped Gateway schema rejection and adds acceptance and unrelated-error regression cases.

Merge readiness

✅ Ready for maintainer review

The PR remains useful and has no actionable correctness findings. The updated validation results resolve the previous review’s pending-test blocker; current main still lacks this detailed rejection match.

Priority: P2
Reviewed head: e6d8d699e404c6f499485c7fe367071be83325a1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct harness repair with meaningful negative coverage and the previously requested validation results now recorded.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored PR. Its updated body reports the changed client passing the complete packaged-Gateway Docker scenario with an injected TLS-provider rejection; no live-provider run is claimed, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored PR. Its updated body reports the changed client passing the complete packaged-Gateway Docker scenario with an injected TLS-provider rejection; no live-provider run is claimed, and no stored-data contract changes.
Evidence reviewed 7 items Pinned introduced change: The introduced delta adds one precise accepted error representation and extends existing test tables. It does not change runtime error formatting, permissions, provider routing, or workflow configuration.
Current main still needs the correction: The full client at pinned current main accepts raw rejection text and generic Gateway guidance, but lacks the detailed escaped representation added by this PR. GitHub raw-content inspection supplied the source after local historical blob inspection encountered a promisor-fetch HTTP 403.
Latest-release comparison: The client in v2026.9.8 also lacks the detailed rejection match; the requested harness correction is not already present in that release.
Findings None None.
Security None None.

How this fits together

The web-search Docker check sends requests through a packaged Gateway to a synthetic OpenAI endpoint. Its client and log assertions determine whether successful requests and deliberate provider rejections behave as expected.

flowchart TD
  A[Docker release check] --> B[Gateway client]
  B --> C[Packaged Gateway]
  C --> D[Synthetic OpenAI endpoint]
  D --> E[Deliberate schema rejection]
  E --> C
  C --> F[Client error validation]
  F --> G[Scenario passes or fails]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2, Other +1. Total +3 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 1 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 2 4 1 +3

Review metrics

None.

Technical review

Best possible solution:

Keep expected schema-error recognition in the existing test client while preserving independent request, success, and raw-log assertions.

Do we have a high-confidence way to reproduce the issue?

Yes, source establishes a precise reproduction: pass the captured detailed, Markdown-escaped schema rejection to the unchanged main validator and it rejects the expected failure. The paired issue records that boundary reproduction; this review did not execute tests.

Is this the best way to solve the issue?

Yes, extending the existing accepted representations is the narrowest repair, and the unrelated-error control guards against accepting every detailed Gateway rejection.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3493b3bff4b6.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This bounded harness defect causes false failures in release validation without changing user runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored PR. Its updated body reports the changed client passing the complete packaged-Gateway Docker scenario with an injected TLS-provider rejection; no live-provider run is claimed, and no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The introduced delta adds one precise accepted error representation and extends existing test tables. It does not change runtime error formatting, permissions, provider routing, or workflow configuration. (scripts/e2e/lib/openai-web-search-minimal/client.mjs:22, e6d8d699e404)
  • Current main still needs the correction: The full client at pinned current main accepts raw rejection text and generic Gateway guidance, but lacks the detailed escaped representation added by this PR. GitHub raw-content inspection supplied the source after local historical blob inspection encountered a promisor-fetch HTTP 403. (scripts/e2e/lib/openai-web-search-minimal/client.mjs:21, 3493b3bff4b6)
  • Latest-release comparison: The client in v2026.9.8 also lacks the detailed rejection match; the requested harness correction is not already present in that release. (scripts/e2e/lib/openai-web-search-minimal/client.mjs:21, fc23bc864e45)
  • Existing scenario safeguards: The complete scenario still checks the successful reply, native web-search request, non-minimal reasoning, deliberate rejection, and exact raw provider error in Gateway logs. The added negative control rejects an unrelated error sharing the detailed-error prefix. (scripts/e2e/lib/openai-web-search-minimal/scenario.sh:113, e6d8d699e404)
  • Previous validation request resolved: The captured PR body reports both focused owner files passing 23 tests in 1.25 seconds of Vitest execution, with 528.20 seconds including preparation, and the complete targeted Docker command passing on Linux in 645.30 seconds. This supplies the results requested by the previous review at the unchanged head. These are author-reported results, not reviewer-executed tests; the setup used loopback TLS and synthetic credentials. (e6d8d699e404)
  • Related merged work and routing: Git history and GitHub commit metadata identify shakkernerd’s merged generic-guidance repair in fix: recognize current schema errors in web-search checks #164925 and steipete’s earlier validator-fixture refactor. The earlier repair covers another representation and does not supersede this detailed-error correction. Some local historical blobs were unavailable, so exact introduction attribution is limited to the verified patch evidence. (scripts/e2e/lib/openai-web-search-minimal/client.mjs:24, cc43c8c53cfe)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-05T00:45:21.244Z sha e6d8d69 :: needs changes before merge. :: none
  • reviewed 2026-10-05T00:50:53.482Z sha e6d8d69 :: needs changes before merge. :: none

@shakkernerd
shakkernerd merged commit b9bed02 into main Oct 5, 2026
114 checks passed
@shakkernerd
shakkernerd deleted the fix/web-search-rejection branch October 5, 2026 01:38
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: the web-search check recognizes the Gateway's detailed schema rejection.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
Accept the current detailed schema rejection in the synthetic web-search check while retaining unrelated-error controls.

Refs openclaw#165222.
RomneyDa added a commit that referenced this pull request Oct 8, 2026
Restore verified main test companions for image offload context and web-search schema rejection. Join deferred read-only update discovery before the unchanged plugin watchdog checks.

Release provenance: 2e76e31 -> #164643; cc43c8c -> #164925; b9bed02 -> #165223.
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Oct 22, 2026
Restore verified main test companions for image offload context and web-search schema rejection. Join deferred read-only update discovery before the unchanged plugin watchdog checks.

Release provenance: 2e76e31 -> openclaw#164643; cc43c8c -> openclaw#164925; b9bed02 -> openclaw#165223.

(cherry picked from commit 756a515)
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web-search rejection check rejects detailed Gateway schema errors

1 participant