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

Traces 1b: GET /api/v1/traces lists traces newest first, gated as the run's log is #18021

shipped production is serving it opened this has it

Landed in pull #18077 · run

opened this

Part of #17991; second slice. The first attempt (#17999) failed its check three times on test/route-timing-coverage.test.ts 'no GET route answers 200 without a session phase unless the allowlist names it': a new GET route must run inside a session phase, or name its reason in UNTIMED. Do the former.

Done when: tests show a repository filter, a cursor page of 2 over 5 rows, a hidden run's absence for another account, a 400 for a bad since, and the route-timing walk is green without a new UNTIMED entry.

Files: src/http/routes (a traces module), src/http/openapi.json source, test/traces-api.test.ts. Risks: the route walk's fixture needs one trace row; a list that reads every raw log (read the index only). Suggested: scout.

commented

Reviewed pull #18077 at its head: ticked GET /api/v1/traces over listTraceIndex (1a): filters repository, kind, model, outcome, since, until; cursor and limit validated at the boundary (unknown parameter is unknown_parameter, as the issues list answers).; A row the caller cannot see (a run whose log runLog hides from them) is absent, never a hint it exists.; In openapi.json and covered by the contract test; UNTIMED is not edited..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs