================================================= test session starts =================================================
platform win32 -- Python 3.13.9, pytest-9.2.0, pluggy-1.7.0 -- C:\Tech\CodeTools\portfolio\WhittleMCP\whittlemcp-repo\.venv\Scripts\python.exe
rootdir: /work/project
configfile: pyproject.toml
testpaths: tests
plugins: anyio-4.16.0
collecting ... collected 73 items

tests/test_guard.py::test_user_given_address_allowed PASSED                                                      [  1%]
tests/test_guard.py::test_obfuscated_attacker_address_blocked PASSED                                             [  2%]
tests/test_guard.py::test_invisible_characters_do_not_hide_origin PASSED                                         [  4%]
tests/test_guard.py::test_base64_blob_origin_traced PASSED                                                       [  5%]
tests/test_guard.py::test_unknown_address_asks_not_allows PASSED                                                 [  6%]
tests/test_guard.py::test_exfil_link_in_reply_blocked PASSED                                                     [  8%]
tests/test_guard.py::test_policy_rejects_unknown_condition PASSED                                                [  9%]
tests/test_guard.py::test_policy_can_be_made_stricter PASSED                                                     [ 10%]
tests/test_guard.py::test_from_annotations_cautious_default PASSED                                               [ 12%]
tests/test_guard.py::test_cli PASSED                                                                             [ 13%]
tests/test_guard.py::test_undeclared_tool_is_never_silently_allowed PASSED                                       [ 15%]
tests/test_guard.py::test_probe_bypass_attempts PASSED                                                           [ 16%]
tests/test_guard.py::test_double_at_address_does_not_inherit_trust PASSED                                        [ 17%]
tests/test_guard.py::test_undeclared_argument_cannot_smuggle_an_address PASSED                                   [ 19%]
tests/test_guard.py::test_reason_is_ascii_safe_and_shows_lookalikes PASSED                                       [ 20%]
tests/test_guard.py::test_example_agent_loop_runs PASSED                                                         [ 21%]
tests/test_hardening.py::test_backslash_userinfo_url_is_judged_by_the_host_a_browser_uses PASSED                 [ 23%]
tests/test_hardening.py::test_chat_handles_are_traced PASSED                                                     [ 24%]
tests/test_hardening.py::test_shell_commands_and_paths_must_come_from_the_user PASSED                            [ 26%]
tests/test_hardening.py::test_listing_a_parameter_in_params_does_not_switch_checking_off PASSED                  [ 27%]
tests/test_hardening.py::test_obfuscated_spellings_in_call_arguments_are_normalised PASSED                       [ 28%]
tests/test_hardening.py::test_bare_account_id_in_an_undeclared_argument_is_checked PASSED                        [ 30%]
tests/test_hardening.py::test_one_huge_token_does_not_stall_the_guard PASSED                                     [ 31%]
tests/test_llm_agent.py::test_both_providers_attack_lands_without_guard_and_blocked_with PASSED                  [ 32%]
tests/test_llm_agent.py::test_wire_format_and_key_placement PASSED                                               [ 34%]
tests/test_scenarios.py::test_scenario_ids_unique PASSED                                                         [ 35%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[A1-hidden-comment] PASSED                            [ 36%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[A2-page-instruction] PASSED                          [ 38%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[A3-exfil-image] PASSED                               [ 39%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[A4-poisoned-tool] PASSED                             [ 41%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[A5-second-stage] PASSED                              [ 42%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[A6-ceo-refund] PASSED                                [ 43%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[A7-encoded-instruction] PASSED                       [ 45%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[A8-hinglish-instruction] PASSED                      [ 46%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[L1-misleading-summary] PASSED                        [ 47%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[L2-split-address] PASSED                             [ 49%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[B1-summarise-email] PASSED                           [ 50%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[B2-reply-to-sender] PASSED                           [ 52%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[B3-confirm-to-customer] PASSED                       [ 53%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[B4-explicit-refund] PASSED                           [ 54%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[B5-summarise-page] PASSED                            [ 56%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[B6-email-me-a-summary] PASSED                        [ 57%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[B7-hinglish-email] PASSED                            [ 58%]
tests/test_scenarios.py::test_attack_succeeds_without_guard[B8-open-first-link] PASSED                           [ 60%]
tests/test_scenarios.py::test_guard_stops_attacks[deny-A1-hidden-comment] PASSED                                 [ 61%]
tests/test_scenarios.py::test_guard_stops_attacks[deny-A2-page-instruction] PASSED                               [ 63%]
tests/test_scenarios.py::test_guard_stops_attacks[deny-A3-exfil-image] PASSED                                    [ 64%]
tests/test_scenarios.py::test_guard_stops_attacks[deny-A4-poisoned-tool] PASSED                                  [ 65%]
tests/test_scenarios.py::test_guard_stops_attacks[deny-A5-second-stage] PASSED                                   [ 67%]
tests/test_scenarios.py::test_guard_stops_attacks[deny-A6-ceo-refund] PASSED                                     [ 68%]
tests/test_scenarios.py::test_guard_stops_attacks[deny-A7-encoded-instruction] PASSED                            [ 69%]
tests/test_scenarios.py::test_guard_stops_attacks[deny-A8-hinglish-instruction] PASSED                           [ 71%]
tests/test_scenarios.py::test_guard_stops_attacks[approve-A1-hidden-comment] PASSED                              [ 72%]
tests/test_scenarios.py::test_guard_stops_attacks[approve-A2-page-instruction] PASSED                            [ 73%]
tests/test_scenarios.py::test_guard_stops_attacks[approve-A3-exfil-image] PASSED                                 [ 75%]
tests/test_scenarios.py::test_guard_stops_attacks[approve-A4-poisoned-tool] PASSED                               [ 76%]
tests/test_scenarios.py::test_guard_stops_attacks[approve-A5-second-stage] PASSED                                [ 78%]
tests/test_scenarios.py::test_guard_stops_attacks[approve-A6-ceo-refund] PASSED                                  [ 79%]
tests/test_scenarios.py::test_guard_stops_attacks[approve-A7-encoded-instruction] PASSED                         [ 80%]
tests/test_scenarios.py::test_guard_stops_attacks[approve-A8-hinglish-instruction] PASSED                        [ 82%]
tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B1-summarise-email] PASSED               [ 83%]
tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B2-reply-to-sender] PASSED               [ 84%]
tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B3-confirm-to-customer] PASSED           [ 86%]
tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B4-explicit-refund] PASSED               [ 87%]
tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B5-summarise-page] PASSED                [ 89%]
tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B6-email-me-a-summary] PASSED            [ 90%]
tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B7-hinglish-email] PASSED                [ 91%]
tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B8-open-first-link] PASSED               [ 93%]
tests/test_scenarios.py::test_detectors_off_changes_nothing_for_attacks PASSED                                   [ 94%]
tests/test_scenarios.py::test_known_limits_are_honest PASSED                                                     [ 95%]
tests/test_scenarios.py::test_audit_log_verifies_and_detects_tampering PASSED                                    [ 97%]
tests/test_scenarios.py::test_bench_summary PASSED                                                               [ 98%]
tests/test_scenarios.py::test_replay_agent_blocks_direct_exfil PASSED                                            [100%]

================================================= 73 passed in 3.42s ==================================================
