Skip to content

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

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

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

Conversation

@vincentkoc

@vincentkoc vincentkoc commented May 31, 2026 •

Copy link
Copy Markdown
Member

Summary

  • replaces private plugin/tool fixture names in tool-schema tests with neutral fuzzplugin / mockplugin names
  • keeps this PR test-only so follow-up runtime hardening can land separately

Verification

  • node scripts/run-vitest.mjs <14 changed test files> --reporter=verbose passed 6 shards / 292 tests
  • ./node_modules/.bin/oxfmt --check <14 changed test files> passed
  • node scripts/run-oxlint.mjs <14 changed test files> passed
  • git diff --check origin/main...HEAD passed
  • added-line and touched-file scrub for the private plugin/tool name returned no matches
  • AWS Crabbox run_b8574973ddbb, lease cbx_52f67ecfb0c8, slug tidal-lobster, provider aws, type c7a.8xlarge: pnpm check:changed passed; lease cleaned up
  • post-gate rebase onto origin/main completed cleanly; diff stayed test-only at 14 files (+116/-114), git diff --check passed, and private-name scrub stayed clean

Real behavior proof

Behavior addressed: test fixtures no longer use a private plugin/tool name.

Real environment tested: local Codex worktree focused test harness plus remote Linux AWS Crabbox changed gate.

Exact steps or command run after this patch: node scripts/run-vitest.mjs <14 changed test files> --reporter=verbose; pnpm check:changed on AWS Crabbox run run_b8574973ddbb.

Evidence after fix: focused Vitest passed the touched test files; changed gate selected coreTests and extensionTests and exited 0.

Observed result after fix: branch is neutral-fixture-only again, with no runtime hardening commit included.

What was not tested: no runtime behavior change; this PR intentionally only renames test fixtures.

@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
@vincentkoc
vincentkoc marked this pull request as ready for review May 31, 2026 14:07
@clawsweeper

clawsweeper Bot commented May 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 21, 2026, 3:43 AM ET / 07:43 UTC.

Summary
The PR renames tool-schema regression fixture identifiers in Codex, agent, doctor, and gateway-protocol tests from report-specific/private names to neutral fuzzplugin/mockplugin names.

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

Reproducibility: not applicable. this is a test-fixture cleanup rather than a runtime bug. Source inspection confirms current main uses neutral fuzzplugin/mockplugin fixture names and the old private fixture terms no longer appear in the touched test paths.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: migration/backfill/repair: src/commands/doctor/repair-sequencing.test.ts, migration/backfill/repair: src/commands/doctor/shared/active-tool-schema-warnings.test.ts, migration/backfill/repair: src/commands/doctor/shared/preview-warnings.test.ts, migration/backfill/repair: src/flows/doctor-core-checks.runtime.test.ts, migration/backfill/repair: src/flows/doctor-core-checks.test.ts, migration/backfill/repair: src/flows/doctor-health-contributions.test.ts, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: superseded
Canonical: #88848
Summary: The current PR is a protected maintainer-owned duplicate/superseded branch for neutral tool-schema fixture names; the merged sibling PR is the canonical implementation already on main.

Members:

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

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦞 diamond lobster
Patch quality: 🦐 gold shrimp
Result: needs maintainer review before merge.

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

Rank-up moves:

  • Maintainer should decide whether to close this branch in favor of the merged sibling PR or refresh only if it still contains unique test value.

Risk before merge

  • [P1] The branch is currently dirty/conflicting against main and overlaps with already-merged neutral-fixture cleanup, so it is not a clean landing candidate without maintainer intervention.

Maintainer options:

  1. Decide the mitigation before merge
    Keep the shipped neutral-fixture implementation from the merged sibling PR, and have a maintainer close or retire this conflicting duplicate branch if no unique test coverage remains.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] Protected MEMBER/maintainer-labeled PR needs a human close/retire-or-refresh decision because the same cleanup has already landed and this branch is conflicting.

Security
Cleared: The diff is confined to test fixture strings and does not touch production code, workflows, dependencies, lockfiles, scripts, secrets, or package metadata.

Review details

Best possible solution:

Keep the shipped neutral-fixture implementation from the merged sibling PR, and have a maintainer close or retire this conflicting duplicate branch if no unique test coverage remains.

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

Not applicable: this is a test-fixture cleanup rather than a runtime bug. Source inspection confirms current main uses neutral fuzzplugin/mockplugin fixture names and the old private fixture terms no longer appear in the touched test paths.

Is this the best way to solve the issue?

Yes for the original cleanup: a test-only fixture rename is the narrow maintainable solution. This particular PR is no longer the best landing path because the same cleanup has already merged and shipped through #88848 while this branch is now conflicting.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b15f745a605c.

Label changes

Label justifications:

  • P3: This is low-risk test fixture hygiene with no intended runtime, config, provider, user-facing, or security behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body includes after-change focused Vitest, formatting, lint, scrub, and AWS Crabbox changed-gate proof for the test-only cleanup.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes after-change focused Vitest, formatting, lint, scrub, and AWS Crabbox changed-gate proof for the test-only cleanup.
Evidence reviewed

PR surface:

Tests +2. Total +2 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 14 116 114 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 116 114 +2

What I checked:

  • Protected maintainer-owned PR state: Live GitHub state shows this PR is open, authored by vincentkoc with author_association MEMBER, labeled maintainer and proof: sufficient, and mergeStateStatus DIRTY/mergeable CONFLICTING. (618bb0a9a9f2)
  • PR diff scope: The PR head is one test-only commit changing 14 *.test.ts files with +116/-114 and no production, workflow, dependency, lockfile, or package metadata changes. (618bb0a9a9f2)
  • Current main already uses neutral Codex fixture names: Current main keeps the same invalid array-schema Codex dynamic-tool quarantine coverage while using fuzzplugin_move_angles in the fixture, telemetry, diagnostic, and denied execution assertions. (extensions/codex/src/app-server/dynamic-tools.test.ts:357, b15f745a605c)
  • Current main has no private fixture hits in touched files: A direct scrub for the old private/report-specific fixture terms across the 14 touched paths returned no matches on current main. (b15f745a605c)
  • Merged sibling PR implemented the same cleanup: The merged sibling PR test(agents): use neutral tool schema fixtures #88848 changed the same neutral fixture theme across 13 tests and merged as commit 91ca036 on 2026-06-01T02:09:49Z. (91ca03671731)
  • Release provenance for the merged sibling: GitHub compare reports v2026.6.9's target commit c645ec4 is ahead of 91ca036 with behind_by 0, so the sibling cleanup is included in the latest release context. (91ca03671731)

Likely related people:

  • vincentkoc: Current main blame on the central tool-schema projection and fixture tests points to Vincent's forward-port commit, and GitHub history shows Vincent authored the merged neutral-fixture PR and several adjacent tool-schema quarantine commits. (role: recent area contributor and related stack author; confidence: high; commits: 0f8df48a91dd, 91ca03671731, 664948e7bfd7; files: src/agents/tool-schema-projection.ts, extensions/codex/src/app-server/dynamic-tools.test.ts, src/flows/doctor-core-checks.runtime.test.ts)
  • steipete: Recent GitHub history shows Peter authored or co-authored adjacent direct-tool schema quarantine, Codex dynamic-tool, and large agent/runtime refactor work around the same behavior boundary. (role: adjacent area contributor; confidence: medium; commits: a02813164dd5, 0314819f918a, 4c33aaa86c16; files: src/agents/tool-schema-projection.ts, extensions/codex/src/app-server/dynamic-tools.test.ts, src/flows/doctor-core-checks.runtime.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 May 31, 2026
@vincentkoc
vincentkoc force-pushed the test-neutral-tool-schema-fixtures-refresh-20260531 branch 3 times, most recently from e7a9bf1 to 06ef86b Compare May 31, 2026 15:33
@vincentkoc
vincentkoc force-pushed the test-neutral-tool-schema-fixtures-refresh-20260531 branch 2 times, most recently from fee8f70 to c41dae8 Compare May 31, 2026 16:23
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels May 31, 2026
@vincentkoc
vincentkoc force-pushed the test-neutral-tool-schema-fixtures-refresh-20260531 branch from 46297d7 to d3407f4 Compare May 31, 2026 17:19
@clawsweeper clawsweeper Bot removed the P2 Normal backlog priority with limited blast radius. label May 31, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels May 31, 2026
Use neutral mock plugin/tool names in tool-schema tests so the fixtures do not reference a private plugin name.
@vincentkoc
vincentkoc force-pushed the test-neutral-tool-schema-fixtures-refresh-20260531 branch from d3407f4 to 618bb0a Compare May 31, 2026 18:59
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 31, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Jun 19, 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 fixture conversion across the same agent, protocol, doctor, and flow tests. This older branch has no unique behavior coverage left. If a specific remaining fixture on current main still encodes a provider-specific schema, please send that one focused cleanup. Thanks, @vincentkoc.

@steipete steipete closed this Jul 5, 2026
@shakkernerd
shakkernerd deleted the test-neutral-tool-schema-fixtures-refresh-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