Skip to content

chore: merge train 20261104-1530 - #5369

Merged
tale-code-bot merged 2 commits into
mainfrom
train-20261104-1530
Nov 4, 2026
Merged

tale-code-bot merged 2 commits into
mainfrom
train-20261104-1530

Conversation

@tale-code-bot

Copy link
Copy Markdown
Collaborator

Cut: cd4a12c

The stable line's merge train: the two commits between 7d7b1ee98 (the merge of #5352) and the cut.

  • 5ef4cd0ea fix(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)
    • The Reviewer landed it on train at 10:46 UTC.
    • The cause. Claude Code retries a call that the provider refuses with 503 (or 529 on Sonnet) for about three minutes, and prints a system/api_retry line 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.
    • The fix. The Claude stream-json parser now types such a line as a model-capacity retry, and the task lane renews the probe's claim on the hold from it. The other runs now wait until the probe has worked two minutes past its last refused call.
    • TASK-R40 in the tasks spec, the task automation pages (en, de, fr) and the manual's automation row describe it.
  • cd4a12c4a fix(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)
    • yannickmonney pushed it to train at 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).
    • Chat's generate_image tool is now written for the turn's image model:
      • a model that takes no picture is offered no inputImages;
      • a model that takes pictures is offered at most its catalog's count, within Tale's four;
      • an edit model must get at least one picture.
    • It refers to bug(platform): generating an image in chat sometimes fails with invalid_args — cause not confirmed #5368, and that issue stays open after this train merges.

Both commits are stable-line, since each is a fix of what main ships. So nothing moved to feature-train before this departure.

main has not moved since 7d7b1ee98, 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.yml places 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 on 7d7b1ee98 each failed once, in tests the train does not touch:

  • Push run 41794945781 failed in Unit (workspaces): services/sandbox-runtime/daemon/src/process-reaper.test.ts:782 expected 0 pending reads and got 5. The same job passed in run 41799911333.
  • Dispatched run 41799911333, the release candidate's validation, failed in Browser on attempt 1. automation-editor.browser.test.tsx found no element with the role "listbox".
    • Attempt 2 reran that job, and it passed. The run succeeded at 11:52 UTC.

CLI, SAST, Commitlint and Build passed on main's push.

Checked before departure. The details are on TALE-234, in test-precheck-train-5ef4cd0e.md and test-precheck-train-cd4a12c4.md.

  • The fast gate on the cut. bun install --frozen-lockfile and bun run format:check passed, and bunx turbo run typecheck build --continue passed 26 of 28 tasks.

    • @tale/cli#build and @tale/web#build failed only on downloads the checking worker cannot reach.
    • turbo run build --dry=json lists none of the train's files among their inputs.
  • The platform's server tests on the cut. 349 files and 5435 tests passed.

    • They cover every module either commit changes, and every other test file that imports one.
    • Among them are the six test files 5ef4cd0ea changes (266 tests) and the two cd4a12c4a changes (17 tests).
  • The CLI. check:bundle passed 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:

    • the backend integration lane, including model-capacity.integration.ts, which 5ef4cd0ea changes;
    • E2E, and the platform's browser, client and Storybook projects;
    • Opengrep;
    • the CLI's full suite and its macOS and Windows builds.

    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, with feature-train at 7a809e39e, which is release/0.6 and holds main. So the feature-train role (TALE-239) meets no conflict from this train when it rebases release/0.6 onto main after this lands.

Commits (2):

  • fix(platform): keep a capacity hold while its probe's harness retries
  • fix(platform): offer an image model only the pictures it takes

Task keys: TALE-436. cd4a12c4a has no task.

tale-code-bot and others added 2 commits November 4, 2026 10:38
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
@tale-code-bot tale-code-bot added the merge-train A merge train's pull request into main label Nov 4, 2026
@tale-code-bot
tale-code-bot enabled auto-merge (rebase) November 4, 2026 15:30
@tale-code-bot
tale-code-bot merged commit c2107b9 into main Nov 4, 2026
124 of 132 checks passed
@tale-code-bot
tale-code-bot deleted the train-20261104-1530 branch November 4, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-train A merge train's pull request into main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(platform): a Claude Code probe retrying a 503 clears the capacity hold

2 participants