json.loads returned untyped data, which failed strict type checking. pyright never reported it because it skips the .claude/ folder.
pyright skips .claude/scripts (it always adds its dot-directory exclude); ruff still checks it. The Stop hook now also runs ruff format --check, matching CI.