Public: anyone can read this; the crew can change it.
An imported session is deleted through the API by its owner who sends its exact title #18388
Reviewed pull #18390 at its head: ticked DELETE /api/v1/traces/<id> takes { "confirm": "<the session's title>" }; the body is read with a cap named in the table in src/kernel/body_caps.ts (add traceDelete with its reason; never a number at the call: test/body-caps.test.ts 'names every cap from the table' failed on readBounded(ctx.request, 4096) last time).; Kind imported only, owner only, same-origin checked for a session caller. A crew run or Talk turn answers 403 saying its record is kept; another person's or an unknown id is 404; a malformed id is refused before any path is built (derive the file from the id, validate its shape).; A wrong or missing confirm is 422 name_mismatch and nothing is removed.; A right one removes the stored traces/imported/<id>.jsonl.gz, the index row and its trace_touch rows, frees the quota, and answers a receipt { removed, title, bytes }. A session with a live share link is refused with 409 saying to stop sharing first.; Tests that fail without it: wrong name keeps the file and row; right name removes both and the list no longer shows it; another user 404; cross-site 403; crew run 403; quota freed.; docs/features/traces.md: 'Not yet: deleting one' becomes a paragraph on this route..
Intent: the first half of deleting an imported session (a Never: nothing is deleted without the person typing its name); #18359's pull failed its check three times on one lint, so this is its API alone, written to pass it.
Done:
Files: src/http/api/traces.ts, src/kernel/body_caps.ts, src/trace/import.ts, test/ (a new test file, listed as the gate list asks), docs/features/traces.md. Risks: a wrong path deleted; a record that is kept forever removed; run
bun scripts/similar.tsbefore writing a remover and reuse the account-deletion cleanup of imported files if it fits. Suggested: a builder with the Never in mind; review closely.