The installer ships as the steam_installer package beside
steam_backlog_enforcer, with its tests, docs and Proton lock. The
enforcer's fast install now starts the installer from this checkout.
Both appinfo.vdf readers share one key-value decoder
(steam_installer.appinfo_kv), and the duplicated test fixtures and
helpers are folded into conftest and _cli_helpers so the whole-tree
duplicate-code check is clean. check_requirements_sync treats sibling
packages as first-party.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZCxnNWLtpVwFLVk9w
The web poller filed end-of-window re-block failures under the unblock
command with params.phase=re-block, so the web app showed a failed
Unblock job. Add re-block as a job-only command (like restore-backup):
contract, catalog home, icon registry entry. Its ledger word is left for
kuhy's picker.
Todo: 85af719b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The real server lists a new note as "<repo name> todos: <title>",
so the exact-title check never found the open task and a repeat
failure would have filed a duplicate. Seen while filing the one real
verification task. The fake server now titles notes the same way.
Todo: 85af719b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_store_verify.py grew past the 250-line cap. The report, its checks
and the error now live in _store_check_report.py.
Todo: 85af719b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In vmbox, systemd-resolved answered nothing for about 2 s after an
unblock, so the HTTPS check failed a working unblock. It also answers
no address, not 0.0.0.0, for a sinkholed name. Probes now repeat (3
attempts, 2 s apart) until they agree with the wanted result, and a
name with no answer counts as blocked.
Todo: 85af719b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every store-window action now checks its result instead of trusting
the commands: unblock needs no live store hosts line, no iptables
chain and a reachable store (else "network down" when
steamcommunity.com is down too), with one repair pass. Re-block needs
every domain on a sinkhole and the store unreachable, and is not
retried. A failure fails the job, names the check, and files one todo
task (deduplicated by title) through the local todo MCP; re-block
reports reach the web server via the new store_reports op. Job log
times now show local time like the summary.
Todo: 85af719b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/etc/hosts blocks every store domain as 0.0.0.0 and ::. Unblock and
re-block only matched the 0.0.0.0 line, so the live :: line kept the
store blocked while the job said Success. Lines now match on the exact
sinkhole address and hostname, re-block treats a half block as not
blocked, and a failed hosts write still re-locks the file.
Todo: 85af719b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C12: DUSK (519860) is a native Linux game with no CompatToolMapping entry,
so the old rule kept Proton Experimental, SLR 4.0 and the redistributables
for good. A game now also counts as covered when Valve runs it natively:
no mapping of kuhy's (or an empty one), linux in appinfo's common/oslist,
and no Valve tool pick (its own config/app_mappings or app 891390's). Any
doubt still keeps them: an unreadable or old-format appinfo.vdf, a game
missing from it, no 891390 pick list, or a native game forced onto another
tool.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C18: settle_download_counters wrote equal pairs (1000/1000) from a broken
manifest. Write all four counters as 0, like the from-scratch skeleton.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Install the pinned proton-cachyos-native build (signature and
sha256 checked, .INSTALL never run), decide per game whether it
is safe, write the CompatToolMapping as text, add --map-installed
and --valve-proton, and drop steamcmd from install.sh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steamworks Common Redistributables, Steam Linux Runtime 4.0 and Proton
Experimental stay in PROTECTED_APP_IDS, so no guard ever calls them an
unauthorized game. uninstall_other_games now ends with a step that
uninstalls them, through uninstall_game, only when all of these hold:
- Steam is not running (pgrep steam.sh, as _ensure_steam_running);
- config.vdf parses and has a CompatToolMapping block;
- every installed non-tool appmanifest maps to proton-cachyos-native;
- that tool's toolmanifest.vdf exists.
Anything else keeps all three and logs "kept Steam tools: <reason>";
a running Steam logs "Steam running, deferring tool removal". No game
installed counts as not needed and says so.
- _tool_need.py decides. Every error keeps the tools.
- _vdf_text.py is a stdlib KeyValues parser. The repo had none, and the
root daemon's system python has no vdf package.
- _steam_client.steam_client_running() returns None when pgrep cannot
tell. _ensure_steam_running behaves as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
steam-game-installer drops the flag (no alias): it always writes the
manifest itself now, so the argv no longer passes it. The progress
tracker drops the "Reconciling with steamcmd" marker, which the
installer no longer prints, and names the phase after the DLC check
"writing manifest".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sync_mcp_venv runs in the main shell, so its RETURN trap outlived the
function and fired again when main returned, with $log unset: set -u
turned a passing deploy into exit 1. Remove the temp log explicitly.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWWuLpGVY9MnowhTNcM
The MCP venv went a month without a resync and the server crashed on
import (missing leisure_watch) while setup_mcp.sh still passed, because
it imported only the bare package.
- setup_mcp.sh now imports steam_backlog_enforcer._mcp, the module
.mcp.json runs, and exits 1 with a FAIL line when it cannot.
- deploy.sh resyncs the MCP venv on every deploy and adds check 5:
the server must answer an initialize request over stdio.
- scripts/mcp_probe.py is that probe (stdlib, typed).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWWuLpGVY9MnowhTNcM
0.23.0 adds the LeetCode review top-up earner (20 shutdown minutes for a finished review, 0 gaming, in the registry from 2026-11-23); pin-only for this repo. leisure-watch 0.2.9 pins earned-time 0.23.0, so the two move together (the hook pins were stale at 0.2.7).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWXYyzSw5S9UTM5k5M1
game-research's approved game is kept installed, visible and on
disk; it is spared from the kill only while game-research launches
or records it. research_game/research_game_revoke ops are audited.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The leisure watcher is uninstalled; an unlimited day must not read its
now.json or bill failclosed:watcher into a budget nobody has. shadow_step
returns an idle verdict when gaming is not enforced. Before the switch
the fail-closed bill is unchanged (both sides tested).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWViGJJaqBKGr1Hbppr
Share the day tail between the budgeted and unlimited usage lines and
narrow the nullable budget fields without defaults, so the 100% branch
gate holds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWViGJJaqBKGr1Hbppr
Kuhy removed the daily gaming/leisure budget; only shutdown time
(screen-locker) stays. One gate, _gaming_gate.gaming_enforced_on(day),
wraps earned_time 0.22.0 gaming_enforced; resolve_budget carries it as
BudgetResolution.enforced and rules_for as PlaytimeRules.gaming_enforced.
Unlimited day: no warning, no cutoff, no kill, no leisure billing or
leisure kill; a block left from an earlier day is lifted. Time is still
billed for history. Backlog game choice and launch scope are untouched.
MCP, CLI and /api/budget report unlimited with null numbers; the web UI
paints the no-cap icon, no meter. Past-day history keeps working.
Failure modes: switch unreadable or day key not a date -> fail OPEN
(unlimited), logged ERROR once per cause, never raises, so the 5 h
fallback is never enforced and the daemon never crashes. Demo runs stay
enforced. The playtime_state.json schema is unchanged.
Pins earned-time-v0.22.0 and leisure-watch-v0.2.8 (freshness gate; only
golive.py changed, procscan untouched). DOCS-web-control-api notes null fields.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWViGJJaqBKGr1Hbppr