Overview
| Artifact ID: | 5c9820ef8266ed3967dbcf0a157c1805730982d3f9b70d7359643dea7439ed80 |
|---|---|
| Ticket: | cafb1f21becd03463ffe40948841a0434e5a01c8
Attribute detached-context zit calls, so ops minus zit means what the panel says |
| User & Date: | ai-local on 2026-08-31 15:32:42 |
Changes
- Untracked field cmimetype: "text/x-markdown"
- comment changed to:
The footer reported "ops 11.09s x8, zit 32.9ms" on a page whose real cost was 6.4s of zit leaves plus 6.1s across 357 zit info spawns. command() records timing.Zit from the context it is GIVEN, and those calls pass context.Background(), which carries no timer — so the time landed in the ops bucket with nothing to point at, and the ops panel note ("ops minus zit is index and OLTP queries") was false while it did. That cost roughly an hour and three wrong diagnoses: branch.list (from a 478ms figure that was mostly curl HTTP+JSON), cold disk I/O, then ingest contention. The answer came from the subprocess tally on /fleet/ops, not from the instrumentation built for it. Warming Leaves and DefaultBranch (e16d7389, 8c5b6e53) removed the detached calls from render paths, so the invariant holds again TODAY — but nothing prevents the next detached call from re-breaking it silently. Options: have command() fall back to a process-wide bucket the footer can name; or make the ops panel show subprocess time per render from obs (which already records it unconditionally, with a RenderID) rather than from the timing context. Acceptance: a render that spawns a subprocess on a detached context still shows that time attributed somewhere a reader can see; a test drives a detached-context call through a render and asserts the footer does not under-report. - priority changed to: "High"
- severity changed to: "Important"
- status changed to: "Open"
- subsystem changed to: "web"
- title changed to:
Attribute detached-context zit calls, so ops minus zit means what the panel says
- type changed to: "Code_Defect"