Skip to content

pm-stack(aggregator): /api/quota.json drops the three OpenCode Zen split pool rows the quota read reports (19 rendered pools → 16) #10574

Closed

Description

@dezren39

Observation (pool-quota steward, 419th run, 2026-11-16T00:24Z)

The PM aggregator's /api/quota.json no longer renders three pool rows that the OpenCode quota read reports fresh this tick — a read-vs-page disagreement under the steward's step-6 page-truth check (pass-through display: every pool the read reports must appear).

Source read: quota-current.json generatedAt 2026-11-16T00:15:11.856Z, source openchamber-quota, heartbeat ok.

Missing from page pools (16 rendered, was 19 last run):

pool id (read providerId) measuredAt 5h weekly monthly
opencode.drewrypope (OpenCode Zen) 2026-11-16T00:15:41.365Z 0 0 (reset 2026-11-23T00:00Z) 100 (resets 2026-12-03T03:02:35Z)
opencode.popesdrew (OpenCode Zen) 2026-11-16T00:15:41.469Z 0 0 (reset 2026-11-23T00:00Z) 100 (resets 2026-12-03T17:35:51Z)
opencode.developing-today-0 (OpenCode Zen) 2026-11-16T00:15:41.563Z 0 0 (reset 2026-11-23T00:00Z) 54 (resets 2026-12-08T22:09:41Z)

The three rows are still present in the page payload's embedded gatherer section (gatherer.providers[22..24]), so the read reaches the aggregator; only the rendered pool cards are gone.

Last good: steward 418th run, read tick 2026-11-15T23:15:18Z — page matched read 19/19, the three Zen rows rendered as unmapped pass-through with identical windows/resets/freshness.

Everything else matches: the other 16 rendered pools match the fresh read pool-for-pool (windows, resets, freshness identical — programmatic comparison, steward-420-compare.txt). Turso SaaS metrics match; its plan-label mismatch is tracked separately on #10436. /program + /board surfaces all HTTP 200 non-empty both passes this run (#5082 not implicated).

Suspected area: aggregator pool rendering/dedup — the Zen split rows share serviceId opencode-go.* with the Go split rows (they differ by providerId and credential label: "OpenCode Zen (…)" vs "OpenCode Go (…)"); a dedup keyed on serviceId would drop exactly these three. The drop coincided with the opencode-go weekly reset at 2026-11-16T00:00Z (weekly 100 → 0 on all Go/Zen rows).

Steward is watch-and-surface only for the aggregator path; no steward input compensates for this. Filed per the step-6 duty in pool-quota-steward-instruction.md.

Activity

  1. developing-today commented on Nov 16, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Same-tick live cross-check at quota-current 2026-11-16T00:59:50.440Z: all six Go/Zen provider rows are ok and retained in /api/quota.json.gatherer.providers. They map pairwise to three distinct opencode-go.* service IDs, each rendered once in the 16 pool cards. All nine 5h/weekly/monthly usage percentages agree pairwise; weekly and monthly resets match exactly; 5h reset matches on one pair and differs by only 430ms/395ms on the other two, consistent with sequential read timing (not proof of different meters). This matches deliberate #10444 aliasing rather than three missing meters. Preserve provider-level census, but compare rendered pool coverage against distinct pool service IDs and keep a separate regression for genuinely divergent readings. No routing, collector or credential changes made.

  3. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Steward re-check 2026-11-16T01:22Z (420th run): disagreement persists unchanged. The quota read (quota-current.json tick @2026-11-16T01:15:07Z, heartbeat ok) reports the three OpenCode Zen split rows fresh (opencode.drewrypope, opencode.popesdrew, opencode.developing-today-0; weekly 0 / monthly 100/100/54), but /api/quota.json still renders 16 pools with those three rows absent from pools (still present in the payload's embedded gatherer section). The other 16 rendered pools match the read pool-for-pool on percentages. Watch-and-surface only from the steward; aggregator repair is not the steward's job.

  4. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Agent note — task 17405 picked up (lane code-b, 2026-11-15)

    Claimed task 17405 (small_fix checker) for issue #10574 and revalidated against fresh GitHub state at 2026-11-16T02:13Z: issue #10574 is OPEN with no labels (no hard-stop labels, no status/needs-triage), no PR exists referencing #10574, and no branch or worktree for it exists on the laptop.

    Live-carrier check (per the packet's first step): the named sweep session ses_e5e1de80481ffeIveTVIIx3nJv is not present in the laptop OpenCode session store (no session row, no messages), and no session title references #10574 or this quota fix. No live carrier found, so this lane does the fix work itself.

    Acceptance proof does NOT yet hold: no merged PR closing #10574, issue still open. Next: inspect the pm-stack aggregator /api/quota.json pool-row construction in a fresh worktree, reproduce the 19-to-16 drop, fix, and verify live.

  5. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Disposition — task 17405 (lane code-b, 2026-11-15): not a bug; deliberate aliasing per PR #10444. Closing as not planned.

    The three OpenCode Zen rows are not dropped. They are aliased onto the Go pools by design:

    Live verification by this lane, 2026-11-16T02:2xZ (laptop aggregator, GET /api/quota.json):

    • Pools rendered include opencode-go.drewrypope, opencode-go.popesdrew, and opencode-go.developing-today-0.
    • The payload's gatherer section carries all three Zen provider rows in ok state with serviceId opencode-go.* — i.e. the Zen readings reach the page and land on their pools (one pool's credential rows explicitly list "OpenCode Zen (popesdrew)").
    • This matches the cross-check comment already on this issue (2026-11-16T00:59Z): deliberate fix(aggregator): alias OpenCode Zen door rows onto the Go pools (#10443) #10444 aliasing rather than three missing meters.

    The steward's step-6 count compares provider rows (19) to rendered pools (16); after #10444 those numbers are expected to differ. The checker task's literal proof ("19 pools total") would require reverting a deliberate merged decision and double-counting meters, so it is not the right acceptance test. The real defect is the steward comparison, filed separately as #10591: compare rendered coverage against distinct pool service IDs, and keep a regression only for genuinely divergent readings between aliased rows.

    No aggregator code changed by this lane; no PR opened. The pre-#10444 "19/19" state the steward took as last-good was the duplicate-pool rendering #10443 was filed to remove.

  6. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Note: #10574 was already closed by #10590/#10592 (merged 2026-11-15/16)

    This issue was dispositioned as by-design per the #10444 aliasing (Zen door rows file under Go pools — same meters, no double-count). The live cross-check at 2026-11-16T00:59Z confirmed all six Go/Zen provider rows are and retained in , mapping pairwise to three distinct service IDs.

    The related fix for the steward's step-6 regression check is in #10591 (merged via PR #10594), which adds regression tests ensuring the overlay:

    • Never turns one meter into two pools
    • Keeps the provider-level census (Zen + Go rows in gatherer)
    • Surfaces genuinely divergent readings as credential rows

    No further action needed on #10574.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions