Skip to content

feat(rows): the future folds — 7d tail token, hour cells, forecast guard, meter demo - #26

Merged
lroolle merged 1 commit into
mainfrom
feat/week-fold-meter-demo
Aug 20, 2026
Merged

feat(rows): the future folds — 7d tail token, hour cells, forecast guard, meter demo#26
lroolle merged 1 commit into
mainfrom
feat/week-fold-meter-demo

Conversation

@lroolle

@lroolle lroolle commented Aug 20, 2026

Copy link
Copy Markdown
Member

Why

Two 7d burnouts in a row exposed both halves of this PR. A stale pre-envelope build had poisoned forecast.cache (recent_24h: 343, Thursday at 145%/day of a 100-point pool) and the walk called a 2%-used fresh window dry in 30 hours, red, on every render. And even with sane data, the 7d strip spent 30 columns drawing hollow future cells that all said one thing.

What

  • 7d strip folds its future (live row only): history in full, , two kept cells, then ...▯5hx28 — count of 5h slots to the reset, × red when the tail projects dry. Folds only when it hides ≥ 10 cells; the week report still draws all 34.
  • 5h strip by the hour: 5 cells, was 10 × 30 min.
  • Forecast guard: _profile_walk treats a weekday profile > 100%/day as corrupt (no verdict beats a red siren) and clamps recent_24h to the pool (legitimately larger across a reset, unusable as a within-window rate).
  • Pages demo redesigned as the instrument it demos: no fake terminal chrome — a recessed register running the same frame simulation (fold, hour cells, dry-forecast frame), № edge-codes cited by answering-pair anatomy rows, odometer digits, self-served block-glyph subset, truthful narrow-screen compaction.
  • Drift killed: 417 tests stated everywhere (README said 383, site 384, llms.txt 379); llms.txt learned the new week-row grammar.

Verify

  • npm exec --yes bats -- t/ → 417 pass (2 new fold tests, 2 new guard tests; layout test moved to COLUMNS=88 since the narrower strips merge at 96)
  • shellcheck -S error statusline.sh install.sh → clean
  • Rendered against a real 5.3 MB usage log; page captured at 390/768/1024/1440 — no page-level horizontal scroll, glyphs pixel-verified

🤖 Generated with Claude Code

…ard, meter demo

The live 7d strip stops drawing thirty hollow cells: after the
now-marker it keeps two and folds the rest into a counted tail
(...▯5hx28; × red when the learned forecast dries the week). The 5h
strip reads by the hour (5 cells, was 10x30min). _profile_walk refuses
a corrupt weekday profile (>100%/day of a 100-point pool — measured
live from a stale pre-envelope writer) and clamps recent_24h to the
pool. The Pages demo drops the fake terminal window for a meter:
recessed register, № edge-codes the anatomy cites, answering-pair
rows, odometer digits, a self-served glyph subset, and truthful
narrow-screen compaction. Stale proof numbers fixed everywhere
(417 tests; README said 383, the site 384, llms.txt 379).

417 bats tests, shellcheck clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lroolle
lroolle merged commit ae300ee into main Aug 20, 2026
1 check passed
@lroolle
lroolle deleted the feat/week-fold-meter-demo branch August 20, 2026 06:11
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