Skip to content

Quota digest: degradedProviders summary excludes the new "lapsed" state (PR #7898 review finding) #8124

Closed

Description

@dezren39

Quota digest: degradedProviders summary excludes the new "lapsed" state (PR #7898 review finding)

Finding (from PR review)

On PR #7898 (fix(quota-plane): lapsed OpenCode Go workspace renders as lapsed, not error (#1161)), Copilot review comment 4508796605 (Copilot, 2026-11-09T01:59:25Z, pm-stack/aggregator/src/digest.ts:280):

The digest's degradedProviders summary excludes the new "lapsed" state, even though quotaPoolNote() now emits explicit lapsed messaging. This can cause a lapsed provider to be missing from any "degraded providers" section/summary derived from degradedProviders. Consider including "lapsed" in this filter (or explicitly deciding it should not be treated as degraded and documenting that choice) to keep digest-level summarization consistent with the new terminal state.

No-response evidence

  • No replies in the comment thread; the review thread is unresolved (GraphQL reviewThreads verified 2026-11-10 by this run: the thread containing comment 4508796605 has isResolved: false).
  • PR fix(quota-plane): lapsed OpenCode Go workspace renders as lapsed, not error (#1161) #7898 head is unchanged at e572e55ce340e79f4d49cad0f4aebd7fea55dc7d since the comment (last commit 2026-11-09T01:54:23Z, before the comment); no fix commit followed it. The finding is past the 24-hour grace period for open PRs (comment 2026-11-09T01:59:25Z).
  • Issue search (open and closed) by PR number, file path, and keywords (degradedProviders lapsed digest, lapsed digest, 7898) found no existing issue covering this finding.

Still-live evidence (current PR head)

Raw read at head e572e55ce3 agrees:

  • pm-stack/aggregator/src/digest.ts:276-282: degradedProviders filters pools only on state "error" or "stale" — "lapsed" is not included.
  • The same file's quotaPoolNote() (line 348, 353-356) explicitly handles "lapsed" as a degraded state with its own messaging, and the quota section's stale flag (line 286) is derived from degradedProviders.length > 0 — so a lapsed-only provider neither appears in the degraded summary nor marks the section stale.

Acceptance criteria

  • degradedProviders in the quota digest includes pools in the "lapsed" state (or the exclusion is an explicit, documented decision recorded on this issue), so digest-level summarization is consistent with quotaPoolNote()'s lapsed messaging.
  • Resolving by a documented decision on this issue is also acceptable.

Filed by the pr-comment-review job (run 2026-11-09 23:54 CST) under the queue cutover: labels applied at filing, standard agent note posted after filing, and a repo-task/v1 triage packet (kind: triage, priority 30) enqueued on repo-health-code-pilot.

Activity

  1. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/normalOrdinary priority (the default)
    on Nov 10, 2026
  2. developing-today commented on Nov 10, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    effort/sSmall: expected under 2 hours of work
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    and removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 10, 2026
  5. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: triage-step
    • State: triaged
    • Work kind: task/small-fix
    • Priority: priority/normal — Brief line 5: everything else by usefulness. An ordinary correctness fix in the quota digest (already priority/normal on the issue).
    • Effort: effort/s
    • First step: In pm-stack/aggregator/src/digest.ts, add 'lapsed' to the degradedProviders state filter (:276-282) and pin it with a lapsed-only digest test.
    • Acceptance check: degradedProviders includes pools in the 'lapsed' state (or the exclusion is an explicit, documented decision recorded on this issue), consistent with quotaPoolNote()'s lapsed messaging; a lapsed-only provider appears in the degraded summary and marks the section stale.
    • Packet: Fix packet: task 14586 in repo-health-code-pilot (dedupe repo-health:v1:fix:developing-today/code:issue:8124).
  6. added
    work/assignedQueue worker lifecycle state
    and removed on Nov 10, 2026
  7. 18 remaining items

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — state: parked (task 14586, lane code-y)

  9. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
  10. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    state: in-progress (resumed, task 14586, lane code-l)

    Gate cleared: PR #7898 merged 2026-11-10T21:21:06Z, so the lapsed state is now on main. PR #8181 rebased onto current main (a9c094d): the type/validator commit was already on main via #7898 and dropped as empty; the remaining diff is exactly the degradedProviders lapsed filter plus the lapsed-only digest test. Tests: bun test test/digest.test.ts - 13 pass, 0 fail, including the new lapsed-only test. Codex review failed on usage limits with no findings (no undispositioned findings). Merging PR #8181 under standing merge authority; PR basic checks remain QUEUED in the runner backlog, laptop-verified tests are the verification.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions