Skip to content

chore: feature train 20261103-1833 - #5347

Merged
tale-code-bot merged 8 commits into
release/0.6from
feature-train-20261103-1833
Nov 3, 2026
Merged

tale-code-bot merged 8 commits into
release/0.6from
feature-train-20261103-1833

Conversation

@tale-code-bot

Copy link
Copy Markdown
Collaborator

Cut: 69f4822

The twelfth feature train of the 0.6 line. It carries the commits feature-train collected on top of release/0.6 (77c645d9ea671d407ae9052c7961af81d013ccd0), oldest first. That base holds main at 6a4ff01715e52a3fce53b33b4d41208bd84c2dd6.

  • perf(platform): keep the Home panel out of a board's ?task= changes
  • feat(platform): report a dispatch gate from an automation step
  • perf(platform): serve the connector bridge to agent CLIs over HTTP
  • feat(platform): ship scenarios for the Tavily connector
  • feat(platform): ship scenarios for the Twilio connector
  • refactor(platform): retire the mock gateway's connector half
  • feat(platform): ship scenarios for the Microsoft Teams connector

Task keys of their Task: lines: TALE-46, TALE-204, TALE-137, TALE-414, TALE-416, TALE-422, TALE-415.

Their issues are #3974 (TALE-46), #4991 (TALE-204), #4728 (TALE-137), #5322 (TALE-414), #5324 (TALE-416), #5327 (TALE-422) and #5323 (TALE-415). GitHub closes an issue only for a commit on main, so the feature-train role closes them once this pull request landed.

Since the last train, the feature-train role rebased release/0.6 from f9166d53d17c083e5840cfc2c9c7274a1a059337 onto main at 6a4ff0171 (four commits of main), and feature-train along with it. Two conflicts git did not flag were fixed inside the feature commits that met main's change, and are already on release/0.6: the EU/EEA commit of TALE-222 (now 3b2a7829669fe582d57079128af29ea8a7fbf29f) sends Auto's reroute in turn_action.ts through the EU/EEA gate with the new resolveDirectWire signature, and the chat tool status rule of TALE-213 (now 9fd9694f5e12e90e7a4ca9b18edda1083970f6cd) moved from CHAT-R36, which main took, to CHAT-R39. This pull request is the first full CI on the rebased line.

The feature-train role lands this pull request by rebase once every check passed, so each task stays one commit on release/0.6. It ships with 0.6.0.

A board writes the open task into the address (?task=) and takes it out
on close. The Home panel beside it read the whole location and was not
memoised, so the shell rendering again on each navigation rendered the
whole panel with it: 488 components on every open and every close of a
2,000-task board's dialog (#3974).

HomePanel is now memoised and reads only what it shows, through the
router's selectors: whether the page lets it fold, the Home location it
marks as current (structurally shared, so an equal one keeps its
reference) and the project a new chat files its draft row in. A query
parameter it does not read renders none of its components; its router
links still follow the address themselves, as every link does.

The panel's suites stand in the router's useLocation with a shared stub
that reads through select and structuralSharing as the router does, so a
reader that takes the whole location renders again in a test as well.
A case renders the panel in a frame that reads the whole address, as
HomeSectionFrame does, and counts the navigator's renders through its
view switcher, which holds the memo boundary. TASK-P4's automation row
and pin name the new cases.

The other costs of #3974 landed earlier: the modal's page-wide style
pass (f2ce982), react-query's observer bookkeeping (#4062) and the
dialog's second wave of reads (113ef5c and #5231).

Closes #3974

Task: TALE-46
A dispatch gate's signal could reach Tale only from a program outside it
that holds an API key. The task connector gains task.report_gate, so a
scheduled or triggered automation can read the signal with its own
connectors and report a state, or a value the gate judges, with a reason.

The step is held to the REST door's bar. The run's automation must be
installed in the gate's active project; a run a person or an API key
started reports only while that person may edit the project; a trigger's
run answers to its installation; a run dispatch or nobody started is
refused. Only a declared gate takes a report, refused otherwise with the
writer's DISPATCH_GATE_UNKNOWN and DISPATCH_GATE_VALUE_UNJUDGED. The gate
names the run (run:<runId>) as its reporter, from which its automation
is found, and the step's output on the receipt shows the report. A
report from a step counts like any other: it restarts the stale window,
and one that opens the gate asks for a pass.

TASK-R51 lets an automation of the project report. PROJ-F78 keeps the
dispatch page's half in the manual layer. The docs show an automation
that reads the Actions queue and reports the ci gate, and name both ways
to report: the step and the REST API.

Closes #4991

Task: TALE-204
Every managed turn of a CLI with MCP started tale-connectors-mcp, a Node
stdio relay holding about 46 MiB RSS, only to forward MCP calls to the
platform's bridge doors. The platform now serves the same four tools
itself as a stateless Streamable-HTTP MCP server at
POST /api/connectors/mcp (CONN-R34, CONN-R35). Each request presents the
turn's session token, checked as /api/connectors/execute checks it, and
its tool calls go in-process to the same doors with the same body, under
the app's error handler, so grants, audit rows, answers and errors stay
the relay's. A long workspace tool reports progress over an event
stream, which a client may leave before the call ends. A missing,
unknown, revoked or expired token gets 401, and with no MCP session a
request acts only in its own token's scope. The edge routes the path in
the quiet lane of the bridge's doors.

Claude Code, Codex, Gemini CLI, Qwen Code and OpenCode mount it over
HTTP with the session key as their bearer token, read from where each
already holds it: the --mcp-config argv, Codex's exec environment, or a
${TALE_GATEWAY_TOKEN} or {env:TALE_GATEWAY_TOKEN} reference. OpenClaw
keeps the relay, because its wrapper would write the key into a config
the agent can read. The harness schema gains the remote mount
(bridgeHeaders, bridgeBearerEnv) beside the relay's, and tale-gemini-run
maps the server's URL as it mapped the relay's.

Closes #4728

Task: TALE-137
Tavily's two reads now ship scenarios, so a test can pick what Tavily
answers for a search or an extraction:

- search: two_results and answered (success, the latter when the call
  asks for an answer), no_results (empty), and invalid_key (401),
  rate_limited (429) and usage_limit (432, Tavily's status for a plan
  past its usage limit) as errors.
- extract: one_page and partly_failed (success, the latter for two URLs
  of which Tavily reads one), nothing_extracted (empty: Tavily answers
  HTTP 200 with no results and the URL in failed_results), and
  invalid_urls (400, when no URL passes Tavily's validation),
  invalid_key, rate_limited and usage_limit as errors.

Each error scenario raises the message the live body throws, with
Tavily's refusal as Tavily sends it, and the HTTP status.

extract declared `failed: string[]`, but its body hands on Tavily's
failed_results as they come: objects with the URL and the reason
(`{ url, error }`), as Tavily's API reference and the repo's mock spec
say. The signature gives way, not the body: it now declares
`failed: Array<{ url: string, error: string }>`, which is what live
calls have always returned, and keeps the reason each URL failed, which
a list of URLs would drop. Nothing in the repository read `failed` as
strings. The mock spec now types the items of failed_results the same
way.

Tavily joins SCENARIO_CONNECTORS, and TAVILY_PROOFS in the catalog test
proves each of its scenarios against its live body with the answer
Tavily gives for it, the API key handed over as a live call does.

Closes #5322

Task: TALE-414
Every Twilio action now ships its scenarios. The reads (list_messages,
get_message, list_calls, get_account, list_phone_numbers) each ship a
success, an empty answer and errors; the writes (send_sms, make_call)
each ship a success, a duplicate and refusals. Each error is the one
the live body throws, with Twilio's HTTP status: a rejected Account SID
and Auth Token (401), a rate limit (429), a message not found (404),
and an unsubscribed recipient (400, Twilio's error body handed on).
Twilio joins SCENARIO_CONNECTORS.

The catalog test proves each scenario against its live body: Twilio's
answer to the one request the action makes, with Twilio's placeholder
Account SID as the credential's username. The data is synthetic.

list_messages and get_message now declare date_sent as string | null.
Twilio answers null for a message it has not sent yet, both bodies hand
Twilio's message on whole, and the mock spec already allows null, so
the signature gives way: a scenario that hid the null would describe a
call that never happens.

Closes #5324

Task: TALE-416
The Convex sandbox's URL rewrite that sent connector calls to the mock
gateway left with the Convex backend, so nothing reaches the gateway's
connector routes any more. Remove that half: the ten connector OpenAPI
specs under lib/mocks/specs/connectors, their registry entries with
upstreamHosts and resolveMockUrl, and the connector contract test. The
gateway keeps its AI-provider and enterprise-SSO (OIDC) stand-ins, which
the E2E suite and the docs screenshots use.

Retire TALE_MOCK_CONNECTORS_BASE as well. Only the docs screenshot
capture's preflight still read it, as the gateway's address; the
preflight now probes 127.0.0.1 at MOCKS_PORT, the port the gateway
itself binds, and the screenshot workflow and runbook no longer set it.

Correct the texts that still described the connector half as live: the
Playwright config, the e2e AGENTS.md and README, the manual setup and
its connectors and settings suites, the screenshot runbook and seeder,
the ep7 docs video and the mock README. Where they need to, they now say
that adding a credential calls no vendor and that a run that must not
reach a vendor runs the connector's actions on their scenarios
(CONN-R33).

Closes #5327

Task: TALE-422
Every action of the Microsoft Teams connector now ships its scenarios:
each of the seven reads a success, an empty answer and an error, and
each of the two writes a success, a refusal and a duplicate. Each error
carries the message and the HTTP status its live body throws: an
expired access token (401), a missing scope (403), a team, channel or
chat that does not exist (404) and Graph's throttling (429). A repeated
post is a new message under a new id, since Graph does not de-duplicate
one.

Graph answers null for the description of a team or a channel created
without one, and for the topic of a one-on-one chat, so the output
signatures of list_teams, get_team, list_channels, get_channel and
list_chats now admit null there, and a scenario shows each such answer.

teams joins SCENARIO_CONNECTORS, and SCENARIO_PROOFS gives each of its
32 scenarios the answer Graph sends to the request its live body makes,
so the catalog test holds every scenario against that body and pins
the scenario names. The data is synthetic: GUIDs of zeros and
example.com addresses.

Closes #5323

Task: TALE-415
knip's unused-export check fails on the feature train: the connector
bridge's tools/list answer, BRIDGE_MCP_TOOLS, is exported, but only its
own module reads it. The bridge test holds it equal to the relay's list
by sending tools/list through the real relay, not through an import, so
the list needs no export.
@tale-code-bot tale-code-bot added the merge-train A merge train's pull request into main label Nov 3, 2026
@tale-code-bot

Copy link
Copy Markdown
Collaborator Author

Step 1 of the feature-train role (22:05Z): this branch's head is now 06001c6c4c411e0cdfa1b9de89af72190cce4e30, one commit on top of the cut 69f48229fd23f27a8ab940607dd832cb4329aa3b.

The Checks run on the cut (run 41695034330) failed three jobs:

  • Knip (job 126123198733) reports one unused export: BRIDGE_MCP_TOOLS in services/platform/backend/domains/connectors/bridge-mcp.ts:50, which came with 3b50d54 (TALE-137).
    • 06001c6c4 (fix(platform): keep the bridge's MCP tool list private) drops the export.
    • Only its own module reads the list. The bridge test compares it with the relay's list by sending tools/list through the real relay, not by importing it.
  • Browser (job 126123198678): no test failed in its log, but the run ended on an unhandled rejection, Error: route.fulfill: Route is already handled!, inside @vitest/browser-playwright.
    • On main's current head 6a4ff0171, the push run 41668146963 failed the same job with the same rejection (job 126028955621).
    • Run 41682084649 on that same head passed.
    • So this is a flake of the baseline, not code of this train.
  • UI (platform 1/4) (job 126123199126) was cancelled at its 15-minute limit.
    • Checkout's fetch took 442 s. Both test steps then finished green, and the limit cut the job 30 ms later.
    • UI and CI ready (Checks) failed only because of this shard.

Every other workflow's CI ready (…) check passed on the cut: Build, CLI, Commitlint, E2E, SAST, Sandbox Incus E2E and Security.

The push of 06001c6c4 runs every workflow again on the new head, so the old head was not rerun.

What 06001c6c4 passed in the role's worker:

  • bun run knip:check.
  • The fast gate: bun install --frozen-lockfile, bun run format:check, the @tale/platform typecheck, and turbo run typecheck build.
    • 26 of 28 tasks passed.
    • @tale/cli#build and @tale/web#build failed only on the network, and turbo run build --dry=json lists the changed file among neither's inputs.
  • turbo run lint: 17 of 17 tasks, run one at a time.
  • The bridge tests and the shipped connectors' catalog test: 3 files, 325 tests.

The role lands this pull request by rebase once every CI ready (…) check has passed on 06001c6c4.

@tale-code-bot

tale-code-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

Feature-train role, step 1 (22:30Z). Head: 06001c6c4c411e0cdfa1b9de89af72190cce4e30.

  • Fixed reds are green. Knip and Browser pass on this head. These CI ready checks passed: Commitlint, Security, SAST, CLI, E2E, Build and Sandbox Incus E2E.

  • One red left. UI (platform 1/4) failed: job 126236513032, Checks run 41727642594, attempt 1.

    • The failing step was "Run other workspace UI tests". @tale/session-manager#test:ui passed all 174 test files and 2570 tests, then reported one unhandled error.
    • The error was ReferenceError: document is not defined. It came from a @radix-ui/react-toast timer and is attributed to app/features/proxies/components/import-proxies-dialog.test.tsx.
    • So a toast timer fired after the test environment had been torn down.
  • The train is not the cause. The train changes none of that package's inputs: this command lists no file.

    git diff --stat origin/release/0.6 06001c6c4 -- services/session-manager packages/ui packages/e2e bun.lock package.json turbo.json
    
  • The same step passed elsewhere:

    On the cut's run 41695034330, @tale/session-manager#test:ui ran uncached and passed ("Tasks: 1 successful, 1 total", "Cached: 0 cached") at 18:49:20Z.

    • That was 30 ms before the job's 15-minute limit cancelled the step.
    • That package's inputs there are identical to this head's: the only commit since the cut changes services/platform/backend/domains/connectors/bridge-mcp.ts.
  • So: this is a timing flake outside the train. I reran the failed jobs once at 22:29:19Z (run 41727642594, attempt 2).

    • If attempt 2 fails the same way, the role will find and fix the cause instead of rerunning again.

The feature-train role will land this pull request with --match-head-commit 06001c6c4c411e0cdfa1b9de89af72190cce4e30 once every check has passed.

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