Repository navigation
fix(tests): seed split web_search/deep_research tiers in multi-pod setup - #4150
Merged
Merged
Conversation
viktormarinho
enabled auto-merge (squash)
June 25, 2026 18:39
viktormarinho
disabled auto-merge
June 25, 2026 18:43
viktormarinho
enabled auto-merge (squash)
June 25, 2026 18:43
#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
force-pushed
the
viktormarinho/fix-multipod-simple-mode-tier
branch
from
June 25, 2026 18:44
29c20a7 to
77c75c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the multi-pod CI failure introduced when #4134 merged to
main.#4134 split the
web_researchsimple-mode tier intoweb_search+deep_research.SimpleModeConfigSchemarequires all six tier keys to be present (each isnullable()but notoptional()). The multi-pod cluster seeder (tests/multi-pod/lib/setup.ts) still sent the pre-split shape:So
ORGANIZATION_SETTINGS_UPDATErejected the payload (missingweb_search/deep_research), the org'ssmarttier 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:Failing scenarios on main (run 28190291618)
cross-pod /attach > attach on non-POST pods receives buffered chunks from the live run(explicitHTTP 400smart-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: nullinstead ofweb_research: null). One-line change in the shared seeder — it's the onlysimple_modeseeder in the whole test suite.Verification
Parsed both payloads against the real
SimpleModeConfigSchema: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: nullanddeep_research: null(instead ofweb_research: null), soSimpleModeConfigSchemaaccepts the payload, thesmarttier persists, and runs no longer throwTierUnavailableError.Written for commit 77c75c2. Summary will update on new commits.