Documentation métier
Fiche BR-AGT-05
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.
Défini dans Brancher la protection sur un agent et ses outils
Où vit la règle 1
Tests directs 11
Le test, ou une fonction d'aide de son fichier, appelle le code de la règle.
- 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_grep_matching_lines
- 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_leaves_grep_file_names_untouched
- 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_records_the_prompt_without_a_mutation
Tests indirects 0
Le test construit sa classe ou appelle une autre fonction de son module, qui mène à la règle.
Aucun test indirect trouvé.
Utilisé par 2
Lu dans le graphe du code que construit graphify, aux emplacements que donne la documentation métier.