Expand description
App with view: this machine’s record of AgentMux’s own size over weeks
(docs/specs/SPEC_LONG_RUNNING_ZERO_DEGRADATION_2026_11_16.md §6, task #47820), read from srv’s
GET /api/v1/app/record. summary says whether AgentMux has grown, series lists the hours or the
five-minute lines, export returns the lines as they are stored, to attach to a bug. The record holds numbers
and stable keys only and never leaves the computer.
Constants§
- DAY_MS 🔒
- EXPORT_
BYTES 🔒 - The answer of
exportis cut at this many bytes of text. - MAX_
HOURS 🔒
Functions§
- describe_
events 🔒 series/exportof kind events: each stall and each flag, oldest first.- describe_
export 🔒 export: the lines as stored, one JSON object per line, cut toEXPORT_BYTES(the newest are kept).- describe_
series 🔒 series: one line per hour (or per five minutes with kind raw), oldest first.- describe_
summary 🔒 summary: what the record holds, the newest line, the trend, and the stalls.- flag_
words 🔒 - What one flag of the record’s rules says (srv’s
record_flags): which rule, about what, with its numbers. - flags 🔒
- The flags the record’s rules wrote in the window: how many, and the newest three.
- get 🔒
- grown 🔒
- The parts and rows whose median grew most between two hours. A row is compared only when both hours name it: a rollup keeps six rows, so one missing from the earlier hour may only have ranked lower, and is listed apart as having no known earlier size.
- is_flag 🔒
- keyed 🔒
- The stat of
keyamong a rollup’spartsorrows(a list of[key, stat]). - last_
time 🔒 - When a rollup’s last line was taken: its own time where it has one, else the start of its hour.
- latest 🔒
- The newest line, as a sentence.
- nearest 🔒
- The rollup nearest
target_ms. - page_
text 🔒 - One window’s page, from the page’s own report.
- parts_
of 🔒 - record 🔒
- restarts_
since 🔒 - How many times srv started again in the hours after
then_h: those each rollup counted inside its hour, and those between two hours, where the uptime of the later hour’s last line is less than the earlier one’s plus the time between the two lines. Both lines’ own times are used where the rollups have them (2 minutes of room); an older rollup has only its hour’s start, which can be an hour from its last line, and gets 15 minutes. - span 🔒
- stalls 🔒
- The stalls of the UI thread and of srv’s runtime in the window, by kind: how many, the longest, the last.
- stat 🔒
- A
[min, median, p95, max]as numbers. - stored 🔒
- What the record holds, one line.
- trend 🔒
- AgentMux’s size by the hour and what grew, from the hourly rollups.