Skip to content

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

Closed
vincentkoc wants to merge 1 commit into
mainfrom
test-neutral-tool-schema-fixtures-20260531
Closed

vincentkoc wants to merge 1 commit into
mainfrom
test-neutral-tool-schema-fixtures-20260531

Conversation

@vincentkoc

@vincentkoc vincentkoc commented May 31, 2026 •

Copy link
Copy Markdown
Member

Summary

  • replaces reported plugin/tool fixture names with neutral synthetic fuzzplugin / mockplugin names in tests and expected diagnostics
  • keeps this PR test-only and deliberately excludes the runtime-quarantine test files now owned by fix(agents): quarantine invalid runtime tool schemas #88368
  • stabilizes one MCP runtime test log assertion by waiting for the existing server log helper instead of reading before the async write flushes

Landing note

This is hygiene, not the runtime fix. It can land before the schema-hardening PRs because it avoids their runtime-quarantine test files, but it should not block the critical behavior fixes if GitHub flakes again.

Verification

  • rebuilt the PR from current origin/main e1a9817 into head f347075, reducing the PR from +123/-127 across 14 files to +114/-118 across 11 files
  • synthetic sequential merge proof for test(agents): use neutral tool schema fixtures #88491 -> fix(agents): quarantine invalid runtime tool schemas #88368 -> fix(doctor): report runtime tool schema validation errors #88493 completed without conflicts using git merge-tree --write-tree
  • node scripts/run-vitest.mjs extensions/codex/src/app-server/dynamic-tools.test.ts packages/gateway-protocol/src/schema/agents-models-skills.test.ts src/agents/agent-bundle-mcp-runtime.test.ts src/agents/agent-bundle-mcp-tools.materialize.test.ts src/agents/tools-effective-inventory.test.ts src/commands/doctor/repair-sequencing.test.ts src/commands/doctor/shared/active-tool-schema-warnings.test.ts src/commands/doctor/shared/preview-warnings.test.ts src/flows/doctor-core-checks.runtime.test.ts src/flows/doctor-core-checks.test.ts src/flows/doctor-health-contributions.test.ts: 6 routed shards, 197 tests passed
  • node scripts/run-vitest.mjs src/agents/agent-bundle-mcp-runtime.test.ts: 27 tests passed
  • node_modules/.bin/oxfmt --check src/agents/agent-bundle-mcp-runtime.test.ts
  • node scripts/run-oxlint.mjs src/agents/agent-bundle-mcp-runtime.test.ts
  • git diff --check plus touched-file scrub for reported fixture names, private local paths, and install-error output: clean
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main: clean, no accepted/actionable findings
  • AWS Crabbox pnpm check:changed: passed on run run_f749e4297816, lease cbx_812307f4af8c / silver-lobster (provider=aws, command 9m50s, total 12m27s)
  • GitHub checks on f347075 settled with 115 success, 0 failed/pending, 24 skipped, and 1 neutral

Real behavior proof

Behavior addressed: test fixtures no longer preserve report-specific plugin/tool names in reusable runtime-schema diagnostics.

Real environment tested: linked OpenClaw gwt worktree based on current origin/main e1a9817, plus AWS Crabbox Linux proof for the changed gate on head f347075.

Exact steps or command run after this patch: rebuilt the PR as a reduced single commit, ran targeted fixture tests, formatter check, targeted lint check, diff check, scrub, autoreview, synthetic sequential merge proof, AWS Crabbox pnpm check:changed, and watched GitHub CI to green.

Evidence after fix: touched tests and expected diagnostics use neutral synthetic names, and the first-wave PR sequence no longer conflicts on runtime-quarantine test files.

Observed result after fix: the scrub PR stays test-only, avoids the overlapping runtime-quarantine files, and its MCP runtime log assertion no longer races CI log flushing.

What was not tested: no product runtime behavior; this is intentionally tests-only fixture cleanup.

Refresh 2026-05-31T10:47Z

Rebased onto current origin/main and pushed head 12723ee25f2e. Verification: node scripts/run-vitest.mjs extensions/codex/src/app-server/dynamic-tools.test.ts packages/gateway-protocol/src/schema/agents-models-skills.test.ts src/agents/agent-bundle-mcp-runtime.test.ts src/agents/agent-bundle-mcp-tools.materialize.test.ts src/agents/tools-effective-inventory.test.ts src/commands/doctor/repair-sequencing.test.ts src/commands/doctor/shared/active-tool-schema-warnings.test.ts src/commands/doctor/shared/preview-warnings.test.ts src/flows/doctor-core-checks.runtime.test.ts src/flows/doctor-core-checks.test.ts src/flows/doctor-health-contributions.test.ts passed 6 shards in 32.35s; node_modules/.bin/oxfmt --check ... passed; git diff --check and added-line scrub for reported fixture names/private paths/secrets passed.

Refresh 2026-05-31T11:45Z

Live GitHub state on head 12723ee25f2e: mergeable, mergeStateStatus=CLEAN, active checks 0, actionable failed checks 0.

Current non-mutating stack proof against origin/main fde87f475f7: this PR merges cleanly first, then #88368, #88410, and #88351 merge cleanly after it. Landing recommendation remains: land this neutral fixture cleanup first.

@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 May 31, 2026
@clawsweeper

clawsweeper Bot commented May 31, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Keep open: the useful neutral-fixture cleanup is already on current main and shipped via #88848, but this PR is maintainer-authored and has the protected maintainer label, so cleanup should be an explicit maintainer action rather than an automated close.

Root-cause cluster
Relationship: superseded
Canonical: #88848
Summary: The neutral tool-schema fixture cleanup is already represented by the merged replacement PR; this PR and the other open same-title PR are protected stale duplicates of that shipped cleanup.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Canonical path: Close this PR as superseded by #88848.

So I’m closing this here and keeping the remaining discussion on #88848.

Review details

Best possible solution:

Close this PR as superseded by #88848.

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

Not applicable: this is a test-only cleanup PR rather than a product bug report. The relevant check is source review of the fixture rename, current-main/release state, and the PR body’s targeted validation evidence.

Is this the best way to solve the issue?

Yes for the original cleanup, but current main and v2026.6.8 already carry the best implementation through #88848. This protected stale branch should be reconciled by a maintainer rather than repaired by automation.

Security review:

Security review cleared: The diff is test-only and does not change dependencies, workflows, package metadata, secrets handling, or production execution paths.

AGENTS.md: found and applied where relevant.

What I checked:

  • linked superseding PR: test(agents): use neutral tool schema fixtures #88848 (test(agents): use neutral tool schema fixtures) is merged at 2026-06-01T02:09:49Z.
  • cluster evidence: the durable review links that PR in the work cluster or recommended risk path.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • vincentkoc: Authored this PR, the merged same-title replacement PR, and the related runtime/doctor/gateway schema-hardening PRs that carried the neutral fixture cleanup into main. (role: recent area contributor and superseding implementation author; confidence: high; commits: 12723ee25f2e, 91ca03671731, 46297d7b9061; files: extensions/codex/src/app-server/dynamic-tools.test.ts, src/agents/agent-bundle-mcp-runtime.test.ts, src/commands/doctor/shared/active-tool-schema-warnings.test.ts)

Codex review notes: model internal, reasoning high; reviewed against 6370f2023a03; fix evidence: release v2026.6.8, commit 91ca03671731.

@vincentkoc
vincentkoc marked this pull request as ready for review May 31, 2026 01:09
@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 May 31, 2026
@vincentkoc vincentkoc self-assigned this May 31, 2026
@vincentkoc
vincentkoc force-pushed the test-neutral-tool-schema-fixtures-20260531 branch 2 times, most recently from a5f928f to f347075 Compare May 31, 2026 04:41
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 31, 2026
@vincentkoc
vincentkoc force-pushed the test-neutral-tool-schema-fixtures-20260531 branch from f347075 to 12723ee Compare May 31, 2026 10:43
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Jun 15, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jun 28, 2026
@steipete

steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded by merged #88848 (91ca0367173140e577c5e21077f150b54db781ac).

#88848 landed the neutral tool-schema fixtures across these same agent, protocol, doctor, and flow tests. This earlier branch no longer provides unique behavior or coverage. A specific provider-bound fixture still present on current main would justify a focused follow-up. Thanks, @vincentkoc.

@steipete steipete closed this Jul 5, 2026
@shakkernerd
shakkernerd deleted the test-neutral-tool-schema-fixtures-20260531 branch October 19, 2026 23:36
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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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