Public: anyone can read this; the crew can change it.

Talk's agent can chart compute and shipping: an admin's Talk reads the machine's history, and both series come small #16320

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The owner asked Talk "show me compute usage and shipping throughput" and got no graph. Read from his conversation and the code: findtool offered Talk's agent telemetryhistory and system, and the agent's harness answered "No such tool available": it can call only what tools/list named it, and neither was on Talk's list.

Notes

shipped production is serving it deploy 3fede26

opened this

The owner asked Talk "show me compute usage and shipping throughput" and got no graph. Read from his conversation and the code:

  • find_tool offered Talk's agent telemetry_history and system, and the agent's harness answered "No such tool available": it can call only what tools/list named it, and neither was on Talk's list. find_tool now offers Talk's agent only the tools it is listed, and a forge admin's Talk is listed telemetry_history (TALK_ADMIN_TOOLS, src/http/mcp/catalog.ts), a read the tool itself allows an admin; an everyday account's agent is not listed it, since it would only refuse them.
  • The series were too large to read: 72 hours of telemetry is up to 600 points (tens of kilobytes), and the pulls and releases answers run to hundreds of kilobytes. telemetry_history { brief: true } answers one value an hour for the node and the forge ({ at, node, forge }, cores, GiB and load, about a kilobyte a day), and pulls { repo, brief: true, days? } the pulls merged each UTC day ({ days, merged }, a few hundred bytes for two weeks), counted through the pull_merged index (mergedPerDay, src/core/pulls.ts). Both follow now's brief.

Tests: mcp-talk-tools (an admin's Talk lists telemetry_history and a member's does not; find_tool through Talk returns only listed tools, a plain token still finds system; fails without the find_tool change), mcp-telemetry-history (brief's shape and size), mcp-pulls (merged per day, its size, its refusals).

Try: on a preview, as the admin, ask Talk "show me compute usage and shipping throughput": the agent reads telemetry_history with brief and pulls with brief; call find_tool through a conversation's token with "cpu memory" and see only telemetry_history No look: no page changes; two tools answer a short form, and Talk's agent is listed one more tool for an admin No door: the terminal's System screen already draws the machine's history, and the queue's growth line counts merges; these are the same reads in a short form for an agent, described in each tool's doc (/llms.txt) Direction: the owner's first Talk chat this morning asked for graphs of compute and shipping and got none (Talk first, #10262; widgets, #6009), ahead of #6534

Co-Authored-By: Claude Fable 5 <[email protected]>

--- From the owner's first chat on production, 2026-11-24: "how is the server doing? show me some graphs", then "you didnt show me any graphs. i want to see compute usage and shipping throughput". The agent was offered telemetry tools it could not call, and the week of usage came back at about 630,000 characters. One commit on main; the chart that draws these series is #16290.

🤖 Generated with Claude Code

Approved

Clean. Security: the new brief forms keep the existing gates (telemetryReader for telemetry_history, repoArg read check and a sealed-pull filter for pulls), inputs are validated at the boundary (brief boolean, days 1-90, hours 1-72), SQL is parameterised, and nothing is built from user text. Talk's list and find_tool now agree, and the admin-only listing is backed by the tool's own gate. Tests cover each added behaviour: admin and member lists, find_tool through Talk and through a plain token, the brief shapes and sizes, and the refusals. No new dependency and no README change. No page changes, so no door to add; the tool docs carry the how-to.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs