Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/defending-code-reference-harness
/ functions
Functions
364 in github.com/anthropics/defending-code-reference-harness
⨍
Functions
364
◇
Types & classes
9
Function
test_dedup_parses_operation
(tmp_path)
tests/test_dedup.py:126
Function
test_dedup_signature_prefers_parsed_type
(tmp_path)
tests/test_dedup.py:139
Function
test_dedup_skips_malformed_json
(tmp_path)
tests/test_dedup.py:172
Function
test_dedup_skips_null_crash
(tmp_path)
tests/test_dedup.py:149
Function
test_dedup_walks_nested_batches
(tmp_path)
tests/test_dedup.py:158
Function
test_default_has_preamble_and_engagement
()
tests/test_system_prompt.py:11
Function
test_direct_hit_at_frame_0
()
tests/test_found_bugs.py:46
Function
test_done
(tmp_path)
tests/test_skill_checkpoint.py:69
Function
test_egress_allowlist_enforced
Check 3: API reachable; example.com + direct egress blocked.
tests/test_agent_sandbox.py:67
Function
test_empty_file_falls_back_to_default
(tmp_path)
tests/test_system_prompt.py:26
Function
test_empty_known_bugs_list_omits_section
()
tests/test_focus.py:66
Function
test_empty_output
()
tests/test_asan.py:96
Function
test_error_message_names_all_modes
()
tests/test_cli_auth.py:41
Function
test_excerpt_caps_frames
()
tests/test_asan.py:112
Function
test_excerpt_empty
()
tests/test_asan.py:128
Function
test_excerpt_non_asan_fallback
()
tests/test_asan.py:122
Function
test_excerpt_summary_plus_frames
()
tests/test_asan.py:103
Function
test_failed_tier_picks_first_failure
()
tests/test_patch.py:49
Function
test_fallback_to_frame_0_when_no_source_info
()
tests/test_found_bugs.py:93
Function
test_find_prompt_without_known_bugs_has_no_blocks
()
tests/test_untrusted.py:138
Function
test_find_prompt_wraps_known_bugs_in_nonce_block
()
tests/test_untrusted.py:126
Function
test_find_tagged_message_fallback_to_last
()
tests/test_xml_parse.py:121
Function
test_find_tagged_message_most_recent_wins
()
tests/test_xml_parse.py:143
Function
test_find_tagged_message_skips_non_assistant
()
tests/test_xml_parse.py:133
Function
test_find_tagged_message_tags_in_last
()
tests/test_xml_parse.py:81
Function
test_find_tagged_message_tags_not_in_last
()
tests/test_xml_parse.py:92
Function
test_focus_area_section_renders
()
tests/test_focus.py:19
Function
test_format_report_empty
()
tests/test_dedup.py:227
Function
test_format_report_shows_operation
(tmp_path)
tests/test_dedup.py:205
Function
test_format_report_shows_relative_paths
(tmp_path)
tests/test_dedup.py:212
Function
test_format_report_shows_status
(tmp_path)
tests/test_dedup.py:220
Function
test_format_report_sorted_by_count
(tmp_path)
tests/test_dedup.py:190
Function
test_golden_diff_passes_all
Root-cause fix passes T0+T1.
tests/test_patch_grade_e2e.py:89
Function
test_grade_prompt_wraps_find_claims_in_nonce_block
()
tests/test_untrusted.py:143
Function
test_grader_verdict_roundtrip
()
tests/test_artifacts.py:32
Function
test_gvisor_kernel_differs_from_host
Check 1: agent syscalls hit gVisor's userspace kernel.
tests/test_agent_sandbox.py:50
Function
test_host_filesystem_unreachable
Check 2: agent Read/Bash can't reach host paths.
tests/test_agent_sandbox.py:57
Function
test_judge_prompt_empty_manifest
()
tests/test_judge.py:59
Function
test_judge_prompt_nonce_differs_per_call
()
tests/test_untrusted.py:194
Function
test_judge_prompt_with_manifest
()
tests/test_judge.py:73
Function
test_judge_prompt_wraps_asan_in_nonce_blocks
()
tests/test_untrusted.py:105
Function
test_judged_runs_missing_log
(tmp_path)
tests/test_checkpoint.py:61
Function
test_judged_runs_reads_run_idx
(tmp_path)
tests/test_checkpoint.py:65
Function
test_judged_runs_tolerates_corrupt_lines
(tmp_path)
tests/test_checkpoint.py:76
Function
test_keeps_line_when_no_column
()
tests/test_found_bugs.py:63
Function
test_known_bugs_section_renders
()
tests/test_focus.py:47
Function
test_load_no_state
(tmp_path, capsys)
tests/test_skill_checkpoint.py:76
Function
test_malformed_diff_fails_t0
Garbage diff bytes must fail at T0 (apply step).
tests/test_patch_grade_e2e.py:97
Function
test_manifest_append_and_read
(tmp_path)
tests/test_judge.py:113
Function
test_manifest_empty
(tmp_path)
tests/test_judge.py:107
Function
test_manifest_picks_up_landed_report
(tmp_path)
tests/test_judge.py:127
Function
test_missing_file_falls_back_to_default
(tmp_path)
tests/test_system_prompt.py:33
Function
test_missing_frames_returns_none
()
tests/test_found_bugs.py:98
Function
test_multi_diff_none_apply_is_t0_fail
(mock_docker)
tests/test_patch_grade.py:220
Function
test_multi_diff_reland_collapses
(mock_docker)
tests/test_patch_grade.py:202
Function
test_no_build_command_raises
()
tests/test_patch_grade.py:347
Function
test_no_focus_no_bugs_omits_sections
()
tests/test_focus.py:10
Function
test_none
()
tests/test_cli_auth.py:37
Function
test_noop_diff_passes_t0_fails_t1
A patch that changes nothing meaningful must fail at T1.
tests/test_patch_grade_e2e.py:70
Function
test_oauth_token
(monkeypatch)
tests/test_cli_auth.py:26
Function
test_override_replaces_engagement_only
(tmp_path)
tests/test_system_prompt.py:17
Function
test_parse_grader_empty
()
tests/test_report.py:68
Function
test_parse_grader_full
()
tests/test_report.py:49
Function
test_parse_grader_novelty_off
()
tests/test_report.py:63
Function
test_parse_judge_case_insensitive
()
tests/test_judge.py:45
Function
test_parse_judge_dup_better
()
tests/test_judge.py:26
Function
test_parse_judge_dup_skip
()
tests/test_judge.py:20
Function
test_parse_judge_dup_without_bug_id_falls_open
()
tests/test_judge.py:32
Function
test_parse_judge_new
()
tests/test_judge.py:13
Function
test_parse_judge_unparseable_falls_open
()
tests/test_judge.py:39
Function
test_parse_missing_tag
()
tests/test_xml_parse.py:18
Function
test_parse_multiline_content
()
tests/test_xml_parse.py:22
Function
test_parse_score_tag_invalid_falls_back_to_zero
()
tests/test_report.py:21
Function
test_parse_score_tag_valid
()
tests/test_report.py:16
Function
test_parse_simple_tag
()
tests/test_xml_parse.py:13
Function
test_parse_strips_whitespace
()
tests/test_xml_parse.py:39
Function
test_parse_tag_with_special_regex_chars
()
tests/test_xml_parse.py:44
Function
test_parse_token
()
tests/test_report.py:27
Function
test_patch_prompt_no_breakout
()
tests/test_untrusted.py:64
Function
test_patch_prompt_single_nonce_balanced_tags
()
tests/test_untrusted.py:75
Function
test_payload_requires_from
(tmp_path)
tests/test_skill_checkpoint.py:106
Function
test_permission_mode_tracks_runtime
(monkeypatch)
tests/test_sandbox.py:48
Function
test_precedence_api_key_over_oauth
(monkeypatch)
tests/test_cli_auth.py:31
Function
test_project_frames_empty_input
()
tests/test_found_bugs.py:151
Function
test_project_frames_fallback_no_source
()
tests/test_found_bugs.py:146
Function
test_project_frames_respects_n
()
tests/test_found_bugs.py:133
Function
test_project_frames_returns_top_n
()
tests/test_found_bugs.py:114
Function
test_project_frames_skips_interceptor
()
tests/test_found_bugs.py:123
Function
test_project_frames_stops_at_second_section
()
tests/test_found_bugs.py:139
Function
test_read_empty_file
(tmp_path)
tests/test_found_bugs.py:212
Function
test_read_missing_file
(tmp_path)
tests/test_found_bugs.py:208
Function
test_read_skips_malformed_lines
(tmp_path)
tests/test_found_bugs.py:218
Function
test_reattack_any_crash_fails
(mock_docker)
tests/test_patch_grade.py:322
Function
test_reattack_clean_when_no_crash
(mock_docker)
tests/test_patch_grade.py:280
Function
test_reattack_dirty_when_same_signature
(mock_docker)
tests/test_patch_grade.py:296
Function
test_reattack_harness_switches_template
()
tests/test_focus.py:27
Function
test_reattack_harness_with_known_bugs
()
tests/test_focus.py:39
Function
test_report_checkpoint_retries_failed_and_missing
(tmp_path)
tests/test_checkpoint.py:137
Function
test_report_checkpoint_signature_mismatch
(tmp_path)
tests/test_checkpoint.py:129
Function
test_report_checkpoint_submitted
(tmp_path)
tests/test_checkpoint.py:120
← previous
next →
201–300 of 364, ranked by callers