testsAndMisc/docs/superpowers/evidence/i3blocks-tutor-minutes-2026-10-12.json
Krzysztof kuhy Rudnicki 66160cd6da
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
i3blocks/tutor: count credited minutes (cap 60), not ledger rows vs 4
Since earned_time 0.8.0 each tutor credit row carries detail.minutes, so
counting rows against 4 hid the block after 4 credited minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YADHKXzZhhePzQ2rNoXFcK
2026-10-12 16:55:37 +02:00

30 lines
1.3 KiB
JSON

{
"intent": "The i3 tutor block shows today's credited tutor minutes against the 60-minute daily cap; it used to count ledger rows against 4 and hid after 4 credited minutes since earned_time 0.8.0 made each row a minute count.",
"scope": [
"linux_configuration/i3blocks/tutor.sh, linux_configuration/tests/test_i3blocks_tutor.sh",
"Non-goal: no HMAC check (earned_time stays the authority)"
],
"changes": [
"Sum detail.minutes of today's credit rows (legacy rows without it count 15, as earned_time does); TARGET 4 -> 60",
"Test fixture takes day:kind[:minutes]; new cases for summing, legacy rows and the 60/60 hidden state"
],
"verification": [
{
"command": "bash linux_configuration/tests/test_i3blocks_tutor.sh",
"result": "pass",
"evidence": "tutor block: all checks passed"
},
{
"command": "bash linux_configuration/i3blocks/tutor.sh",
"result": "pass",
"evidence": "⚙ tutor 0/60 on the live ledger; same jq on 2026-10-11 gives 60, matching earned_time's 60 units that day"
}
],
"risks": [
"A ledger row with non-numeric minutes would make jq fail and show the orange 'ledger unreadable' state"
],
"rollback": [
"git revert the commit; the block goes back to counting rows / 4"
]
}