Skip to content

fix(tests): seed split web_search/deep_research tiers in multi-pod setup - #4150

Merged
viktormarinho merged 1 commit into
mainfrom
viktormarinho/fix-multipod-simple-mode-tier
Jun 25, 2026
Merged

viktormarinho merged 1 commit into
mainfrom
viktormarinho/fix-multipod-simple-mode-tier

Conversation

@viktormarinho

@viktormarinho viktormarinho commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the multi-pod CI failure introduced when #4134 merged to main.

#4134 split the web_research simple-mode tier into web_search + deep_research. SimpleModeConfigSchema requires all six tier keys to be present (each is nullable() but not optional()). The multi-pod cluster seeder (tests/multi-pod/lib/setup.ts) still sent the pre-split shape:

tiers: { fast: null, smart: {…}, thinking: null, image: null, web_research: null }

So ORGANIZATION_SETTINGS_UPDATE rejected the payload (missing web_search/deep_research), the org's smart tier was never persisted, and every cluster chat/automation fell back to the SDK default-pick — which can't resolve the mock model — and died with:

TierUnavailableError: No model available for tier "smart".

Failing scenarios on main (run 28190291618)

  • cross-pod /attach > attach on non-POST pods receives buffered chunks from the live run (explicit HTTP 400 smart-tier error)
  • automation webhook trigger > POST to a webhook trigger on pod-2 fires the automation and the run completes (run never completes → 30s timeout)
  • automation webhook trigger > AUTOMATION_TRIGGER_ROTATE_TOKEN revokes the old token and the new one fires (same)

Fix

Send the post-#4134 tier shape (web_search: null, deep_research: null instead of web_research: null). One-line change in the shared seeder — it's the only simple_mode seeder in the whole test suite.

Verification

Parsed both payloads against the real SimpleModeConfigSchema:

OLD (pre-#4134 shape) parses: false
  -> rejected: tiers.web_search: expected object, received undefined;
               tiers.deep_research: expected object, received undefined
NEW (fixed shape) parses: true
  -> smart tier preserved: {"keyId":"k1","modelId":"mock-model"}

The multi-pod suite needs the Docker cluster (not runnable locally here); this is validated by the schema parse above and is a pure test-data shape fix.

🤖 Generated with Claude Code


Summary by cubic

Fix multi-pod CI failures by updating the test seeder to use the split simple-mode tier keys. We now send web_search: null and deep_research: null (instead of web_research: null), so SimpleModeConfigSchema accepts the payload, the smart tier persists, and runs no longer throw TierUnavailableError.

Written for commit 77c75c2. Summary will update on new commits.

Review in cubic

#4134 split the `web_research` simple-mode tier into `web_search` +
`deep_research`, and SimpleModeConfigSchema requires all six tier keys to
be present. The multi-pod cluster seeder still sent the pre-split shape
(`web_research: null`, no `web_search`/`deep_research`), so
ORGANIZATION_SETTINGS_UPDATE rejected the payload, the org's "smart" tier
was never persisted, and every cluster chat/automation fell back and
failed with `TierUnavailableError: No model available for tier "smart"`.

That broke 3 multi-pod scenarios on main: cross-pod `/attach` and the two
automation-webhook tests. Send the post-#4134 tier shape so the smart
tier persists.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@viktormarinho
viktormarinho force-pushed the viktormarinho/fix-multipod-simple-mode-tier branch from 29c20a7 to 77c75c2 Compare June 25, 2026 18:44
@viktormarinho
viktormarinho merged commit 2a528f9 into main Jun 25, 2026
14 checks passed
@viktormarinho
viktormarinho deleted the viktormarinho/fix-multipod-simple-mode-tier branch June 25, 2026 18:49
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