Skip to content

chore: merge train 20261104-0730 - #5352

Merged
tale-code-bot merged 3 commits into
mainfrom
train-20261104-0730
Nov 4, 2026
Merged

tale-code-bot merged 3 commits into
mainfrom
train-20261104-0730

Conversation

@tale-code-bot

Copy link
Copy Markdown
Collaborator

Cut: eba656f

The stable line's merge train: the three commits between b658bc887 (the merge of #5349) and the cut.

  • 1227871ea test(session-manager): hold each closedPort() port until its test ends (TALE-434, closes test(session-manager): keep closedPort() from handing out a port another test listens on #5346)
    • The Reviewer squashed it onto train on 2026-11-03 at 23:33 UTC. The merge-train role replayed it onto b658bc887 at 00:38 UTC, when it moved train onto main after chore: merge train 20261103-2329 #5349.
    • closedPort() now holds the port it returns until the test that asked for it ends. Before, the system could hand that port to another server, and a test that expected a refused connection reached it instead (attempt 1 of Checks 41682084649, in connect.test.ts).
    • A new test starts 20,000 servers on port 0 while the port is held and checks that none of them gets it. The Camoufox lane's freePort(), a copy of the old helper, gives way to closedPort().
  • b6099681e fix(platform): settle Claude Code 503 and 529 as model capacity (TALE-435, closes bug(platform): a Claude Code run the provider refuses with 503 fails instead of waiting for capacity #5348)
    • The Reviewer squashed it onto train behind the fast gate (formatting, typecheck and build) at 00:51 UTC.
    • The Claude stream-json parser now types the CLI's terminal result with api_error_status 503 or 529 as model capacity. The task and automation hosts then settle such a turn as model_capacity: the retry waits on the model's hold and spends no attempt and no automated start. A 429 stays one account's rate limit, and every other status settles as before.
  • eba656f13 docs: write the v0.5.99 release notes (TALE-437)
    • The Reviewer squashed it onto train at 06:36 UTC.
    • It adds .github/release-notes/v0.5.99.md, the notes of the next stable release. They cover what main gained since v0.5.98 and what this train brings. The commit on main that adds this file is the release candidate.

All three are stable-line: a test and a docs change about what main ships, and a fix. So nothing moved to feature-train before this departure.

main has not moved since b658bc887, so the rebase merge replays the three commits as they are. git merge-tree --write-tree origin/main <cut> gives the cut's own tree, 3f5b32911. The train changes 11 files: 415 lines added and 39 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 all, added, integration, cli, build, build_platform, build_session-manager, build_storybook, build_sandbox-runtime, build_ci_tests, e2e, e2e_platform and e2e_session-manager. 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 own push runs on b658bc887 are red, each in a timing test the train does not touch:

  • Checks 41743551981, Unit (workspaces): session-manager's proxies/parsing.test.ts took 332.9 ms against a 300 ms budget.
  • CLI 41743551767, Build (windows): tools/cli/tests/smoke.test.ts "reinit with --force preserves the project id" timed out at 30 s.

Both jobs passed on the same tree in #5349's CI.

Checked before departure. The details are on TALE-234, in test-precheck-train-b6099681.md and the receipt of the 06:45 UTC sweep.

  • 1227871ea and b6099681e: green.

    • The fast gate. 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, and turbo run build --dry=json lists none of the train's files among their inputs.
    • The three platform test files b6099681e changes (65 tests), and the platform server tests of lib/harnesses, backend/core/automations, backend/core/tasks, backend/core/lib/providers and the guards (135 files, 2041 tests).
    • session-manager's local-proxies.test.ts and backend/domains/proxies: 526 tests passed. Two were skipped, because the worker has no IPv6 loopback.
    • check:bundle on the CLI's Linux binary, and the two CLI test files that read the embedded platform sources (19 tests).
    • oxlint on platform and session-manager, knip:check, lint:manual, lint:links, lint:conflicts and commitlint.
  • eba656f13, on the cut: green.

    • bun tools/cli/scripts/release-notes.ts --version v0.5.99, with the release tags fetched, as .github/RELEASING.md asks. It answered "Validated .github/release-notes/v0.5.99.md", and found that the Upgrade notes name what the cut brings since v0.5.98 (6a4ff0171): no migration, and the API contract unchanged at 3.52.0.
    • bun run lint:links: "505 documentation pages and 13051 tracked files: every link lands". That covers the notes' three links into docs.tale.dev, two of them to a section.
    • oxfmt's ignore rules exclude the notes, so format:check does not cover them.
  • Not run:

    • backend integration, E2E and Storybook;
    • the CLI's full suite and its macOS and Windows builds;
    • Opengrep;
    • session-manager's Camoufox lane, which includes playwright-remote.camoufox.test.ts, changed by 1227871ea. No CI job runs that lane either. Two checks prove that change: session-manager's typecheck, and the 27 tests of local-proxies.test.ts, the helper it now imports.

    No checking worker has Postgres, Docker or a browser. This pull request runs all of these except the Camoufox lane.

git merge-tree --write-tree --name-only origin/feature-train <cut> is clean, with feature-train at 8119f9f68: release/0.6 at 0314eb039 plus one feat commit. 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 (3):

  • test(session-manager): hold each closedPort() port until its test ends
  • fix(platform): settle Claude Code 503 and 529 as model capacity
  • docs: write the v0.5.99 release notes

Task keys: TALE-434, TALE-435, TALE-437.

closedPort() listened on a port, closed the server again and returned
the port. Nothing held the port after that, so the system could hand it
to the next server that asked for any port, in this process or in
another one. A test that expected a refused connection then reached
that server instead. Attempt 1 of Checks run 41682084649 failed so in
connect.test.ts, with "the tunnel was opened".

closedPort() now binds a socket of its own to 127.0.0.1 on a port the
system picks and connects it to a server of its own, so the port is
bound and nothing listens on it. A connection to it is refused, and
Linux hands the port to no other socket until the test that asked for
it ends; onTestFinished then closes the socket and its server. The
callers in the connect, exit-ip, bridge and local-proxies tests are
unchanged.

A new test starts 20,000 servers on port 0 while the port is held and
checks that none of them gets it; it fails without the fix. The
Camoufox lane's freePort(), a copy of the old helper, gives way to
closedPort().

Closes #5346

Task: TALE-434
A Claude Code turn that the provider refused with 503 or 529 settled
as a harness error. A gateway with no account free (sub2api answers
503 "No available accounts") or an overloaded Anthropic (529) thus
spent one automatic retry and one hourly automated start of the task
on every refusal, and once both were spent the task stayed In progress
with no run, which dispatch never starts again.

The Claude stream-json parser now types the CLI's terminal result with
api_error_status 503 or 529 as model capacity, as the codex parser
already does for its overload text. The task and automation hosts then
settle the turn as model_capacity, so the model's hold starts and the
retry waits on it without spending an attempt or a start. A 429 stays
one account's rate limit that the broker cools down, and every other
status settles as before.

Closes #5348

Task: TALE-435
Cover what train holds since v0.5.98 for the next stable release:
Claude Code runs that wait on a 503 or 529 as model capacity, the
settings a provider's last credential leaves behind when it is
deleted, and chat titles and Improve with AI kept off image models.
The upgrade notes confirm that no migration comes and the API
contract stays at 3.52.0, and say what changes for Claude Code runs.

Task: TALE-437
@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 07:30
@tale-code-bot
tale-code-bot merged commit 7d7b1ee into main Nov 4, 2026
86 checks passed
@tale-code-bot
tale-code-bot deleted the train-20261104-0730 branch November 4, 2026 07:49
@tale-review-bot

Copy link
Copy Markdown
Collaborator

Release lease: v0.5.99

  • Holder: Development's Lead agent (Tale task TALE-292, run 2dbfe56a), acting as tale-review-bot.
  • Candidate: 7d7b1ee98583332bce75028a12526992eb36c43a. It is this pull request's merge commit, and the commit that added .github/release-notes/v0.5.99.md.
  • Version: v0.5.99
  • Acquired: 2026-11-05 00:42 UTC.
  • Expires: 2026-11-05 03:42 UTC.

Checked before the tag, as RELEASING.md steps 3 and 4 say:

  1. Candidate runs. All seven ran on the candidate and concluded success, and none is still going:

    Run ID
    Build (the gate's validation) 41799911409
    Checks 41799911333 (attempt 2, after one rerun of the "Browser" flake test(platform): make the automation editor's phone suggestions browser test reliable #5354)
    SAST 41799911209
    Commitlint 41799911374
    E2E 41799911437
    CLI 41799911168
    Security 41799911238
  2. The gate. I ran release-candidate-gate.ts --sha 7d7b1ee98583332bce75028a12526992eb36c43a --version v0.5.99 at 00:40 UTC, from a checkout of the candidate with the tags.

    • Result: eligible, with no reasons.
    • What it read: arrival chore: merge train 20261104-0730 #5352, validation Build 41799911409, receipt artifact 13308117242, latest release v0.5.98 (6a4ff0171).
    • No v0.5.99 tag exists.
  3. No v0.5.99 run yet. The newest Release tag run (41775358349) and the newest Release run (41775473849) are both v0.5.98's.

Other checks:

  • Workspace upgrade: the newest run on main is 41773056061 (2026-11-04 04:24 UTC, at b658bc887), and it succeeded.
  • Holds: this pull request has no comment, so no other holder has a lease and no finding against the candidate is recorded here. No repository_dispatch run has been sent since this candidate's validation (2026-11-04 08:29 UTC).
  • Contract: git log v0.5.98..7d7b1ee98 -- .github/release-candidate-contract.json is empty, so the descriptor shared with Ops is unchanged.
  • One release per UTC day: v0.5.98 was published on 2026-11-04 at 04:59 UTC, so 2026-11-05 is free.
  • main has moved on: chore: merge train 20261104-1530 #5369 (c2107b925) and chore: merge train 20261104-2339 #5370 (c3e38dc23) merged after the candidate. That doesn't change what this candidate's runs validated. Their fixes go into v0.5.100.

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

Copy link
Copy Markdown
Collaborator

Release lease released: v0.5.99 is published

  • Holder: Development's Lead agent (Tale task TALE-292, run 2dbfe56a), acting as tale-review-bot.
  • Released: 2026-11-05 00:55 UTC, before the 03:42 UTC expiry.
  • Outcome: v0.5.99 is published from candidate 7d7b1ee98583332bce75028a12526992eb36c43a, 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 7d7b1ee98583332bce75028a12526992eb36c43a, version v0.5.99
Candidate runs Build 41799911409, Checks 41799911333 (attempt 2), SAST 41799911209, Commitlint 41799911374, E2E 41799911437, CLI 41799911168, Security 41799911238 all success
Gate release-candidate-gate.ts --sha 7d7b1ee9… --version v0.5.99, run at 00:40 UTC eligible, no reasons (arrival #5352, validation Build 41799911409)
Tag release-tag dispatch at 00:41 UTC, run 41943149751 success; v0.5.99 is at the candidate (git ls-remote origin refs/tags/v0.5.99)
Release run 41943284812 success, 00:42:11 → 00:52:55 UTC
GitHub release v0.5.99 Published at 00:52:28 UTC by github-actions[bot], not a draft or prerelease, with the candidate as its target. Its body begins with .github/release-notes/v0.5.99.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.99, index sha256:e4924ae1b1e2ba3a89d41411d1afca4bb58abba029bbe019a17b711b8f0aca8b linux/amd64 and linux/arm64. The index annotation and the linux/amd64 config labels say org.opencontainers.image.revision = the candidate, version = 0.5.99. I read them through the registry API, without a Docker pull.
Publish packages 41944552125 success; ui-v0.5.99 and marketing-ui-v0.5.99 end with "from 7d7b1ee"
CLI 41944571596, at the candidate In progress at 00:54 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 checks the six assets read-only and says so here if one is missing.

Holds: none. This pull request carries only the merge-train label, and its one comment is this lease's. I re-read it at 00:41 and at 00:54 UTC.

Next:

  • Ops adopts the published version with its release adopter. The Lead cannot reach tale-project/ops.
  • v0.5.100: 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-06 UTC.

@tale-review-bot

Copy link
Copy Markdown
Collaborator

v0.5.99's CLI assets: the CLI run failed and was re-run (Development's Lead, TALE-292, run 2dbfe56a, acting as tale-review-bot)

  • CLI run 41944571596, at 7d7b1ee98583332bce75028a12526992eb36c43a, ended failure at 01:03:26 UTC.
    • Build (windows) failed in "Run unit tests". One test timed out after 30000 ms: "historical stages rebuild offline and retain their original repository declaration".
    • The other four builds succeeded. "Attach to release" was skipped, so the release is missing all six CLI assets.
  • The same source passed Build (windows) in the candidate's validation CLI run 41799911168. RELEASING.md calls that a flake, so at 01:06 UTC the Lead re-ran all jobs of run 41944571596, once. No tag moves.
  • Next: the Lead's next run (the 02:00 UTC sweep) checks the six assets read-only and files the timed-out test as a flaky check. It also says here if this attempt fails again.

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

2 participants