Skip to content

chore: merge train 20261031-2352 - #5238

Merged
tale-code-bot merged 13 commits into
mainfrom
train-20261031-2352
Nov 1, 2026
Merged

tale-code-bot merged 13 commits into
mainfrom
train-20261031-2352

Conversation

@tale-code-bot

Copy link
Copy Markdown
Collaborator

Cut: e7e1312

The stable line's merge train: the 13 commits that landed on train since #5220 departed, one commit per change. The Reviewer squashed each onto train behind the fast gate (formatting, typecheck, build). train carries the stable line (main, 0.5.x) only: fixes, and the tests, docs and CI about what main ships. All 13 commits are of those types (nine fix, one test, one ci and two docs), so none moved to feature-train before this departure. This pull request runs the full CI once for the whole train and rebase-merges when green (auto-merge). The Coder's merge-train role works it until it is green; while it is open no other stable-line train departs.

main (8acb7b82, the merge of #5220) is the train's base: train was moved onto it after #5220 merged, so the commits apply to it unchanged.

What the merge-train role ran on a worker before this departure, beyond the fast gate:

  • When each of the first ten commits landed, its own tests passed at its head. The tests of the last three, TALE-269, TALE-73 and TALE-318, ran on the whole train (below).
  • On the whole train at 7d62f0439:
    • Lint, Knip, lint:manual, lint:links and lint:conflicts passed.
    • The full unit suites passed: services/web (52 files, 1947 tests), packages/ui (393 files, 4299 tests) and packages/marketing-ui (13 files, 62 tests).
    • @tale/web's build steps after the release fetch passed: client, SSR, the prerender of 223 routes, and the SEO compile.
    • The prerender SEO suite, test:prerender, passed its 821 tests.
    • The CLI's full suite gave 3854 pass, 36 skip and 8 fail. The 8 failures come from the worker and are in no file this train touches:
      • 6 tests in src/lib/config/releases/ need git archive --mtime, which the worker's git 2.39 lacks;
      • 2 tests in scripts/action-archive.test.ts hit the worker's 512 MiB file-size limit.
    • The platform's tests of the changed modules' importers passed (15 jsdom files, 147 tests), and so did its locale-key tests (13 files, 687 tests).
  • On the whole train at 3a544f768, after TALE-307 and TALE-70 landed:
    • Lint, Knip, format:check, lint:manual, lint:links (505 pages, 12,263 files) and lint:conflicts passed again.
    • The i18n checks of packages/ui passed (20 files, 192 tests). They include TALE-70's terminology check, which now rejects the other two French names for two-factor authentication in the platform and web catalogs.
    • The platform's lib/i18n tests passed (11 files, 627 tests), and so did the services/docs unit suite (41 files, 778 tests), which covers the 10 French guide pages TALE-70 edits.
    • With the release tags fetched, bun tools/cli/scripts/release-notes.ts --version v0.5.95 validated the notes, and so did its --shape-only run. Against v0.5.94 (8803db7c8), the Upgrade notes name both new migrations, 0220_short_task_ranks.ts and 0224_agent_run_host_refused_workers.sql, and API contract 3.51.0 (from 3.49.0).
  • On the whole train at 6d659ee6e, after TALE-268 and TALE-139 landed:
    • Lint (all 16 packages), Knip, format:check, lint:manual, lint:links (505 pages, 12,265 files) and lint:conflicts passed again.
    • The CLI's full suite gave 3866 pass, 36 skip and 8 fail (210 files). The 8 failures are the same worker failures as above: 6 git archive --mtime tests and 2 file-size-limit tests.
    • The new @tale/shared/docker-engine tests passed (7 tests), and so did the platform's Settings > Sandboxes jsdom tests (7 files, 149 tests).
    • The platform's lib/i18n tests (11 files, 627 tests), the i18n checks of packages/ui (20 files, 192 tests) and the services/docs unit suite (41 files, 778 tests) passed again. The docs suite covers the three sandbox devices guide pages TALE-139 edits.
    • The release-notes validator passed again, full and --shape-only, with the same result: the two commits add no migration and do not change the API contract.
  • On the whole train at 1e5805687, after TALE-269 and TALE-73 landed:
    • Lint (all 16 packages), Knip, format:check, lint:manual, lint:links (505 pages, 12,265 files) and lint:conflicts passed again.
    • TALE-269's installer test, tools/cli/scripts/install-cli.test.ts, gave 38 pass and 17 skip. All 17 skipped tests are the PowerShell installer's, which skip when pwsh is missing, as on the worker. The CLI's other test that reads the installer scripts, src/lib/config/platform-docs.test.ts, passed (15 tests).
    • TALE-269's new build:host script ran: it regenerated the embedded files, compiled dist/tale for the worker (linux-x64) and passed check:bundle, and the binary printed its version.
    • The platform's server tests of the four domains TALE-73 changes (erasure, legal_holds, sandbox and conversations) passed: 67 files, 1028 tests. Among them, the four test files TALE-73 changes passed 95 tests.
    • The services/docs unit suite (41 files, 778 tests) passed again. It covers the three cli-install.md guide pages TALE-269 edits.
    • The release-notes validator passed again, full and --shape-only, with the same result: the two commits add no migration and do not change the API contract.
    • The CLI's full suite was not run again at this head. In tools/cli, TALE-269 changes only the installer test, the README and a new script in package.json.
  • On the whole train at e7e13128a, after TALE-318 landed:
    • Lint (all 16 packages), Knip, format:check, lint:manual, lint:links (505 pages, 12,265 files) and lint:conflicts passed again.
    • The platform's server tests of the modules that use the changed two-factor policy passed, 74 files and 852 tests. They cover domains/two_factor, core/governance, auth (the organization gate, OIDC and agent consent), domains/agent_connections, the video links' rate limit and the task-list jobs.
    • The release-notes validator passed again, full and --shape-only, with the same result: the commit adds no migration and does not change the API contract.
  • Not run on a worker, so this pull request is their first proof:
    • browser tests, E2E, Storybook, Backend integration, container tests and image builds (the worker has no browser, Docker or Postgres). Among the browser tests is sandboxes-settings.stop-task.browser.test.tsx, which runs a jsdom suite of the Settings page TALE-139 changes in a browser;
    • the 17 PowerShell installer tests of install-cli.test.ts, which need pwsh;
    • @tale/cli#build's cross-compile, whose inputs hold 29 of the train's files (4 from TALE-294, 10 from TALE-4, 10 from TALE-268, 2 from TALE-139 and 3 from TALE-269);
    • @tale/web#build's first step, which fetches the GitHub releases list.

ac879dde4 (TALE-294) adds .github/workflows/release-tag.yml:

  • Only a repository_dispatch of type release-tag triggers it, so the merge starts no run of it on main.
  • Its workflow-level permissions are contents: read and actions: read, and no job overrides them.
  • Its tag job uses the release environment, whose RELEASE_TAG_DEPLOY_KEY pushes the tag over SSH. The workflow's own comment says that a push with this deploy key starts release.yml.

6ab11cbcb (TALE-307) amends .github/release-notes/v0.5.95.md, which reached main with #5220:

The train changes 115 files: 13 added, 102 modified and none deleted. Matched against .github/ci-scope.yml:

  • Five files are in build_image_inputs: packages/ui/package.json, which carries TALE-111's new ./stale-bundle export; three of TALE-139's: packages/shared/package.json (its new ./docker-engine export), packages/shared/src/docker-engine.ts and its test; and tools/cli/package.json, which carries TALE-269's new build:host script. So the scope job picks every service, plus CI tests and Storybook, with full still false, and Build builds all 12 images, as main's push does.
  • No file is in the security scope or among the paths that force the full scope, so the Security run should skip Bun audit and Trivy.

The merge also starts a Publish packages run on main, because TALE-111 changes packages/ui/** and packages/marketing-ui/**, two of that workflow's push paths (TALE-70 also changes packages/ui/**). A plain push to main only moves the snapshot branches dist/ui and dist/marketing-ui; it writes no tag.

main's own push runs on 8acb7b82:

  • Checks 41218141957, CLI 41218141910, SAST 41218141886 and Commitlint 41218142237 passed.
  • Build 41218142086 was cancelled. Build platform ran past its 20-minute timeout-minutes, and Build sandbox-runtime and the Docs container test were cancelled in the same run.
  • The five latest Build push runs on main ended cancelled. chore: merge train 20261031-1552 #5220's own Build, 41216905505, passed.

Commits (13):

Task keys: TALE-144, TALE-294, TALE-41, TALE-165, TALE-4, TALE-111, TALE-307, TALE-70, TALE-268, TALE-139, TALE-269, TALE-73, TALE-318

A step's items list read its pages and the picked item's data but never
their failure: a failed first page left the list empty under its count,
a failed later page dropped Show more so the list looked complete, and a
failed read of the picked item's data left its panel missing.

Each read now says so where its answer would be, through the failed-read
pattern run-detail and the automation editor already use: readStateOf
keeps the failure standing while a retry runs (react-query resets a read
that never answered to pending), and CatalogLoadError gives the alert its
Try again, its busy state and its focus handoff. When a retry answers,
the focus goes to the page's first item or to the item's data, now a
group named after the item.

The test client's retry: false never reached these reads, whose own retry
policy wins; retryDelay: 0 keeps the policy's four attempts quick.

Closes #4745

Task: TALE-144
The agents that release Tale hold the write role, and the Release tags
ruleset lets only admins and maintainers create a release tag. A token
that could create one could publish any commit it can push, so the tag
now comes from release-tag.yml, on a release-tag repository dispatch
that names the candidate SHA and the version.

The workflow refuses a malformed SHA or version (the patterns of
release.yml's Prepare) and a commit that is not on main, runs the
release gate again in the candidate's checkout, and pushes the tag only
when the gate answers eligible. It pushes over SSH with the deploy key
that only the release environment holds, so the push starts release.yml
as a person's push does. GitHub's host keys are pinned from
api.github.com/meta, and the key file is removed in an always() step.

A new suite runs the job step by step against a local remote and shows
that every refusal pushes nothing, that no other workflow names the
release environment, its secret or its queue, and that nothing prints
the key. RELEASING.md step 4 says how to ask for the tag and how the
environment, the deploy key and the ruleset bypass are set up; CI.md,
the repo contract and the Forgejo port name the workflow, and the
port's cut-over switches it off once Forgejo is the source.

Closes #5208

Task: TALE-294
Assigning a task an automation holds asks first: the assignee picker
reads whether the task has a live run, then opens "Reassign this
task?", whose Reassign cancels a live run, then reassigns the task.
The reads answer asynchronously, and the confirm acts on the task the
picker shows when it is confirmed. Before #4575 the task dialog kept
one picker across a switch of task, so a handoff asked for a subtask
whose reads answered after its parent link had opened the parent put
the confirm over the parent, and Reassign cancelled the parent's run
and reassigned the parent (#3915). #4575 (a6bff19) gave the
dialog one task body per task (key={bodyTaskId}), so a switch drops
the late answer, but no test held that: with the key removed, the
dialog's jsdom tests still passed.

The new test renders the real task dialog, task body, parent link and
assignee picker over mocked backend hooks. An automation holds both
tasks, and a task's live-run reads answer when the test releases them.
A handoff asked for the subtask whose reads answer after the parent
link opened the parent must open no confirm over the parent and write
nothing. With key={bodyTaskId} removed it fails on that confirm, and
confirming it cancels and reassigns the parent. The control confirms
within one task: it cancels that task's run, then reassigns it to the
person picked.

Its row in reference/automation/tasks.md lists it as the component
half of TASK-B3.

Closes #3915

Task: TALE-41
Since #4681 the task's Reviewer trigger shows the reviewer (an avatar
and a name), but both of its buttons, the closed trigger and the list's
trigger, kept the aria-label "Reviewer". The name a screen reader reads
and speech input matches left out the name on screen (WCAG 2.5.3 Label
in Name): saying "click Anna Muster" activated nothing.

describeReviewer now also gives the trigger's name, the field and then
the label it shows ("Reviewer: Anna Muster"), as the labelled priority
trigger does, and both buttons read it. Until the directory names a
member the trigger shows no name, and the field alone names it. The
list keeps the field name. No new string, so no catalog changes.

reviewer-picker.test.tsx checks that name for a member, an agent, the
inherited project agent, the person the server resolved and no
reviewer, on the closed trigger and on the list's trigger after Esc;
on the old code each of these fails. One more case checks the field
alone while the directory has not named the member. The field and
dialog tests look the button up by its full name, and their absence
checks use a pattern that still matches it. TASK-A22 keeps a real
screen reader and speech input as a manual check, with its row in the
automation register.

Closes #4827

Task: TALE-165
Since Docker Engine 23 (API 1.42), `docker volume prune` removes only
anonymous volumes unless it is given `--all`, which older daemons
refuse. Every volume `tale deploy` creates is named, so the prune that
`tale reset --all` ran removed none of them and still reported success,
and a later deploy would reuse the old database and configuration.

Reset now deletes each volume of REQUIRED_VOLUMES under the project's
`<id>_` prefix with `docker volume rm`, one call per volume. A volume
that is already gone is not an error; any other refusal is warned with
the volume's name and the daemon's words, and the other volumes are
still deleted. The `<id>_backups` volume, which holds the snapshots
`tale restore` lists, is kept and named with the command that deletes
it. The dev stack's `<id>-dev_` volumes are never addressed. The
warning before the confirmation names the volumes, and `--dry-run`
names each one without touching it.

The `--all` help, the cli-install pages (en, de, fr) for `reset --all`
and `uninstall --purge`, and the comments that said reset prunes by
label now say what it does.

Closes #4981

Task: TALE-4
A route error on the website fell back to TanStack Router's built-in
error component, which reads "Something went wrong!" in English on
every locale, shows the raw error message behind a toggle, and offers
no way to retry or go back. A tab left open across a deploy met it on
its next navigation, since nothing listened for Vite's
`vite:preloadError`.

Both routers (`app/router.tsx`, `app/entry-server.tsx`) now set
`ErrorPage` as the default error component. Built like `NotFoundPage`,
it renders inside the site chrome in the page's language (a new
`pageError` namespace in EN/DE/FR), says the page could not be loaded,
and offers Try again and Back to the homepage. Try again re-runs the
route's loaders, or reloads the page after a chunk the browser could
not fetch, since a failed dynamic import stays failed for the page's
lifetime. The error itself goes only to the error reporter.

`lib/stale-bundle-reload.ts`, installed from `app/main.tsx` before the
first route loads, reloads the page when the router misses a chunk
while it loads a page. It records the reload where TanStack's
`lazyRouteComponent` records the one it makes itself for a route
component that missed while preloaded, so the tab reloads once per
chunk for its session whichever of the two notices the miss first: a
chunk that misses again after its reload stays on the error page
instead of reloading in a loop. A miss while the router only preloads
a hovered link reloads nothing; the navigation that follows meets it.
The event is never prevented, so the router and the error reporter
still see it.

The platform's stale-bundle recovery already told a missing chunk from
a module that loaded and threw, and kept the one reload a tab makes in
sessionStorage. Those helpers (`isChunkLoadFailure`, `failedChunkUrl`,
`claimReload`, `releaseReload`) move to `@tale/ui/stale-bundle`, which
both apps import, instead of a second copy in the site. The platform
behaves as before; only its warning for unusable sessionStorage reads
differently.

The marketing site footer is now positioned: the root shell paints its
top wash (`bg-gradient-site-hero`) as an absolute layer, and on a page
shorter than the wash, as the error page is, it painted over the
footer's border and column headings.

The route test renders the real route tree with the router's options
and fails the use-case loader in EN/DE/FR; the SSR test renders the
page through `render()`; the reload handler (also against TanStack's
real `lazyRouteComponent`), its install before the first route loads
in `app/main.tsx`, and the shared helpers have tests of their own. The
manual navigation suite gains NAV-B5 and NAV-B6.

Closes #4679

Task: TALE-111
The v0.5.95 notes left out six changes that people who use Tale can
observe. Describe them: a project agent on Claude Code follows edited
instructions from its next run or retry, also when that run continues
the task's conversation (#5135); the items and passes of a step in an
automation run, and the data of the one picked, say when they fail to
load, with Try again (#4745); the Member tutorial "Use a project for
shared context" says that where the organization requires an
independent reviewer, a Member asks an Editor or higher to accept the
result of a run they started (#3954); a task's Reviewer button is named
after the reviewer it shows, so a screen reader and speech input find
it by that name (#4827); tale reset --all and tale uninstall --purge
delete the project's data volumes and keep only the backups volume,
with an Upgrade note (#4981); and a website page that fails to load
says so in the page's language, with Try again and Back to the homepage
(#4679). The rest of the notes is unchanged.

Task: TALE-307
French named the feature two ways: "à double facteur" on the account
section, the governance policy and the feature's guide, "à deux
facteurs" in the audit log and on nine other guide pages, and "double
authentification" in three strings and a tutorial page. At the base
"double facteur" led with 30 catalog keys against 5, so the audit
labels, the consent error, the passkey and data-request texts and the
guides now say "Authentification à double facteur". The member guide's
bold label matches the account section title again; nothing linked to
the renamed cli-install heading.

The glossary pins the term (fr "Authentification à double facteur", de
"Zwei-Faktor-Authentifizierung"); its _avoid list makes the enforced
terminology-ui-label check reject "à deux facteurs" and "double
authentification" in the platform and web catalogs. Fixtures against
the shipped glossary cover both names and the ordinary French that
stays, and a platform test keeps the section, policy and audit labels
on one name in every locale.

Closes #4350
Task: TALE-70
Configuration callback errors keep their authored words: a CliError or
a ConfigError (an artifact checksum or size mismatch) reaches the
operator through operationalFailure, and only an unexpected error still
becomes "Native configuration provisioning failed." with exit code 5, on
both the full and the configuration-only provisioning path.

The acceptance health check names the step that failed (connect with
the network error code, status, identity, body or version, or that it
timed out) instead of one sentence for every failure; the request
reports the step without echoing a body, a header or a raw error text.

The ready-state checks that credential export, configuration-only
apply and acceptance share word their refusals about the runtime, not
credential export, and the health refusal names the unsettled services.

Closes #5172

Task: TALE-268
A device on a Docker Engine older than 23.0 cannot pull Tale's images,
whose layers are zstd-compressed since v0.5.80: each automatic update
fails with Docker's own pull error, and tale sandbox update refuses
every engine below 24.0. Settings showed Update failed and that raw
error, and nothing named the cause.

Every device already reports its engine's version. Settings > Sandboxes
now names it, with the minimum, next to any device whose Docker Engine
is below Tale's floor, whatever its status; a release another engine
behind the Docker API reports, such as Podman's, is never judged. The
floor (24.0), the zstd floor (23.0) and the version parser move from
the CLI to @tale/shared/docker-engine, so the CLI's checks and Settings
judge against one floor; the CLI's verdicts and messages are unchanged.
The sandbox devices guide (en, de, fr) says to update Docker first, and
the manual register names the specs.

The check the issue suggests, on the device before it launches the
updater, cannot reach these devices: it would ship in an image they
cannot pull, and on a device that can run it, the only engines below
the floor are 23.x, whose updates work. The platform also keeps
offering the update: a device reads its engine's version once per
process, so after Docker is updated under live-restore it would go on
reporting the old one, and its next try is what brings it back.

Closes #4733
Task: TALE-139
The installers took any non-empty API answer as the release list, so a
401 from an expired GITHUB_TOKEN, a 404 or a 5xx ended in "No release
found with tale_linux binary" in install-cli.sh, and in a bare "Failed to
fetch releases" in install-cli.ps1. Both now take only a complete 200 as
the release list and fall back to the releases/latest redirect on any
other status, a failed transfer or an empty body. When the redirect fails
too, the error names the status, and for a 401 with a token set it says
that GitHub refused GITHUB_TOKEN. The wget path now reads the status from
its server response as well.

The build-from-source hint said 'bun run build', which compiles for
linux-x64 and then overwrites dist/tale with a darwin-arm64 binary. A new
build:host script regenerates the catalog and compiles for the machine
that runs it, with TALE_COMPILED defined. The hint names bun install and
that script and says where to put the binary; an unsupported OS gets the
same hint, and a Windows shell gets the PowerShell installer.

Closes #5173
Task: TALE-269
Five statements in the domain specs of #4420 disagreed with the code.
In each the code is the intended behaviour, so the specs now say what
it does, and each corrected rule is held by a tagged test.

ERASE-R4: a request the erasure watchdog stopped is not run again; its
retry is refused (NOT_RETRIABLE) and a new request is filed, as the
user docs already say. Not yet now says what the watchdog does. SBX-R3:
the organization is the one the person is working in, and only an
active member of it gets in (ORG_FORBIDDEN); one named elsewhere in the
request is ignored. SBX-R8: a pinned workspace resumes even at the
limit. HOLD-R3 binds the five-minute wait to an approval by another
admin, and the new HOLD-R4 states self-approval: the requester's own
approval is refused (SELF_APPROVAL_BLOCKED) unless the deployment sets
TALE_LEGAL_HOLD_SINGLE_ADMIN_OK=true, which approves it at once and
audits it as self-approved. The conversations spec's Not yet gains the
two undecided questions it was meant to list: an assignee with the
member role, and the bulk send's "This action can't be undone." while
each of its replies can be undone.

New tests hold the watchdog refusal, the pinned resume and both
self-approval paths; each failed with the code it holds changed. The
sandbox route test that carries SBX-R3 is re-titled.

Rows 2 and 7 of #4425 were already settled (86b31e3, 004953f).
Its code fixes are split off as #5232 (TEAM-R3), #5233 (KNOW-R9) and
#5234 (TFA-R1).

Closes #4425
Task: TALE-73
An organization that requires no second factor still shaped the policy
a person's other organizations set. mergeStrictestTwoFactorPolicy
merged the policy of every organization, the default one (7 days of
grace, SSO-only accounts exempt) for an organization that saved none,
and took the shortest grace and an exemption only all of them gave.
Next to an organization that requires a second factor within 30 days,
an organization that requires nothing cut the grace to its own 7 days,
blocked the person at once with a saved grace of 0, and took the SSO
exemption away with a saved `exemptSsoUsers: false`.

Only the policies of the organizations that require a second factor are
merged now; with none, nothing is asked, as before. Every caller of
evaluateTwoFactorEnforcement gets the corrected policy: the organization
gate, OIDC, agent consent and the two-factor status. TFA-R1 now says
"of two that require it, the stricter one counts", with an example.

Closes #5234
Task: TALE-318
@tale-code-bot tale-code-bot added the merge-train A merge train's pull request into main label Oct 31, 2026
@tale-code-bot
tale-code-bot enabled auto-merge (rebase) October 31, 2026 23:54
@tale-code-bot
tale-code-bot merged commit e6bedb6 into main Nov 1, 2026
110 of 113 checks passed
@tale-code-bot
tale-code-bot deleted the train-20261031-2352 branch November 1, 2026 00:24
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.

1 participant