Skip to content

chore: merge train 20261030-2348 - #5181

Merged
tale-code-bot merged 42 commits into
mainfrom
train-20261030-2348
Oct 31, 2026
Merged

tale-code-bot merged 42 commits into
mainfrom
train-20261030-2348

Conversation

@tale-code-bot

@tale-code-bot tale-code-bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Cut: 4f5a013

The stable line's merge train: the 41 commits that landed on train since #5145 departed, each squashed behind the fast gate (formatting, typecheck, build), one commit per task. train carries the stable line (main, 0.5.x) only: fixes, and the tests, docs and CI about what main ships. All 41 commits are of those types, 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 (49ce42fd, the merge of #5145) is the train's base: train was moved onto it after #5145 merged, so the commits apply to it unchanged. The merge-train role ran no fast gate of its own before this departure; each commit passed the Reviewer's when it landed.

main's own push runs on 49ce42fd: Checks 41094343489 failed in Unit (workspaces) (services/sandbox-runtime/daemon/src/process-reaper.test.ts:760) and UI (platform 2/4) (version-compare-page.test.tsx, "opens what changed in a node picked on the graph": found multiple elements with the text Summarize); Build 41094343639 was cancelled (Build platform, Build sandbox-runtime and three container tests); CLI 41094343645 passed.

One commit widens a workflow token: 29e944569 (TALE-141) gives the manifest job of release.yml contents: read beside packages: write, for a sparse checkout of tools/cli/scripts/release-latest.ts without persisted credentials.

Commits (41):

Task keys: TALE-75, TALE-39, TALE-72, TALE-87, TALE-57, TALE-156, TALE-105, TALE-90, TALE-153, TALE-177, TALE-126, TALE-150, TALE-201, TALE-194, TALE-99, TALE-159, TALE-96, TALE-217, TALE-237, TALE-183, TALE-192, TALE-174, TALE-54, TALE-186, TALE-51, TALE-240, TALE-189, TALE-180, TALE-66, TALE-74, TALE-52, TALE-141, TALE-199, TALE-81, TALE-193, TALE-166, TALE-211, TALE-176, TALE-170, TALE-242, TALE-244

3e57b43e7 (TALE-194) carries Refs #4921, not Closes: that issue stays open after the merge.

Fixed on this branch by the merge-train role (1):

The TOTP_CLIENT_NAME and TOTP_ENVIRONMENT rows of the environment
reference listed only the allowed characters. The backend parses both
settings at startup, and a value its schema refuses stops it, so a
deployment that followed the rows could still fail to start: on a name
that opens with a symbol (`& Co`), or on an empty `TOTP_CLIENT_NAME=`
line, which Compose hands the backend as "".

The rows in EN, DE and FR, and the .env.example comment, now state every
rule of lib/shared/authenticator-name.ts: the trim, the collapse of inner
whitespace in the client name, a letter or digit first, ASCII letters
only in the environment, and that an empty value is invalid where an
unset one is not. The German and French rows also stop calling an unset
variable "without a value", which reads as the empty value they warn
against.

The schema tests now also refuse `& Co`, `-te` and `_te`, and
authenticator-name-docs.test.ts holds each documented rule to its schema
and to the words of each locale's row, so neither can drift from the
other again.

Closes #4427
Task: TALE-75
The bell passed onNavigate only to its compact popover panel, so a row
activated in the expanded Notifications dialog changed the route and
marked the row read while the modal stayed open over the destination.
The expanded panel now gets onNavigate too and closes the dialog; a
row's Mark as read still keeps it open.

Closes #3903
Task: TALE-39
The Language menu read the stored preference, so it marked a language
whose messages were still on their way or had not loaded, picking it
again fetched nothing, and a failed load said nothing (#4421).

- LocaleSync reports where a switch stands; LocaleProvider passes it on
  as shownLocale and status, counts every pick and retry as an attempt,
  asks the store until the switch reports, and fetches a language that
  did not load again once the browser is back online.
- LocaleLoadNotice (@tale/ui/i18n/locale-load-notice), mounted by the
  platform beside its other toasts, says in the shown language that a
  language did not load, with Close and Try again.
- The user menu marks the shown language, with a spinner beside the one
  on its way.
- useLocalesLoaded becomes useLocalesLoad, which answers loading, loaded
  or failed per locale; the confidentiality notice editor says when a
  language's default notice did not load.
- PERF-P15, the user docs (en/de/fr) and the @tale/ui README describe it.

Closes #4421
Task: TALE-72
A connection lost while a .cursor() callback held a batch crashed the
process (#4066, from the review of #4061). closed() rejects the cursor
and, by the patch's own hunk, sets `query = null`; PortalSuspended then
read `query` after its await and called `query.reject` in its catch, an
unhandled TypeError. PortalSuspended now keeps its own cursor.
Once the callback returns, it does nothing if the connection no longer
runs that cursor (closed, or reconnected for another caller), writes
Sync for a failed callback only while it does, and rejects the cursor
itself. The async iterator no longer drops an error that arrives while
the caller holds a batch: the next next() throws it
(porsager/postgres#1166), where the for-await loop used to end as if it
had read every row.

A statement on a transaction that has ended, or on a released
reservation, now rejects with UNSAFE_TRANSACTION, as postgres.js 4 does,
instead of CONNECTION_CLOSED, which the platform reads as the database
being unavailable (a 503 with no error report). CONNECTION_CLOSED stays
for a connection that closed while the transaction or the reservation
held it.

The connection-loss suite now pins every change of the patch: with any
one of them removed from src/ and cjs/src/, a case fails in both builds.
New cases cover a reservation whose connection the pool reconnected for
another caller's transaction, end() after a cut statement, a password
answered after the server ended authentication, a close with a write
still pending, cursors (callback and for-await) that lose their
connection, and statements on ended handles. The waits on a server's
close use postgres.js's onclose instead of a sleep against its timer,
and the fake server answers each chunk in one write, as PostgreSQL
flushes at ReadyForQuery.

patches/README.md records the changes, the residuals, and postgres.js
4.0.0 (2026-10-29) as the way out of the patch.

Closes #4066
Task: TALE-57
RFC 5952 ends an address in `::` when its last groups are zero, as for a
subnet's router or a network written as an address (`2001:db8:abcd:12::`,
`fd12:3456:789a:1::`). The ipAddress pattern's IPv6 alternative needs a
group or a dotted quad after its last colon, so it offered the validator
only the cut-off `2001:db8:abcd:12`, which isIP rightly refuses, and the
address went through unmasked. The final group has been required since
#1710.

A new alternative, tried before the general one, takes such an address
whole, with an optional %zone (`fe80::%eth0`) and ahead of a prefix
length (`2001:db8::/32`). isIP also accepts `::`, `d::` and `e::`, so the
alternative starts its first group at a word boundary and allows no
letter, digit, `_` or colon right after it: `::` on its own,
`std::vector`, `Feed::new()` and an rST `Example::` stay unmasked.

Closes #4778
Task: TALE-156
Settings > API > WebDAV kept its table skeleton forever when the
app-password list read failed. useWebdavAppPasswords returned only the
read's data, so a failed read was the same undefined as one in flight:
no failure named, no Try again. Someone who came to revoke a leaked
password could not see it, and nothing said why.

The hook now returns the rows with the read's error, readStateOf and a
retry, and the page hands them to the table through useListReadRecovery,
as Teams does (#4653). A failed first read is the table's error state
with Try again, which moves the focus to the App-passwords section
before the table turns back into its loading state. A read in flight
keeps the skeleton, and "No app-passwords yet." shows only after a read
that answered with none. Rows a failed refresh left stay, still
revocable, under webdav.list.refreshFailed with its own Try again, which
hands its focus to the section once the list heals.

The string ships in en, de and fr. The new spec drives the real hook,
adapter row and retry policy over a synthetic 503, in three languages
with axe. The manual layer gains SET-B41 and its component-half row.

Closes #4652
Task: TALE-105
A workflow agent step that Codex ends on its terminal "Selected model is
at capacity. Please try a different model." already settled as
model_capacity from the shared parser's typed kind, also after an exec
checkpoint is restored, and held its re-kick for a minute (#4952). Its
retry plan still burned the account the model refused, so the re-kick
stepped past a healthy account. The plan now counts the failure as
before and keeps the account in the pool, as the task lane does. Real
account failures still burn theirs.

A held start rechecked only the run's status and cursor, and it accepted
a cursor that still named the settled predecessor. So a start held by a
walker that lost the run launched a turn nobody waits on once the hold
ended. The retry kick now hands its walker's claim to the start it
holds, readAgentCursor answers the run's claim and lease, and a held
start runs only while its run is parked on it or that claim still holds
the run. Starts at once keep the lenient gate.

Unit tests drive the pinned Codex lines through the real drive window
(initial, resumed and checkpoint-restored refusals, and incidental
text), and through the retry plan, the stepper and the start gate. A
backend integration lane proves the persisted path on PostgreSQL:
- one exec-fenced settle;
- one start held a minute on the same conversation and account;
- no second kick from a duplicate step;
- a resumed retry that the model refused again;
- a cancelled run and a lost walker, both refused before any sandbox
  work;
- an ordinary failure that still burns its account.
The run docs (EN/DE/FR) say how an agent step retries a model at
capacity.

Closes #4530
Task: TALE-90
resolveClaimPath split the configured path on every dot and walked the
pieces from the root, so a claim whose own name contains dots could
never be read: an Auth0 namespaced claim (https://example.com/roles),
the Microsoft role claim URI or a urn:oid SAML attribute. Claim rules
for every protocol and the OIDC and OAuth2 name, email and groups
mappings then fell through, and the member signed in with the default
role.

At each level the resolver now tries the longest name the claims carry
first and falls back to shorter ones when a longer one leads nowhere, so
the name as written wins and nested paths such as realm_access.roles
keep working. It reads own keys only, never inherited properties.

The issue's probe is committed as claims.dotted-names.test.ts. The rule
form's help text in every locale, the enterprise SSO guide and the CLI's
claimMappings reference say that a dotted name is read as written; the
guide also says that a claim rule whose claim the sign-in lacks matches
no one.

Closes #4775
Task: TALE-153
Three governance surfaces lost the reason for a refusal or a failed
read.

Legal hold: the dialogs mapped the 0.4 codes, but the 0.5 doors answer
FORBIDDEN, TARGET_NOT_FOUND, HOLD_NOT_FOUND, REQUEST_NOT_FOUND,
REQUEST_NOT_PENDING and others. Most refusals therefore showed the
door's English sentence in every locale ("This request was already
decided"). mapLegalHoldError now maps every code the legal-hold and
matter doors answer, plus a refused body, to the governance catalog. A
code it doesn't know reads as the generic line; a lapsed session reads
as its own sentence. The service types its codes as LegalHoldErrorCode,
and the test lists them with satisfies, so a new code fails the
typecheck until the test lists it, and then the test until it is
mapped.

Trash: every refused restore read "Couldn't restore this record.".
mapTrashRestoreError now maps the restore door's codes: a contact's
duplicate email or external ID (worded with the contacts import's
sentences), a row that has left the trash, an admin-only refusal and an
unsupported type. When the row is gone, the dialog closes, and the
restore adapter's refusalInvalidates reads the list again without it.

Grant competence: the Member picker built its options from
members.data ?? [] and said "No members found" while the list was
loading or after the read failed. It now reads the list's state as the
API key pickers do: it is masked and disabled until the list answers,
and a failed read shows an alert with Try again.

The new texts are in en, de and fr. The manual register
(reference/automation/governance.md) gains three rows.

Closes #4840
Task: TALE-177
A run its sandbox's memory limit ended had its task.agent_retry job held
for 2, 10 or 30 minutes whatever its retry budget said. With the budget
spent no retry followed: the held job only woke to retire the run, so the
people the run answers to were told up to 30 minutes after its card
already read the failure as final.

failAgentRunFromTurn now asks the budget the job would ask
(resolveAutoRetryBudget over loadTaskRetryHistory) for an out-of-memory
failure, in the failing transaction: with a retry left the decision is
held as before; with none left the run is unarmed before its terminal
record and announced at once, like every other final failure.

Closes #4717
Task: TALE-126
The SCIM Users and Groups lists answered any filter other than
`userName eq "…"` / `displayName eq "…"` with 200 and an empty list,
without running a lookup. An IdP that matches on another attribute or
operator then concludes the member or team is missing and creates it
again (409 uniqueness, or a second record).

Decline such filters with 400 and scimType `invalidFilter` (RFC 7644
§3.4.2.2, §3.12), with a detail naming the filter Tale reads. The
supported `eq` lookups are unchanged.

State the rule as SCIM-R9 in the SCIM domain spec, held by the new
tests, correct the discovery comment, and tell admins in the
enterprise SSO guide (en, de, fr) which matching attributes work.

Closes #4772
Task: TALE-150
A connector step that fails for a cause no reason names
(CONNECTOR_FAILED) kept what its connector's own code threw only as
words under params.detail. A native whose serializable transaction lost
to another one, one that a constraint or a trigger refused, a domain
refusal and a defect all read alike to anything that reads codes, such
as the standing-role wake fixture, which never reads the words. Every
W12 and W18 failure of Backend integration so far stopped there: the
manager occurrence failed at its start step (task.start_agent) as
connector_error / CONNECTOR_FAILED, and what the start threw never
reached the log.

The failure now keeps the class of the thrown error in two technical
params, errorName (PostgresError, TaskError, ConnectorError, TypeError)
and errorCode (a SQLSTATE such as 40001 or P0001, a refusal's code such
as AGENT_START_FORBIDDEN, a socket's such as ECONNRESET). Each is kept
only in an identifier's shape (errorClassOf), never the error's words.
The automation shim hands connectorFailureOf the error the dispatcher
wrapped as the refusal's cause; the in-process executor's live body
error is its own. No sentence reads the new params.

readWakeAdmissionFailure reads the class back through the same
errorClassOf, still without detail, other params, trace or values. The
W18 observer prints it with the first failed occurrence, and both W12
checks print it for their first occurrence. A new W7 check proves the
path on real Postgres: its admission fault (a trigger's RAISE, SQLSTATE
P0001) must come back as PostgresError P0001 on the start step.

This names the cause of the next W12 or W18 failure; it does not fix
the flake.

Refs #4921
Task: TALE-194
A task opened as a page (from Home, Open as page or a notification link)
took any failed read for a missing task: offline, a server fault or a
lapsed connection showed "Page not found" with Back to Home, and nothing
offered to read the task again. useTask already told the two apart; the
page only asked whether a task had arrived.

The page keeps the dead end for a task that is gone (a 404, or
TASK_FORBIDDEN). A failed read now reads "Couldn't load this task."
with its reason (failureDetail) and Try again, in the page's labelled
region; a retry that works loads the task in place and hands the focus
to it. The board's task dialog shows the same failure, with Try again
beside Close. Both go through TaskDetailFallback and the board's
TaskReadAlert, whose focus target is now optional: the dialog's focus
trap takes the focus back itself.

useTask holds a failed read through its retry (readStateOf, a held
error keyed by task), so Try again shows "Trying again…" instead of the
skeleton, a task that is not the member's stays not found while it is
read again, and one task's failure never stands for another's.

The new string tasks.detail.loadFailed ships in en, de and fr. The
tasks manual suite gains TASK-B56, with its component half in
automation.md, and states its real box count, 174 (the header said 162,
the readme 127).

Closes #4587
Task: TALE-99
A managed repeat schedule whose window names all seven weekdays and no
hours reads in its normal form without the window, the form the
platform stores. The declaration's check for discarded fields then
found the window in the file but not in the parse, and refused the
whole declaration. So tale config validate, plan and apply, and a
managed deployment's preparation, stopped with a usage error and exit
code 2.

The check now refuses only a key no schema reads. A schema strips a key
it does not know whatever its value, so each key parsing left out is
parsed again with a symbol in its place. Still accepted, nothing read
it, and it is a misspelling; refused, a schema read it before its
normal form left it out. Only a resource that had a key left out is
parsed again, and on its own, never the whole declaration. A misspelled
field stays refused, beside such a window or inside one.

Closes #4781
Task: TALE-159
The docs E2E suite flaked on the first attempt of its skip-link test
(E2E run 37776436833, docs job 113308798085, German at 1440 px; E2E run
37829113054, German at 390 px). CI previews the complete build, and vite
preview answers /de/self-hosted/configuration/config-releases with the
root page's English prerender. The spec's h1 check passed on that
prerender before main.tsx had imported the page's Markdown chunk, so Tab
focused the prerendered skip link; the createRoot commit then replaced
#root, focus fell to body and the German link stayed "inactive" for
20 s. TALE-92 (70a1c3d) made every docs spec wait for the client
commit, which takes that race out of the ordinary skip-link test.

Add the late case the ordinary test met only by chance: the skip-link
test also runs with the page's Markdown chunk held past `load`, at 1440
and 390 px in EN/DE/FR. Once the client has committed, the served
prerender's skip link is gone, the first Tab focuses the localized skip
link and Enter moves focus into main. The hold, its negative control at
`load` and its cleanup move out of the late-body zoom test into
tests/e2e/helpers/late-page-body.ts, which both tests share; it now also
fails at once when its pattern misses the chunk, instead of hanging.

With retries off, the pre-TALE-92 spec failed all 8 German and French
runs with CI's error while the chunk was held for 1.5 s, and the old
steps failed 6 of 6 when the chunk was released right after the Tab;
the new test passed 30 of 30.

Closes #4554

Task: TALE-96
Send stopped the microphone and sent the field in the same tick, while
both dictation paths deliver words after the stop: Web Speech finalizes
its pending results before its `end` event, and the recorder fallback
transcribes the recording on the server. Those words missed the message
and landed in the field it had just cleared.

A send while dictating now stops the microphone and waits, up to 30
seconds, until the dictation has handed over every word it owes, then
sends the whole field. A finish that fails or times out sends nothing,
keeps the field and says so. A running dictation makes an empty field
sendable, so a recording can be sent without stopping it first.

Closes #5034
Task: TALE-217
The three proofs that run before the Backend integration lanes each
create a database of their own and drop it when they finish. They did
both on an admin connection with the 8 s statement and lock timeout
meant for the statements they test. DROP DATABASE waits for an
immediate checkpoint of the whole server. On CI's shared runners that
checkpoint ran past 8 s, the statement was cancelled and the run ended
before any of its lanes. That happened in 14 of the 20 failed runs
after 2026-10-29 18:00 UTC.

The DDL that builds and removes those databases now has a two-minute
statement and lock timeout. CREATE, ALTER and DROP DATABASE run on an
admin connection opened with it (ownedDatabaseAdmin). The schema,
ledger and pre-0163 migrations run in transactions that raise both
timeouts for themselves only (setOwnedDatabaseBudgetInTx). Every
statement the proofs test keeps its 8 s on its own connection. The
protocol proof's pg_stat_activity and pg_locks polls stay on its admin
connection, since they wait on no lock and test nothing. The floor
proof (checkAutomationProtocolFloor) creates and drops its database
the same way, so it gets the same budget.

dropOwnedDatabase logs each drop and how long it took, so the job log
shows that the drop completed and how much of its budget it used. A
drop that fails still throws and still fails the run.

Closes #5133
Task: TALE-237
Settings › Skills said false things when its reads failed. A failed
library read rendered "No skills yet" with Add skill under an English
"Reload to retry" alert. A failed upload showed the transport's own
text ("Request failed with status 502", "Failed to fetch") in every
locale. Every team-shared skill read "Unknown team" while the team
directory loaded, and for good once its read failed.

The library read hands its error and a retry to the list's data
source through useListReadRecovery, as Teams does since #4653. With no
skill loaded, the table shows its error state with Try again, which
moves the focus to the section before it reads again. Rows a failed
refresh left stay, and skills.library.refreshFailed names the failure
above them with the same retry. The page narrows its rows itself, so
the table gets the error only while no skill is loaded: a facet that
matches nothing under a failed refresh stays a no-match.
skills.listFailed goes.

The upload toast reads its failure through failureDetail, as the
detail pane does: a refusal keeps the door's words, a lost connection
reads common.errors.connectionLost, and a 5xx leaves the title alone.
The local extractErrorMessage, which the error-message guard could not
see through, goes.

Team names come from useTeamNames, in place of the page's own copy of
that lookup. Until the directory answers, a team-shared skill reads
skills.visibility.team; only an answered directory calls a team
unknown.

The strings ship in en, de and fr. The new spec drives the real
useSkills and team-directory hooks, adapter rows and retry policy over
a synthetic 503; SKILL-B10 is the real-browser half.

Closes #4888
Task: TALE-183
router-core 1.168.9's loadRouteMatch reads a preload's match again once
the preload's wait ends, and preloadRoute logs a TypeError ('_nonReactive')
when a navigation dropped the match meanwhile. The patch that guards the
read was proven only for a split route without a loader, whose cached
match a committing navigation clears while its chunk loads.

A route whose loader the router awaits gets there with no split: opening
it while the preload's loader runs moves the preload's match into the
navigation's pending matches, and leaving before the loader answers
drops it. The project page awaits its project in its loader and the
projects list preloads it on row hover, as they already did in v0.5.73,
before the split.

router-split-preload.test.ts now preloads such a route, opens it, leaves,
then lets the loader answer: nothing is logged, and the route opens
again. Against unpatched router-core 1.168.9 the case logs the TypeError
from load-matches.js:489, as the split case does.

patches/README.md describes both paths under Why and Proof, records that
both cases need the patch's second hunk and none reaches its first, links
TanStack/router#7759 and #7805, and names router-core 1.171.16, the first
release with the rewritten loader, as the candidate once both cases pass
unpatched. .agents/repo.md names the router-core and zod patches beside
postgres.js.

Closes #4911
Task: TALE-192
useFormEditor compares each refetch of its data against a baseline
(lastDataRef) and, while the form is dirty, flags one that differs as
changed in another session. Only the data effect moved that baseline,
so two paths left it behind:

- Discard: a remote change that lands while the form is dirty is only
  flagged. reset() then loaded it into the form but kept the old
  baseline, so the next refetch of that same data differed and flagged
  the next draft. On the governance standard agent editor the page's
  own switch save re-reads the policy and raised that false alert.
- Save: a successful save adopted the saved values as the form's dirty
  baseline but not as this one. The refetch of the saved values (the
  next one, when the first landed during the save and the effect
  skipped it) differed from the pre-save data and flagged the next
  draft too.

reset() now adopts the data it loads, and a successful save the values
it saved, as that baseline. A real change from another session after
either still flags.

Closes #4049
Task: TALE-54
The Guardrails overview cards (Settings > Governance > Guardrails) put
stored values into their summaries, in every locale: the content safety
card read "1 categories · input, output" ("1 Kategorien · input,
output" in German), the PII card "Mode: tokenize" and the moderation
card "custom_jsonpath". The summary message had no plural branch, and
nothing turned the appliesTo values, the PII mode or the response
shape's discriminator into the words the editors below show for them.

Each summary now names a setting with its editor's label, and each
mapping is written once, read by the editor and the card alike:
contentSafetyTargetLabel (the Apply to row's User input and Model
output); piiModeLabel in pii/pii-mode-labels.ts beside piiTypeLabel
(the Mode row's Tokenize, Mask and Block), kept out of the lazily loaded
PII panel so the overview does not pull in its chunk; and
responseShapeLabelKey beside presetActiveLabelKey (the provider the
Provider row marks as active, Custom JSONPath included). The content
safety count is an ICU plural in en, de and fr (fr with one, many and
other, as icu-plural-rules asks).

guardrails-overview.test.tsx renders the issue's policies (one category
on input and output, PII in tokenize mode, a custom JSONPath provider)
in German, French and English and expects each card's summary in its
editor's words, with no stored value and no "1 Kategorien"; a second
case counts two categories. All four fail without the change. The
manual layer's automation reference gains the row for this coverage.

Closes #4891
Task: TALE-186
A backend process that started while the knowledge database was
restarting or still starting reported the refusal as an error event (the
default corpus bootstrap, on the worker and all roles) and skipped the
BM25 index verification of the default corpus for the life of the
process, so an index a crash-mode stop corrupted was neither detected
nor kept from taking writes. knowledge-db is not among the backend's
compose dependencies, so such a start is an ordinary event.

The boot's knowledge steps now wait out the knowledge database with
createBootDatabaseWait, the helper #4031 added for the app database, on
a clock of their own: bootDefaultKnowledge (domains/knowledge/boot.ts)
waits up to ROUTINE_RESTART_MS (60 s) from the knowledge database's
first refusal, then bootstraps the schema and verifies the indexes.
healBm25Indexes takes the wait, reruns a scan the database refused whole
on a fresh session, and reports a database that stays unavailable as the
new status `unavailable`, with a warning instead of an error line; the
report's effects still run once. An outage past the wait is reported
once per boot, at error level with the boot's tag, and each step it
skipped logs a warning saying it stays skipped until the process
restarts. Any other failure is handled as before. The observability and
container docs (EN/DE/FR) follow.

Closes #4035
Task: TALE-51
Tale ships a stable line on main and a feature line on release/0.6, and
the feature train departs with one pull request into release/0.6. Six of
the eight pull-request workflows started only for a pull request into
main, so a pull request into release/0.6 reported two of the eight
CI ready contexts main requires: CLI and SAST.

- build, checks, commitlint, e2e, sandbox-incus-e2e and security also
  start for a pull request into release/**. Their pushes stay on main.
  CLI and SAST already started for every pull request.
- The release-candidate contract is refreshed. Its diff only adds
  release/** to the four pull_request triggers it binds.
- ci-ready-workflows.test.ts holds the eight triggers to this. It also
  holds the scope and readiness jobs, their actions and evaluator, and
  commitlint's range to the pull request's own base, never to main.
  On GitHub they already used that base.
- The Forgejo port's link check compares a pull request with the merge
  base with the branch it targets (GITHUB_BASE_REF), not with main.
- CI.md says a pull request into release/** runs the same checks. It no
  longer says the feature train waits for this change.

Closes #5143

Task: TALE-240
Since #4903 the member door refuses a session bound to another
organization with 403 ORG_FORBIDDEN and the session's own sentence. The
member read mapped every ORG_FORBIDDEN to not_member, so a member who
signed in through organization A's single sign-on and opened a link into
B was told they are not a member of this workspace.

The read now answers session_restricted for that refusal, and the
dashboard says the session is limited to the organization that signed
the person in, with Sign in to this workspace: it ends the session and
takes the tab to sign-in, which brings them back here. The dashboard's
entry-failure page uses the same useSignInAgain hook, so signing in
again has one copy. A session an authenticating proxy asserted gets no
button, since the proxy would sign it in to the same organization again.

BackendApiError replaced the server's sentence with its translation when
it was built, so the refusal was recognized only in English; it is now
classified once, where the error is built, and kept as sessionRefusal.
useAuth().proxied read trustedOrganizationId, which #4903 writes on
every single sign-on session, so single sign-on members had lost Log out
and Sign in again; it now reads trustedRole, which holds the role an
authenticating proxy asserted and which single sign-on never writes.

Adds the AUTH-B25 manual box, its automation row and a troubleshooting
row in the enterprise SSO guide in English, German and French.

Closes #4908
Task: TALE-189
The knowledge entries table keyed its rows by the version id, which a
save replaces (KENTRY-R3). When another member's save reached the list,
the row was mounted afresh, and the dialogs its menu held open went
with it. An Edit opened from the row menu, or from the row menu's View,
closed and lost its draft without a word, before its newer-version
notice could show.

Rows are now keyed by the entry (its documentId, or its _id while it
has no document), the key the record view already used. The row and
its dialogs stay mounted across a new version: the Edit keeps its
draft, shows editDialog.newerVersion, still asks before discarding, and
saves onto the version listed now. Selection keys are entry keys too,
so a checked row stays checked and Delete selected deletes the current
version, not the one it replaced, which KENTRY-R7 would delete alone. A
refused delete is still named by its topic.

Manual box KNOW-B29 covers the live check across two sessions; its
component half is in the automation register. The manual readme's
total is recounted: its 22 suites hold 1592 boxes, not 1286.

Closes #4860
Task: TALE-180
The RAG indexing watchdog read its stuck rows, then settled each one by
id alone. A Retry that queued a row again between that read and the
write was overwritten with the sweep's verdict, mostly failed, until its
job rewrote the row. Each of the sweep's six settle writes now also
matches the status and the queue stamp (rag_queued_at_ms) it read, with
IS NOT DISTINCT FROM for a run never stamped. A row queued again in the
meantime keeps its new state, and the sweep counts only the writes that
landed. Matching the status alone would still undo a Retry of a stale
queued row, which stays queued; every re-queue stamps rag_queued_at_ms
afresh, and no job write touches it. FMETA-R6 states the rule. Unit
tests hold each write's guard and the race, and a real-Postgres lane
holds a sweep between its read and its writes, queues four of its rows
again, and reads them back queued under the Retry's stamp, while a row
nobody queued again still settles.

The Backend integration harness ran pg-boss with its cron clock on and
unscheduled only automation.trigger_scan and watchdog.rag_indexing
(#4145). Every other recurring job still ticked beside the lanes that
drive its work and assert exact state: automation.liveness beside the
overdue-run sweep, watchdog.transcriptions beside its exact count.
createBoss and startBoss now take schedule, on unless a caller turns it
off (main.ts is unchanged), and the harness boots with it off. Every
schedule is still registered and checked against SCHEDULES, none ticks,
and the per-name list goes. After the lanes, a guard fails the run if
pg-boss ran a cron pass or forwarded a tick since boot.

Closes #4158
Task: TALE-66
Each of these titles named a rule its assertions did not hold, so the
domain-spec guard counted the rule as held while a mutation of the code
stayed green.

- control: a wrong bearer as long as the token, so the byte comparison
  decides [CTRL-R2].
- automations: the fake finds a run only when the statement's status set
  names its status, and a run that ended is shown not to refuse the
  delete [AUTO-R15].
- conversations: the draft is selected by the conversation and while
  pending, and is reviewed at the send's time [CONV-R12].
- two_factor: the strict organization listed first and last, and an SSO
  account against one exempting and one non-exempting organization
  [TFA-R1].
- sandbox routes: no request names an `orgId` the stand-in door ignores by
  construction; the decoy is an `organizationId` no handler may read.
- knowledge crawl: a disallowed page's chunks leave the index [KNOW-R14].
- sandbox cleanup: the deletion date runs the policy fallback instead of
  pinning the constant [SBX-R12].
- knowledge codes: the spelling pin names no rule.

Closes #4426
Task: TALE-74
isDatabaseUnavailable counted every connection failure postgres.js
stamps, whichever database the client talked to. A request or a job
that failed on a knowledge database (the deployment's default or an
organization's own) answered the platform's 503 DATABASE_UNAVAILABLE,
which says the platform's own database may be restarting, and nothing
reported it. A statement on a pool that eviction had ended read as the
same outage.

Each knowledge pool now marks the errors it rejects with the database
they came from, and one classifier tells the two apart for every door.
The app and REST doors answer a knowledge outage with 503
KNOWLEDGE_DATABASE_UNAVAILABLE, Retry-After 5 and the request id. The
MCP door answers it with the same wait, the chat assistant tells the
model the search cannot run right now, and a job that meets one warns
and is retried under its queue's policy. The boot steps and the index
scan wait out either database alike.

Every request logs one warning. A watch per pool logs when an outage
begins and ends, and reports it once, at warning level, when it
outlasts a routine restart (a minute). The report names which database
it was and, for an organization's own, its slug; it never carries the
address, user, password or SQL. An outage no query ended is forgotten
after 15 minutes. Rejected credentials, a missing database, a statement
on a pool the platform ended itself and plain defects stay reported
500s, and the platform database's restart stays the quiet 503 it was.

Eviction retires the least recently used pool instead of ending it. It
is no longer handed out, a statement or transaction still running on it
completes, and its idle connections close on their own; shutdown ends
what is left. Nothing is replayed.

The app keeps the platform reachable and words the code in the action's
toast (en, de, fr). The browser does not report it, since the backend
reports each outage once. Contract 3.51.0; the docs, the specs and the
manual's KNOW-B30, DATA-B11 and error-code rows follow.

Closes #4037
Task: TALE-52
Re-running the cancelled v0.5.78-v0.5.80 Release runs after v0.5.82
moved every :latest image and GitHub's Latest release back to v0.5.79:
the manifest job tagged :latest on every run that was not sites-only,
and gh release create left make_latest at its default, true.

tools/cli/scripts/release-latest.ts decides from the published releases
whether a run moves both marks: only a stable version at least as high
as every published stable release does, never a sites-only run. Drafts,
pre-releases and other tags do not count. The manifest and
create-release jobs each run it just before they write, because a
failed-jobs re-run reuses Prepare's outputs from an earlier attempt.
Unless it moves them, the manifest neither tags nor checks :latest and
the release is created with --latest=false; an unreadable release
history fails the job before a tag moves.

The tests run the decision's cases, the command against a stand-in gh
that applies the real jq, and the workflow's own steps: a re-run of
v0.5.79 after v0.5.82 writes no :latest and creates its release with
--latest=false, while a new highest version moves both.

A re-run uses the release.yml of its tag's commit: tags cut before this
commit still move :latest, and GitHub's Latest when the run creates the
release.

Closes #4740
Task: TALE-141
The v0.5.89 notes said the upgrade needs no database migration or
manual configuration change and described only the native CLI fix.
The release adds migration 0204_usage_ledger_provider.sql, moves the
API contract from 3.43.0 to 3.44.0, and turns coding-agent sign-in on
by default, although the v0.5.88 notes said it stays off unless an
operator turns it on.

The Upgrade notes now name the migration, applied at boot, and the
contract version. They say that sign-in is on by default, which public
surfaces that opens, what it needs, and the two switches that keep
agents on API keys, with a pointer to the v0.5.90 notes that repeat
it. They also name what else asks something of an operator: the two
sandbox settings of #4169 that behave differently, the model-access
rules without a target that block model-access changes since #4216,
and the OIDC claim mappings that form saves before #4212 removed.

The Highlights add agent sign-in, the Connected agents settings page,
trigger readiness in the automations list and agent runs in a task's
activity. A last bullet says the notes were corrected after
publication. The published Release body is not changed by this
commit; a person edits it.

Closes #4970
Task: TALE-199
The German app names two areas Agenten and Richtlinien
(navigation.agents, navigation.governance). #4490 gave the website's
navigation, eyebrows and app-like demos those names; this finishes the
sweep and makes the enforced terminology check hold it.

- Website: the 20 German strings that still said "Agents" or
  "Governance" (titles, headings and FAQs of the agents and governance
  pages, the home tour's "Agents & Connectors", the Hub's module
  overview, the governance page's SEO title, copy on the about, demo,
  knowledge and projects pages) and the 4 de-CH overrides of the same
  list items.
- App: 26 German strings with "Agents", "Coding-Agents" or "Governance"
  (empty states, page metadata, the retention and data-subject-request
  settings, the organization delete dialog, audit-log labels).
  "Coding-Agenten" matches the app's own coding-agent screens.
- Glossary: feature_agents (de Agenten; French keeps Agents) and
  feature_governance (de Richtlinien, fr Gouvernance). The Agent note
  gives the German declension; the coding-agent plural follows the app.
- i18n checks: the catalog scanner now reads YAML list items. It skipped
  them, so no check read the website's FAQ items, capability lists or
  tour stages, and a tour eyebrow set back to "Agents" passed. A list
  item's id and path stay out: the site finds a tour stage's copy by its
  id and links a docs entry to its path, so they hold values, not text.

Closes #4483

Task: TALE-81
Since #4903 a password sign-in carried the session the request presented
into the session it minted. When that session belonged to somebody else,
the sign-in was refused with 403 ORG_FORBIDDEN: an organization-limited
session or an API key before the password was checked, a global session
by the session-create hook after it. The log-in page words every such
refusal as a wrong password with the lockout hint, so a person signing
in on a browser where someone else was still signed in was told their
password was wrong.

The password is the proof of a sign-in as somebody else, so the
session-authority hook now drops the presented session when
/sign-in/email names another address than its user's, compared in the
canonical lower-case form: the sign-in mints exactly as from an empty
cookie jar, and its cookie replaces the presented one. The presented
session is not revoked; it stays its owner's to end. The same person's
sign-in, /reauthenticate and the two-factor verifications keep the
presented session's authority, and the session-create hook still refuses
a session for another person than the presented one.

The log-in page now words the refusal that remains, a sign-in over the
same person's organization-limited session, with the sentence the app
already uses for it instead of the wrong-password line and without the
lockout hint. The manual box AUTH-B27 walks both cases in one browser.

Closes #4919

Task: TALE-193
Four reads behind the automation Versions and Tests views turned a
failure into a false result, since each read `data ?? fallback` and
never asked whether the read had failed:

- the version a comparison is made with: the diff ran against nothing
  and called every node, test and input added;
- a version's kept test report: every test read "Not run yet" and no
  path counted as tested;
- the automation itself: Restore was offered with no dialog behind it,
  and the compare page offered a deploy against an unknown live version;
- the member directory: authors stayed pulsing placeholders.

Each view now reads `readStateOf` and says what failed, with Try again
(`CatalogLoadError`), as the editor does for its deployed version: no
diff against a version that did not load, no unknown result counted as
not run, no restore or deploy until the automation answers, and
"Someone" for an author the directory could not name. `useMembers`
reports its read state the way `useTeams` does. Manual box AUTO-B48
walks the four failed reads by hand.

Closes #4828

Task: TALE-166
A reply that wrote an SVG said the file was attached, yet nothing showed
under it. The turn had stored the file and its part. The reply's files
block drew every image/* file as a picture, and an SVG sizes itself from
its markup. One that names no width laid out at 0x0. One that does not
parse drew a broken image. Neither had a card or a Download.

Only PNG, JPEG, GIF and WebP are drawn as pictures now (isRasterImage,
beside isImage). Every other file, an SVG too, gets the file card. Open
shows the preview, which draws an SVG through <img>, so no script in it
runs, and Download saves it. A picture whose bytes cannot be shown also
gets its card: no link, a failed load, or a link that could not be read.
Before, it showed a bare name or a skeleton that never ended.

Rule CHAT-R33 keeps the cards while the reply streams, after a reload
and on a reply tried again; tests hold it in jsdom and in Chromium. The
guard against a reply that claims a file the turn never stored is #5168.

Closes #5028

Task: TALE-211
`tale deploy --host <domain>` wrote HOST, SITE_URL and
TLS_MODE=letsencrypt into .env before anything checked --dry-run, so
a preview switched a TLS_MODE=external site to Let's Encrypt for good
and every later deploy served the flag's host. The docs promise a host
"for one run" and a dry run that touches nothing.

--host now serves its host for the run only. The proxy and the colour
get HOST and SITE_URL in their compose environment (SITE_URL keeps the
scheme and port of .env's), the preflight checks that host, TLS_MODE
and TLS_EMAIL stay as .env has them, and .env is never written. The
domain prompt is skipped. A public host under self-signed TLS gets a
notice, and the services this deploy does not recreate (a running
proxy without --stop) are named, since they keep the host they were
started with.

--dry-run now writes nothing: ensureEnv, the domain prompt, the
gateway env migration and the project ID assignment log what they
would write to .env or tale.json instead; tale reset --dry-run gets
the same. The dev compose shares the new origin helper and its output
is unchanged. The CLI install docs (en, de, fr) describe --host and
--dry-run as they now behave.

Closes #4839

Task: TALE-176
Settings > Usage said "No storage limit applies to you." when the
storage read failed. The section now follows the settings failed-read
convention (readStateOf + CatalogLoadError): an alert with Try again,
held through the retry, and the last meter kept under a notice when a
refresh fails.

The Sandboxes workspaces and devices tables gave their error state no
onRetry, so Try again did nothing; both now re-read through
useListReadRecovery. The Spend column uses the shared cost formatter
instead of a hand-rolled "$x.xx", so it follows the reader's locale.

Settings > API > Models answers a failed organization read with the MCP
tab's alert and Try again, and hands out no slug row or setup snippet
instead of snippets that send "<org-slug>".

Closes #4832

Task: TALE-170
A session building at its own CPU quota (SANDBOX_AGENT_CPUS, 2 by
default) is throttled, and the kernel counts a throttled task as stalled
in every cgroup up to the root, beside an idle CPU as much as behind a
busy one. One or two such sessions read 70 to 90 percent CPU pressure on
a host with most of its CPUs idle, so admission held every new start (60
under the default preset) and refused every heavy-phase lease (20) on a
host that had room for them.

The pressure sampler now also reads the host's CPU time from /proc/stat,
and the assessment counts the CPU stall only as far as the host's CPUs
were busy between its two readings: in full from 90 percent busy, not at
all at 80 or less, in proportion between. A throttled task does not run,
so it cannot raise the busy share. A host whose CPUs are contended is
judged by its stall as before, for starts and leases alike, and one whose
CPU time cannot be read counts the stall as read. The admission evidence
carries the busy share (cpuBusy) and the readings their two counters, the
pressure warning says how busy the CPUs were, and the busy share between
two CPU counters is one helper the capacity reader shares.

The environment reference, .env.example, the sandbox README, the session
contract and the manual coverage map say what the CPU signal measures.

Closes #5146

Task: TALE-242
A run whose sandbox ran out of memory after 15 minutes of work reset
its retry budget like any long attempt, so it was retried without end,
about every half hour, each attempt paying for the model again.

One rule, refreshesRetryBudget, now decides in both lanes when a
failed attempt refreshes the budget: it worked 15 minutes or more and
did not run out of memory. A task run that keeps running out of memory
is retried three times, 2, 10 and 30 minutes apart, then fails for
good with the out-of-memory notice. An automation's agent node stops
after its third re-kick the same way.

The per-task hourly breaker now counts every automatic retry, a
person's run's included, and the retry job admits each retry through
it. A person's own start is still never counted or refused.

The spec (TASK-R12, new TASK-R84), the repo contract's ledger, the
manual reference and the EN, DE and FR docs say so; task-automation.md
names the out-of-memory case among the retry waits and in When the
agent can't finish. Unit tests cover both lanes and the breaker, and a
new real-Postgres lane runs settle, held retry and retry three times,
then the final failure.

Closes #5148

Task: TALE-244
@tale-code-bot tale-code-bot added the merge-train A merge train's pull request into main label Oct 30, 2026
@tale-code-bot
tale-code-bot enabled auto-merge (rebase) October 30, 2026 23:51
"opens from the named action with Enter and restores focus on Escape"
failed in Checks › Browser on this train (Checks run 41146909385, job
124374031408): after Escape the row's opener was no longer in the
document. Its mock of useTeamNames, changed with TALE-183's team-name
lookup (#4888), returned a new nameOf on every render. The page's
columns depend on that lookup, so each render rebuilt them, and the
data table, which renders each cell function as a component, remounted
the row's cells and with them the opener.

The real hook keeps nameOf stable per directory load. The mock now
does too: one lookup, made once in its factory.
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