feat(notice): a notice engine behind rows 2 and 3 - #24
Merged
Conversation
Readers turn the live account into notices: rank, voice, scope, a key for
the CONDITION, the number worth bolding, and both a short and a long form.
Row 2 pins the top notice while its condition holds; row 3 flashes the
same notice in full for ~90s after the condition first appears, then gets
out of the way. --notice off keeps row 3 quiet.
New knowledge: which limit binds first (fb 91% vs 7d 55% -> go op), an
out-of-band 7d re-base (burn never runs backwards), the last 5h window of
the week, and a closing 5h window ONLY when the week is stranding capacity
(an unspent 5h window is a rate limit, not a budget).
Shorter rows: the pin drops what line 1 already prints, and the 5h strip
no longer repeats the reset its badge carries.
Fixed two bugs found on the way: notice records were tab-separated (tab is
IFS whitespace, so one empty field shifted every field after it -> US 0x1f),
and a `{ printf; [ -f ] && tail; }` group returned the test's status, so a
first-ever notice was never stamped and the flash never faded.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The advisor was one sentence from one function. It is now readers emitting notices —
rank · voice · scope · key · hl · short · long:--notice off/STATUSLINE_NOTICE=off.fb 91% vs 7d 55% · go op(the model caps before the account — names the roomiest otherweekly_scopedlimit);7d rebased 53%→12%(utilization fell inside one window = plan change / out-of-band reset, mutes the learned underuse voice);last 5h of the week;5h ~40m leftonly when the week is stranding capacity.Bugs found on the way
{ printf; [ -f "$f" ] && tail; } > tmp && mvtook the group's status from the[ -f ]test, so a first-ever notice was never stamped and the flash never faded.Verified
🤖 Generated with Claude Code