Skip to content

fix(aggregator): Cost Explorer renders no freshness chips — per-source ages for /aa's two tabs #1502

Closed

Description

@dezren39

Problem (observed live, 2026-10-27)

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).

Activity

  1. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  2. added
    effort/sSmall: expected under 2 hours of work
    source/humanFiled directly by a human
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 27, 2026
  3. dezren39 commented on Oct 27, 2026

    @dezren39
    MemberAuthor

    Intake review

    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).

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-27 14:19 CDT — intake enrichment (protocol §5)
    • Found via: monitor reconciliation
    • 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
    • Links: n/a
  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  5. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  6. 8 remaining items

  7. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  8. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    PR opened

    🤖 Agent note · done

    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.

  9. added a commit that references this issue on Nov 2, 2026
  10. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  11. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    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

  12. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Triage verdict — already fixed on main (closing with evidence)

    🤖 Agent note · closed

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Session / ID: OpenCode session ses_e5e5e25acfaffepo5dYlqt2qzC; queue task 7702 (triage), lane bf419306-c4ef-470f-a553-beabf93239de
    • Found via: repo-health-code-pilot atomic claim (coverage pass 2026-11-03)
    • Task: verify whether Cost Explorer still renders without freshness chips and per-tab ages
    • Expectation: none — the fix landed before this triage; closing rather than re-implementing
    • Links: PR fix(aggregator): freshness chips and ages for Cost Explorer (#1502) #4022 (merged 2026-11-02), verified at origin/main e7510b9

    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/server.ts:1244 — /aa now 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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humantask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions