F                                                                        [100%]
=================================== FAILURES ===================================
______ test_weekly_operations_disposable_cli_drives_real_telegram_surface ______

tmp_path = PosixPath('/home/cube/projects/richard/traning coach/task-12-independent-verification-r7/todo11-stress-corrected/00/basetemp/test_weekly_operations_disposa0')

    def test_weekly_operations_disposable_cli_drives_real_telegram_surface(
        tmp_path: Path,
    ) -> None:
        """Given an isolated runtime, when the scenario runs, then its receipt passes."""
        repository = Path(__file__).resolve().parents[2]
    
        completed = subprocess.run(
            [
                sys.executable,
                str(repository / "scripts/run_nutricoach_v140_disposable_e2e.py"),
                "--network-disabled",
                "--scenario",
                "weekly-operations",
                "--verify-privacy",
                "--evidence-dir",
                str(tmp_path),
            ],
            cwd=repository,
            capture_output=True,
            check=False,
            text=True,
            timeout=60,
        )
    
        assert completed.returncode == 0, completed.stderr
        assert completed.stdout.strip().endswith("DISPOSABLE_WEEKLY_OPERATIONS_PASS")
        adapter: TypeAdapter[PydanticJsonValue] = TypeAdapter(PydanticJsonValue)
        receipt = adapter.validate_json(
            (tmp_path / "task-11-telegram-e2e-r3.json").read_text(encoding="utf-8")
        )
        assert isinstance(receipt, dict)
        assert receipt.get("privacy_leaks") == 0
        owner = receipt.get("owner")
        topic = receipt.get("topic59")
        assert isinstance(owner, dict) and isinstance(topic, dict)
        assert owner.get("preapproval_customer_sends") == 0
        assert owner.get("approved_customer_sends") == 1
        message_id = topic.get("message_id")
        assert isinstance(message_id, str) and message_id == topic.get("edited_message_id")
        verifier = repository / "scripts/verify_nutricoach_v140_task11_artifacts.py"
        verified = subprocess.run(
            ["uv", "run", str(verifier), "--evidence-dir", str(tmp_path)],
            cwd=repository, capture_output=True, check=False, text=True, timeout=30,
        )
>       assert verified.returncode == 0, verified.stdout
E       AssertionError: 
E       assert 1 == 0
E        +  where 1 = CompletedProcess(args=['uv', 'run', '/home/cube/projects/richard/.worktrees/nutricoach-v140-impl/scripts/verify_nutric...le because the network was disabled. When the network is disabled, registry packages may only be read from the cache.').returncode

tests/gateway/test_nutricoach_v140_disposable_e2e.py:59: AssertionError
=========================== short test summary info ============================
FAILED tests/gateway/test_nutricoach_v140_disposable_e2e.py::test_weekly_operations_disposable_cli_drives_real_telegram_surface
1 failed in 2.46s
