================================================= test session starts =================================================
platform win32 -- Python 3.13.9, pytest-9.2.0, pluggy-1.7.0
rootdir: /work/project
configfile: pyproject.toml
testpaths: tests
plugins: anyio-4.16.0
collected 73 items

tests\test_guard.py ................                                                                             [ 21%]
tests\test_hardening.py .......                                                                                  [ 31%]
tests\test_llm_agent.py ..                                                                                       [ 34%]
tests\test_scenarios.py ................................................                                         [100%]

======================================================= PASSES ========================================================
______________________________________________________ test_cli _______________________________________________________
------------------------------------------------ Captured stderr call -------------------------------------------------
No scenario 'nope'. Try: agent-firebreak scenarios
=============================================== short test summary info ===============================================
PASSED tests/test_guard.py::test_user_given_address_allowed
PASSED tests/test_guard.py::test_obfuscated_attacker_address_blocked
PASSED tests/test_guard.py::test_invisible_characters_do_not_hide_origin
PASSED tests/test_guard.py::test_base64_blob_origin_traced
PASSED tests/test_guard.py::test_unknown_address_asks_not_allows
PASSED tests/test_guard.py::test_exfil_link_in_reply_blocked
PASSED tests/test_guard.py::test_policy_rejects_unknown_condition
PASSED tests/test_guard.py::test_policy_can_be_made_stricter
PASSED tests/test_guard.py::test_from_annotations_cautious_default
PASSED tests/test_guard.py::test_cli
PASSED tests/test_guard.py::test_undeclared_tool_is_never_silently_allowed
PASSED tests/test_guard.py::test_probe_bypass_attempts
PASSED tests/test_guard.py::test_double_at_address_does_not_inherit_trust
PASSED tests/test_guard.py::test_undeclared_argument_cannot_smuggle_an_address
PASSED tests/test_guard.py::test_reason_is_ascii_safe_and_shows_lookalikes
PASSED tests/test_guard.py::test_example_agent_loop_runs
PASSED tests/test_hardening.py::test_backslash_userinfo_url_is_judged_by_the_host_a_browser_uses
PASSED tests/test_hardening.py::test_chat_handles_are_traced
PASSED tests/test_hardening.py::test_shell_commands_and_paths_must_come_from_the_user
PASSED tests/test_hardening.py::test_listing_a_parameter_in_params_does_not_switch_checking_off
PASSED tests/test_hardening.py::test_obfuscated_spellings_in_call_arguments_are_normalised
PASSED tests/test_hardening.py::test_bare_account_id_in_an_undeclared_argument_is_checked
PASSED tests/test_hardening.py::test_one_huge_token_does_not_stall_the_guard
PASSED tests/test_llm_agent.py::test_both_providers_attack_lands_without_guard_and_blocked_with
PASSED tests/test_llm_agent.py::test_wire_format_and_key_placement
PASSED tests/test_scenarios.py::test_scenario_ids_unique
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[A1-hidden-comment]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[A2-page-instruction]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[A3-exfil-image]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[A4-poisoned-tool]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[A5-second-stage]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[A6-ceo-refund]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[A7-encoded-instruction]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[A8-hinglish-instruction]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[L1-misleading-summary]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[L2-split-address]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[B1-summarise-email]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[B2-reply-to-sender]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[B3-confirm-to-customer]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[B4-explicit-refund]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[B5-summarise-page]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[B6-email-me-a-summary]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[B7-hinglish-email]
PASSED tests/test_scenarios.py::test_attack_succeeds_without_guard[B8-open-first-link]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[deny-A1-hidden-comment]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[deny-A2-page-instruction]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[deny-A3-exfil-image]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[deny-A4-poisoned-tool]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[deny-A5-second-stage]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[deny-A6-ceo-refund]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[deny-A7-encoded-instruction]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[deny-A8-hinglish-instruction]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[approve-A1-hidden-comment]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[approve-A2-page-instruction]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[approve-A3-exfil-image]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[approve-A4-poisoned-tool]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[approve-A5-second-stage]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[approve-A6-ceo-refund]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[approve-A7-encoded-instruction]
PASSED tests/test_scenarios.py::test_guard_stops_attacks[approve-A8-hinglish-instruction]
PASSED tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B1-summarise-email]
PASSED tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B2-reply-to-sender]
PASSED tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B3-confirm-to-customer]
PASSED tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B4-explicit-refund]
PASSED tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B5-summarise-page]
PASSED tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B6-email-me-a-summary]
PASSED tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B7-hinglish-email]
PASSED tests/test_scenarios.py::test_benign_tasks_complete_when_human_approves[B8-open-first-link]
PASSED tests/test_scenarios.py::test_detectors_off_changes_nothing_for_attacks
PASSED tests/test_scenarios.py::test_known_limits_are_honest
PASSED tests/test_scenarios.py::test_audit_log_verifies_and_detects_tampering
PASSED tests/test_scenarios.py::test_bench_summary
PASSED tests/test_scenarios.py::test_replay_agent_blocks_direct_exfil
================================================= 73 passed in 3.15s ==================================================
