Skip to content

test(agents): use neutral tool schema fixtures - #88848

Merged
steipete merged 1 commit into
mainfrom
neutral-tool-fixture-names-20260601
Jun 1, 2026
Merged

steipete merged 1 commit into
mainfrom
neutral-tool-fixture-names-20260601

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jun 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Renames the tool-schema regression fixtures from the reported extension/tool name to neutral fuzzplugin / fuzzplugin_move_angles names.
  • Keeps the expected doctor warnings, allow/config paths, runtime diagnostics, and gateway schema expectations aligned with the neutral fixture names.
  • Leaves runtime behavior unchanged; this is a test-only privacy/scrub PR for the active tool-schema hardening lane.

Verification

  • node scripts/run-vitest.mjs packages/gateway-protocol/src/schema/agents-models-skills.test.ts extensions/codex/src/app-server/dynamic-tools.test.ts src/flows/doctor-core-checks.runtime.test.ts src/flows/doctor-health-contributions.test.ts src/flows/doctor-core-checks.test.ts src/agents/agent-bundle-mcp-runtime.test.ts src/agents/agent-bundle-mcp-tools.materialize.test.ts src/commands/doctor/repair-sequencing.test.ts src/agents/tools-effective-inventory.test.ts src/commands/doctor/shared/preview-warnings.test.ts src/commands/doctor/shared/active-tool-schema-warnings.test.ts src/agents/embedded-agent-runner/compact.hooks.test.ts src/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-engine.test.ts --reporter=dot
  • node_modules/.bin/oxfmt --check --threads=1 <13 touched test files>
  • node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.json <13 touched test files>
  • git diff --check
  • Private reported-name scrub across extensions/codex, packages/gateway-protocol/src/schema, and src: no hits
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main
  • AWS Crabbox pnpm check:changed: provider aws, lease cbx_76be6c810358, run run_66b166ee2554, label neutral-fixture-check-changed, exit 0

Real behavior proof

Behavior addressed: test fixtures no longer expose the reported experimental plugin/tool name while continuing to cover unsupported active tool-schema diagnostics.
Real environment tested: local Codex worktree plus AWS Crabbox Linux changed-gate proof.
Exact steps or command run after this patch: targeted Vitest, oxfmt, oxlint, diff check, fixture-name scrub, autoreview, and Crabbox pnpm check:changed as listed above.
Evidence after fix: no remaining reported private fixture-name hits in the touched source/test surfaces; all targeted and changed-gate checks passed.
Observed result after fix: the same regression coverage now uses neutral fuzzplugin fixture names.
What was not tested: no live plugin runtime or assistant turn was exercised because this patch only renames tests and expected fixture strings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime commands Command implementations agents Agent runtime and tooling extensions: codex size: M maintainer Maintainer-authored PR labels Jun 1, 2026
@clawsweeper

clawsweeper Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed May 31, 2026, 9:12 PM ET / 01:12 UTC.

Summary
Renames reported tool-schema test fixtures and expected diagnostics to neutral fuzzplugin / fuzzplugin_move_angles strings across Codex, agent, doctor, MCP, and gateway schema tests.

PR surface: Tests +2. Total +2 across 13 files.

Reproducibility: not applicable. this is a test fixture scrub, not a bug reproduction. The source check confirms current main still has the reported fixture names in tests, and the PR diff replaces those strings without changing runtime code.

Review metrics: 1 noteworthy metric.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🌊 off-meta tidepool
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Risk before merge

  • [P1] Two earlier same-title maintainer PRs remain open, so maintainers should choose one canonical neutral-fixture branch before landing to avoid duplicate conflict or review churn.

Maintainer options:

  1. Decide the mitigation before merge
    Land one canonical neutral-fixture cleanup branch after checks settle, then close or retire the duplicate same-scope branches.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • Maintainer coordination is needed to choose between same-scope open branches; no automated repair is needed.

Security
Cleared: The diff only renames test fixture strings and expected diagnostics; it does not touch dependencies, workflows, secrets, package metadata, or runtime code.

Review details

Best possible solution:

Land one canonical neutral-fixture cleanup branch after checks settle, then close or retire the duplicate same-scope branches.

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

Not applicable: this is a test fixture scrub, not a bug reproduction. The source check confirms current main still has the reported fixture names in tests, and the PR diff replaces those strings without changing runtime code.

Is this the best way to solve the issue?

Yes, the test-only neutral rename is the narrowest maintainable way to scrub reported fixture names while preserving unsupported schema coverage. The remaining choice is not code shape but which same-scope maintainer branch should be canonical.

AGENTS.md: found and applied where relevant.

Codex review notes: model gpt-5.5, reasoning high; reviewed against 5b0c4c04917f.

Label changes

Label changes:

  • add P3: This is a low-risk test-only privacy/fixture cleanup with no runtime behavior change.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a maintainer-labeled MEMBER PR where the external contributor proof gate does not apply; the PR body nevertheless lists targeted tests, scrub, autoreview, and AWS Crabbox changed-gate proof.

Label justifications:

  • P3: This is a low-risk test-only privacy/fixture cleanup with no runtime behavior change.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a maintainer-labeled MEMBER PR where the external contributor proof gate does not apply; the PR body nevertheless lists targeted tests, scrub, autoreview, and AWS Crabbox changed-gate proof.
Evidence reviewed

PR surface:

Tests +2. Total +2 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 13 110 108 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 110 108 +2

What I checked:

  • Repository policy read: Read the full root policy plus scoped guides for extensions/, src/agents/, and src/agents/embedded-agent-runner/run/; the Codex dependency gate, maintainer-label protection, and agent-test guidance apply to this PR. (AGENTS.md:1, 5b0c4c04917f)
  • PR diff is test-only fixture renaming: The PR patch changes 13 test files by replacing reported dofbot fixture strings with neutral fuzzplugin names while leaving runtime implementation files untouched. (36a059e380ae)
  • Current runtime projection still enforces the covered invariant: Current main rejects non-object runtime tool schemas and records violations, so the renamed fixtures still exercise the same unsupported-schema path. (src/agents/tool-schema-projection.ts:184, 5b0c4c04917f)
  • Codex bridge quarantine path unchanged: The Codex bridge projects available/registered tools, dedupes quarantined tools, logs warnings, emits blocked-tool diagnostics, and skips invalid tools before model projection. (extensions/codex/src/app-server/dynamic-tools.ts:100, 5b0c4c04917f)
  • Codex dependency contract checked: Sibling Codex source shows dynamic tools carry input_schema as JSON, are parsed through parse_tool_input_schema, and are converted to Responses API function/namespace tool specs; this supports keeping the OpenClaw object-schema quarantine coverage. (../codex/codex-rs/protocol/src/dynamic_tools.rs:8, 3b7334d099b3)
  • Doctor and inventory callers keep the same behavior: Doctor warnings, runtime health findings, and effective tool inventory all consume the same schema diagnostics and plugin/tool names, so the PR's expected-string updates align with current caller behavior. (src/commands/doctor/shared/active-tool-schema-warnings.ts:117, 5b0c4c04917f)

Likely related people:

  • vincentkoc: Authored this PR and multiple related tool-schema hardening/neutral-fixture PRs, including the merged runtime quarantine work at fix(agents): quarantine invalid runtime tool schemas #88368 and the open stacked follow-up fix(codex): quarantine unreadable dynamic tools #88774. (role: active lane owner and recent area contributor; confidence: high; commits: 36a059e380ae, 4be0a8aa8b71, 618bb0a9a9f2; files: extensions/codex/src/app-server/dynamic-tools.test.ts, src/agents/tool-schema-projection.ts, src/flows/doctor-core-checks.runtime.test.ts)
  • steipete: Merged the related runtime schema quarantine PR that established the current tool-schema hardening lane on main. (role: merger of related runtime hardening; confidence: medium; commits: 46297d7b9061; files: src/agents/tool-schema-projection.ts, src/flows/doctor-core-checks.runtime.test.ts)
  • Gio Della-Libera: Recently touched the active tool schema doctor warning path with fix(doctor): quiet tool policy audits during probes, adjacent to this PR's doctor fixture updates. (role: recent adjacent contributor; confidence: medium; commits: bf777b9af29d; files: src/commands/doctor/shared/active-tool-schema-warnings.ts, src/commands/doctor/shared/active-tool-schema-warnings.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jun 1, 2026
@steipete steipete self-assigned this Jun 1, 2026

@steipete steipete left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maintainer verification for head 36a059e380ae44fb11549854f05fedff7a45c84e:

  • Reviewed the diff and surrounding tool-schema quarantine surfaces; this is a test-only fixture-name scrub from the reported plugin/tool name to neutral fuzzplugin names.
  • Checked the Codex dynamic-tool schema contract in ../codex/codex-rs/app-server/src/request_processors/thread_processor.rs, ../codex/codex-rs/tools/src/dynamic_tool.rs, and ../codex/codex-rs/tools/src/json_schema.rs.
  • Ran .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main: clean, no accepted/actionable findings.
  • Verified exact-head CI is green, including Real behavior proof.
  • Refreshed origin/main to 6c73ffc51a614b48775cf698cf8ad64000dfd09b, checked the PR head merge-tree against it, and ran git diff --check origin/main...HEAD clean.

No proof gaps for this test-only rename.

@steipete
steipete merged commit 91ca036 into main Jun 1, 2026
237 of 246 checks passed
@steipete
steipete deleted the neutral-tool-fixture-names-20260601 branch June 1, 2026 02:09
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 1, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui commands Command implementations extensions: codex gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M 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.

2 participants