Repository navigation
Description
Follow-up from #141 / #145 — the optional, inform-never-block half of that issue, skipped in PR #153 because it needs a store that did not exist and a rail field that #126 is moving.
Blocked on #126. Do not start a lane until the chrome redesign's rail rows have landed on dev; anything drawn on a rail row now is a guaranteed conflict.
What it is
A colored fact on a task's rail row when its spend rate runs far above the recorded norm for its kind — never a stop, never an interrupt (the per-task ceiling ruling in #141 stands).
The mechanism
- The norm comes from the graded records the grading loop closes: settled tasks feed the ratings the divider reads #155 now writes (
internal/session/taskgrade.go: kind, cost, duration per settled node) — cost ÷ duration per kind, pooled the way kinds already pool. No new store. - The live rate comes from
UsageTree(Spend is visible live at the tree, not at task close #153) over the node's own lines, divided by the node's running time. - "Far above" is a stated multiple in one constant, interpolated into the manual; the fact is drawn through the shared row fitter (
tui3/rowfit.go) and degrades before the name does.
Replication
make demo-home DEMO_HOME=<tmp> builds a home with a fourteen-day ledger and running tasks; open it in a private tmux socket (tmux -L t new-session -d -x 200 -y 50 'bin/aforge'), widen the task rail, and capture the pane: today no row carries any spend-rate fact. To see the defect the fact is for, seed one task in the demo fixture with a spend several times its kind's norm (the seeder is cmd/aforge-demo-home; #199 gave it day-safe arithmetic) — the row reads like every other row.
Acceptance
-
e2e: with the seeded demo home in tmux, the rail row of the fast-spending task shows the fact and the other rows do not; captured pane text is asserted (extend
internal/e2e/tui_e2e_test.goor the tmux suite, and add the literals totuiwords_test.go's table). -
A node spending at several times its kind's recorded norm shows the fact on its row; a node with no recorded norm shows nothing (emptiness law).
-
Nothing stops or asks; a test asserts the node keeps working.
-
Manual page names the fact and says it never stops anything.
Drafted with CodeAF · reviewed and owned by the author
Activity
AbirAbbas commentedon Sep 16, 2026
Closing as not planned. A rate-versus-norm warning on the task row was a papercut proposal that depended on #126, and no norm has been computed since. The task grades in
internal/session/taskgrade.gorecord kind, cost and duration, which is enough to build it later if spend rows need it. Reopen with a case where a task's spend surprised somebody and the row could have said so.