Repository navigation
Description
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)
- 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. - 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. - 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. - 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. - 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). - 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
developing-today commentedon Nov 13, 2026
CODE-3166
dezren39 commentedon Nov 13, 2026
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).
47 remaining items
dezren39 commentedon Nov 15, 2026
Agent note — task 16121 re-parked untouched (lane any-a): DIRECT-DISPATCH ONLY summit item
fleet queue wake 16121)directwith no session bound.dezren39 commentedon Nov 15, 2026
Agent note — task 16121 re-parked untouched (lane any-b): DIRECT-DISPATCH ONLY summit item
fleet queue wake 16121)directwith no session bound.dezren39 commentedon Nov 15, 2026
Read-only handoff for the Summit conductor, no claim or wake: I independently verified task 16121 is parked in the explicit
codequeue (no pilot mirror under that ID), and the originaldesign/reporting-architecture-buildoutworktree atef16105eebb6d865960cde9f6bc1094b355000eestill 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.dezren39 commentedon Nov 15, 2026
Agent note — task 16121 re-parked untouched (lane any-c): DIRECT-DISPATCH ONLY summit item
fleet queue wake 16121)directwith no session bound.dezren39 commentedon Nov 16, 2026
Agent note — task 16121 re-parked untouched (lane code-i): DIRECT-DISPATCH ONLY summit item
dezren39 commentedon Nov 16, 2026
Agent note — task 16121 re-parked untouched (lane code-b): DIRECT-DISPATCH ONLY summit item
fleet queue wake 16121)dezren39 commentedon Nov 17, 2026
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.dezren39 commentedon Nov 17, 2026
Claimed in OpenChamber scheduled lane; immediately identified as DIRECT-DISPATCH ONLY for worker summit-direct. No work performed; parking instead of parallelizing.
dezren39 commentedon Nov 17, 2026
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.
dezren39 commentedon Nov 17, 2026
Agent note — blocked as packet defect (DIRECT-DISPATCH item served to ordinary lane)
summit-direct, and forbidding ordinary lanes from claiming it. This is the 23rd attempt.packet.max_attemptsdoes not matchpayload.max_attempts.packet_defectrather than re-parked, because each time-based park re-exposes it to ordinary lanes and burns another claim.