Public: anyone can read this; the crew can change it.
Traces: every conversation and run kept as a trace, imported from outside agents, and explored in the forge #18011
Closed 12h 39m ago
A person can now POST an outside agent's session file to /traces/import and keep it as a trace, private to them. A list page and a terminal screen show their imports. Tests I ran pass (the new test/trace-import.test.ts and the neighbouring suites), as do tsc and design-lint; I did not run the full suite.
-
Reviews
No review yet.
-
Checks
stopped closed without shipping deploy d406e3f
-
History
- Traces: the import page named where the router walks, the audit and the budgets; its full refusal no longer sends anyone elsewhere (#17929) d406e3f
- Merge main into scout/17929-traces-every-conversation-and-run-kept-a bbb55c8
- The test files outside api-* read no answer that disagrees with openapi.json (#18001) d861d63
- Traces: the palette roster names the Traces entry (#17929) 7461455
- Traces: the import's how-to, the migration's pin, the rewrapped comments (#17929) 94624a3
- Traces: POST a session file to keep it, private, with a list and a terminal screen (#17929) a7b38ee
- Traces: every conversation and run kept as a trace, imported from outside agents, and explored in the forge (#17968) 35a5490
- Merge main into scout/17929-traces-every-conversation-and-run-kept-a f366d98
- Traces 3: one trace as a tree beside a time strip, with what it changed (#17996) 2902a64
- Merge pull request #17997 from sold/ssh-mlkem 05c87e1
- SSH: the hybrid's K has its own known answer, the client test skips the hybrid on OpenSSH before 9.9, one comment, the docs in their own paragraph 281e40c
- Merge pull request #17998 from sold/tab-start 7e39794
- The /tab fix serves #16840 4eed511
- /tab starts in Safari and Chrome: the worker sees its host page, and the page waits for activation a5d9dd7
- SSH offers the hybrid post-quantum key exchange first: mlkem768x25519-sha256 1124a92
- The api-* test files read no answer that disagrees with openapi.json (#17990) 2d01f4a
- The suite's fetch reports each /api/v1 answer that disagrees with openapi.json, without failing yet (#17989) 3a1266c
- Anonymous, opt-in app telemetry: a route to receive daily summaries, and an owner view (#17967) 973052e
- Runner jobs' git-upload-pack: count the work per job, then cut it so the serving thread is not held (#17984) ee5308f
- A `[loop]` stall line names what the serving thread was doing: the route or duty in flight (#17982) bb47d9a
4 earlier comments
I merged main into the branch and pushed it. The only conflict was in docs/features/traces.md.
On the conflicting "Modules" line I kept this branch's wording, because imports are now stored. That means the line no longer says "Not yet: storing an import". The import's own how-to is docs/features/trace-import.md.
After the merge, bun x tsc --noEmit is clean. I ran 52 tests across seven suites and all pass:
- the two trace suites
- the palette roster
- the feature-doc orphan check
- the lazy-boot check
- the unused-exports check
- the module-state check
I did not run the full suite. The forge's check will run it on this push.
The four failing tests should now pass: I reran them locally (51 pass, 0 fail, including test/trace-import.test.ts), but not the full suite. bun x tsc --noEmit is clean and the gate refuses nothing. I've pushed the fix.
All four came from the new /traces/imported/:id page and one refusal sentence:
- Router walk and security-floor listing: the walk skips the route, because the seed has no imported session. I added it to
test/no-polling.test.tsandtest/security-floor-routes.test.ts, each with a reason. - Page budgets: I added
test/budgets/unfixtured/traces-imported-id.json, which the page-budget check reads, with its reason. - Design audit: the new top-level
/tracespage had no entry, so I added one todocs/design/audit.md. - Refusal sentence: the "full" message said "ask an admin to raise it", which the refusals rule only allows when it comes from a helper. It now reads "you already keep the most session text one account may". The 512 MB cap is unchanged.
API Error: 402 This request requires more credits, or fewer max_tokens. You requested up to 128000 tokens, but can only afford 4000. To increase, visit https://openrouter.ai/workspaces/default/keys/b36b4d5ca03526e2ce9b015c94d62cc19d23669897752807e5fe44ac6efc00fd and adjust the key's monthly limit
A person can now
POSTan outside agent's session file to/traces/importand keep it as a trace, private to them. A list page and a terminal screen show their imports. Tests I ran pass (the newtest/trace-import.test.tsand the neighbouring suites), as dotscand design-lint; I did not run the full suite. I started the pull from issue #17929, which was closed as done on main, but 8 items were still unticked. This covers only the Import item.What changed
POST /traces/importtakes the file as the body, from a same-origin session or arwtoken. It answers 201 for a new import and 200 when the same bytes were already kept. A file with no Claude Code or Codex records gets 422, over 32 MB gets 413 (a newBODY_CAPS.traceImportrow), and a person already holding 512 MB gets 507.trace_importtable. The tree is parsed from them on every read and never stored. Nothing is deleted./traceslists a person's imports, and/traces/imported/<id>shows one as its tree. Anyone else gets a 404.src/tui/screens/traces.ts) lists the imports;oopens one on the web.docs/features/trace-import.md. The palette roster test now lists the new Traces entry.What I left out
forge trace --importupload command; for now you import with curl.Gate
No look:line, because no existing look page shows/traces.Replaces: nothingline.(#17929)are in.listImportsagainstlistAllReposByOwneris the one on my new code, and I left them.Try it
Then open
/tracessigned in as the same person, orbun test test/trace-import.test.ts.Closes #17929