You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(aggregator): Cost Explorer renders no freshness chips — per-source ages for /aa's two tabs #1502
Every dashboard page is supposed to show its data's age — the freshness-chips row (freshnessChips, #1138) is the standard, and most pages render it. Cost Explorer doesn't.
Field evidence (live HTML grep, ~13:56 CDT): the chips row is present on /today, /quota, /sessions, /program, /dns, /roadmap, /health — and absent on /aa (and /pages). /aa is served renderAa(await source.aa(), prov()) — no provDetail(), so no chips. What /aa shows instead is one prose line, "collected ", covering only the AA section. The page's second tab, Model Explorer, renders a fleet catalog built from a different read (the collector's catalog build over the fleet's .opencode/opencode.jsonc) whose age appears nowhere: when the catalog is missing the page says so (good), but when it is present its vintage is invisible.
This matters because the AA section has silently vanished before (#1349): an age chip that flips to stale is the at-a-glance tripwire, and /aa is the one page without it.
Design
renderAa takes the provenance detail like every other page and renders the standard chips row (aa facet at minimum).
The two tabs carry their own ages: AA section age from the feed facet; catalog age from the catalog's own collected-at (carried in the section model by the collector if present, otherwise the chip states the feed age and labels it as such — never an unlabeled guess).
Acceptance
/aa renders the freshness-chips row, vocabulary identical to the other pages (live/stale/absent + age).
AA tab and Model Explorer tab each display their own data age.
A stale AA section (older than one collector cycle) reads stale in the chip.
Related: #1349 (AA section vanished silently once), #1260 (freshness SLOs consume the same facet states), #1204 (extractor health on /quota — same pattern, different page).
Related: #1349 (AA section vanished silently), #1260, #1204. Liveness: no merged PR touches renderAa freshness — checked merged aggregator PRs through 2026-10-27; issue is live. Its ## Acceptance section is complete in substance, so no duplicate was appended.
Notes / risks / suggested approach: Risk: the catalog age must never be an unlabeled guess — if the collector does not carry a catalog collected-at, the chip must say it shows the feed age. Suggested approach: mirror the chips vocabulary of the other pages exactly (live/stale/absent + age).
Task: Cost Explorer (/aa) renders no freshness chips; give renderAa the provenance detail and show per-tab ages (AA feed facet + catalog collected-at).
Expectation: intake only this run — labels normalized, liveness checked, acceptance criteria in place; the fix itself routes through the normal queue/sweep path
Targeted AA tests pass (27/27). PR is open and mergeable; CI has not started yet (CodeRabbit completed neutral). The full suite/typecheck have the unrelated failures recorded in the PR body. Queue task 5018 is complete with outcome pr_opened.
agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03
Verdict: already fixed. The fix for this issue merged as PR #4022 (branch queue/5018-1502-aa-freshness-chips, merge commit a0aff07) on 2026-11-02, and is present at current main:
pm-stack/aggregator/src/render.ts:5892 — aaFreshnessChips(detail, section) renders the standard chips row on all three render paths (no section, absent, and normal), matching the live/stale/absent + age vocabulary used by every other page.
render.ts:5943-5948 — per-tab ages: data-aa-age ("AA data age: … (fleet-feed age)") on the AA Explorer tab and data-catalog-age on Model Explorer, explicitly labelled as the fleet-feed age with the note that no separate catalog timestamp is carried — satisfying the issue's "never an unlabeled guess" constraint.
Retained-after-failure sections and feed ages older than one collector cycle render stale, matching the acceptance criterion.
Verification this run:bun test test/aa.test.ts in pm-stack/aggregator at current main — 42 pass, 0 fail (330 assertions), including "freshness chips and both tab ages use labelled fleet-feed provenance".
No follow-up work needed; no blockers. Closing as completed.
Activity
developing-today commentedon Oct 27, 2026
CODE-567
dezren39 commentedon Oct 27, 2026
Intake review
Related: #1349 (AA section vanished silently), #1260, #1204. Liveness: no merged PR touches
renderAafreshness — checked merged aggregator PRs through 2026-10-27; issue is live. Its## Acceptancesection is complete in substance, so no duplicate was appended.Notes / risks / suggested approach: Risk: the catalog age must never be an unlabeled guess — if the collector does not carry a catalog collected-at, the chip must say it shows the feed age. Suggested approach: mirror the chips vocabulary of the other pages exactly (live/stale/absent + age).
🤖 Agent note · filed
/aa) renders no freshness chips; giverenderAathe provenance detail and show per-tab ages (AA feed facet + catalog collected-at).dezren39 commentedon Nov 1, 2026
🤖 Agent note · picked up
8 remaining items
dezren39 commentedon Nov 1, 2026
🤖 Agent note · picked up
/aafreshness chips and source-labelled ages for its AA and Model Explorer tabsdezren39 commentedon Nov 1, 2026
PR opened
🤖 Agent note · done
queue/5018-1502-aa-freshness-chipsTargeted AA tests pass (27/27). PR is open and mergeable; CI has not started yet (CodeRabbit completed neutral). The full suite/typecheck have the unrelated failures recorded in the PR body. Queue task 5018 is complete with outcome
pr_opened.Merge pull request #4022 from developing-today/queue/5018-1502-aa-fre…
dezren39 commentedon Nov 3, 2026
agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03
dezren39 commentedon Nov 3, 2026
Triage verdict — already fixed on main (closing with evidence)
🤖 Agent note · closed
origin/maine7510b9Verdict: already fixed. The fix for this issue merged as PR #4022 (branch
queue/5018-1502-aa-freshness-chips, merge commit a0aff07) on 2026-11-02, and is present at currentmain:pm-stack/aggregator/src/server.ts:1244—/aanow passes provenance detail:html(renderAa(await source.aa(), prov(), provDetail())).pm-stack/aggregator/src/render.ts:5892—aaFreshnessChips(detail, section)renders the standard chips row on all three render paths (no section,absent, and normal), matching the live/stale/absent + age vocabulary used by every other page.render.ts:5943-5948— per-tab ages:data-aa-age("AA data age: … (fleet-feed age)") on the AA Explorer tab anddata-catalog-ageon Model Explorer, explicitly labelled as the fleet-feed age with the note that no separate catalog timestamp is carried — satisfying the issue's "never an unlabeled guess" constraint.stale, matching the acceptance criterion.Verification this run:
bun test test/aa.test.tsinpm-stack/aggregatorat currentmain— 42 pass, 0 fail (330 assertions), including "freshness chips and both tab ages use labelled fleet-feed provenance".No follow-up work needed; no blockers. Closing as completed.