mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-19 05:24:20 +01:00
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 |
||
|---|---|---|
| .. | ||
| build_body_fixture.py | ||
| build_claude_relay_fixture.py | ||
| build_kuchnia_credential_fixture.py | ||
| build_kuchnia_fixture.py | ||
| build_meal_schedule_fixture.py | ||
| bump_patch_version.sh | ||
| check_dependency_freshness.sh | ||
| check_file_length.sh | ||
| check_gate_stamp.sh | ||
| check_md_naming.sh | ||
| check_no_crdt_sync_override.sh | ||
| check_patch_targets.py | ||
| check_repo_contract.sh | ||
| check_requirements_sync.py | ||
| ci_mirror.sh | ||
| meal_schedule_cases.py | ||
| probe_kuchnia_auth.py | ||
| probe_kuchnia_details.py | ||
| probe_kuchnia_shape.py | ||
| probe_kuchnia.py | ||
| setup_mcp.sh | ||
| sync_freshness.py | ||
| test_changed.sh | ||
| todo_hooks.sh | ||