Skip to content

Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568

Open
1 of 8 issues completed

Description

@dezren39

Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter)

Directive: Drew, Reports side chat, 2026-11-13 09:11 CST. Urgency 400 (High).
This epic is the starter issue for the reporting-architecture design mill:
statement inventory → proto design (merged, see the design doc under
doc/2026-11-13T15-12-00Z_design_reporting-architecture-event-driven/) →
summit elaboration → component designs → granular issues. The epic does
NOT close on the design pass.

Program (five threads; thread 5 already routed away)

  1. Chat operating model — one category side chat per job family; jobs
    execute, update the backend/repo themselves, insert their update into
    their category chat insert-only (never read it), and end. Category map:
    Reports (exceptions/decisions), Lanes (all lane effort), Designs, Issues
    & PRs (all GitHub activity), Orchestration — queues, PM health &
    questions, Pools & Quota (detail). The intake audit (chat-by-chat fates +
    reroute list) is filed as this program's input; no rerouting ships
    before Drew approves the map.
  2. Event-driven reporting — Muse hooks + PM-stack triggers fill queue
    items directly; GitHub org webhook + catchup-scan items land logged in
    DBs AND in dedicated per-kind queues; hook drains fire at ≥10 new items
    or oldest item ≥15 min → triage issues, review PRs, ensure a task minds
    each, report quota current + projected. Heavy repeated crons retire;
    surviving crons are named with reasons. Health checks (PM stack
    reachable, OpenCode working) become failure-triggered hook scripts that
    troubleshoot and report immediately.
  3. Quota forecasting & efficiency — exhaustion / downtime /
    reset-duration predictions as ranges on recorded bases (trailing-30d,
    rates-until-last-reset, since-config-change, past-day vs 30d) with
    day-type and spike-day adjustments; predictions logged, scored, and the
    methodology refined until relatively accurate. Efficiency accounting
    (quota vs merged PRs), routing-mode policy (ordered / round-robin /
    weighted per provider), never-serve rules, free-provider inventory with
    TESTED context windows, plan/model recommendations. Push notifications.
  4. Report pages & spaces freshness — every space/report updated by its
    owning task as data arrives (staleness is a defect); spaces may run off
    a hook-produced JSON blob. Mobile-first is a hard requirement for
    all spaces, reports, and PM-stack pages. The shared questions module
    embeds beside facts; confirmation-bubble actions carry real effects
    (queue an OpenAI/Anthropic/Fable reset at 100%); error question sets
    spawn Muse tasks that update the page and notify. Custom incident
    report pages + period/predicted-wall pages; a searchable reports index.
  5. Rollups, design pages, Atlas — daily (midnight–midnight CT) /
    weekly (Mon–Mon CT) / monthly / quarterly activity pages answering
    "what did we do today?", with soft edit windows then restricted edit
    forms; period snapshots cloned into dated frozen library spaces;
    per-project spaces (Fleet, PM stack, Atlas, ID); per-design pages with
    subdesign trees and implementation rollups (done / in-progress /
    blocked / queued) up to roadmap/epic pages; a reports timeline
    (quarter → month → week → day). Everything ingests into Atlas many
    times daily, recency-biased, with metadata links, cross-linked
    embeddings, rich page metadata, and query-planner boosts for
    error-driven investigation (first-appearance of an error string →
    issues/PRs/commits → queue attempts/models/worktrees → transcript
    expectations → rhyming/class fixes).
  6. Identity material — NOT this program. Drew's kiosk / cross-signing
    elaboration was filed at intake as amendment comments on design(id): delegation + cross-signed identity ceremony #9132
    (pointers design(id): string-path names — per-server resolution, search lenses, standing, authority groups #9121, design(id): append-list user-attribute protocol — signed submission, server order, pending queue #9127) of the federation/namespaces program epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106.

Collisions (consume / extend, never duplicate)

#1184 (PM-stack coherence; at the 100-sub-issue cap → cross-linked, not
parented), #9196 (orchestration — dispatch/selection/lifecycle substrate),
#9060 + #9070/#9073/#9074/#9075 (hierarchy, genealogy, Metadata, session
state), #9091 (Atlas v1 — C8 is an input, not a parallel program), #9106
(identity amendment target), #9178 (queue claim surface this program
assumes), #9180 (this program's rulings get FDRs). The Fleet Reports Space
(17 streams) and page-health-push are existing surfaces, not competitors.

Safety gates

Designs + issues only from the mill. No live job, cron, hook, or chat
delivery changes in the intake pass; chat rerouting ships only after Drew
approves the audit map; the standing cloud-reset rule (thread 3) requires
Drew's explicit ruling (proposed as an FDR per #9180) before any
automation acts on it.

Acceptance

  • Statement inventory re-verified at atomic coverage by the summit
    (zero unmapped).
  • Component designs for C1–C8 merged under doc/, each answering its
    named open questions or batching them to Drew with defaults.
  • Granular implementation issues filed under each component.
  • Coverage audit + traceability matrix posted here.

{"pm_meta": 1, "kind": "epic", "program": "reporting-architecture", "source": "Reports chat directive 2026-11-13 09:11 CST", "components": ["C1 chat operating model", "C2 event pipeline", "C3 health hooks", "C4 quota forecasting", "C5 efficiency + provider/model policy", "C6 report pages & spaces freshness", "C7 rollups + design pages + timeline", "C8 Atlas ingestion & investigation boosts"]}

Acceptance criteria

  • Each programme thread (components C1-C8) has its design landed and granular implementation issues filed and linked.
  • No chat rerouting shipped before Drew approved the category map (thread 0 gate).
  • The epic's own rule is respected: it does not close on the design pass; it closes when its components' acceptance is met.

Sub-issues

Sub-issues

1 of 8 Issues completed
Loading 8 sub-issues

Activity

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

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

    @dezren39
    MemberAuthor

    Component index (filed at intake, 2026-11-13)

    Native sub-issues of this epic (verified by read-back):

    Thread 5 (identity) was routed at intake to the federation/namespaces
    program: amendment comment on #9132, pointers on #9121 and #9127.
    Cross-link to #1184 posted there (it is at the sub-issue cap; this epic is
    parented under #8990 per the #9060 precedent).

  4. 57 remaining items

  5. added
    status/blocked
    queue/blocked
    and removed
    status/parked
    queue/parked
    on Nov 17, 2026
  6. removed their assignment
    on Nov 20, 2026
  7. added
    epic/pm-stack
    on Nov 27, 2026
  8. added
    priority/high
    on Nov 29, 2026
  9. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

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

    State verified today: reporting-architecture design-mill starter epic (statement inventory → proto design merged → summit elaboration → component designs → granular issues). Thread 0s component C1 (#9569) is delivered except its Q3 archive remainder, which lives inside this programme.
    Pickup warning (the fact a picker needs first): this programmes design work is DIRECT-DISPATCH ONLY, reserved for its Summit owner (summit-direct). Its queue packet was incorrectly served to ordinary lanes 23 times (last recorded 2026-11-17) — ordinary lanes must NOT claim it; park it back if served.
    Blocker: availability of the summit-direct owner; no lane-routable work exists here.
    Census fixes: added priority/high, matching the bodys own stated urgency (Urgency 400 / High).
    Verdict: blocked — owner-reserved programme epic; detail complete.

  10. added
    priority/normal
    and removed
    status/blocked
    on Nov 29, 2026
  11. 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 kind label (kind not unambiguous from title/body — left for the picking-up lane to set)
    • carried a blocked status whose blockers have all closed
    • no concrete file/module pointers in the body

    FIXES I APPLIED:

    • removed status/blocked — every named/edged blocker is closed; issue is unblocked

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

    • Pickup: start from the title scope — "Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter)". Locate the owning code by searching the repo (~/workspace/gh-shim-work/code) for the title's key terms (Reporting architecture event-driven reporting quota forecasting living report p); the issue body/comments are the spec of record.
    • Prior PR references in this thread: docs(reporting): proto design — reporting architecture (design-mill intake, #9568) #9577 — 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

  12. added
    kind/design
    and removed
    priority/normal
    on Nov 29, 2026
  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: reporting-architecture design-mill starter epic (Drew directive 2026-11-13, urgency High — priority/high stands); kind/* missing — design-mill starter, kind/design added. Body had programme scope but no acceptance section; appended.

    Actions taken by this pass: labels added: kind/design; appended ## Acceptance criteria (original body text unchanged above it).

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

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-stackepicepic/pm-stackkind/designpriority/highqueue/blockedstatus:to-dowork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions