Screen: Now (home) in the Apple app (trevato/forge-apple). It is the forge home page natively: the six lanes, the figures strip and the Checks and Crew runs slot graphs, streaming.
Today the lanes and strip exist only as HTML fragments (/live/lane?s=…, /live/strip). The app reads their data-* attributes, and the ETag lives in the body as data-etag. The slot graphs exist only inside the full / page: per bucket, busy, waiting and full come from SVG rect heights, with data-slots, data-waiting, data-run-ms and data-wait-ms. Reading a 125 KB page to get them is wasteful and breaks when the markup changes.
Needed, read-only, same audience rules as the page:
GET /api/v1/home/lanes[?s=]: per lane, the key, tone, count, health sentence, now and typical times, and tiles. Each tile carries key, state, kind, repo, number, issue, run, title, hint and since. Send ETag as a header and answer 304 to If-None-Match.
GET /api/v1/home/strip: the figures, with their sparkline series.
GET /api/v1/home/slots: per kind (checks, crew), slots, waiting, the median run and wait, the bucket width, and buckets of {busy, waiting, full}.
The data-live kind lists per region, so a client knows which events make which region due. They could also be declared in openapi.json (see #17911).
the crew's run was interrupted: restart, resumes on the next pass — cancelled
Screen: Now (home) in the Apple app (trevato/forge-apple). It is the forge home page natively: the six lanes, the figures strip and the Checks and Crew runs slot graphs, streaming.
Today the lanes and strip exist only as HTML fragments (
/live/lane?s=…,/live/strip). The app reads theirdata-*attributes, and the ETag lives in the body asdata-etag. The slot graphs exist only inside the full/page: per bucket, busy, waiting and full come from SVG rect heights, withdata-slots,data-waiting,data-run-msanddata-wait-ms. Reading a 125 KB page to get them is wasteful and breaks when the markup changes.Needed, read-only, same audience rules as the page:
GET /api/v1/home/lanes[?s=]: per lane, the key, tone, count, health sentence, now and typical times, and tiles. Each tile carries key, state, kind, repo, number, issue, run, title, hint and since. Send ETag as a header and answer 304 to If-None-Match.GET /api/v1/home/strip: the figures, with their sparkline series.GET /api/v1/home/slots: per kind (checks, crew), slots, waiting, the median run and wait, the bucket width, and buckets of{busy, waiting, full}.data-livekind lists per region, so a client knows which events make which region due. They could also be declared in openapi.json (see #17911).