GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm · Issue #1116 · developing-today/code

feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm #1116

New issue
Copy link
New issue
Copy link
Closed
#7965
Closed
feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm#1116
#7965
Copy link
Assignees
dezren39
Labels
effort/mMedium: expected under 1 day of workepic/saas-serviceEpic: epic/saas-service (fleet reprioritization 2026-11-12)meta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudqueue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditionstatus:donetask/fixhas a fix task queuedwork/assignedQueue worker lifecycle state
Milestone
SaaS service

Description

@dezren39
dezren39
opened on Oct 27, 2026
Issue body actions

Part of epic #1047. Design: hub-v2-v3-design-2026-10-26.md §6.

The hub can fail silently today: if the fleet feed goes stale or a section falls back to fixtures, the page still renders (the pm-feed pull-to-main caveat; collector boot-persistence is code#903, a dependency — do not duplicate it).

Add: (1) collector heartbeat timestamp carried in the feed; (2) aggregator surfaces feed age prominently (footer + /api/health) and flags any facet on fixture fallback; (3) a drift check on the sandbox pm-feed checkout vs origin/main, surfaced in the same health view; (4) stewardship's hourly staleness check (live in its DAILY CONSOLE READS block) names a stale feed as a finding.
Acceptance: killing the collector in a test makes the dashboard visibly say so within one collector interval; silence means healthy.

Activity

Next
  1. dezren39
    added
    meta/follow-upFollow-up spun out of earlier work
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    developing-todayBot
    on Oct 27, 2026 – with developing.today
    Contributor
    More actions

    CODE-254

  3. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Oct 29, 2026
  5. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane A shift
    • Session / ID: queue task 2401
    • Found via: queue claim
    • Task: Triage feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm #1116 — check which of its four self-monitoring items still stand on current main, and route the remainder
    • Expectation: effort s (triage); done = verdict posted item-by-item with HEAD evidence and the remainder enqueued as one scoped packet
    • Links: epic epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047; design §6; dependency fix(pm-stack): fleet-feed-collector units do not survive a sandbox recycle #903 (closed); related landed work fix(aggregator): provenance footer is one jargon line and contradicts page content - replace with per-source freshness chips #1138, impl(fleet): staleness watchdog - surface dead/stale stack inputs as NEEDS ORCHESTRATOR instead of silent decay #1148, feat(quota-plane): quota-gatherer service in the PM stack — 15-minute tick, quota-current contract #1151
  6. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane A shift
    • Session / ID: queue task 2401 (triage) → follow-up queue task 3010
    • Found via: queue claim
    • Task: Triage verdict for feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm #1116 — item-by-item against HEAD
    • Verdict — PARTIALLY LANDED; remainder confirmed and routed. (1) Collector heartbeat/feed age: landed — health.ts assembles per-section feed ages (15-min stale threshold) plus a collector block (generatedAt/fileMtime/ageMs) for /api/health, feed.ts diagnoses sections as live/absent/invalid/stale, and the quota gatherer carries a heartbeat (tickAt/ok, feat(quota-plane): quota-gatherer service in the PM stack — 15-minute tick, quota-current contract #1151). (2) Feed age surfaced + fixture-fallback flags: landed — freshness chips (fix(aggregator): provenance footer is one jargon line and contradicts page content - replace with per-source freshness chips #1138) and stale banners in render.ts; sources/live.ts provenance names exactly which facet is live vs fixture-backed (e.g. "fixtures (no fleet feed file yet)"). Dependency fix(pm-stack): fleet-feed-collector units do not survive a sandbox recycle #903 is closed. (3) pm-feed checkout drift vs origin/main in the health view: NOT built — health.ts contains no drift/git/checkout logic at all. (4) Stewardship hourly check naming a stale feed as a finding: not evidenced in the stewardship skill files.
    • Routing: remainder packet enqueued as queue task 3010 (dedupe repo-health:v1:fix:developing-today/code:issue:1116): drift check in the health view, stewardship stale-feed finding (verify-then-add), and an end-to-end run of this issue's acceptance test (collector stopped → dashboard says stale within one interval), fixing any footer feed-age prominence gap that test exposes. The landed surfaces are explicitly out of scope — do not rebuild them.
    • Expectation: feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm #1116 stays open with queue/queued until task 3010 lands the remainder, at which point it can close.
    • Links: epic epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047; dependency fix(pm-stack): fleet-feed-collector units do not survive a sandbox recycle #903 (closed); packet packet-task2401-fix1116.json (goal hidden_files)
  7. dezren39
    added
    queue/queuedHas a queued queue task
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  8. 210 remaining items

    Load more actions
  9. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-v (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-v run 2026-11-09; task 14246
    • Found via: claimed task 14246 this shift (lane stamp code-v verified); execution-lane assignment returned opencode (lane row 5518), so this lane handed it off per runbook §1b and did not work it itself.
    • Task: task 14246 (small_fix) for issue feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm #1116. Fresh check: issue feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm #1116 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Attempts 4/4.
    • Expectation: claimant launches the bound opencode session for task 14246 (scheduled shift is time-bounded; claimant is the persistent execution session) and drives it to a terminal state.
    • Links: task 14246 · issue feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm #1116
  10. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1
    lane: code-f
    task: 14246
    kind: small_fix
    issue: #1116
    stage: handed_off
    execution_lane: opencode (assignment row 5518)
    handoff_reason: scheduled shift is time-bounded; claimant is the persistent execution session
    verified: issue #1116 OPEN, no hard-stop labels (held/user/owned/do-not-merge/do-not-auto-edit absent), no status/needs-triage
    next: claimant launches the bound opencode session

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Evidence update — the fixture fallback fired on the production attention feed, 2026-11-10

    Filed here because this issue (self-monitoring: feed staleness + fixture-fallback alarm) is exactly the alarm that would have caught this; it did not exist/run, and the incident is the proof case. Fleet-minder caught it by eye in its 14:44 CST run.

    What happened (all 2026-11-10):

    • The OpenCode prod server (127.0.0.1:13420, opencode.service) restarted repeatedly during fleet work (14:32Z-15:03 CST window local: starts 14:33:57, 14:38:59, 14:39:11, 14:47:15, 14:47:44, 14:58:06, 15:02:54 CST; one exit status 130).
    • The fleet-feed collector (fleet-feed-collector.service, 5-min timer) failed to reach it at 14:53:37 CST and 14:58:27 CST — journal: collector: OpenCode server unreachable; attention empty — and, behaving as written, wrote a fleet-feed.json with attention: [] (0 sessions) and exited 0/SUCCESS.
    • The aggregator (src/sources/live.ts, attention()) merges the feed's attention with a direct laptop read; finding zero entries it fell into its designed fallback: provenance.attention = "fixtures (no live attention source reachable)"; return fix.attention(); — serving the bundled demo set from src/sources/fixtures.ts (FIXTURE_ATTENTION: ses_h_connect, ses_i_kaneo, ses_k_wip, … — illustrative rows whose timestamps regenerate at read time, so they look fresh). /api/attention.json served synthetic IDs that 404 on the real server from ~20:54Z until the collector's 15:03:40 CST run recovered (60 sessions) and the endpoint returned the real feed.
    • /api/quota.json was NOT affected — verified live during/after: the API and quota-current.json (file) agreed, all pools freshly measured (generatedAt 2026-11-10T21:00:06Z; the 2:15 PM CST quota census, which read the file, is valid).

    Second, older defect found while root-causing: the aggregator's direct "laptop live" read is silently dead and has been for days. laptopMapped() reads port+password from ~/.config/openchamber/managed-opencode/state.json — that file is dated 2026-10-29, names pid 3893105 / port 45525, and that port refuses connections (the OpenChamber-managed server is not running; sessions live on the standing opencode.service at 13420, pid 2586083, version 2.0.30+3497ea2). So attention has been single-legged on the collector file with no working redundancy — any collector gap instantly becomes a fixture flip. Nothing logs this leg's death.

    Impact: fleet-minder caught the flip in the same run, classified from direct server reads (34-35 active sessions, advancing), and no decision was taken off fixture data. Consumers of /api/attention.json in the window (minder, quota/attention board viewers) saw a plausible-looking fake fleet for ~10 minutes.

    Proof of recovery (21:0xZ): /api/attention.json returns 61 items = 60 real sessions + 1 watchdog row ("orchestration absent" — expected: the collector reports "no orchestration section"); all 60 session IDs resolve against the live server's /api/session (60/60).

    Fixes wanted (acceptance in one line each):

    1. The fixture fallback must never serve on the production attention path — on zero live entries, serve an explicit unavailable/stale state (or last-good real data with its age), never the demo set. (Acceptance: kill the server + empty the feed → /api/attention.json shows an unavailable state, zero fixture IDs.)
    2. The collector must not write an empty-success feed when the server is merely down/restarting: keep last-good attention (marked stale) or fail the run loudly. (Acceptance: a collector run during a server restart does not zero the feed's attention section.)
    3. Point the aggregator's laptop read at the live server (service-prod.json, 13420 — the port/password source the collector already uses) or remove the dead leg and say so; a dead source leg must be visible in provenance/health. (Acceptance: provenance shows both legs live, or the dead leg is gone and the single-leg state is surfaced.)
    4. This issue's alarm itself: fixture provenance on a production endpoint pages immediately.

    Relation to the quota-plant feed-stamp defect (#8086 follow-up lane): different machinery — that plant reads quota-current.json inside the OpenCode fork's router; this is the pm-aggregator's session feed. No shared cause found.

  12. dezren39
    added a commit that references this issue on Nov 10, 2026

    Merge pull request #8292 from developing-today/fix/aggregator-attenti…

    6afde07
  13. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Post-merge verification (2026-11-10 21:29Z merge, verified 21:4xZ)

    Merged code proven serving the real feed. Ran the aggregator from a clean detached checkout of main @ 6afde07f10 (this PR's merge commit) with the production env:

    • /api/health → attention provenance: live (sandbox via fleet feed (6m old) + laptop live) — the new standing-server leg (service-prod.json) connects; before this PR the laptop leg contributed nothing (its OpenChamber state file has been stale since 2026-10-29).
    • /api/attention.json → 72 items, 70 with session IDs, 0 fixture-shaped; IDs are the live server's current ses_e5e3… set.
    • The incident shape is covered by test/attention-no-fixtures-1116.test.ts (3/3): empty feed + dead legs returns [] with unavailable provenance — never FIXTURE_ATTENTION.

    One deploy step remains, and it is NOT this PR's code: the production pm-aggregator.service (pid 1976020, started 13:46 CST from ~/git/code) still runs the pre-fix build, because pm-git-sync refuses to pull: journal, every 30 s — pm-git-sync: FAIL /home/user/git/code working tree is dirty — not pulling. Dirty paths: M pkgs/fleet/Cargo.lock, ?? q51.mjs. Both are other lanes' items (a 1-line Cargo.lock change; q51.mjs is a quota-gather probe script written 14:43 CST by the quota work — the same restart window). I did not touch them: discarding another lane's work from this lane would be worse than a delayed redeploy. The moment that checkout is clean, pm-git-sync pulls main and install.sh restarts the aggregator onto this code; the production endpoint is meanwhile serving the real feed via the collector (verified live: 61 items, 60/60 IDs resolve).

    Note the exposure this leaves, stated plainly: until the redeploy lands, the fixture fallback is still in the running build. If the OpenCode server restart-churns again before then, the flip can recur — the minder caught it within one run last time and now knows the signature.

  14. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    state: verified
    task: 14246
    lane: code-b (direct, #8187)
    issue: #1116

    Acceptance verification for the stale-feed user-visible signal (2026-11-10, lane code-b): the acceptance test this task asked for already exists on main and passes — pm-stack/aggregator/test/health.test.ts, "a stopped collector is visible on the health page by the next five-minute interval". It spawns an isolated stand-in collector, kills it, advances the observation clock one collector interval, and asserts the fleet-feed service renders "stale", overall health degrades, and the rendered /health page carries the freshness-threshold message — i.e., killing the collector makes the dashboard visibly say so within one interval, and the same suite's fresh-feed cases pin silence-means-healthy.

    Full health suite result on the laptop: 25 pass, 0 fail. One environment note: the suite binds the freshness IPC port on import (default 4871), which the laptop's live aggregator already holds, so a naive local run fails with EADDRINUSE; run locally with PM_AGG_FRESHNESS_PORT set to a free port (CI is unaffected — no live aggregator there).

    Surrounding acceptance surface, all on main: feed age + stale flag in /api/health and the health page (src/health.ts, FEED_STALE_MS 5m), future-stamped feeds treated as stale (#1564), per-facet fixture-fallback counts in the health view (#1141, health-priming.test.ts), item 3's drift reporting (PR #2973, merged 2026-10-31), and the operational drills (kill-collector #1823; age-feed drill #1283). Task 14246 completes as already-satisfied; #1116 itself stays open for its remaining tracking (item 4 stewardship surfacing).

  15. dezren39
    added
    epic/saas-serviceEpic: epic/saas-service (fleet reprioritization 2026-11-12)
    on Nov 12, 2026
  16. dezren39
    added this to the SaaS service milestone on Nov 12, 2026
  17. dezren39 commented on Nov 13, 2026

    @dezren39
    dezren39
    on Nov 13, 2026
    MemberAuthor
    More actions

    agent note (repo-worker-code, lane code-a, task 4298): criterion verdict for #1116, from the 2026-11-13 re-triage under Drew's "fix all fixable and reblocked" order.

    • Item (1) collector heartbeat in feed + item (2) feed age in footer and /api/health with fixture-fallback flags + item (3) pm-feed checkout drift in the health view: LANDED (item 3 via PR feat(usage-hub): report pm-feed collector checkout drift in health (#1116 item 3) #2973, merged 2026-10-31).
    • Item (5) / the acceptance test ("killing the collector in a test makes the dashboard visibly say so within one collector interval; silence means healthy"): SATISFIED. The threshold slice landed as PR fix(aggregator): stale-feed threshold at the collector's 5-minute cadence (#2990) #4914 (merged 2026-11-03, main 5bc74ff): FEED_STALE_MS is 5 minutes — one collector interval — centralized in pm-stack/aggregator/src/feed.ts. The acceptance test exists on main and passes (test/health.test.ts, "a stopped collector is visible on the health page by the next five-minute interval"), verified 2026-11-10 by lane code-b (task 14246): 25 pass / 0 fail. The preserved rescue branch queue/4298-2990-stale-feed is therefore fully superseded by main and needs no merge.
    • Item (4) stewardship surfacing: NOT satisfied, and it is the only remainder. Verified this run against the live surfaces: the stewardship cycle (cron stewardship-cycle, hourly) carries a DAILY CONSOLE READS block whose (b) staleness check names stale hub pool reads in the cycle log — it never reads the fleet feed's age, and the stewardship skill package (~/workspace/custom-skills/stewardship) contains no feed check at all. So no stewardship surface names a stale fleet feed as a finding today.

    The fix itself is one paragraph in the cycle's DAILY CONSOLE READS block (the aggregator already exposes feed age + stale state in /api/health), but the cycle body is Drew's adopted operating procedure — it carries his spend authorization and reporting rules — so adopting a new standing check into it is Drew's call, not a queue lane's. Escalated precisely on #2990 with a pending-questions ledger entry (id stewardship-feed-stale-check-1116) carrying the ready-to-adopt check text and the alternative ruling (accept the pool-read staleness check as satisfying the intent). This issue stays open on that one item.

  18. dezren39
    added 2 commits that reference this issue on Nov 14, 2026

    feat(usage-hub): render actionable stale-feed warning on overview + d…

    d83e4d7

    feat(usage-hub): overview stale-feed warning + drill rendered-page ev…

    4c971e3
  19. dezren39
    closed this as completedin #7965on Nov 14, 2026
  20. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 14, 2026
  21. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Criterion-by-criterion verdict for #1116 — complete (posted from #2990, Lane LQ, 2026-11-23)

    The 2026-11-13 verdict on this issue left item (4) as the only remainder. It is now satisfied, so the full verdict stands:

    • Item (1) collector heartbeat timestamp carried in the feed — LANDED.
    • Item (2) aggregator surfaces feed age prominently (footer + /api/health) and flags fixture fallback — LANDED (FEED_STALE_MS 5m centralized in pm-stack/aggregator/src/feed.ts; per-facet fixture-fallback counts in the health view).
    • Item (3) drift check on the sandbox pm-feed checkout vs origin/main in the same health view — LANDED (PR feat(usage-hub): report pm-feed collector checkout drift in health (#1116 item 3) #2973, merged 2026-10-31).
    • Item (4) stewardship's hourly check names a stale fleet feed as a finding — SATISFIED 2026-11-23: the FLEET FEED check was adopted as item (d) of the DAILY CONSOLE READS block in the live stewardship-cycle job body (every cycle: read the aggregator /api/health on the laptop; a fleet-feed state of stale is named in the cycle log as a finding with the feed age; two consecutive stale cycles surface it to the main chat as a material risk). Repo copy: dezren39/hatch-personal PR test #61, merged ee5663a2213c1d03372b4acd0529986b7f2a60a8; live application verified byte-identical by read-back. Adoption authority: the 2026-11-13 audit ruling (fleet-owned; the cycle owns its checklist). Live proof the check fires on real data: the 2026-11-23T07:51Z health read reported fleet-feed state stale, feed 6m old against the 5m threshold.
    • Item (5) / acceptance ("killing the collector in a test makes the dashboard visibly say so within one collector interval; silence means healthy") — SATISFIED: PR fix(aggregator): stale-feed threshold at the collector's 5-minute cadence (#2990) #4914 (merged 2026-11-03) set the threshold to one collector interval; the acceptance test on main verified passing 2026-11-10 (25 pass / 0 fail).

    All five items met. #1116 stays closed (closed 2026-11-14); the remainder issue #2990 is closed with its own record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

effort/mMedium: expected under 1 day of workepic/saas-serviceEpic: epic/saas-service (fleet reprioritization 2026-11-12)meta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudqueue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditionstatus:donetask/fixhas a fix task queuedwork/assignedQueue worker lifecycle state

Type

No type

Projects

No projects

    Milestone

    • SaaS serviceNo due date

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.