You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: SETUP.md mode A omits TALE_CONFIG_BUILTIN_DIR — orgs scaffold from the real builtin catalog, hermetic seeding never happens #2633
services/platform/tests/manual/SETUP.md §1 mode A claims its env values "mirror services/platform/playwright.config.ts — keep them in sync with that file", but the command block is missing TALE_CONFIG_BUILTIN_DIR. The org-create scaffold seeds every new org from $TALE_CONFIG_BUILTIN_DIR (convex/organizations/scaffold.ts, BUILTIN_ENV), so on a SETUP.md-mode-A stack every org — wizard and API-minted — scaffolds from the real builtin-configs/ catalog (OpenRouter provider, router agent, …) instead of the hermetic fixture (e2e-mock provider + E2E Assistant).
Consequences observed live (2026-07-11, main @ 94ef84e):
tests/manual/scripts/save-auth-state.ts can never succeed: waitForSeededOrg waits for "E2E Assistant", which never appears (reproduced 2×; org config dir got providers/openrouter.json + agents/router.json).
The whole "AI-directed manual testing" entry path documented by SETUP.md is broken for modes A/B.
SETUP.md's "Wizard-created orgs are NOT mock-wired" caveat block documents this very symptom as expected behaviour — with the env var set, wizard orgs DO seed from the fixtures and the caveat is obsolete.
Current behaviour
Following SETUP.md §1A verbatim, then bun services/platform/tests/manual/scripts/save-auth-state.ts:
Error: Seeded agent "E2E Assistant" never appeared for org e2e-org-… at http://localhost:3000.
and tests/e2e/fixtures/config/<org>/providers/ contains openrouter.json (real catalog), not e2e-mock.json.
Code pointers
services/platform/tests/manual/SETUP.md — mode A command block (missing var) + the now-obsolete wizard-org caveat
services/platform/playwright.config.ts — TALE_CONFIG_BUILTIN_DIR: path.join(dirname, 'tests/e2e/fixtures/config/default') with the explanatory comment
services/platform/convex/organizations/scaffold.ts — BUILTIN_ENV = 'TALE_CONFIG_BUILTIN_DIR'; seeds only from this root, no fallback to $TALE_CONFIG_DIR/default
Proposed change
Add TALE_CONFIG_BUILTIN_DIR="$(pwd)/tests/e2e/fixtures/config/default" to the SETUP.md mode-A command block, and rewrite/remove the "Wizard-created orgs are NOT mock-wired" caveat (with the var set, wizard orgs are mock-wired). Consider a comment in playwright.config.ts reminding that SETUP.md mirrors the env block.
Acceptance criteria
SETUP.md mode A block sets TALE_CONFIG_BUILTIN_DIR to the fixtures' default/ dir
bun services/platform/tests/manual/scripts/save-auth-state.ts succeeds against a stack started exactly per SETUP.md §1A
The wizard-org caveat is updated to match actual behaviour with the documented env
Activity