mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-10 19:27:03 +01:00
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
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
[book_guard] shows this month's paper-book pace from the state.json book-guard publishes (green on pace, yellow behind but unlocked, red when locked or the timer is disarmed, orange when missing/stale); a click opens book-guard-desktop -- the same way [screen_locker] opens its UI. Behaviour test in tests/test_i3blocks_book_guard.sh. meta/requirements.txt: gatelock 0.9.0 (the shared morning-session reader), plus today's newest stable for anthropic, cryptography, flake8-bugbear, geopandas, howlongtobeatpy, pyflakes, selenium, mypy, pylint and ruff. Prunes the oldest evidence artifact to stay at the 60-file cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FBbkN4ZB4aUPJPzR2prRan
50 lines
3.0 KiB
JSON
50 lines
3.0 KiB
JSON
{
|
|
"intent": "Make book-guard openable from the i3 bar the same way screen-locker is: a [book_guard] block shows this month's paper-book pace, and a click opens the book-guard desktop window. Move the shared pins to gatelock 0.9.0 (the new shared morning-session reader) and today's newest stable releases.",
|
|
"scope": [
|
|
"linux_configuration/i3blocks/book_guard.sh - new block script",
|
|
"linux_configuration/i3blocks/config - [book_guard] entry next to [screen_locker]",
|
|
"linux_configuration/tests/test_i3blocks_book_guard.sh - behaviour test",
|
|
"meta/requirements.txt - gatelock 0.9.0 and newest-stable pins",
|
|
"Non-goal: the stale tracked linux_configuration/i3/config (it already lacks the workout-locker and leetcode-guard exec lines); the live ~/.config/i3/config got the book-guard exec line."
|
|
],
|
|
"changes": [
|
|
"book_guard.sh reads the state.json book-guard publishes into ~/data/cloud/Reading on every inbox pass and gate run (no server, one jq pass): green on pace, yellow behind but unlocked (escaped / free day / unlocked tag), red when locked, orange when missing or older than 45 min, red with DISARMED when book-guard.timer is inactive. A click runs book-guard-desktop via setsid, which opens another window if it is already serving.",
|
|
"meta/requirements.txt: gatelock 0.8.2 -> 0.9.0; anthropic 1.11.0, cryptography 50.0.2, flake8-bugbear 26.9.30, geopandas 1.2.0, howlongtobeatpy 1.0.24, pyflakes 4.0.1, selenium 4.50.0, mypy 2.4.0, pylint 4.1.1, ruff 0.16.10."
|
|
],
|
|
"verification": [
|
|
{
|
|
"command": "bash linux_configuration/tests/test_i3blocks_book_guard.sh",
|
|
"result": "pass",
|
|
"evidence": "on pace / locked / escaped / free day / other / stale / disarmed / missing / broken / click all asserted; systemctl and the launcher stubbed on PATH."
|
|
},
|
|
{
|
|
"command": "bash linux_configuration/tests/test_i3blocks_efficiency.sh",
|
|
"result": "pass",
|
|
"evidence": "All i3blocks efficiency regression tests passed."
|
|
},
|
|
{
|
|
"command": "~/.config/i3blocks/book_guard.sh (live state.json)",
|
|
"result": "pass",
|
|
"evidence": "'📖 0/300 · 10p behind (escaped)' #F1FA8C; block live in the bar after i3-msg reload."
|
|
},
|
|
{
|
|
"command": ".venv/bin/python -m pytest python_pkg/code_tutor (the only anthropic/geopandas/selenium/cryptography importer)",
|
|
"result": "pass",
|
|
"evidence": "217 passed on anthropic 1.11.0."
|
|
},
|
|
{
|
|
"command": "pre-commit run --files <changed-files>",
|
|
"result": "pass",
|
|
"evidence": "all hooks passed, including dependency-freshness."
|
|
}
|
|
],
|
|
"risks": [
|
|
"cryptography 50.0.2 stays outside pyopenssl/mitmproxy's declared ranges, as 50.0.1 already was.",
|
|
"A click with book-guard-desktop missing does nothing (errors are silenced so the bar never breaks)."
|
|
],
|
|
"rollback": [
|
|
"git revert this commit and remove ~/.config/i3blocks/book_guard.sh; i3-msg reload.",
|
|
"Confirm the bar still renders [screen_locker] and the other blocks."
|
|
]
|
|
}
|