Skip to content

Platform: fold the decision events and the queue's alert into the PM console #13503

Open

Description

@dezren39

Today. Three Workers hold state about the same thing, the fleet's work as the owner sees it: the PM console (the board, prompts, what is held), decision-events (each decision-set event, once), and queue-transport-alert (whether the queue's broker answers, every ten minutes). Each has its own Durable Object, its own deploy and its own way of telling the owner something: the console's notifications, a D1 table nobody reads at the edge, an alert of its own.

What done looks like.

  • The queue's alert becomes one of the console's notifications: the console's own alarm does the probe, and the separate Worker and its queue are retired. One place decides what reaches the owner's phone.
  • Decision events are kept where the console can read them, so open questions are read at the edge with no machine (see the issue on questions). Either the console takes the events itself, or it binds to decision-events as a service.
  • pm-stack/platform/workers.json loses the rows that are retired, and the Platform screen with them.
  • Nothing is merged before it is deployed from Actions with a way back (the issue on deploys), so that a merge that goes wrong can be undone.

Design record: doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/.


Generated by Claude Code

Acceptance criteria

  • Delivered: Platform: fold the decision events and the queue's alert into the PM console — the outcome named in the title is demonstrably in place.
  • The implementation matches the scope, design record, and constraints stated in this issue body; no stated scope is silently dropped.
  • Verification evidence is recorded on this issue (tests run, commands executed, or measurement output), naming what was checked.
  • Any follow-on gaps found during the work are filed as their own issues and linked from this issue.

Activity

  1. added
    kind/refactor
    app/pm-stack
    source/agent
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  3. added
    epic/pm-stack
    stray-work
    on Nov 24, 2026
  4. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage (oc-code-07, task 22340), state checked 2026-11-24.

    Verdict: needs-implementation, not a small fix. No PR or branch exists for it. The work folds decision-events and queue-transport-alert into the PM console, retires two Workers and their rows in pm-stack/platform/workers.json, and must deploy from Actions with a rollback path before merge. That spans several Workers and deploys, so it is a design-slice builder item. Parked for routing. No code changed in this pass.

  5. added
    queue/claimed
    work/assigned
    status/in-progress
    on Nov 25, 2026
  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    ⚠️ Protocol gap — missing agent note

    This issue is held by a queue claim (task 22340, worker repo-worker-code) and now carries queue/claimed + work/assigned + status/in-progress (applied by the fleet monitor in this run's reverse-mismatch repair), but it has no comment containing agent-note:v1 — the holding agent did not leave the required agent note (protocol §2/§6).

    The gap itself needs a human/Muse review of why the protocol was not followed. The holder should post a standard agent note at its next transition.

    🤖 Agent note · handed off

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 02:14 CST
    • Found via: monitor reconciliation
    • Task: protocol-gap flag for task 22340 (claimed with zero agent-note:v1 comments)
    • Expectation: holder posts the required agent note; gap reviewed by Muse
    • Links: n/a
  7. added
    user/review
    meta/protocol-gap
    on Nov 25, 2026
  8. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Triage verdict (task 22340, lane code-j, 2026-11-26)

    Fresh state: OPEN with user/review hold; prior needs-implementation verdict (2026-11-24) stands — no implementing PR exists (only unrelated #7193 matched by number search).

    Routed scoped follow-on queue task 23822: Implement #13503 slice 1 — queue-transport-alert fold into the PM console (console alarm probe + notification; retire worker/queue/workers.json row; Actions deploy with rollback before merge). Decision-events fold left for slice 2. Packet paths: pm-stack/platform/workers.json, pkgs/queue-transport-alert, pm-stack/console.

    No code changed in this pass.

  9. 23 remaining items

  10. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · parked

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor cron run 2026-11-27 16:14 CST (correction)
    • Found via: monitor reconciliation
    • Task: Correction to this run's earlier label repair: task 23822 is in fact PARKED live in the queue for this issue (the run's first broker list parse missed day-scale task ages; the corrected parse and the broker list itself confirm it). Labels restored to the parked truth: queue/parked + status/parked + work/assigned. The earlier handoff note's premise (no live task) was wrong; the parked task remains the holder.
    • Expectation: the parked task resumes per its park condition; no re-claim needed.
    • Links: queue repo-health-code-pilot
  11. added
    queue/queued
    status/needs-triage
    and removed
    work/assigned
    on Nov 28, 2026
  12. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · handed off

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor cron run 2026-11-27 18:14 CST; task 23822
    • Found via: monitor reconciliation
    • Task: Claim/label divergence repair: this issue carried queue/claimed + work/assigned, but the live queue holds no claimed task for it (broker-verified this run; the digest's Turso mirror is frozen at 2026-11-26T13:18Z — see issue Implement repo-fleet-monitor snapshot/SQL-first fetch (digest-judged runs, ≤3M input/run) #2154). Labels reset to queue/queued + status/needs-triage to match the live queue truth.
    • Expectation: a worker claims from the queue; prior checkpoint stage on the flagged task: none recorded (attempts 0).
    • Links: queue repo-health-code-pilot
  13. added
    work/assigned
    and removed
    status/needs-triage
    queue/queued
    on Nov 28, 2026
  14. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · parked

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor cron run 2026-11-27 18:14 CST; correction to this run's own label repair
    • Found via: monitor reconciliation
    • Task: CORRECTION: this run's claim-evaporation repair on issue Platform: fold the decision events and the queue's alert into the PM console #13503 was mistaken — task 23822 is PARKED live in the broker (scoped broker read this run: status parked), so the issue was never claim-evaporated. Labels restored to queue/parked + status/parked + work/assigned to match the parked task. The repair note and this correction are both on the record; the parked task is untouched.
    • Expectation: the parked task resumes per its own schedule; no monitor action needed.
  15. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    Slice 1 verified complete (lane oc-code-08, task 23822, 2026-11-28)

    Fresh check against origin/main (preflight clean, HEAD 50fc7fd at 04:06Z):

    Disposition: completing queue task 23822 (slice 1). Next slice: #16242 retirement preserving GitHub-incident/Telegram/enqueue semantics, then decision-events fold (slice 3).

    Key: oc-code-08

  16. added a commit that references this issue on Nov 28, 2026
  17. added
    priority/normal
    on Nov 29, 2026
  18. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census note — CEN-C13, 2026-11-29

    Full body + comments re-read firsthand for the 2026-11-29 census. (Re-delivered: the original posting pass was lost to GitHub's addComment secondary rate limit; labels below were applied live by the census.)

    Verdict: ready — the alert fold is complete in both slices; one decision-events disposition slice remains.

    Blocker: none. Fresh checks by this lane: #16242 CLOSED, PR #16283 MERGED 2026-11-28 (retirement done). Remainder: disposition the decision-events criterion — the console already reads decision events via the Worker's service surface (#13491 slices), so the remaining slice is to accept the binding as the fold or move the events in-house, and reconcile workers.json accordingly.

    Gaps: no priority label; heavy monitor label-churn noise in the comments (two claim-evaporation repairs were themselves corrected as mistaken); the retirement's completion is recorded on #16242/#13494, not here.
    Strengths: the two-slice decision (notify first, retire after deployed verification) was recorded with reasoning and followed; slice 1's merge gates were real — Actions deploy success, live queueTransport health from a schedule tick, documented rollback version — and two genuine notification bugs were found by independent review and fixed before merge.

    Labels (applied by the census): added priority/normal.

  19. added
    effort/m
    on Nov 29, 2026
  20. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Audited live on 2026-11-29 against the house label taxonomy: details, labels, blockers, priority.

    Gaps found: no ## Acceptance criteria section in the body
    Strengths found: detailed body with scope and context a picker-up can start from; links a parent issue and/or design record; active discussion: 19 recent comment(s) skimmed
    Comment skim: comments show claim/progress (19 comments in the latest page).
    Actions taken by the census: appended ## Acceptance criteria section to the body (original text unchanged).

    Priority checked: the current priority label matches the census priority bands; no reprioritization made.

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

    app/pm-stackeffort/mepic/pm-stackkind/refactormeta/protocol-gappriority/normalqueue/parkedsource/agentstatus/parkedstray-workuser/reviewwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions