Skip to content

C2 — Event pipeline: webhook/catchup queues, threshold hook drains, cron triage #9570

Todo

Description

@dezren39

C2 — Event pipeline: webhook/catchup queues, threshold hook drains, cron triage

Component of the reporting-architecture program (starter epic #9568).
Source: Drew's directive, Reports chat, 2026-11-13 09:11 CST.
Statements: S1.1, S1.2, S1.4, S1.5, S1.6 (+ S0.9 mechanism, S3.2/S3.12 inputs).

Scope

Replace heavy repeated polling crons with events:

  • Items of a kind arriving from the GitHub org webhook or catchup
    scans
    are (a) logged, (b) inserted into the appropriate databases, and
    (c) gathered into dedicated per-kind queues (new issues, open PRs,
    CI failures, mentions, …).
  • Muse hook scripts check those queues and drain them on thresholds —
    default ≥10 new items OR oldest item ≥15 min (per-kind tuning is a
    design question) — and on drain: triage new issues, review open PRs,
    ensure a queue task minds each item, and report current + projected
    quota (forecast data from C4).
  • The PM stack triggers Muse directly to fill queue items (no
    polling intermediary).
  • Cron triage: every existing heavy repeated job is classified
    keep-as-check / convert-to-hook / retire; every surviving cron is named
    with its reason. Candidates named in the directive: most of the current
    sweep/monitor fleet; checks whose failure is itself the event move to C3.
  • Integration options across OpenClaw, OpenChamber, OpenCode,
    Cloudflare Workers, and the PM stack
    are evaluated and the chosen
    topology recorded (FDR per fleet decision records: document queue and attribution decisions durably #9180).

Boundaries / collisions

Acceptance

  • Event-kind inventory + per-kind queue + threshold table in a merged
    design.
  • At least one kind (GitHub issues) draining end-to-end via hooks:
    webhook → DB + queue → threshold drain → tasks minded → report.
  • Cron triage table covering every heavy repeated job, each with a
    named disposition; retirements executed only after replacements
    verified for one full cycle.

Acceptance criteria

  • GitHub webhook / catchup-scan items are logged, inserted into the databases, and gathered into dedicated per-kind queues.
  • Hook drains fire at the stated thresholds (>=10 new items OR oldest >=15 min, per-kind tuning recorded) and on drain: triage new issues, review open PRs, ensure a queue task minds each item, report current + projected quota.
  • Cron triage complete: every surviving heavy repeated job is named with its reason; the rest are converted to hooks or retired.

Activity

  1. added
    app/pm-stack
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    Contributor
  3. added
    kind/design
    priority/high
    effort/l
    on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Triage (task 19036, lane code-d, 2026-11-16): #9570 C2 event pipeline is a program component of the reporting-architecture epic #9568 — design-mill route, not a lane fix.

    Fresh verification (2026-11-17T05:38Z):

  5. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Triage revalidation (task 20426, openchamber scheduled lane code-h, 2026-11-17T19:00 CST): fresh state checked. #9570 is still OPEN, and its parent epic #9568 is still OPEN. The verdict from task 19036 stands: C2 is a design-mill item under #9568, not a lane fix. Routing unchanged: the summit-owned C2 design (event-kind inventory, per-kind queue and threshold table, FDR per #9180). No follow-on packet enqueued, to avoid competing with that ownership. Completing as triaged.

  6. removed their assignment
    on Nov 20, 2026
  7. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · second-pass verify (task 21984, lane oc-code-06)

    Second-pass verdict fresh 2026-11-24 (main 9c2b4ad096e): OPEN, design-mill component — no lane packet routed.

  8. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Claimed by lane 4, 2026-11-26T07:55Z. Writing the C2 design record: an inventory of event kinds, a queue and threshold table for each kind, the end-to-end drain path for GitHub issues, and a cron triage table built from the jobs defined in the repo. Under Drew's 2026-11-24 ruling, a design-only gate is void, so this record does not wait on the summit. Retiring any job still waits on a verified replacement.


    Generated by Claude Code

  9. 6 remaining items

  10. added
    primary-parent/pm-stack
    stray-work
    on Nov 27, 2026
  11. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note — 2026-11-29 (lane CEN-C09, full issue census)

    State verified today: C2 design record is merged (PR #15450, D1-D8: events-table single log, per-kind watermark queues, threshold table, drain signals). Acceptance box 1 is met.
    Gap (the pickup blocker): acceptance boxes 2 (GitHub-issues kind draining end-to-end) and 3 (cron conversions/retirements after one verified cycle) need the build, and NO scoped C2-S1..S4 build issues exist yet — two triage passes (2026-11-27) both stopped at this same gap.
    Next step: file the C2-S1..S4 build slices from the records §8 sequence, then implement. Parent epic #9568 remains open.
    Census fixes: none — priority/high stands; labels sane.
    Verdict: needs-detail — design is complete; the filed build slices are whats missing.

  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue — details, labels, blockers, priority (rechecked from scratch; prior detail did not exempt it).

    STRENGTHS:

    GAPS FOUND:

    • no concrete file/module pointers in the body

    FIXES I APPLIED:

    • none needed

    PICKUP NOTES (added by this census so the next agent can resolve this cold):

    • Pickup: start from the title scope — "C2 — Event pipeline: webhook/catchup queues, threshold hook drains, cron triage". Locate the owning code by searching the repo (~/workspace/gh-shim-work/code) for the title's key terms (C2 Event pipeline webhook/catchup queues threshold hook drains cron triage); the issue body/comments are the spec of record.
    • Prior PR references in this thread: docs(reporting): C2 event pipeline design record (#9570) #15450 — read them before writing code; the remaining work is whatever they did not land.
    • Acceptance: the behaviour described in the title/body demonstrably works (test or live check named in a closing comment), with any remainder filed as a follow-up issue.

    REMAINS: nothing — ready for pickup

  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29 (wave 2 residual pass)

    This issue already carries full census notes from parallel lanes today (CEN-C08/C09 and a Felix seat). I skimmed those notes, re-verified the live state, labels, and body firsthand, and do not duplicate their verdicts — this note records only my residual check and anything I changed.

    Residual check: component C2 of #9568; kind/design, effort/l, priority/high already present. Body had scope but no acceptance section; appended from the body's own scope.

    Actions taken by this pass: appended ## Acceptance criteria (original body text unchanged above it).

    Priority: priority/high — stands; no band change by this pass.

  14. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Issue census follow-up — 2026-11-29 (untouched-items remediation)

    The Xaltha-seat census (lane CEN-C09) recorded a needs-detail verdict: the C2 design is complete (merged record, PR #15450, decisions D1–D8) and acceptance box 1 is met, but the build slices were never filed, so boxes 2 (GitHub-issues kind draining end-to-end) and 3 (cron conversions/retirements after one verified cycle) have no implementation home. Disposition: the owed detail is pinned exactly — the next step is filing the scoped build slices C2-S1..S4 from the merged design record, which is programme-lane work (the slices must be cut against the design's own contracts, not reconstructed here). Until they are filed, this issue is the design's home and its state is as stated. Verdict recorded as an owed filing, not a blocker.

  15. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 Claim — lane 2337-G (Archer, alpha DRIVE 2026-11-29 23:37 CST, AUTHOR lane).

    Taking the bounded slice three census lanes named as #9570's next step (CEN-C09 2026-11-29, Felix pickup notes, census follow-up 2026-11-30T01:52Z): file the scoped build slices C2-S1..S4 from the merged design record (doc/2026-11-26T07-52-58Z_design_c2_event_pipeline/2026-11-26T07-52-58Z_design_c2_event_pipeline.md, PR #15450, §9), so acceptance boxes 2 (GitHub-issues kind draining end-to-end, slice C2-S2) and 3 (cron conversions/retirements after one verified cycle, slice C2-S4) have implementation homes.

    Verified firsthand this run: design record read in full via the contents API; a title search for C2-S in this repo returns zero issues — no slice exists yet. Queue broker down (#16762); claim is by this comment. Priority validation 2337-G: priority/high concurred for #9570 (important + time-sensitive programme component; no legacy band). Key: 2337-G

  16. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 Resolution — lane 2337-G (Archer, alpha DRIVE 2026-11-29): the C2-S1..S4 build slices are filed; claim released.

    From the merged design record §9 (PR #15450), each with the design's scope, hard edge, and checkable acceptance criteria:

    Verified by read-back: all four issues are OPEN with priority/normal + effort (m/m/m/l) + kind/feature labels. #9570 itself stays open — its remaining work now has implementation homes, in dependency order, starting with #17075. Key: 2337-G

  17. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Lane 2352-K (bravo SUSTAIN) — C2 chain record straightened.

    Key: 2352-K

  18. added 2 commits that reference this issue on Nov 30, 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

    app/pm-stackeffort/lepic/pm-stackkind/designprimary-parent/pm-stackpriority/highstatus/in-reviewstray-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions