diet-guard/scripts
Krzysztof kuhy Rudnicki 3d8d358abd Add Claude relay seams and entry points
Dependencies (exact pins): claude-agent-sdk 0.2.183, rtdb-relay 0.1.1,
httpx 0.28.1, hypothesis 6.170.15 (dev). The pylint hook env gets the
same pins.

Entry points, each reachable only through one module attribute:
_claude_connect.connect_sealed (RTDB + e2e unlock), _claude_sdk.run_model
(the model call), _claude_sync.pull_peers / publish (narrow pull, full
tick). SDK and rtdb_relay are imported only by these modules, never by the
gate or CLI at load time.

Test isolation, all fail closed: connect_sealed and run_model are replaced
by a function that raises; pull/publish return None; the sandbox dir and
kuhy's real Claude login path point into tmp_path; _test_guard also
protects ~/.config/diet_guard_claude and ~/.cache/diet_guard. Each of the
six redirects was removed once and its canary went red (fail closed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZHWP4KZ6x5TcXDBFC
2026-11-17 21:02:35 +01:00
..
build_body_fixture.py Body tab: weight/body-fat logs, BMI, ideal weight, goal-based kcal target, workouts + Health Connect steps, week planner 2026-09-28 09:03:03 +02:00
build_claude_relay_fixture.py Add the Claude relay contract 2026-11-17 20:55:50 +01:00
build_kuchnia_credential_fixture.py feat: carry the catering credential to the phone 2026-08-23 08:25:27 +02:00
build_kuchnia_fixture.py slots: minute-of-day contract (phase 1 of 3: pure model + shared fixture) 2026-10-10 19:22:43 +02:00
build_meal_schedule_fixture.py slots: minute-of-day contract (phase 1 of 3: pure model + shared fixture) 2026-10-10 19:22:43 +02:00
bump_patch_version.sh Bump the patch version on every commit 2026-08-09 23:04:17 +02:00
check_dependency_freshness.sh Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:53:03 +02:00
check_file_length.sh Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:53:03 +02:00
check_gate_stamp.sh pre-push is a 1-second stamp check; the suites moved to the manual stage 2026-09-20 19:37:46 +02:00
check_md_naming.sh Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:53:03 +02:00
check_no_crdt_sync_override.sh Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:53:03 +02:00
check_patch_targets.py Add Claude relay seams and entry points 2026-11-17 21:02:35 +01:00
check_repo_contract.sh repo contract: CLAUDE.md commands, test_changed, CI gate 2026-10-04 17:13:21 +02:00
check_requirements_sync.py Add CI-mirror pre-push gate + requirements-sync check 2026-07-11 17:58:49 +02:00
ci_mirror.sh ci: split ci-mirror into <60s gate steps 2026-11-01 21:25:54 +01:00
meal_schedule_cases.py slots: minute-of-day contract (phase 1 of 3: pure model + shared fixture) 2026-10-10 19:22:43 +02:00
probe_kuchnia_auth.py Grade against 3.14 too, not just run on it 2026-08-29 11:35:06 +02:00
probe_kuchnia_details.py Grade against 3.14 too, not just run on it 2026-08-29 11:35:06 +02:00
probe_kuchnia_shape.py feat: import Kuchnia Wikinga catering deliveries into the food bank 2026-08-22 23:04:22 +02:00
probe_kuchnia.py Grade against 3.14 too, not just run on it 2026-08-29 11:35:06 +02:00
setup_mcp.sh Fix pre-existing CI failures (deps, lint, whitespace) 2026-07-10 23:55:56 +02:00
sync_freshness.py feat: gate a phone deploy on a peer already holding the device's state 2026-08-23 07:41:26 +02:00
test_changed.sh repo contract: CLAUDE.md commands, test_changed, CI gate 2026-10-04 17:13:21 +02:00
todo_hooks.sh Add todo app git hooks 2026-11-02 13:42:46 +01:00