Description
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:
- subscription-headroom alerts: several rows per subscription, each superseded by the next threshold or reading;
- "legacy skills-library adoption refused": 21 rows left behind by bug: legacy skills-library adoption refusal files a new high-priority operator-queue alert on every sync — unbounded, never expires, unclearable by the operator #2744. The emitter was fixed, the rows it had already created were never ended;
- "System agent is running a stale base image": 8 rows;
- "Agent circuit breaker DORMANT": repeated per agent.
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
- bug: operator-queue create path has no rate limit or size caps — flooding/operator-fatigue surface (blocking pull default-ON) #1632, bug: platform operator-queue alert emitters bypass #1632 ingestion caps — skill-not-found is agent-triggerable (flood residual, gates pull default-ON) #1677, bug: legacy skills-library adoption refusal files a new high-priority operator-queue alert on every sync — unbounded, never expires, unclearable by the operator #2744, bug: the operator-queue flood guard enqueues into the queue it guards — self-sustaining alert growth, and depth-held requests are never reported to the filing agent #3130: the per-emitter fixes this generalises.
- Operator queue: acknowledging a platform-minted alert leaves it
respondedforever — the write-back re-injects it into the agent's queue file and the #1631 guard rejects it on every boot #2372: acknowledging a platform alert leaves itrespondedforever (same family). - Scheduled runs re-ask what is already pending — show an agent its open asks and let it replace one #3247: the agent-side half (scheduled runs re-asking what is already pending).
Activity
feat(operator-queue): platform alert registry and sweep planner (#3246)
feat(operator-queue): subject columns, backlog sweep and one-pending-…
feat(operator-queue): locked platform-alert accessors and the platfor…
test(operator-queue): register the #3246 C2/C3 unit files (#3246)
feat(operator-queue): platform alert seam, reserved prefixes and the …
feat(operator-queue): agent circuit breaker reports through the platf…
feat(operator-queue): system agent stale base image reports through t…
feat(operator-queue): subscription headroom reports through the platf…
feat(operator-queue): legacy skills-library adoption reports through …
33 remaining items
fix(operator-queue): the Pending asks line never carries an ask's tit…
fix(tests): repair the tests and fixtures a full run-full.sh found dr…
fix(alerts): move the boot housekeeping alarms onto the platform aler…
fix(sync-health): git sync health alerts are one row per condition an…
fix(operator-queue): the #1677 budget family reports through the plat…
fix(operator-queue): second platform-alert sweep, and the #3254 docs …
refactor(operator-queue): operator_queue_service becomes a package, a…
refactor(operator-queue): the listing engine moves to listing.py, and…
refactor(operator-queue): the agent-file channel leaves __init__ as w…
refactor(operator-queue): the alert emitters move out of __init__, an…
Release: v1.0.5 (#4617)
docs(user-docs): v1.0.5 screenshots — What's New and feature pages (#…