BR-AGT-05
When a Claude Code event has no session identifier, then it is refused with The hook event carries no session_id, the thread its values belong to.
Plug the protection into an agent and its toolsEn français
Quand un événement de Claude Code n'a pas d'identifiant de session, alors il est refusé avec The hook event carries no session_id, the thread its values belong to.
Brancher la protection sur un agent et ses outilsWhere the rule lives 1
Tested by 9
- tests/integrations/test_claude_code_hooks.py::test_an_event_without_a_session_id_is_refused
- tests/integrations/test_claude_code_hooks.py::test_missing_field_is_a_no_op
- tests/integrations/test_claude_code_hooks.py::test_post_tool_use_anonymizes_read_content_leaves_path
- tests/integrations/test_claude_code_hooks.py::test_post_tool_use_anonymizes_string_output
- tests/integrations/test_claude_code_hooks.py::test_post_tool_use_edit_anonymizes_text_leaves_metadata
- tests/integrations/test_claude_code_hooks.py::test_post_tool_use_unknown_tool_is_passthrough
- tests/integrations/test_claude_code_hooks.py::test_pre_tool_use_deanonymizes_tool_input
- tests/integrations/test_claude_code_hooks.py::test_unknown_event_is_a_no_op
- tests/integrations/test_claude_code_hooks.py::test_user_prompt_submit_anonymizes_prompt
Used by 2
Read from the code graph graphify builds, at the places the domain documentation gives. A test that goes through another function does not show here.