Skip to content

feat(page-26): per-row historical drill-down + History column#139

Merged
cipher813 merged 1 commit into
mainfrom
feat/page26-historical-row-expander
May 28, 2026
Merged

feat(page-26): per-row historical drill-down + History column#139
cipher813 merged 1 commit into
mainfrom
feat/page26-historical-row-expander

Conversation

@cipher813
Copy link
Copy Markdown
Owner

Summary

Surfaces the per-cycle history for each artifact, reading the new _freshness_monitor/history.json written daily at 04:00 UTC by the freshness-monitor Lambda's historical mode (alpha-engine-data PR #339).

Closes the gap surfaced 2026-05-28: 'are there gaps in the producer's history?' — operators want to know not just current-cycle state but whether last weekend / last month had silent absences.

Changes

  • _load_history loader (TTL 300s)
  • New History (12wk) column on the main table with values:
    • ✅ N/N continuous — clean history
    • ⚠️ G/N gaps — gappy producer
    • ✅ exists (latest) / ❌ absent (latest) — for latest-pointer artifacts
    • — historical probe hasn't covered this id (continuous cadence skipped)
  • New Per-artifact history drill-down section. Each artifact in the filtered view gets an expander showing the per-cycle sequence (date / present / size / last_modified / error_code). Sort: gappy first, continuous last. First 3 worst-offender entries auto-expand.
  • Graceful-degrade: if history.json doesn't exist yet, page shows a single info box with manual-invoke instructions.

Operator caveat

Calendar-naive. NYSE holidays may render as false-positive ❌ absent cells. Calendar-aware probe is a future enhancement (P3 in the Lambda PR).

Live data verification

Current history.json (from manual invoke earlier today):

  • 51 artifacts total
  • 27 date-templated with gaps (mostly registry-template-mismatch issues — see PR #339 follow-up)
  • 12 latest-pointers absent

This surface will make all of those operator-visible.

Test plan

  • Page parses cleanly (ast.parse)
  • Loader smoke against live history.json produces expected counts
  • Auto-expand logic verified: gappy + latest-pointer-absent rank highest

Deploy after merge

ae-dashboard "sudo systemctl start boot-pull && sudo systemctl restart dashboard"

Composes with

🤖 Generated with Claude Code

Surfaces the per-cycle history for each artifact, reading the new
_freshness_monitor/history.json written daily at 04:00 UTC by the
freshness-monitor Lambda's historical mode (alpha-engine-data PR #339).

Closes the gap surfaced 2026-05-28: 'are there gaps in the producer's
history?' — operators want to know not just current-cycle state but
whether last weekend / last month had silent absences.

Changes:

- _load_history loader (TTL 300s — refreshes once/day, not 15min)
- New History (12wk) column on the main table:
    ✅ N/N continuous   — clean history
    ⚠️ G/N gaps        — gappy producer
    ✅ exists (latest)  — latest-pointer present
    ❌ absent (latest)  — latest-pointer missing
    —                   — historical probe hasn't covered this id yet
      (continuous-cadence artifacts skip historical mode)
- New 'Per-artifact history drill-down' section below the main
  table. Each artifact in the filtered view gets an expander
  showing the per-cycle sequence (date / present / size /
  last_modified / error_code). Sort: gappy first, continuous last;
  latest-pointer absent at top, latest-pointer present at bottom.
  First 3 worst-offender entries auto-expand.
- Graceful-degrade: if history.json doesn't exist yet, page shows
  a single info box explaining the daily cron + manual-invoke
  instructions.

Operator caveat: calendar-naive. NYSE holidays may render as
false-positive ❌ absent cells. Calendar-aware probe is a future
enhancement (P3 in the Lambda PR).

Composes with alpha-engine-data PR #339 (historical-mode Lambda)
+ the prior page 26/27 work in #134/#135/#136/#137.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 28, 2026

Deploying nousergon-marketing with  Cloudflare Pages  Cloudflare Pages

Latest commit: ae96275
Status: ✅  Deploy successful!
Preview URL: https://bae01833.nousergon-marketing.pages.dev
Branch Preview URL: https://feat-page26-historical-row-e.nousergon-marketing.pages.dev

View logs

@cipher813 cipher813 merged commit 77c4632 into main May 28, 2026
2 checks passed
@cipher813 cipher813 deleted the feat/page26-historical-row-expander branch May 28, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant