Repository navigation
chore: merge train 20261104-1530 - #5369
Merged
Merged
Conversation
Claude Code retries a call the provider refuses with 503, or with 529 on Sonnet, ten times over about three minutes before it ends the turn, and prints a system/api_retry line for each attempt. The hold took a probe that had worked two minutes as proof that the model answers again, so it cleared while its probe was still being refused. The runs waiting on the model started in waves, and the probe's own refusal then found no hold and opened a fresh one at its first step, so the wait never grew and the twelve-hour limit never ended it. The Claude parser now types an api_retry line with error_status 503 or 529 as model-capacity-retry, carrying the wait before the next attempt. The task lane's drain hands each one, also from a replayed window, to the run's progress sink, which renews the probe's claim on the model's hold in order; the settle path waits for the renewals, and one that fails is logged and never fails the turn. The renewal is fenced to the run's current exec while the run runs, takes the lock the hold's claims and refusals take, renews only the hold's own probe, only moves the claim later, and credits the retry's wait in whole milliseconds up to 15 minutes. The others now wait until the probe has worked two minutes past its last refused call, and its refusal when the harness gives up finds the same hold and doubles its wait, with the twelve hours still counted from its first refusal. TASK-R40 in the tasks spec, the task automation pages (en, de, fr) and its automation row say so. Closes #5350 Task: TALE-436
Chat's generate_image offered every image model the same inputImages: "as many as the image model takes", up to four. The tool then refused, as invalid_args, a picture to a model that draws from the prompt alone, more pictures than its catalog allows, and a call without one to a model that only edits. The chat model learnt the limit only from the refusal. A gateway image model Tale cannot describe takes no picture, so every reference passed to it was refused. The tool is now written for the turn's image model. A model that takes no picture is offered no inputImages, and the description says it draws from the prompt alone. A model that takes pictures is offered at most its catalog's count, within Tale's four. An edit model gets minItems and a required inputImages, and the description says every call needs a picture. A catalog minimum above its maximum still yields a range a call can meet. Refs #5368
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.
Cut: cd4a12c
The stable line's merge train: the two commits between
7d7b1ee98(the merge of #5352) and the cut.5ef4cd0eafix(platform): keep a capacity hold while its probe's harness retries (TALE-436, closes fix(platform): a Claude Code probe retrying a 503 clears the capacity hold #5350)trainat 10:46 UTC.system/api_retryline for each attempt. The model's capacity hold took a probe that had worked for two minutes as proof that the model answered again. So the hold cleared while its probe was still being refused, and the runs that waited on the model started in waves.cd4a12c4afix(platform): offer an image model only the pictures it takes (no task; refs bug(platform): generating an image in chat sometimes fails with invalid_args — cause not confirmed #5368)yannickmonneypushed it totrainat 13:23 UTC. It did not go through the Reviewer and has no task on the board. The merge-train role pre-checked it (below).generate_imagetool is now written for the turn's image model:inputImages;Both commits are stable-line, since each is a
fixof whatmainships. So nothing moved tofeature-trainbefore this departure.mainhas not moved since7d7b1ee98, so the rebase merge replays the two commits as they are.git merge-tree --write-tree origin/main <cut>gives the cut's own tree,b478ad0fd. The train changes 25 files: 1029 lines added and 68 removed.This pull request runs CI once for the whole train, in the scope its changed files select. A local reading of
.github/ci-scope.ymlplaces them in these scopes:all,integration,cli;build,build_platform,build_docs,build_storybook,build_sandbox-runtime,build_ci_tests;e2e,e2e_platform,e2e_docs.That is not the full scope, and this pull request's scope job decides.
It rebase-merges when green (auto-merge). The Coder's merge-train role (TALE-234) works it until it is green, and while it is open no other stable-line train departs.
main's Checks on7d7b1ee98each failed once, in tests the train does not touch:services/sandbox-runtime/daemon/src/process-reaper.test.ts:782expected 0 pending reads and got 5. The same job passed in run 41799911333.automation-editor.browser.test.tsxfound no element with the role "listbox".CLI, SAST, Commitlint and Build passed on
main's push.Checked before departure. The details are on TALE-234, in
test-precheck-train-5ef4cd0e.mdandtest-precheck-train-cd4a12c4.md.The fast gate on the cut.
bun install --frozen-lockfileandbun run format:checkpassed, andbunx turbo run typecheck build --continuepassed 26 of 28 tasks.@tale/cli#buildand@tale/web#buildfailed only on downloads the checking worker cannot reach.turbo run build --dry=jsonlists none of the train's files among their inputs.The platform's server tests on the cut. 349 files and 5435 tests passed.
5ef4cd0eachanges (266 tests) and the twocd4a12c4achanges (17 tests).The CLI.
check:bundlepassed on the Linux binary, and so did the two CLI test files that read the embedded platform sources (19 tests).Lint. These passed: oxlint on platform,
knip:check,lint:manual,lint:links,lint:conflicts, and commitlint on both commits.Not run:
model-capacity.integration.ts, which5ef4cd0eachanges;No checking worker has Postgres, Docker or a browser. This pull request runs all of them.
git merge-tree --write-tree --name-only origin/feature-train <cut>is clean, withfeature-trainat7a809e39e, which isrelease/0.6and holdsmain. So the feature-train role (TALE-239) meets no conflict from this train when it rebasesrelease/0.6ontomainafter this lands.Commits (2):
Task keys: TALE-436.
cd4a12c4ahas no task.