GeezerVison is showing github.com — C6 — Report pages & spaces freshness: mobile-first, questions module, confirmable actions, incident pages · Issue #9574 · developing-today/code
C6 — Report pages & spaces freshness: mobile-first, questions module, confirmable actions, incident pages #9574DescriptionC6 — Report pages & spaces freshness: mobile-first, questions module, confirmable actions, incident pages
Component of the reporting-architecture program (starter epic #9568).
Source: Drew's directive, Reports chat, 2026-11-13 09:11 CST.
Statements: S3.1–S3.17 (+ S2.12 surfaces).
Scope
- Freshness contract: every space and report is updated routinely by
its owning task as data arrives; a space stale beyond its class budget
is a defect with an exception path to Reports. (Known wound: spaces have
been found days stale; the Fleet Reports Space job-status/pool-status
display defect is an input, recorded on Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568.)
- Data-blob architecture: pages/spaces may render from a JSON data
blob produced by hooks (C2/C3); the refresh job only swaps the data
object or its file pointer — presentation and data evolve separately.
- MOBILE-FIRST (hard requirement): all spaces, reports, and PM-stack
pages are designed for a phone first — relatively large font, narrow
width. Desktop is an adaptation (two-column tiles, wider emphasis) or a
separate/degraded view — never the design target.
- Questions module everywhere: the shared questions module embeds
beside facts on quota and other pages. Confirmation-bubble actions with
real effects, queueable from mobile: queue an OpenAI / Anthropic /
Fable reset when the matching weekly/monthly quota reaches 100%;
candidate standing rule — when all other queues are down and Claude
reaches 100%, trigger a cloud reset immediately (requires Drew's
explicit ruling, recorded as an FDR per fleet decision records: document queue and attribution decisions durably #9180, before automation).
- Error question sets: on a page error — Should I try to fix it?
Hotpatch the binary the service runs? Trigger a NixOS reset? Wait for
downtime, then reset? Plus free feedback / comments / multi-selects.
Answers spawn Muse tasks that do the work, update the page, and notify
(push / category chat / main chat).
- Custom report pages: per-incident pages with their own graphs and a
story (start, beginning, end), updated over time: progress; fix attempts
("trials and tribulations"); findings; recurrence-prevention issues;
related previous incidents; final root cause; short/medium/long-term
remediation. (Shape case: the Claude authentication outage.) Period and
forecast pages: today's activity; predicted workhorse full-wall;
predicted wall-until (data from C4); pool-availability/quota-change
specials. Not every wall/reset earns a page — the design names the
threshold.
- Reports index: all reports listed somewhere searchable (the
question-sets list is the precedent), feeding C7's timeline and C8's
ingestion.
Boundaries / collisions
- Builds on the Fleet Reports Space + PM-stack pages; the questions module
and decision machinery (pending-questions / decision-set processor) are
generalized, not replaced by a second system.
- Reset actions ride the pool steward's existing audibles/reset machinery;
this component owns the page surface and the ask, not a new actuator.
Acceptance
- Merged design: freshness budgets per page class, blob schema,
mobile-first layout rules, questions-module action contract,
incident-page template.
- One quota page live with an embedded questions module and a
confirmable reset action working from mobile.
- One real incident rendered as a full incident page (the Claude auth
outage is the candidate).
- Reports index live and searchable.
Activitydeveloping-today commented on Nov 13, 2026 dezren39 commented on Nov 13, 2026 Amendment — Drew's directive, 2026-11-13 11:43 CST (Reports chat; verbatim staged at workspace/reporting-architecture-intake-20261113/sources/directive-2026-11-13-pages-comments-templates-graph.md). Routed here as an amendment to C6; no new issue filed. The rollup/period half of the same directive is on C7 #9575; the epic-level flag is on #9568.
(i) Comments & annotations on pages
- Every report page supports page comments, section annotations, and comments on highlighted text selections, with replies to comments (threaded).
- A selection produces a quote URL: pasting that URL into any message renders a quote message — the highlighted excerpt, plus surrounding context and the section it sits under.
- The design should state whether this is feasible with or without CRDTs; operational transforms are named as a candidate mechanism for resolving selections. Feasibility either way is Drew's expectation; the chosen mechanism and its limits belong in this component's design.
(ii) Version-pinned anchors
- Every anchor carries the exact version / content hash of the report it was taken from. A quote is always the exact original text — edits never change what an existing quote block contains.
- Opening a quote link offers three resolution modes, all of which the design must support:
- the exact version it was quoted from;
- the newest version containing an exact match for the highlighted string;
- the newest version with a fuzzy (close) match — similarity bar in the ~80–95% range (95% and 80% both floated; the design picks and defends a default), weighted by lines changed above/below the match and by relative position, and guarded against matching a merely similar line elsewhere in the page.
- Fuzzy display rule to specify: within a fuzzy-matched highlight, words changed since the original are de-emphasized, and newly changed words are brightly highlighted / bolded. The design must fix this presentation precisely.
- Named risk, accepted knowingly: a small edit (typo fix, one bullet split into two) should still resolve — but a small edit can also flip a phrase's meaning; the fuzzy path must surface that it is fuzzy rather than present the match as exact.
(iii) Stable section IDs
- Every section has a stable ID that survives display-name changes; the "most recent page" link resolves to the same section via that ID.
- Coexisting addressing schemes:
- Index:
0 = everything before the first major header (preamble); 1..n = major sections in order; -1 = everything from below the last item to the end; -2 = second-from-last; etc.
- Slug: e.g. anchor
objective for the primary-objectives section.
- Line index: e.g. a section reachable by index
3 if it is the third line/item.
- Exact use cases are not all known yet — the addressing exists so it can be used ("they won't be used if they don't exist").
(iv) Edit / version system
- Every edit is recorded as an attributed diff (who/what agent, when). Pages are centrally managed by the PM stack: no forks or splits by default. The
apply / apply as a template pattern used elsewhere recently is to be evaluated: apply an edit as-is, or apply it while supplying a new title / filling in fields.
- Edit summaries default to basic imperative auto-descriptions: time of edit, number of lines changed, primary sections touched, data appended at end — e.g. "Edited introduction and added two sections."
- Edits can be renamed after the fact, and marked as templates with placeholders that accept form-field values. New pages can also be templates (see (v)).
(v) Template engine (page mechanics)
- Documents are Markdown with a mixture of inline and full-line HTML-comment-style markers: every template variable becomes a start marker and an end marker carrying the variable name plus the rendered value bracketed between/around them. Template variables therefore remain present but invisible in the rendered document — editing the file shows actual rendered values with the template scaffolding intact.
- Refresh modes per variable: render once; replace on every save; append once; prepend once; append/prepend every time; optional separator string for appends/prepends.
- Spent-state tokens: a one-shot directive flips state in the document itself — e.g.
append beginning becomes append beginning idle after firing; removing the idle marker re-arms it. Full re-updates (e.g. at day rollover) may re-arm specified lines.
- Variable values are DB-backed: a table holds every value/edit of each variable for tracking and diffing (this is what lets query-shaped variables below be answered historically).
- Query-shaped variables (retrieval over the rollup store, cross-ref C7 C7 — Rollups, design pages, per-project spaces, reports timeline #9575): "top three items for the first day of this month / last month / April 2024"; "last month's week 1 / week 2 biggest three"; "biggest three good / negative / surprising"; "last month's introduction / summary / statistics / biggest designs / biggest changes"; "last month's predictions for next month"; "last quarter's projections for next quarter and for each month of it"; "last week's predictions for this week"; "yesterday's predictions for the next two or three days."
- In-document agent hints (advanced, to design for): markers a user or bot can add meaning queue up, trigger immediately, refactor this section / review the whole document with this in mind, regenerate data points or images with latest data — executed by queueing an agent task or firing immediately through a hook into OpenCode/Muse.
- Template variable catalogue to support at minimum:
timestamp; number of open issues; projects.<id>.open_issues; quota.workhorse.open; quota.workhorse.summary; quota.projected.*; walls; renewals; underprovisioned / under-quota-projected flags; "areas to watch" config-change candidates with reasons (wrong model provider, best used elsewhere, provider switch ordered→weighted/round-robin, effort too high/low, outsized cost for pool tier, providers performing well, providers unable to supply sufficient tokens or sessions, providers not providing enough sessions after each quota reset relative to cost); merged PRs; accepted designs; work that needed no rework and caused no bugs; negative-feedback items.
- Generic structure guidance: standard variable shapes so the same query grammar works across pages and periods.
dezren39 commented on Nov 17, 2026
Agent note — state: triaged · task 19040, lane code-e
Inline triage of #9574 (C6 — Report pages & spaces freshness), fresh 2026-11-17T05:5xZ:
- Issue C6 — Report pages & spaces freshness: mobile-first, questions module, confirmable actions, incident pages #9574 OPEN, labels at claim: app/pm-stack, status:to-do only. No hard stops (held / user/owned / do-not-merge / do-not-auto-edit absent). No prior triage note on the issue (2 comments: Kaneo link; Drew's 2026-11-13 amendment adding page comments/annotations to C6 scope).
- Parent epic Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 (reporting architecture, design-mill starter) OPEN. C6 is one component: freshness contract + data-blob rendering, mobile-first pages, questions module with confirmable actions, incident/period pages, reports index.
- Kind: kind/design. Priority: priority/normal (brief line 4 program — PM stack/reports — kept moving, but C6 is one component among siblings C1–C8 with no fleet-blocking downstream today; matches sibling C7 — Rollups, design pages, per-project spaces, reports timeline #9575). Effort: effort/l (multi-part design + staged implementation). Work kind: task/small-fix follow-on scoped to the design acceptance only (below).
- Embedded Drew gate (not a blocker for the design): the candidate standing rule "when all other queues are down and Claude reaches 100%, trigger a cloud reset immediately" requires Drew's explicit ruling recorded as an FDR per fleet decision records: document queue and attribution decisions durably #9180 before any automation. The design must carry it as an unresolved gate; no other part of C6 waits on it.
- First concrete step: the merged C6 design (acceptance item 1): freshness budgets per page class, data-blob schema (builds on C2/C3 hooks, generalized not replaced), mobile-first layout rules, questions-module action contract (riding the pool steward's existing reset machinery — no new actuator), incident-page template, reports-index shape.
- Acceptance check for the follow-on: design PR merged covering those six elements, with the fleet decision records: document queue and attribution decisions durably #9180 ruling gate named as unresolved; granular implementation issues filed from it for the live quota page, the Claude-auth-outage incident page, and the reports index.
- Routing: scoped design packet enqueued as task 20434 (dedupe repo-health:v1:fix:developing-today/code:issue:9574, status queued); this triage task completes as triaged naming that follow-on.
added kind/designA design proposal (design-architect): multi-step, phased, decision-bearing effort/lLarge: multi-day or open-ended; expect staged check-ins task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests and removed on Nov 17, 2026dezren39 commented on Nov 25, 2026
C6 design is drafted and the review findings are incorporated: canonical report-record identity/storage, reader-side freshness aging, stale-worker compare-and-swap, deterministic fuzzy matching, template validation/save lifecycle, C3 incident-detail provenance, and additive/versioned index endpoints. Filed and enqueued the three implementation triage items as tasks #23772–#23774 in repo-health-code-pilot. The #15002 unattended-reset boundary remains excluded pending its FDR. Next: validate and open the design PR. dezren39 commented on Nov 25, 2026
C6 design slice complete:
- PR merged: C6 design: report pages, freshness, questions, annotations (#9574) #15027 (commit 780dec0)
- Design:
doc/2026-11-13T15-12-00Z_design_reporting-architecture-event-driven/c6-report-pages-design.md, linked from note.md and doc/README.md
- Review findings incorporated: canonical report-record identity (
page_id / record_id / content hash), canonical report-record storage semantics for period and typed non-period records, reader-side freshness aging from successful observations, stale-worker compare-and-swap, deterministic fuzzy matching, strict template lifecycle/save semantics, C3 healthHook/alert-ledger incident provenance, additive/versioned index endpoints preserving /api/reports.json
- Existing-substrate reuse specified:
FreshnessStore/delivery, quota-refresh.ts, decision/question contract, alerts incident ledger
- Implementation follow-ons filed and live-tasked: C6 slice: mobile quota page with questions and confirmed reset action (#9574) #15018 (quota page) task 23772, C6 slice: render one evidence-backed incident page (#9574) #15019 (incident page) task 23773, C6 slice: searchable reports index feeding C7 and C8 (#9574) #15020 (reports index) task 23774, all queued in
repo-health-code-pilot
- Boundary: C6 child — unattended cloud-reset rule at 100% quota (rejected; use confirmation) #15002 remains the only blocked remainder (
status/blocked, queue/blocked) pending the required FDR under fleet decision records: document queue and attribution decisions durably #9180 (CLOSED convention; no ruling recorded)
Next: route and implement the three slices. developing-today-fleet commented on Nov 25, 2026 C6 slice 2, first slice landed for review: PR #15109 implements the §6.1 incident page in the pm-stack aggregator (envelope per §1.1, /reports/incident/:id + JSON twin, linked from /alerts incident cards). The rendered incident is the OpenCode working outage of 2026-11-23 (alerts-ledger 1de30604 / healthHook dfb9f3e2) — the Claude-auth shape case has no ledger records, so the first §6.2-threshold incident was used, per #15019's fallback rule (choice documented on #15019, comment 7162248876). Root cause renders provisional: the records show the unit was SIGTERM-stopped without identifying the source. Refs #15019 developing-today-fleet commented on Nov 26, 2026 Triage verdict (lane code-i, 2026-11-26)
Fresh state: acceptance met — closing with evidence. The 2026-11-25 verdict kept this umbrella open "until the design merges and its slices land"; that condition is now satisfied:
Both acceptance checkboxes are met. The one open remainder — the automatic cloud-reset rule at 100% quota — was deliberately split out as blocked child issue #15002 (OPEN, awaiting Drew's FDR ruling per #9180) and is tracked there, not here. No new queue packet: nothing buildable remains on this umbrella. developing-today-fleet commented on Nov 26, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|