Skip to content

chore: merge train 20261106-1304 - #5408

Merged
yannickmonney merged 3 commits into
mainfrom
train-20261106-1304
Nov 6, 2026
Merged

yannickmonney merged 3 commits into
mainfrom
train-20261106-1304

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Cut: 663f6fd

The stable line's merge train for v0.5.102: two fixes the owner asked for today, after re-checking a customer acceptance list against v0.5.101, and their release notes. It departs ahead of its 8-hour slot because the owner asked for this release today.

Commits:

  • 882564b0b fix(platform): fit a large picture under what a model is shown (closes bug(platform): a PNG still over 2 MiB after the composer's compression never reaches the model, and the sender is not told #5396). A PNG still over 2 MiB after the composer compressed it never reached the model (the server's inline bound), and nothing told the sender. The chat composer now steps a redraw down until it fits the 2 MiB a model is shown (CHAT_IMAGE_MODEL_MAX_SIZE, now the one constant both sides read): a picture without transparency becomes a JPEG at a lower quality, then a smaller size; one with transparency stays a PNG at smaller sizes first. An original already within the limit is never stepped down, and a task's files and a sandbox thread's are only redrawn, as before. An image the composer cannot fit (an animated GIF) is named under the staged chips; on the model wire such an image, or an unreadable one, reads as its name and the reason. The upload, its metadata and the attachment now carry the type of the bytes sent (a converted image kept its picked type: JPEG bytes labelled image/png or image/webp), and the wire labels an image by its bytes, which also mends rows stored that way.
  • 80ca60f07 fix(platform): let admins block a member's personal API key here (closes feat(platform): bring #5217 to the stable line — an Admin can block a member's personal API key in their organization #5397). The feature line's feat(platform): let admins block a member's personal API key in their organization only #5217 (f5ce781bc), ported without feat(platform): let an organization refuse members' personal API keys #5218's switch for members' personal keys: an Owner or Admin blocks a member's own key in this organization only (Settings › Members › Personal API keys); the /api/v1 door refuses it there with 403 API_KEY_BLOCKED (REST, MCP and both model endpoints), listing where it still works. Migration 0231_api_key_org_blocks.sql, byte-identical to the feature line's (the lines share numbers); API contract 3.53.0. It also fixes the holder's "Blocked in this organization" mark, which ran over the next column (a browser test holds it, in en, de and fr).
  • 663f6fd00 docs: write the v0.5.102 release notes, last, so that the rebase merge's merge commit is the release candidate.

Checked before departure (locally, on this tree):

  • Full CI mirror on the tree before the review's two image fixes: format:check, lint:conflicts, lint:links, lint:manual, turbo lint typecheck build, knip:check, platform server + pii (92,437 tests), test:ui (9,469/9,469), test:browser (748/749; the one red is automation-editor.browser.test.tsx "readable in dark", load-dependent, 27/27 alone), docs tests and prerender.
  • Again on this exact tree after them: format:check, lint:manual, turbo lint typecheck, knip:check, the platform build, test:ui (9,470/9,471; the one red is version-compare-page.test.tsx, load-dependent, 16/16 alone and red the same way on a clean main under load), and both new browser tests.
  • backend:integration with ITEST_REQUIRE_ALL_LANES=1, its own MinIO and throwaway databases: 2412/2412 checks across 296/296 lanes.
  • In a real browser on the combined tree (local stack, a stand-in vision model that reports what it receives): a 3.4 MB noisy PNG reached the model as a 0.83 MB JPEG, a 6.6 MB 3000×3000 PNG as a 0.68 MB 2048 px JPEG (text crisp), a 5.9 MB transparent PNG as a 1.86 MB 1600 px PNG with its alpha, a clean PNG unchanged, and a 2.4 MB GIF was flagged before the send and reached the model as its name and the reason. Migration 0231 applied at boot on a database at v0.5.101 (with 0235–0238). An Owner blocked a Developer's personal key: the key got 403 API_KEY_BLOCKED in that organization on REST, MCP, /openai and /anthropic (each in its own shape) and kept working in her other one; audit rows api_key.blocked / api_key.unblocked; both bell notices reached the holder; lifting worked; an Admin got 403 on the Owner's key and on their own.
  • An independent review found no blocking defect; its two low findings on the image commit (the fit also applied to a task's files; an original within the limit could still be stepped down) are fixed above. Left open and filed: a blocked holder can make a new personal key that works at once (Decision: should a block on a member's personal API key also stop the keys they make next? #5404), refusals other than API_KEY_BLOCKED still list an organization that blocked the key (bug(platform): a blocked API key's other refusals still list the organization that blocked it #5405), and an Admin can lift a block an Owner placed on another member's key (Decision: may an Admin lift a block an Owner placed on another member's API key? #5406). The feature line's next rebase has to keep the stable port's badge fix and box wording (chore(release/0.6): reconcile the stable line's port of #5217 at the next rebase #5407).
  • Notes: bun tools/cli/scripts/release-notes.ts --version v0.5.102 validates (migration 0231_api_key_org_blocks.sql; API contract 3.52.0 → 3.53.0).

It rebase-merges when green (auto-merge). While it is open, no other stable-line train departs. After it lands, v0.5.102 is validated and tagged from the merge commit of the notes commit.

A PNG still over 2 MiB after the composer compressed it never reached
the model: the composer capped its longer side at 2048 px and kept it a
PNG, which hardly shrinks a detailed picture (a scan, a photo, a busy
screenshot), and the server sent any image over its 2 MiB inline bound
as its text surface, `[attachment: <name>]`. The model answered that it
could not read the image, and nothing told the sender why.

The composer now checks its redraw against the largest image a model is
shown (CHAT_IMAGE_MODEL_MAX_SIZE, the server's bound, now one constant)
and steps down until it fits: a picture with no transparent pixel
becomes a JPEG at a lower quality, then at a smaller size; one with
transparency stays a PNG at smaller sizes first and is drawn on white
as a JPEG only when no PNG size fits. Every JPEG is drawn on white, so
a transparent WebP no longer turns black. An image whose first redraw
already fits is uploaded as before.

The upload carries the type of the bytes it sends: a redrawn image kept
the type it was picked with, so a JPEG made from a PNG (as from a WebP
before) was stored and sent to the model as image/png, which a provider
that checks the bytes refuses. The model wire labels an image by what
its bytes are, which also mends the ones stored that way before.

An image the composer cannot fit (an animated GIF, which it never
redraws, or one the browser cannot decode) is named under the staged
chips before the send. On the model wire such an image, and one that
cannot be read, reads as its name and the reason, for example
`[attachment: scan.png — not sent to you: the image is 3.30 MB, over
the 2 MB limit for one image]`, so the reply can tell the sender. The
REST send carries no images and task agents read attachments as files,
so the composer is the one path that puts images into a model request.
Only the chat composer asks for the fit, and not in a sandbox thread: a
task's files, which an agent reads as files, are redrawn as before and
nothing more. An original already within the limit is never stepped
down, and is kept when its redraw comes out no smaller.

The chat attachments guide (en, de, fr), the manual box CHAT-AT16 and
its automation row describe it.

Closes #5396
An acceptance requirement asks that admins can revoke the personal
access tokens that reach their organization. On the stable line they
could only see them: All keys in this organization lists a member's own
key read-only, since only its holder can end it.

An Owner or Admin can now block a member's personal API key in this
organization only, from the member's row in Settings > Members
(Personal API keys). The key's requests here are refused with 403
API_KEY_BLOCKED on the REST routes, the MCP server and the model
endpoints alike, which all sit behind the one /api/v1 door; the answer
lists the organizations where the key still works (the model endpoints
answer the code in their own error shape, without the list). The block
does not reach the holder's other organizations, and the holder keeps
the key. The same roles lift the block. An Admin cannot block an
Owner's key or lift its block, an Owner can do both on anyone's, nobody
blocks their own key (API_KEY_BLOCK_FORBIDDEN), and a key bound to an
organization, the one a member made after single sign-on included, is
ended, not blocked (API_KEY_NOT_FOUND). The holder's role is read in
the serializable transaction that writes the block.

Each block and each lift is one audit row (api_key.blocked,
api_key.unblocked) naming the actor and the key by its masked ends;
repeating either records nothing. The holder hears of each in the bell,
and their own key list marks the key blocked in this organization. The
admins' dialog lists only the member's keys that are still valid, and
never their last use. All keys in this organization now leaves out
another member's own key blocked here, which stays in that member's
dialog where the block is lifted, and keeps the viewer's own blocked
key with its mark. GET /api/app/api-keys/members/:userId/personal and
PUT/DELETE /api/app/api-keys/:keyId/block serve it.

This ports the feature line's f5ce781, with 420f420's export
cleanup and the block rules of 3243a4e's listing, and keeps its files
and structure so the feature line reconciles with it. It leaves out the
feature line's switch for members' personal keys: no setting, no notice
about it, no refused state in the dialog, and the refusal lists every
organization of the holder that has not blocked the key. Blocks live in
app.api_key_org_blocks, migration 0231, byte-identical to the feature
line's: the lines share migration numbers, the file creates one table
and one index and needs nothing the feature line's 0221 to 0230 create,
and a v0.5.101 database, which has 0235 to 0238, applies it on upgrade.
The REST contract goes to 3.53.0, with the OpenAPI document, both
contract fingerprints and the MCP skill snapshot regenerated.

APIKEY-R8 and the new APIKEY-R11, docs/{en,de,fr}/platform/admin/
api-keys.md, the manual boxes SET-F103 and SET-B48, SET-F112, the
automation register and the error-code reference say so.

Closes #5397
@yannickmonney yannickmonney added the merge-train A merge train's pull request into main label Nov 6, 2026
@yannickmonney
yannickmonney enabled auto-merge (rebase) November 6, 2026 13:04
@yannickmonney
yannickmonney merged commit 3d802f9 into main Nov 6, 2026
103 of 106 checks passed
@yannickmonney
yannickmonney deleted the train-20261106-1304 branch November 6, 2026 13:29
@yannickmonney

Copy link
Copy Markdown
Contributor Author

Release lease: v0.5.102

  • Holder: the release lane, acting for the owner (asked 2026-11-06 to release this train as v0.5.102 today).
  • Candidate: 3d802f94f4c21b0cf194d7327734217519e11d6d. It is this pull request's merge commit, and the commit that added .github/release-notes/v0.5.102.md. Its tree equals this pull request's head 663f6fd00.
  • Version: v0.5.102
  • Acquired: 2026-11-06 13:48 UTC.
  • Expires: 2026-11-06 16:48 UTC (renewable once).

State at acquisition:

Next: the gate once the seven runs finish, then the release-tag dispatch. I'll release the lease here with the outcome and the receipt.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Release lease released: v0.5.102 is published

  • Holder: the release lane, acting for the owner.
  • Released: 2026-11-06 14:30 UTC, before the 16:48 UTC expiry.
  • Outcome: v0.5.102 is published from candidate 3d802f94f4c21b0cf194d7327734217519e11d6d and is GitHub's latest release. It is the third release of the day, after v0.5.100 (00:55 UTC) and v0.5.101 (09:33 UTC). Everything RELEASING.md step 5 checks is verified.

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

What Identity Result
Candidate 3d802f94f4c21b0cf194d7327734217519e11d6d, version v0.5.102 this pull request's merge commit, the notes commit; its tree equals this pull request's head 663f6fd00
Candidate runs Build 42228027110, Checks 42228027242, SAST 42228027573, Commitlint 42228027116, E2E 42228027143, CLI 42228027141, Security 42228027150 all success, first attempt, the last at 14:08 UTC
Gate release-candidate-gate.ts --sha 3d802f94… --version v0.5.102, run at 14:08 UTC eligible, no reasons (arrival #5408 at 13:29:19 UTC, validation Build 42228027110)
Tag Release tag run 42231445609 ran the gate again and pushed v0.5.102 at the candidate pushed 14:10:45 UTC
Release Release run 42231603826 success; GitHub release published 14:19:42 UTC with Highlights, Upgrade notes, API contract changes and the PR list
Images all 12 services (tale-platform, -db, -proxy, -session-manager, -docs, -ui-docs, -web, -sandbox, -sandbox-runtime, -sandbox-buildkitd, -sandbox-llm-gateway, -sandbox-egress), :0.5.102 and :latest, linux/amd64 and linux/arm64 each org.opencontainers.image.revision is the candidate, each org.opencontainers.image.version is 0.5.102
Publish packages run 42232947466 success; ui-v0.5.102 (b66681851) and marketing-ui-v0.5.102 (02199deb6) both record from 3d802f94f4c21b0cf194d7327734217519e11d6d
CLI run 42232965004 on the tag success; tale_linux, tale_linux_arm64, tale_macos, tale_macos_x64 and tale_windows.exe attached with tale_checksums.txt by 14:29 UTC, and each binary's GitHub digest equals its line in tale_checksums.txt

Holds, read again before the tag at 14:09 UTC:

Other checks:

A published version is not a deployment; Ops adopts it with its release adopter.

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

1 participant