Skip to content

chore(scripts): commit v2.5 drift smoke + brand-schema probe - #1151

Merged
bokelley merged 3 commits into
mainfrom
bokelley/v2-5-smoke-harness
May 1, 2026
Merged

bokelley merged 3 commits into
mainfrom
bokelley/v2-5-smoke-harness

Conversation

@bokelley

@bokelley bokelley commented May 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Commit two diagnostic scripts that surfaced the v2.5 drift issues filed today (#1148, #1149, #1150).

  • scripts/smoke-wonderstruck-v2-5.ts — read-only harness that calls a v2.5 seller through the SDK and reports drift via result.debug_logs. Auto-detects Wonderstruck from SALES_AGENTS_CONFIG; trivial to retarget at any v2 seller.
  • scripts/probe-wonderstruck-brand-schema.ts — inspects tools/list to pull the actual brand declaration from the agent's tool schema cache. Used while writing the v2.5 brand-alias type guard in fix(client): unblock v2.5 sellers — brand alias type guard + response validation version pin #1137.

No tests, no new deps. Lives under scripts/ alongside other dev utilities.

Why

The user's framing was "we keep breaking 2.5 servers and not knowing it." Today's smoke run (post-#1137 version-pin) instantly exposed three real bugs (#1148 / #1149 / #1150). Committing the harness means anyone investigating v2.5 drift has a working starting point, rather than rebuilding it from scratch each time.

Test plan

  • Ran against Wonderstruck (v2.5 MCP) — surfaced 4 distinct failure patterns, 3 became filed issues.
  • npx prettier --check scripts/ — clean.

Notes

No changeset. Pure diagnostic scripts; not bundled in the published package.

bokelley and others added 3 commits May 1, 2026 07:03
scripts/smoke-wonderstruck-v2-5.ts — read-only harness that calls the
Wonderstruck v2.5 MCP agent through the SDK and reports any drift the
post-adapter validation pass observes via result.debug_logs. Surfaced
the three issues filed today: #1148 (list_authorized_properties throws),
#1149 (null envelope fields rejected), #1150 (response validation
should be warn-only).

scripts/probe-wonderstruck-brand-schema.ts — inspects tools/list to
pull the actual brand declaration from the agent's tool schema cache.
Used while writing the v2.5 brand-alias type guard in #1137.

Both scripts read SALES_AGENTS_CONFIG from .env. No tests or new
dependencies. Live under scripts/ alongside generate-types and other
dev utilities.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…apabilities

The smoke probe was calling agent.listAuthorizedProperties via optional
chaining, which returned undefined (the method doesn't exist on
AgentClient — list_authorized_properties was replaced by getCapabilities()
in v3, see property-crawler.ts:141). Replaced with a direct
executeTask('list_authorized_properties') probe so v2.5 sellers that
still expose the underlying tool can be tested.

Closes #1148.
@bokelley
bokelley force-pushed the bokelley/v2-5-smoke-harness branch from 26ee165 to db3d659 Compare May 1, 2026 11:04
@bokelley
bokelley merged commit 4bada7b into main May 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant