Skip to content

chore: merge train 20261103-1528 - #5345

Merged
yannickmonney merged 4 commits into
mainfrom
train-20261103-1528
Nov 3, 2026
Merged

yannickmonney merged 4 commits into
mainfrom
train-20261103-1528

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Cut: 4d62aa6

The stable line's merge train: the four commits between ee8e36b49 (the merge of #5342) and the cut. The last of them writes the v0.5.98 release notes, so this pull request's merge commit is the v0.5.98 release candidate. The owner asked for this departure and the release.

main has not moved since ee8e36b49, so the rebase merge replays the four commits as they are (git merge-tree --write-tree origin/main <cut> is clean).

Checked before departure:

  • 2e7daded2, rebased onto 80b4f5750: the fast gate (oxfmt --check, the ruff format check, bunx turbo run typecheck 18 of 18, and turbo run build for every package, none from cache); 54 platform server test files with 1,362 tests (backend/core/lib/providers/, lib/shared/providers/, backend/core/chat/ with turn_action.auto_reroute.test.ts, lib/chat/turn.test.ts, lib/shared/chat-errors.test.ts, backend/domains/agent_tools/ and the image tool's tests); services/docs (778 tests); bun run lint:manual; oxlint on the changed files. Before the rebase, an independent review, and the image path proved against a live gateway and a local Bifrost 2.4.0 routing a stand-in for OpenRouter.
  • 4d62aa6e0: bun tools/cli/scripts/release-notes.ts --version v0.5.98 validates it (migration 0235_conversation_api_source_owners.sql, API contract unchanged at 3.52.0); an independent fact check of every sentence against the range v0.5.97.. and its corrections; the fast gate.
  • Not run: backend integration, E2E, the CLI suite and Storybook. This pull request runs them.

It rebase-merges when green (auto-merge). The tag waits for 2026-11-04 00:00 UTC: release.yml publishes one full cohort per UTC day, and v0.5.97 went out on 2026-11-03.

git merge-tree --write-tree origin/feature-train <cut> conflicts in ten files. The feature-train role meets them when it rebases release/0.6 onto main after this lands. The five of 2e7daded2 add on both sides:

  • docs/{en,de,fr}/platform/admin/providers.md: 2e7daded2's new paragraph on a gateway's image models, then the feature line's version of the paragraph after it (with Model details).
  • services/platform/backend/core/lib/providers/resolve_image_model.ts: the module doc keeps both paragraphs, the EU/EEA processing rule's and the gateway fallback's.
  • services/platform/tests/manual/suites/governance.md: both boxes stay (GOV-F72, GOV-F81, then GOV-F83), and the header counts one more box than the feature line's.
  • The other five, resolve_chat_model.ts, its test, and the manual readme.md, chat.md and tasks.md, come from 80b4f5750 and 2eba15b53.

tale-code-bot and others added 4 commits November 3, 2026 12:57
The platform manual's error register had no row for the failure notice
a task run ends with, nor for the sandbox refusals that park a run
instead of failing it, and the tasks suite showed only three of the
five waits.

- reference/error-codes.md gains two sections. "Task run failures" has
  one row per tasks.agentRun.failure.* class: the stored codes behind
  it, the shortest way to provoke it on a local stack, whether an
  automatic retry runs first, and what Retry, View and the inbox offer.
  "Sandbox refusals that park a run" has one row each for
  session_quota, host_memory, host_cpu, host_pressure, host_disk and
  runnerd's session_memory_busy, with the setting that provokes it and
  what ends the wait.
- suites/tasks.md gains TASK-B58 (Waiting for its sandbox, exec_limit)
  and TASK-B59 (Waiting for model capacity, model_capacity) after
  TASK-B50.
- The suite header and the readme's tasks row count 179 boxes and the
  readme's total 1609, as the lint tool's parser counts them; the header
  and the row had drifted (174 against 177) before these boxes.

Closes #5152

Task: TALE-248
On Auto, a provider that refuses a turn's first round before accepting
it, for the account (spent credit, a rate limit, a refused key, a plan
without the model), no longer ends the turn. The turn asks the chat lane
for another pick with that provider excluded, judged by the same
governance and model access, and runs it, up to three models in all.
The reply names the model that answered.

A refusal of the message's content or shape, any failure after the
provider accepted the round, a later round and a model picked by hand
still end the turn, and the classifier now reads a guardrail block or a
flagged input as a content filter. While a replacement runs, the turn
holds the costliest candidate's worst case against the caps, never
their sum. When every candidate refuses, the stored error names the
provider that refused last, counts the models tried and lists each
refusal, and the credit hints suggest another provider's model or more
credits.

Nothing is kept across turns: the next message picks afresh.

Closes #5339

Task: TALE-428
An AI gateway lists the vendor models it routes by id, window and price
alone. Tale read such a row for an image model as a chat model that takes
tools (an id its catalogs do not know, gemini-3.1-flash-image) or as
nothing (a GPT image model they know), so the image model picker offered
neither, and the chat picker offered the first, which then answered a
request for a picture with "image generation is not available". Such a row
is now read as the image generator Tale's catalogs know it to be, or, for a
model they do not know, as one when the last part of its id has image or
imagen as a word, unless the image is what the model takes (image-to-video)
or the id names an embedding or captioning model: offered for image
generation, never to chat.

A pinned gateway image model still could not draw: Tale asks every provider
but OpenRouter on the images API, and Bifrost implements none for
OpenRouter (400 "image_generation is not supported by openrouter
provider") nor, on one gateway, for its Gemini backend (404). A model on an
images API Tale has not verified now falls back to chat completions when
that API refuses it as one it cannot serve: the request asks for image
output with modalities, the shape in words and the references as image
parts; the image is read from message.images or a data URL in the content,
only with a header to read, the words around it in bounded time, and the
charge from usage.cost, a number or Bifrost's total_cost. The wire that
served is remembered per organization, gateway and model for a day; a
limit, an outage, a refusal of the prompt's content or a billed answer is
never asked again. The refusal statuses move into one module the chat
round's gateway fallback shares.

Proved through the platform's own image path against a live gateway (404
on the images API, the image over chat, the next call straight to chat)
and against a local Bifrost routing a mock OpenRouter: the reported 400,
then the image on Bifrost 2.4.0. Bifrost 2.3 and older drop
message.images, which the docs now say.
@yannickmonney yannickmonney added the merge-train A merge train's pull request into main label Nov 3, 2026
@yannickmonney
yannickmonney enabled auto-merge (rebase) November 3, 2026 15:29
@yannickmonney yannickmonney added the merge-train A merge train's pull request into main label Nov 3, 2026
@yannickmonney
yannickmonney merged commit 6a4ff01 into main Nov 3, 2026
104 of 106 checks passed
@yannickmonney
yannickmonney deleted the train-20261103-1528 branch November 3, 2026 15:51
@yannickmonney

Copy link
Copy Markdown
Contributor Author

Release lease

  • Holder: the release lane, acting for the owner (asked 2026-11-03 to merge the train and release)
  • Candidate: 6a4ff01715e52a3fce53b33b4d41208bd84c2dd6 (this pull request's merge commit, the notes commit)
  • Version: v0.5.98
  • Acquired: 2026-11-03 17:50 UTC. Expires: 2026-11-03 20:50 UTC (renewable once)

State at acquisition:

  • Candidate runs, dispatched 17:13 UTC: Build 41682084644, Checks 41682084649 (attempt 2: attempt 1 failed on one flaky Session Manager test, proxies/connect.test.ts "writes an IPv6 target in brackets and a name in punycode", whose closedPort() can hand out a port another test then listens on; every other job passed), SAST 41682084359, Commitlint 41682084295, E2E 41682084296, CLI 41682085010, Security 41682084608.
  • Gate: release-candidate-gate.ts --sha <candidate> --version v0.5.98 reports eligible, no reasons.
  • Newest Workspace upgrade run on main (41578013182, 2026-11-03 04:25 UTC): success.
  • The tag waits for 2026-11-04 00:00 UTC: release.yml publishes one cohort per UTC day and v0.5.97 went out on 2026-11-03 at 10:19 UTC.
  • Holds: no comment, label or open issue on this pull request names one; the platform's release task is not readable from here.

Checked by hand on the merged main (a local stack, mock providers and a mock gateway): migration 0235 on a fresh database; a gateway image model is offered under Image generation and left out of the chat picker, and its picture is drawn over Chat Completions after the images API answers 400; Auto re-routes after a 402; a second key made for the organization lists and continues the first key's mirror and claims a reply queued before the swap; Test connection with SSL mode prefer fails on a database without TLS and disable passes; the Session Manager image built from the candidate starts, answers /api/health, refuses a foreign Host, and runs a Camoufox session behind a proxy.

One finding, not in this candidate: a chat's title was written by the gateway's image model, because the title lane did not filter image generators. Fixed on train in a1fca64a1.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Release lease renewed

  • Renewed once, 2026-11-03 20:41 UTC. New expiry: 2026-11-03 23:50 UTC (not renewable again).
  • Candidate 6a4ff01715e52a3fce53b33b4d41208bd84c2dd6 is still main's head; no commit has landed since.
  • Gate re-run at 20:41 UTC: eligible, no reasons.
  • Holds: no new comment, label or open issue on this pull request names one.
  • The tag still waits for 2026-11-04 00:00 UTC (one cohort per UTC day; v0.5.97 published 2026-11-03 10:19 UTC). The lease expires before then, so it is reconciled and acquired again first.

@tale-review-bot

Copy link
Copy Markdown
Collaborator

Release lease taken over

  • Holder: Development's Lead agent (Tale task TALE-292, run 73073322), acting as tale-review-bot.
    • It takes over the release lane's lease, which expired on 2026-11-03 at 23:50 UTC without a tag.
  • Candidate: 6a4ff01715e52a3fce53b33b4d41208bd84c2dd6, this pull request's merge commit and the notes commit.
  • Version: v0.5.98
  • Acquired: 2026-11-04 04:48 UTC.
  • Expires: 2026-11-04 07:48 UTC.

I reconciled the release first, as RELEASING.md "Merging during a release, and the release lease" says:

  1. Candidate runs. All seven are finished, and none is still going:

    Run ID
    Build 41682084644
    Checks 41682084649 (attempt 2)
    SAST 41682084359
    Commitlint 41682084295
    E2E 41682084296
    CLI 41682085010
    Security 41682084608
  2. The tag. I ran release-candidate-gate.ts --sha 6a4ff01715e52a3fce53b33b4d41208bd84c2dd6 --version v0.5.98 at 04:47 UTC, from a checkout of the candidate with the tags.

    • Result: eligible, with no reasons. The arrival is chore: merge train 20261103-1528 #5345, and the validation is Build 41682084644.
    • No v0.5.98 tag exists.
    • No v0.5.98 runs yet: the newest Release tag run (41616135511) and the newest Release run (41616351273) are both v0.5.97's.
  3. The Release run. There is none for v0.5.98, so none is in flight.

Other checks:

  • Workspace upgrade: the newest run on main is 41773056061 (2026-11-04 04:24 UTC, at b658bc887), and it succeeded.
  • Holds: since the renewal comment of 20:43 UTC, no comment, label or open issue on this pull request names one.
  • One release per UTC day: v0.5.97 was published on 2026-11-03 at 10:19 UTC, so 2026-11-04 is free.
  • main has moved on: chore: merge train 20261103-2329 #5349 merged at 00:00 UTC (b658bc887). That doesn't change what this candidate's runs validated. Its fixes go into v0.5.99.

Next: the release-tag dispatch for this candidate and version follows this comment. I'll release the lease here, with the outcome and the receipt, once the Release run is verified.

@tale-review-bot

tale-review-bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Release lease released: v0.5.98 is published

  • Holder: Development's Lead agent (Tale task TALE-292, run 73073322), acting as tale-review-bot.
  • Released: 2026-11-04 05:05 UTC, before the 07:48 UTC expiry.
  • Outcome: v0.5.98 is published from candidate 6a4ff01715e52a3fce53b33b4d41208bd84c2dd6, and it is GitHub's latest release. Everything RELEASING.md step 5 checks is verified except the CLI assets, which were still building (last row).

Receipt (RELEASING.md, "A release that has to go out", step 4):

What Identity Result
Candidate 6a4ff01715e52a3fce53b33b4d41208bd84c2dd6, version v0.5.98
Candidate runs Build 41682084644, Checks 41682084649 (attempt 2), SAST 41682084359, Commitlint 41682084295, E2E 41682084296, CLI 41682085010, Security 41682084608 all success
Gate release-candidate-gate.ts --sha 6a4ff017… --version v0.5.98, run at 04:47 UTC eligible, no reasons (arrival #5345, validation Build 41682084644)
Tag release-tag dispatch at 04:47:56 UTC, run 41775358349 success; v0.5.98 was at the candidate by 04:49:08 UTC
Release run 41775473849 success, 04:49:08 → 05:00:09 UTC
GitHub release v0.5.98 Published at 04:59:36 UTC with the candidate as its target. Its body begins with .github/release-notes/v0.5.98.md as it is on main, byte for byte; the generated API contract changes and PR list follow.
Image ghcr.io/tale-project/tale/tale-platform:0.5.98, index sha256:b11413ffff26ff86e48a58fe498b9f6b3b5b9576301e4ea320f807985318c39c The linux/amd64 config labels say org.opencontainers.image.revision = the candidate. I read them through the registry API, without a Docker pull.
Publish packages 41776491542 success; ui-v0.5.98 and marketing-ui-v0.5.98 end with "from 6a4ff01"
CLI 41776513195, at the candidate In progress at 05:05 UTC. Prepare and the linux-arm64 and macos-x64 builds had succeeded; the linux, macos and windows builds were still running, and no asset was on the release yet. The run needs no lease: it publishes from the release on its own. The Lead's next run checks the six assets read-only and says so here if one is missing.

Holds:

  • No comment, label or open issue on this pull request names one. I re-read it at 04:47 and at 05:03 UTC.
  • The release lane's finding of 2026-11-03, a chat's title written by the gateway's image model, is not fixed in v0.5.98. Its fix 0bb978810 reached main with chore: merge train 20261103-2329 #5349 and ships in v0.5.99. The lane had already kept this candidate with that finding in it.

Next:

  • Ops adopts the published version with its release adopter. The Lead cannot reach tale-project/ops.
  • v0.5.99: its notes task is in To do. The next fix train leaves with the notes as its last commit, and the tag waits for 2026-11-05 UTC.

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.

Bug: Auto can pick a provider that is out of credit, and the turn fails instead of using the other one

3 participants