Repository navigation
Description
Summary
services/platform/tests/manual/setup.md mode A ("Deterministic, offline (mock gateway)") can't be followed to a working chat. It says that to chat on a wizard or API-minted org you "add the mock provider's credential under Settings → AI providers first (or mint the org via save-auth-state.ts, which seeds it)".
Neither step works:
- Settings doesn't offer the mock. Add credential has no E2E Mock Gateway until
providers/e2e-mock.ymlis copied into that org's config directory, a step the doc never names. save-auth-state.tsdoesn't seed it. The script never seeds a provider.
So every mode-A chat box is blocked for a tester who follows the setup file. That includes CHAT-F19, and CHAT-F57/CHAT-F58, whose e2e:empty, e2e:length and e2e:stream-error triggers #4012 added to this same file's trigger table today.
The same paragraph also describes the fixture's connector catalog as "a symlink to the real builtin-configs/connectors". That link, and default/token-sources, have dangled since #2857 removed builtin-configs/ (2026-07-29).
Source and environment
- Source:
origin/mainb7d1c1d7ef1b6755fad8a75da122159d8d3a6138. - Environment: a local mode-A stack started exactly as
setup.md§1.A says, owned by the TALE-358 local-qa occurrence 2026-10-03 00:15 Zurich, run820db997-15c0-43a4-a678-23bd1714628f:bun lib/mocks/start.tson127.0.0.1:4141;bun scripts/dev.tswithTALE_CONFIG_DIRset to a copy oftests/e2e/fixtures/configandTALE_CONFIG_BUILTIN_DIRto itsdefault/, plusTALE_PROVIDER_KEY_E2E_MOCK;- backend
127.0.0.1:3656, Vitelocalhost:3651, this occurrence's own PostgreSQL127.0.0.1:55370; - headless Chromium 145 (Playwright 1.58.2); synthetic accounts.
Impact
A human or AI tester can't start any mode-A chat round from the setup contract. The manual layer says every guide "assumes the environment … this file produces", so the chat suite's mode-A boxes are effectively unrunnable without reading test code. This round needed tests/docs-screenshots/seed-demo-org.ts:969-1070 and the fixture file's own header comment to find the missing step.
Stale statements (setup.md at b7d1c1d7e)
- L60-66: "To chat in mode A on a wizard org, add the mock provider's credential under Settings → AI providers first."
- The vendor catalog doesn't offer E2E Mock Gateway until the provider file is in the org's config dir; see reproduction A below.
- The fixture's own header says so (
tests/e2e/fixtures/config/default/providers/e2e-mock.yml:3-8): "the interim org scaffolder seeds only the domains inlib/shared/config/registry.ts— which excludeproviders— so e2e orgs do NOT pick this up automatically yet; a chat e2e rebuild must copy it into the worker org's config dir and connect an env credential (TALE_PROVIDER_KEY_E2E_MOCK), the same two movestests/docs-screenshots/seed-demo-org.tsmakes for the docs org."
- L65-66: "(or mint the org via
save-auth-state.ts, which seeds it)."tests/manual/scripts/save-auth-state.ts:105-111only signs up, runs the wizard and waits for the starter project. It copies no provider file and creates no credential. - L49-53: every new org "scaffolds from the hermetic fixtures (the
e2e-mockprovider, the E2E Assistant agent)", andsave-auth-state.ts"wait[s] for 'E2E Assistant'".- The provider isn't scaffolded (see 1).
- The wait is now for the starter project (
tests/e2e/helpers/auth.ts:196-221).
- L57-58: "The connector catalog in the fixtures is a symlink to the real
builtin-configs/connectors."tests/e2e/fixtures/config/default/connectors → ../../../../../../../builtin-configs/integrationsanddefault/token-sources → …/builtin-configs/token-sourcesboth dangle, because feat(platform): rewrite the AI backend on a minimal YAML-config core #2857 (2743ee48e) deletedbuiltin-configs/.- The catalog still renders: Add credential on Settings › Connectors lists Confluence … WebDAV. So the links are dead weight and the sentence is wrong.
Deterministic reproduction
The probe is scripts/c3-provider-catalog.ts, retained with its log and screenshots in the TALE-358 evidence archive TALE-358-local-qa-r20261003T0015-evidence.tar.gz.
- Start mode A as in
setup.md§1.A. Sign up and create an org (the API door the e2e helpers use, or the wizard), then wait for the scaffold. - Open Settings → AI providers → Add credential.
- Observed (A): the catalog lists Anthropic, Azure OpenAI, DeepSeek, Gemini, Moonshot AI (Kimi), Nous Portal (Hermes), OpenAI, OpenRouter, Qwen (Alibaba), SpaceXAI, Vercel AI Gateway and Z.ai (GLM). There is no E2E Mock Gateway (
mockOffered: 0).
- Observed (A): the catalog lists Anthropic, Azure OpenAI, DeepSeek, Gemini, Moonshot AI (Kimi), Nous Portal (Hermes), OpenAI, OpenRouter, Qwen (Alibaba), SpaceXAI, Vercel AI Gateway and Z.ai (GLM). There is no E2E Mock Gateway (
- Copy
tests/e2e/fixtures/config/default/providers/e2e-mock.ymlto$TALE_CONFIG_DIR/<org-slug>/providers/e2e-mock.yml, then reopen Add credential.- Observed (B): E2E Mock Gateway is offered (
mockOffered: 1).
- Observed (B): E2E Mock Gateway is offered (
- With it connected as an env credential (
E2E_MOCK), mode-A chat works.- Control: in the same round,
CHAT-F57(e2e:empty,e2e:length),CHAT-F19(e2e:error) and a plain prompt all behaved as their boxes say, in EN, DE and FR.
- Control: in the same round,
Expected
setup.md mode A names every step needed to chat on a fresh org, or a script it points to performs them. Its descriptions of the fixtures match the tree.
Acceptance checks
- The provider wiring works from the doc. Either
setup.md§1.A documents both moves (copyproviders/e2e-mock.ymlintotests/e2e/fixtures/config/<org-slug>/providers/, then add an env credential namedE2E_MOCKunder Settings → AI providers), orsave-auth-state.tsperforms them the wayseed-demo-org.tsdoes, and the doc says so. - L49-53 and L65-66 are corrected: what scaffolds, and what
save-auth-state.tswaits for and seeds. - The dangling links are resolved:
default/connectorsanddefault/token-sourcesare removed or repointed, and L57-58 describe the real catalog source. - The gates stay green:
bun run lint:manual, andtests/manual/scripts/check-guide.tson the touched guide. - A fresh tester can run it: following only the setup file, a tester reaches a mock reply and can run
CHAT-F57.
Limits
- Checked on one local mode-A stack. Mode B (
bun run dev) and mode C (docker:dev) weren't started, because this host has no Docker. - The connector-link point is documentation and tree hygiene only: the runtime catalog is unaffected (observed).
Activity
docs(manual): document the mock provider wiring for setup mode A (#4137)
yannickmonney commentedon Oct 4, 2026
Post-merge recheck of #4105 on
main33900e44f: passes. I recommend closing #4105.PR #4137 merged on 2026-10-03 at 17:02:51Z (merge commit
9fa2bf23e), at heada0b5c48a0. That is the head agent #3 reviewed and accepted (PR comment 5970266621). Its body refers to #4105 without a closing keyword, so the issue stayed open.--chat-max-widthCSS variable #3 (4aec6e61-0328-4213-9719-02d387dee65d), runbe852ac8-32e5-4925-83cb-764763e2f2ff, occurrence 2026-10-04 20:15 Zurich. Agent add--chat-max-widthCSS variable #3 filed docs(manual): setup.md mode A can't wire the mock provider it tells testers to use #4105 and reviewed docs(manual): document the mock provider wiring for setup mode A #4137; it didn't write docs(manual): document the mock provider wiring for setup mode A #4137.Checks against the acceptance list
The wiring is in the guide (
services/platform/tests/manual/setup.md§1.A onmain)::81–89) copiestests/e2e/fixtures/config/default/providers/e2e-mock.ymlintotests/e2e/fixtures/config/<org-slug>/providers/.:91–101) adds an Environment variable credential namedE2E_MOCKunder Settings → AI providers.TALE_PROVIDER_KEY_E2E_MOCK(:40).The corrected lines are unchanged since acceptance, and so is the code they describe.
setup.mdandscripts/save-auth-state.tshave no commits after the merge, so they are byte-identical toa0b5c48a0.lib/shared/config/registry.ts,organizations/scaffold.tsandconfig_store/builtin_catalog.tshave no commits since then either.registry.tsstill gives exactly two domains ascaffoldKind(:82flat,:136bundle), which matches the guide's "governance/andskills/".lib/chat/assistant.ts,configs/platform/system/{connectors,providers}and the four environment names shared withplaywright.config.tsall exist.The dangling links stay resolved. No
default/connectorsordefault/token-sourceslink remains.:60names the shipped system tree as the catalog source. Every concrete path the guide names exists onmain.The gates pass:
bun services/platform/tests/manual/scripts/check-guide.ts services/platform/tests/manual/setup.mdgivesOK, andbun run lint:manualgives ok (1455 boxes).A fresh tester can run it. This was verified live at
a0b5c48a0on a fresh mode-A stack: no provider at first, then the wiring, then the canned reply byte for byte, thenCHAT-F57(review record, steps 1–8). What the guide relies on still holds onmain:TALE_PROVIDER_KEY_prefix is enforced (backend/core/provider_credentials/resolve_credential.ts:550,backend/domains/provider_credentials/service.ts:480);TALE_CONFIG_BUILTIN_DIRis read bybuiltin_catalog.tsandorganizations/scaffold.ts;check-guide).Two later changes touch the credential UI, and neither alters step 4's path:
--chat-max-widthCSS variable #3's own change, disables Back while a save is pending.Limits
fullavg60 was about 24% at 18:15Z.tale-code-bot commentedon Oct 29, 2026
Done by #4137 ("docs(manual): document the mock provider wiring for setup mode A", merged 2026-10-03 as 9fa2bf2), which is on
main. It referenced this issue without closing it.main9be5cad the issue's checks 1-4 hold:lint:manualandcheck-guide.tspass onservices/platform/tests/manual/setup.md.setup.mdsection 3 lists 7 of the 11MOCK_TRIGGERS.Closing as completed. Checked by the development cycle (task TALE-59).