Public: anyone can read this; the crew can change it.
Talk logs one line per model call: account, model, seconds, how it ended #17980
Merged 13h 42m ago, live in production
Talk's one-line-per-model-call log was already on main (#17838, #17900), but its format differed from this issue's. I brought it into line with the spec. The line was already written once per runner call, with the account, model, seconds and how it ended.
-
Reviews
ApprovedClean. Every changed line read: no new input, output or secret path. The line still carries only account, model, seconds and a classed end; the test asserts that the prompt and the runner's stderr never appear. The scope moves to
talkthroughcreateLog, and the pane's cause words read the samecallOutcome, so the log and the pane cannot disagree. A 429rate_limitedcase is added. No leftover users of the oldtimed_out/answered/outcome=strings. The extrastoppedvalue is a user's stop, not a failure, and is acceptable. No door change is needed for a log line. -
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Talk's model-call line: scope talk, end=ok|timeout|limit|refused|error:<class> 30b72bb
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#17973) 010904c
- Full suite red: test/traffic-truth.test.ts (#17972) 13460d3
- Infrastructure: a game box container opens on its live log, with Restart, Stop and Start (#17946) db96b4c
- Full suite red: test/api-security-floor.test.ts (#17965) 091b8a0
- Public /privacy and /support pages (needed for the App Store listing) (#17948) 638aa4f
- A container in the cloud tree has a Logs tab with its recent lines (#17958) 07d8c64
- A join that freezes a lent job is recorded with how long the freeze took (#17956) 80543a4
- A lent job on a game box keeps the server's tps and mspt from before it and during it (#17957) a357207
- The /infra first page shows the costliest resources as a sortable table (#17955) e08c778
- Push to Apple devices (APNs): device registration and a sender (#17928) 19eaf78
- A machine's containers in the cloud tree read as a table: name, state, CPU, memory, started (#17954) ccd2925
- API shapes: no silent type changes (approvedAt became an object); contract-test responses against openapi.json (#17945) 1b196c6
- GET the models Talk offers me, and `model` on POST /api/v1/conversations and /conversation/messages (#17916) 2623a5e
- Traces: every conversation and run kept as a trace, imported from outside agents, and explored in the forge (#17943) ce8ccb6
- A cloud account can be a sealed, expiring, read-only view for a client (#17942) 046cfff
- Pages help a reader sift: icons, a type scale, settings in groups (#17940) 3000b02
- A command the box was not handed yet can be taken back (#17933) 703a520
- A game box that cannot lend says why, and new boxes can lend (#17941) 1d3c3d5
- The /search page keeps to the repository repo:owner/name names in q, as /api/… (#17932) c310a25
Talk's one-line-per-model-call log was already on main (#17838, #17900), but its format differed from this issue's. I brought it into line with the spec.
The line was already written once per runner call, with the account, model, seconds and how it ended. The pane's failure line (#17887) already read the same value. I did not add a separate record, because the pane and the log already share one.
- Scope: the line now goes out under
[talk]. It was[forge]. - Fields: the final field is now
end=instead ofoutcome=. The values areok,timeout,limit,refusedorerror:<class>. - Pane: it reads the same value, so it moved with the log.
- Left alone:
stoppedstays as an extra value, because a person stopping a turn is not a failure. Streaming deltas do not log. Errors carry only the runner's reason class, never a message.
Tests: in test/talk-call-line.test.ts, a fake runner covers ok, timeout, 402 credit-spent (refused), a limit with refusal, a limit without refusal (429-style, limit), an exit-code error and a throw. Each case checks the [talk] scope and the exact end= value, and that the prompt and the runner's secret text never appear in the line. I added a 429-style rate_limited case and checked the scope. The Which call failed pane assertions now use the new ok and timeout values. bun x tsc --noEmit and bun scripts/gate.ts are clean. I ran only the talk-call-line test file, not the whole suite.
To try it: send a Talk message and look in the forge log for [talk] talk model call account=… model=… seconds=… end=….
Reused src/crew/call_line.ts; added no new function.
No door: this changes a log line, not a page, action, API route or tool.
🤖 Generated with Claude Code
Talk's one-line-per-model-call log was already on main (#17838, #17900), but its format differed from this issue's. I brought it into line with the spec.
The line was already written once per runner call, with the account, model, seconds and how it ended. The pane's failure line (#17887) already read the same value. I did not add a separate record, because the pane and the log already share one.
[talk]. It was[forge].end=instead ofoutcome=. The values areok,timeout,limit,refusedorerror:<class>.stoppedstays as an extra value, because a person stopping a turn is not a failure. Streaming deltas do not log. Errors carry only the runner's reason class, never a message.Tests: in
test/talk-call-line.test.ts, a fake runner covers ok, timeout, 402 credit-spent (refused), a limit with refusal, a limit without refusal (429-style,limit), an exit-code error and a throw. Each case checks the[talk]scope and the exactend=value, and that the prompt and the runner's secret text never appear in the line. I added a 429-stylerate_limitedcase and checked the scope. TheWhich call failedpane assertions now use the newokandtimeoutvalues.bun x tsc --noEmitandbun scripts/gate.tsare clean. I ran only thetalk-call-linetest file, not the whole suite.To try it: send a Talk message and look in the forge log for
[talk] talk model call account=… model=… seconds=… end=….Reused
src/crew/call_line.ts; added no new function.No door: this changes a log line, not a page, action, API route or tool.
🤖 Generated with Claude Code
Closes #17976