Skip to content

bug: platform alerts pile up in the operator queue — every new reading files a new row and nothing ends the ones that are no longer true #3246

Closed

Description

@vybe

Summary

Platform-raised alerts describe a condition (this subscription is near its limit, this agent runs a stale base image, this sync was refused, this circuit breaker is dormant), but the operator queue stores each of them as a separate message. A new reading of the same condition files a new pending row, and nothing closes the earlier rows when a newer reading replaces them or when the condition clears. The pending set fills with alerts that are no longer true.

Context

Observed on a production install on 2026-10-05: of the first 100 pending queue items, about 60 were platform-raised alerts, most of them repeats of one condition:

77 of the 100 had no expiry, so they stay pending until a person acknowledges each one. The oldest was six weeks old.

Each emitter carries its own id-based dedup (services/subscription_headroom_alerts.py, services/system_agent_service.py, services/skill_service.py, services/agent_client/circuit.py), and each was hardened separately (#1632, #1677, #2744, #3130). None of them has a rule for "the subject of this alert already has a live row" or "this is no longer true".

Why it matters: the Workspace Inbox and the Operating Room are where a person looks first. A pending set that is mostly stale teaches people to stop reading it, and real approvals sit in the same list.

Acceptance Criteria

  • A platform-raised alert about one subject (one subscription, one agent's base image, one install setting, one agent's circuit) has at most one pending row at any time, for every platform emitter.
  • A newer reading of the same condition updates that row (current value, when it was last seen, how many times) instead of adding a row.
  • When the condition clears, the platform ends the row itself, with a recorded ending that says the platform closed it because the condition cleared. It is never left pending and never recorded as a person's answer.
  • A platform alert has a default lifetime: one nobody acted on leaves the pending set as expired after a stated period, unless its emitter declares that it must stay until a person acts.
  • The rule lives in one place every platform emitter goes through, so a new emitter cannot re-open the class.
  • Existing installs are cleaned on upgrade: for each subject the newest pending platform alert stays and the older ones are ended as one recorded batch.
  • Agent-raised asks are untouched by this issue.
  • Tests: two readings of one condition leave one pending row; a cleared condition ends it; the upgrade sweep keeps the newest row per subject; an alert past its lifetime is expired.

Related

Activity

  1. added
    priority-p1
    type-bug
    theme-reliability
    complexity-medium
    status-ready
    on Oct 5, 2026
  2. 33 remaining items

  3. removed
    status-in-dev
    on Oct 26, 2026
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

    complexity-mediumpriority-p1theme-reliabilitytype-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions