Public: anyone can read this; the crew can change it.
The contributor's walk of Talk's tools makes the calls that can run, not a thousand refused ones #17806
Merged 7h 7m ago, live in production
Main's verify on 48bec96d0 was red on one test of 36,247: test/invite-contributors.test.ts took 2.62 s of CPU alone, over the 2 s budget. The walk made 1,020 HTTP calls (51 tools, ten argument shapes, twice), and the dispatcher refused most of them by schema before any tool ran.
-
Reviews
ApprovedTest-only change, and it does what the issue asked. The walk now makes every call that fits a tool's schema plus one that doesn't, instead of 1,020 refused ones. It also mints one token per walk instead of one per call. It reuses the real
badArgumentvalidator, so the filter can't drift from the server's. The suite passes (15/15). No page, API, MCP or terminal door changes, so no TUI screen or docs/features entry is needed, and there is no new dependency. I have not run the walk with the new filter against a deliberately leaky tool to show it still catches the leak.Two things I would do next:
- Add a guard that fails if
calls(tool)returns no fitting shape for a tool in TALK_TOOLS. Otherwise a tool whose schema none of the shapes fit would silently be walked only by its one refused call. - Say in the pull how the 1,020 calls were reduced (before and after counts or run time), so the gain is checkable.
- Add a guard that fails if
-
Checks
shipped production is serving it deploy c4333e8
-
History
- invite-contributors' walk makes the calls that can reach a tool, not 1,020 (#17629) 81e2e15
- Connect your AI: connections come first, and Add and Edit look like one page (#17801) fc72624
- Merge pull request #17785 from sold/game-link-words 361c49e
- A saved model account can be edited, and Remove works from every page (#17786) dea9212
- A game box's command is never lost to its agent's update (#17791) c7fd7c1
- The branches page lists 30 rows a page, and a branch with a missing commit no longer empties it (#17790) 4a9e998
- Talk: choose the model where you write, in the build composer too, and it is remembered (#17789) 4b28afa
- Games: the terminal's L and the account page give a link code by one rule (#17610) da5f69b
- The branch and tag menu lists the newest few, with a find box for the rest (#17784) f20ac5b
- A test of a broken ledger gives its verdict back, so no later test reads it (#17788) 15f80d7
- A preview whose build was cut off is built again, never woken on empty data (#17775) 48bec96
- Games: everyone signed in can link a Minecraft name (#17610) 74462bc
- Merge pull request #17777 from sold/leaf-files-1 ca3a44f
- Games: someone not linked is told each step to link (#17610) 735cf40
- A new repository takes one git process, not two: the reflog setting is written into its config (#17781) fb6f1c8
- Four child processes started with an empty environment also skip .env files (#17779) 789c4a8
- A snapshot's full collection is a named job, so a stall line says when it held the loop (#17780) dc59f97
- The file parts of a cloud node sit with the other shared parts (#17532) 52b64c9
- Merge remote-tracking branch 'origin/main' into sold/leaf-files-1 6cd2d57
- Merge pull request #17778 from sold/held-worlds 8d747cf
Main's verify on 48bec96d0 was red on one test of 36,247: test/invite-contributors.test.ts took 2.62 s of CPU alone, over the 2 s budget.
The walk made 1,020 HTTP calls (51 tools, ten argument shapes, twice), and the dispatcher refused most of them by schema before any tool ran. Each walk now makes every call that fits, plus one refused call per tool so the refusal's wording is still read, on one token: about 140 calls instead of 510. What the test looks for is unchanged: the owner's walk finds both markers, and the contributor's finds none. No longer checked: the other refused calls, whose words never read a repository.
No product slowdown was found, and none is ruled out. Not run locally: the next verify is what proves it.
🤖 Generated with Claude Code