Skip to content

C6 — Report pages & spaces freshness: mobile-first, questions module, confirmable actions, incident pages #9574

Open

Description

@dezren39

C6 — 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.

Activity

  1. developing-today commented on Nov 13, 2026

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

    @dezren39
    MemberAuthor

    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:
      1. the exact version it was quoted from;
      2. the newest version containing an exact match for the highlighted string;
      3. 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.
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.
  4. added
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/triagedTriaged and routed (see agent note)
    work/assignedQueue worker lifecycle state
    and removed on Nov 17, 2026
  5. 17 remaining items

  6. removed their assignment
    on Nov 20, 2026
  7. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: picked-up
    task: 20434 · lane: oc-code-08 · worker: repo-worker-code

    Claimed and checkpointed; fresh revalidation: #9574 and #9568 are OPEN, and no matching C6 PR exists. There are no held/user/owned/do-not-auto-edit labels. The prior checkpoint’s owner-handoff demand is not a valid hold. I found a packet-shape defect: this is a 45-minute small_fix packet for a six-part design plus three linked implementation issues, while #9574 is labeled kind/design and effort/l. The cloud-reset FDR gate applies before automation; the design may carry it as unresolved. No worktree or edits started.

  9. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    user/escalatedRequires a Drew decision or access
    on Nov 22, 2026
  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: blocked
    task: 20434 · lane: oc-code-08 · worker: repo-worker-code

    Blocked as packet_defect before implementation. The 45-minute small_fix packet requires a six-part C6 design, the detailed page-comment/anchor amendment, and three linked implementation issues, while the live component is labeled kind/design and effort/l. Fresh checks: #9574 and #9568 OPEN; no matching PR. The previous owner-handoff demand was not treated as a hold. Removed the stale user/escalated marker: the cloud-reset FDR is a pre-automation gate, not a blocker to documenting the design. No worktree or edits started.

    Resume: re-scope/split into design-sized work and re-enqueue. Preserve the cloud-reset FDR gate before any automation.

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/codeeffort/lLarge: multi-day or open-ended; expect staged check-inskind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statestatus/triagedTriaged and routed (see agent note)status:to-dotask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions