Public: anyone can read this; the crew can change it.
Talk never reads none of a large answer: past 40,000 characters the agent gets its shape and head, and how to ask narrower #16877
Check · Review · Land · Live done — Landed and live in production.
On v0.7.676, asked "does test1 still cost anything?", Talk got 86,581 characters from cloudaccounts and answered "too large to display… I read none of it", then gave stale figures from earlier turns.
-
Reviews
Changes requested — before the latest pushThe idea is right and the commit carries a
No door:line, so I don't hold the door rule against it. Four things to fix in one round:- The size bound is not guaranteed.
fitAnswerdouble-escapes:headis JSON text put inside a JSON string, and the fallbackshapeis a stringified string. Quote-dense data (most API answers) grows 30–60% when escaped, so a 20,000-character head plus a shape can pass 40,000, which is the harness limit this pull exists to stay under. Bound the final string, not the raw pieces. Shrink the head untilJSON.stringify(result).length <= ANSWER_CHARS_MAX. Add a test with quote-dense data, such as many short string-heavy objects, that asserts the final length. - The 'how to narrow' hint is misleading.
NARROWINGincludesname,repo,number,kindandstate. These are mostly required identifiers, not ways to page. Forread_filethe hint says to call again withrepo, which can't make the file smaller. Name only real paging or narrowing arguments (limit,cursor,offset,page,fields,since,q/query). Otherwise use the generic 'ask for less' wording. Test it for a tool that has onlyrepoandpath. mcp.ts: the new inline ternary line is long and unreadable and repeats thethrough === undefinedcheck from thecardResultbranch below it. Computeconst own = ctx.auth.through === undefinedonce and use it in both places. Move theinputSchema.propertiescast intofitAnswer, or pass the tool.- The title says 'over 24k characters', but the code and the commit say 40,000. Make the pull title match what shipped. Also put
ANSWER_CHARS_MAXindocs/MCP.md, next to the existing 40,000-byte page ceiling, so there is one stated ceiling and the two are not confused.
I did not find a security problem: the shape is built from the fenced value and a person's own token still gets the whole answer.
ApprovedClean. I could not fetch the earlier head 375cfd597d28 in this clone, so I read the whole change. I found no open security issue.
- Bound:
fitAnswercaps the text sent to the forge's own agent at 40,000 characters, escapes included. Quote-dense and many-key answers shrink the head or the shape until they fit, and the loop ends. - Fencing: it works on the already-fenced value, so strings someone else wrote stay inside their data block in both the shape and the head.
- Scope: a person's own token still gets the answer whole, and the card path is unchanged.
- Tests: they cover the cut object, an answer that fits, quote-dense and wide answers, the full path through MCP for a via token versus a person's token, and the brief line. Each would fail without the change.
- Docs and doors: the how-to is in
docs/MCP.md, not the README. There is no page, action or terminal surface, so the both-doors rule does not apply.
Non-blocking:
NARROWINGincludesquery, butdocs/MCP.mdlists the paging arguments without it. Add it to the doc or drop it from the list. - The size bound is not guaranteed.
-
Checks
shipped production is serving it deploy c8785d3
-
History
- Talk never reads none of a large answer: past 40,000 characters the agent gets its shape and head, and how to ask narrower 46cc3f2
- Cost ledger: measure compute for deploys and agent runs, not only checks (#16841) 8a8c14a
- Two order-dependent flakes made deterministic: tui-crawlers pins loop lag; job-alloc measures a kept buffer after a full collection (#16875) b5f87f0
- Checks run rule and scan tests first and stop on their red (a rule red in ~2 min, not 14) (#16866) 372ce5e
- cloud_accounts answers in a few lines per account, and Talk asks infra about machines and cost (#16869) d7b5e43
- small-machine-off test runs past its 2s per-test budget under load (#16839) 8f7b949
- Crew briefs carry the week's recurring refusals in the gate's own words; commit before gate (#16818) f2f074a
- Talk carries on by itself and keeps a live plan; a quiet turn says what it waits on (#16624) aa9eb22
- The cache spectrum, chosen on purpose: in-process snapshots, SQLite, the edge's own cache, and a global read-cheap config pushed to the edge in seconds; offered to apps (#16824) 7104c92
- A DXF drawing measures: pick two points and read the distance in the drawing's units (#16827) 8d02ba4
- A weekly design wave: a designer role passes over every page and component (tabs first), fixes small things as pulls, and files design asks for next time (#16253) 9bea861
- Database: one-shot compaction at boot (opt-in), incremental vacuum after, decision retention (#16726) c90d084
- A wave's changelog line for each landed pull is that pull's own first sentence, grouped by pillar (#16811) 0496446
- Sentinel: memory-growth was degraded 12 minutes today: The forge's own memory is 4183 MiB, over twice its first-hour 1629 MiB and past the 2176 MiB more its database caches m… (#16828) 814939d
- The Data tab of an SQLite file filters a table by one column's value, from the address (#16823) 8b76613
- Peek cards: read 4 KB of a body and strip markup in one pass (review fix missed by #16700) (#16815) 1be49ab
- One acceptance test opens a board JSON, an STL, a PDF, a CSV and an mp4 on the blob page and each renders with its view switch (#16825) 860d8a7
- The edge keeps the last Resilience page and serves it, marked as a copy, while the forge is down (#16793) c02779f
- Open-pull ceiling: a pull handed to a person after changes were requested does not count (#16717) 58f6866
- Refused feed replies and review-line comments keep the typed text (#16810) d51db8b
On v0.7.676, asked "does test1 still cost anything?", Talk got 86,581 characters from cloud_accounts and answered "too large to display… I read none of it", then gave stale figures from earlier turns. The limit is Talk's harness: Claude Code keeps at most about 50,000 characters of one tool result and saves the rest to a file Talk can't open (the per-string fences roughly double raw size). Seven Talk tools pass it on production data. mitosis-bd compacts cloud_accounts (#16869), telemetry_history and forges; this is the backstop for every tool.
cutandchars(its full size),says(the tool's own narrowing arguments — limit, cursor, names, … — and never to answer from earlier figures),shape(keys, array lengths, the first 3 items, still fenced), andhead(the first 12,000 characters). A person's own token still gets the whole answer.tsc 0, gate exit 0; 280 MCP/conversation/brief files: 2001 pass (2 fail on main on the Mac too).
🤖 Generated with Claude Code