Repository navigation
chore: merge train 20261102-1557 - #5328
Merged
Merged
Conversation
The member list now answers whether each member uses two-factor authentication and how many passkeys they hold only to owners and admins; every other role gets the same rows without those two fields. Task: TALE-387
The app's project agent list now keeps each agent's credential pins and commit identity from the backend's rows, so the agent dialog opens on them as stored, and an edit sends them only when they differ from what the dialog opened on. Before, the dialog opened on neither and saved both as empty: an owner's or admin's save of any other setting cleared the agent's pins and its commit identity, and an editor's save of a pinned agent was refused. PROJ-R23 now says that a save keeps what it does not change, and adapter and dialog tests hold it. Task: TALE-388
Under Settings > Data residency > Embedding model, a custom provider in front of a gateway lists the gateway's embedding models, but picking one left Vector width empty: a listing carries no width Tale reads, and Tale's own catalogs were asked about a gateway's row for its chat facts only. A Bifrost gateway routing openrouter/qwen/qwen3-embedding-8b showed the width error (before 0.5.96, Save went off without a word), although OpenRouter's shipped catalog curates that very model at 1536. A gateway's row for an embedding model now takes the width a shipped catalog curates for it when the row names the model exactly as that catalog does, or behind the catalog's provider as gateways do (openai/text-embedding-3-small, openrouter/qwen/qwen3-embedding-8b), so the pick fills the width and Save turns on. Only the width is taken, never the catalog's recommendation. The same model under another provider's name (alibaba/qwen3-embedding-8b) or another spelling carries no width, since Qwen3 Embedding 8B answers 4096 dimensions unless asked for fewer, and only the curating provider is known to honour the 1536 it is asked for. A row Tale knows as an embedding model by id alone is now offered as one instead of as nothing; a known speech or image model still is not. Checked against a live Bifrost gateway on a local stack: the pick fills 1536, Save stores it, a document is indexed through the gateway at 1536 and a search's dense leg finds it. A saved model switched to the gateway and back fills the width again at each pick, with Save off in between, and a switch from a model of another width embeds the documents again through the gateway. Docs (EN, DE, FR) and the manual box DATA-F14 describe the filled width and the switch.
A documentation screenshot could only be retaken on a person's machine, with the disposable stack of the docs-screenshots runbook. The new Docs screenshots workflow builds tale-db from services/db, starts it and the pinned object store on the runner, boots the mock gateway and the platform with the synthetic fixture config as the runbook does, and runs bun run docs:screenshots for the shots and locales it is given. The inputs reach the shell only through env and are checked against --list before the stack starts. It is dispatched by hand, or started by a push to a docs-screenshots/ branch, which captures agent-consent in English so that a change to the workflow can be proven before the default branch holds it. It has read-only contents permission, uses no secret and no model provider, and uploads only the WebP files it wrote and the regenerated manifest, kept for 7 days; the session state, the stack's logs and the image build's record stay on the runner. The runbook gains a Capture in CI section, CI.md names the job's runner, and the Forgejo port ports the workflow without its push trigger. Closes #5263 Task: TALE-357
A move to another embedding model of the same vector width kept the old model's vectors. Vectors are kept per width, so the save found every indexed document complete at that width and re-queued nothing, Reindex skipped the unchanged document, and search by meaning compared the new model's queries with vectors no query of it can match. Only a change of width, or deleting and uploading again, refreshed them. Each document and email body in the knowledge corpus now records the model that embedded it, by the name the settings state (knowledge-db migration 17, a nullable column). Indexing reuses stored chunks only under that model: a document another model embedded is embedded again from its first chunk, a slice run resumes only under its own model, identical content is copied only from a document the model embedded, and a run stops writing once a run of another model claimed its row. Saving the embedding settings re-queues the indexed documents another model embedded, beside those with no vector of the width, and search by meaning reads only the vectors of the query's own model meanwhile. The name and the width decide, never the provider: the same model saved through another provider re-queues nothing. Documents indexed before this change record no model and pass for the model stated. Saving or removing the model first stamps them with the model stated until then, read a page at a time, and a save that names another model is refused while the knowledge database does not answer. A file or an email body whose run read the settings before a save moved them goes back in the queue once its run ends, for a change of width too. The daily corpus reconcile re-queues whatever the stated model has not embedded, which catches what a save could not reach, such as a document the previous image indexed while a deployment rolled. The width field's hint says that another model is embedded again. Websites stay as they were: within one knowledge database a page is stored once for every organization that tracks the site, with one vector per width, so a change of model at the same width keeps the old model's vectors there. The spec and the docs say so. Proven by unit tests, the checkEmbeddingModelChange lane on real Postgres, and a live run on a local stack with two models of one width behind a mock gateway: the save embedded both documents again with the new model, the same model through a second provider embedded nothing, and Reindex embedded an outdated document again. Docs (EN, DE, FR), the spec's KNOW-R17 and the manual box DATA-F15 describe it. Refs #4935
Twilio's get_account now builds its four declared members from Twilio's answer instead of handing the whole answer on. GitHub's repository, issue, pull request and code search reads now hand their answers on without temp_clone_token. Task: TALE-418
tale-code-bot
enabled auto-merge (rebase)
November 2, 2026 15:58
The data-residency check saves a bring-your-own knowledge connection whose database never answers on CI (the pool takes `prefer` as TLS, which the itest Postgres lacks), then saves another embedding model. Since 8d148e3 a save that names another model than the stated one is refused while that database does not answer, so the check failed with a 503 on train-20261102-1557. A removal goes ahead regardless, so the check now removes the model an earlier lane stated before it saves.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cut: 671d0b9
The stable line's merge train: the six commits between
mainand the cut. The Reviewer squashed four of them ontotrainbehind the fast gate (formatting, typecheck, build). A maintainer pushed the third and the fifth totraindirectly, and the merge-train role checked them before departure (below).traincarries the stable line (main, 0.5.x) only: fixes, and the tests, docs and CI about whatmainships. Five commits arefix. TALE-357's isci, for the documentation screenshot harness thatmainalready ships. So nothing moved tofeature-trainbefore this departure. This pull request runs CI once for the whole train, in the scope its changed files select, 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(917e48d41fac6147a45e3dbf33561ae05df01e3f, the merge of #5296, tagged v0.5.96) is the train's base: the cut sits directly on it, so the commits apply unchanged.The train changes 61 files: 3406 lines added and 251 removed. Five files are added; none is deleted or renamed:
.github/workflows/docs-screenshots.yml;services/db/migrations/knowledge-db/private_knowledge/00000000000017_documents_embedding_model.sql;services/platform/backend/domains/knowledge/embedding-model.integration.tsandservice.model-moved.test.ts;services/platform/backend/domains/members/routes.list.test.ts.The 61 files are:
services/platform;services/db, the knowledge-db migration;configs, the GitHub and Twilio connector definitions;.github:CI.mdand the new workflow;tools/cli, the forgejo-port manifest and its README;packages/shared;docs, the same two pages in English, German and French.Matched against
.github/ci-scope.ymlby a local reading of its globs (the scope job of this pull request decides), they fall in these scopes:all,added,build,build_image_inputs,build_platform,build_db,build_docs,build_storybook,build_ci_tests,e2e,e2e_platform,e2e_web,e2e_docs,integrationandcli. That is not the full scope.The new
Docs screenshotsworkflow runs only on dispatch and on pushes todocs-screenshots/branches, so this pull request does not run it. GitHub dispatches it oncemainholds it. Its CLI tests and the workflow guards run here.Checked before departure:
192e2c105, the train before the third commit:bun run knip:check, the whole-repository lint (bunx turbo run lint),bun run lint:conflictsandbun run lint:links;test:browser, Chromium), UI (test:ui) and server (test, the server and pii projects) suites.golden-errors.test.tsandrender_fetch.test.tsthat its Node 24 fails, the same 16 as onmain's tree.4db8ab04c, for the third commit, all green:bun install --frozen-lockfile,bun run format:check,bunx turbo run typecheck build): 24 of 26 tasks passed.@tale/cli#buildand@tale/web#buildstopped only at the downloads the checking worker cannot reach, and none of the commit's files is among their inputs;@tale/platform,@tale/sharedand@tale/docs;bun run knip:check,bun run lint:links,bun run lint:conflictsandbun run lint:manual;data-residency-settings.test.tsxunder the UI configuration: 70 tests;catalog_fetch.ts,catalog_normalize.tsand their importers: 458 tests;66e26875c, for TALE-357, all green:bun install --frozen-lockfileandbun run format:check;tools/clitest files, 1479 tests: the 38 that read.github/workflowsor.github/CI.md, and the rest of the forgejo-port tests;packages/e2e'sconfig.test.ts(5 tests) andservices/sandbox'se2e/incus/workflow.test.ts(13 tests);turbo-inputsandintegration-scopeguards,tests/docs-screenshots/manifest.test.tsandlib/mocks/contract/openai-compat.test.ts: 124 tests;capture-product-screenshots.test.tsandturbo-inputs.test.ts(11 tests), and the docs site'simage-manifest.test.ts;@tale/cliand@tale/platform;bun run knip:check,bun run lint:links,bun run lint:conflictsandbun run lint:manual.ytdlp_live.test.ts, which runs only withYOUTUBE_LIVE_TEST=1.66e26875c, the train's first four commits: the platform's server (test, the server and pii projects), UI (test:ui) and browser (test:browser, Chromium) suites. As on192e2c105, they failed only where the checking worker differs from CI:golden-errors.test.tsandrender_fetch.test.tsfailed;automation-editor.browser.test.tsxthat timed out under load; that file passes alone (27 tests).66e26875c:packages/shared's suite: 1143 tests, all green;bunx turbo run storybook:build --filter=@tale/platform, what CI's Storybook job builds for the platform): green. The other three Storybooks take nothing from the train but a doc comment inpackages/shared;bun run generate(bun test --timeout 30000): 3956 passed, 42 skipped. The 8 that failed need what the checking worker lacks: six historical rebuilds insrc/lib/config/releases/needgit archive --mtime, and the two source archives ofscripts/action-archive.test.tsexceed its 512 MiB file-size limit;bun run configs:validate, which the Build job runs: 12 provider connectors, 9 model catalogs, 10 harnesses and 24 connectors validated;bunx turbo run test:prerender --filter=@tale/docs, which the Checks build job runs after the build): 11 tests in 2 files, all green;bun run test:performancewith 3 samples instead of the Performance job's 20: all 24 default workloads passed their correctness checks. Its latencies are measurements, not budgets.8d148e30eand TALE-418, which reachedtrainat 15:34 and 15:38 UTC:bun install --frozen-lockfileandbun run format:checkpassed, andbunx turbo run typecheck buildpassed 24 of its 26 tasks.@tale/web#buildstopped only at its fetch of the GitHub releases list, and none of the train's files is among its inputs.@tale/cli#buildcompiled the Linux binary and stopped at the download of Bun's macOS target. Neither commit's files are among its inputs, but TALE-357's forgejo-port manifest and README are, so this pull request's Build is its proof;bunx commitlint --from 917e48d41fac6147a45e3dbf33561ae05df01e3f --to <cut>, the command of the Commitlint job: six commits, no problem;@tale/platformand@tale/docs,bun run knip:check,bun run lint:links,bun run lint:conflictsandbun run lint:manual: all clean;test, the server and pii projects): 91725 tests passed and 13 were skipped. The 16 that failed are the same 16 tests ingolden-errors.test.tsandrender_fetch.test.tsthat the checking worker's Node 24 fails onmain's tree;lib/i18n/messages.test.ts(37 tests),packages/ui's i18n suite (231 tests) and the docs suite (778 tests);bun run configs:validate: 12 provider connectors, 9 model catalogs, 10 harnesses and 24 connectors validated;bun run generate: 3956 passed and 42 were skipped. The 8 that failed are the same 8 as on66e26875c, which need what the checking worker lacks.8d148e30e:embedding-model.integration.tsandvector-width.integration.ts, which need a real Postgres. This pull request's Backend integration job runs the integration check, which the commit extends withcheckEmbeddingModelChange;inputs.*throughenv:and puts no${{ }}in arun:script. It has nopull_request_targetorworkflow_runtrigger and noactions/github-script. So the GitHub Actions injection and checkout rules do not apply.curlcalls tohttp://127.0.0.1fall undercurl-unencrypted-url, whichtools/opengrep/excluded-rules.txtexcludes.regexandgenericrules, read with Python'sre) match nothing in the train's 61 files.child_process,eval,new Function, raw HTML orhttp://request.8d148e30e, the onlyhttp://address is the base URL of the integration test's own loopback server. Itsunsafestatements are built from module constants and pass every value as a parameter. The registry's insecure-transport rules match onlyhttp.request,http.get, axios, got and node-rest-client calls on anhttp://literal, and its SQL injection rules coverpg, mysql, sequelize and knex.This pull request runs the full suites again on CI's own runners.
git merge-tree --write-tree origin/feature-train <cut>, withfeature-trainat51b88999169a0700ed8ce3bfa4faf465b081c055, conflicts in 12 files. Five come from the first four commits:services/platform/app/lib/backend/contract/members.ts;services/platform/app/lib/backend/documents.ts;services/platform/tests/manual/reference/automation/projects.md;services/platform/tests/manual/readme.md;services/platform/tests/docs-screenshots/README.md, where both lines add a section after the capture steps.The other seven come from
8d148e30e, the change of embedding model, which crosses the feature line's knowledge work:backend/core/knowledge/corpus.ts,indexing.ts,indexing.test.tsandsearch.test.ts,backend/domains/knowledge/message-index.tsandroutes.test.ts, andbackend/integration-check.ts.One collision gives git no conflict at all. Both lines add a
private_knowledgemigration numbered 17 to the knowledge database: this train adds00000000000017_documents_embedding_model.sql, and the feature line has00000000000017_chunks_core_offset.sqland00000000000018_chunk_vectors_org_index.sql. dbmate keysprivate_knowledge.schema_migrationsby that number, so the two lines cannot both ship a 17. As with the requirement and case IDs the two lines share, the fix keeps its number once this train brings it tomain, and the feature line's two migrations move to the next numbers free on both lines in its rebase.The feature-train role's run of 15:25 UTC (its receipt on TALE-239) rehearsed its rebase of
release/0.6andfeature-trainagainst this train. It found this collision and one more that git does not flag:DocumentCorpusReadernow takes the embedding model as a third argument, and nine calls the feature line adds pass two. Its decision for step 3: this train's migration keeps 17, the feature line's two become 18 and 19, and the nine calls pass the model. The resolutions of the text conflicts, and what the new workflow's artifact has to carry on the feature line, are on that task too.Commits (6):
trainby a maintainer; no task)trainby a maintainer; no task)Task keys: TALE-387, TALE-388, TALE-357, TALE-418
Fixed on this branch by the merge-train role (the commit is not on
train):076b8af22). Backend integration failed on671d0b968(Checks run 41476772536, job 125384699376) at the check "data residency: knowledge connection + embedding admin files", with a 503 fromPOST /api/app/knowledge/embedding. Since the maintainer's8d148e30e, a save that names another embedding model is refused while the organization's knowledge database does not answer. The check's bring-your-own database never answers on CI: the pool takessslmode: 'prefer'as TLS, which CI's Postgres lacks. The check now removes the stated model before it saves, and the change lets a removal go ahead.