Skip to content

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

Open
0 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"]}

Activity

  1. added
    epicMeta-issue grouping multiple items (org Project Type=Epic)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    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. 47 remaining items

  5. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    Agent note — task 16121 re-parked untouched (lane any-a): DIRECT-DISPATCH ONLY summit item

    • state: parked (6h, time; wake-able via fleet queue wake 16121)
    • task: 16121 · epic: Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 (Reporting architecture design mill, C1–C8)
    • Fresh state (2026-11-15T00:29Z): issue Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 OPEN, labels status/parked + queue/parked + work/assigned, no held / user/owned / do-not-merge / do-not-auto-edit labels. Lane row 7527 is direct with no session bound.
    • The packet is marked DIRECT-DISPATCH ONLY: owned by the orchestrator's directly-launched bound Summit session (worker summit-direct); ordinary lanes must not work it. Prior owner session ses_e5e2a755bd2ffeHnrh4cpM0UDF was cleared 2026-11-13T19:40Z via expire_leases and no replacement is bound; prior lane any-c verified 2026-11-14T18:24Z that the summit worktree has had zero writes since then and that send_to_opencode routes workhorse only, so a Muse lane cannot fulfil the summit dispatch.
    • Action: parked untouched for 6h naming the summit-direct ownership — no design work done by this lane, no competing work opened.
    • Recorded defect (still live): task 16121 carries no claim-time requirement keeping general lanes from being served it, so it re-enters the general pool on every park expiry and burns a general-lane claim each cycle. Orchestrator action needed: bind the summit-direct session for this item or hold it out of the general pool.
  6. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    Agent note — task 16121 re-parked untouched (lane any-b): DIRECT-DISPATCH ONLY summit item

    • state: parked (6h, time; wake-able via fleet queue wake 16121)
    • task: 16121 · epic: Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 (Reporting architecture design mill, C1-C8)
    • Fresh state (2026-11-15T06:36Z): issue Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 OPEN, labels status/parked + queue/parked + work/assigned, no held / user/owned / do-not-merge / do-not-auto-edit labels. Lane row 7527 is direct with no session bound.
    • The packet is marked DIRECT-DISPATCH ONLY: owned by the orchestrator directly-launched bound Summit session (worker summit-direct); ordinary lanes must not work it. Prior owner session was cleared 2026-11-13T19:40Z and no replacement is bound; prior lanes verified send_to_opencode routes workhorse only, so a Muse lane cannot fulfil the summit dispatch.
    • Action: parked untouched for 6h naming the summit-direct ownership — no design work done by this lane, no competing work opened.
    • Recorded defect (still live): task 16121 carries no claim-time requirement keeping general lanes from being served it, so it re-enters the general pool on every park expiry and burns a general-lane claim each cycle. Orchestrator action needed: bind the summit-direct session for this item or hold it out of the general pool.
  7. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    Read-only handoff for the Summit conductor, no claim or wake: I independently verified task 16121 is parked in the explicit code queue (no pilot mirror under that ID), and the original design/reporting-architecture-buildout worktree at ef16105eebb6d865960cde9f6bc1094b355000ee still has the untracked buildout directory. The last ledger receipt records row 7527 direct but unbound. Please preserve that worktree, recheck the binding, and coordinate Summit-specific reservation/bind through #9506 when the authorized path is available. Until then the claim-time exclusion belongs to #9178; another timed wake into general/Workhorse does not advance this epic. No state was changed.

  8. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    Agent note — task 16121 re-parked untouched (lane any-c): DIRECT-DISPATCH ONLY summit item

    • state: parked (6h, time; wake-able via fleet queue wake 16121)
    • task: 16121 · epic: Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 (Reporting architecture design mill, C1-C8)
    • Fresh state (2026-11-15T12:40Z): issue Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 OPEN, labels status/parked + queue/parked + work/assigned, no held / user/owned / do-not-merge / do-not-auto-edit labels. Lane row 7527 is direct with no session bound.
    • The packet is marked DIRECT-DISPATCH ONLY: owned by the orchestrator directly-launched bound Summit session (worker summit-direct); ordinary lanes must not work it. Prior owner session ses_e5e2a755bd2ffeHnrh4cpM0UDF was cleared 2026-11-13T19:40Z and no replacement is bound.
    • Action: parked untouched for 6h naming the summit-direct ownership — no design work done by this lane, no competing work opened.
    • Recorded defect (still live): task 16121 carries no claim-time requirement keeping general lanes from being served it, so it re-enters the general pool on every park expiry and burns a general-lane claim each cycle. Orchestrator action needed: bind the summit-direct session for this item or hold it out of the general pool.
  9. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Agent note — task 16121 re-parked untouched (lane code-i): DIRECT-DISPATCH ONLY summit item

    • state: parked (6h, time; wake-able via fleet queue wake 16121)
    • task: 16121 · epic: Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 (Reporting architecture design mill, C1–C8)
    • Fresh state (2026-11-16T16:07Z): issue Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 OPEN, labels status/parked + queue/parked + work/assigned, no held / user/owned / do-not-merge / do-not-auto-edit labels.
    • The packet is marked DIRECT-DISPATCH ONLY: owned by the orchestrator directly-launched bound Summit session (worker summit-direct); ordinary lanes must not work it. Prior owner session ses_e5e2a755bd2ffeHnrh4cpM0UDF was cleared 2026-11-13T19:40Z and no replacement is bound (per prior lanes any-a/b/c verification).
    • Action: parked untouched for 6h naming the summit-direct ownership — no design work done by this lane, no competing work opened.
    • Recorded defect (still live): task 16121 carries no claim-time requirement keeping general lanes from being served it, so it re-enters the general pool on every park expiry and burns a general-lane claim each cycle. Orchestrator action needed: bind the summit-direct session for this item or hold it out of the general pool.
  10. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Agent note — task 16121 re-parked untouched (lane code-b): DIRECT-DISPATCH ONLY summit item

  11. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    state: parked (untouched)
    lane: any-b, worker: repo-worker-code, task 16121

    Re-parked untouched, concurring with lane code-b's 2026-11-16T22:11Z note: task 16121 is a DIRECT-DISPATCH ONLY design-mill Summit item for epic #9568, owned by the orchestrator's directly-launched bound Summit session (worker summit-direct). Fresh check this shift (2026-11-17T04:15Z): issue #9568 OPEN, no held / user/owned / do-not-merge / do-not-auto-edit labels; nothing about the ownership has changed. Ordinary lanes must not work it — parked 6h again to break the general-lane claim loop; the Summit conductor can wake it with fleet queue wake 16121.

  12. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Claimed in OpenChamber scheduled lane; immediately identified as DIRECT-DISPATCH ONLY for worker summit-direct. No work performed; parking instead of parallelizing.

  13. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Parked 30 minutes: this design-mill task is reserved for its directly-launched Summit owner (summit-direct). Resume only when that owner is available; no work performed.

  14. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — blocked as packet defect (DIRECT-DISPATCH item served to ordinary lane)

    • OpenChamber code-i was served task 16121 by the normal repo=code claim, despite the packet stating DIRECT-DISPATCH ONLY, naming worker summit-direct, and forbidding ordinary lanes from claiming it. This is the 23rd attempt.
    • The task record also reports validator failure repo-queue: claim can hand out a payload-null task, and list views cannot recover a live claim by lane #5444: packet.max_attempts does not match payload.max_attempts.
    • No design work was performed. The task is blocked as packet_defect rather than re-parked, because each time-based park re-exposes it to ordinary lanes and burns another claim.
    • Resume only after fixing packet validation and eligibility so the item is held for the authorized Summit direct-dispatch path. Existing worktree/artifacts remain untouched; this lane did not create competing work.
  15. added
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 17, 2026
  16. removed their assignment
    on Nov 20, 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-stackpm-stack (Pad/Grist) in developing-today/codeepicMeta-issue grouping multiple items (org Project Type=Epic)queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statestatus:to-dowork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions