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_report_grader_prompt_wraps_report_in_nonce_block
()
tests/test_untrusted.py:161
Function
test_report_prompt_wraps_asan_in_nonce_block
()
tests/test_untrusted.py:88
Function
test_representative_prefers_higher_score
(tmp_path)
tests/test_report.py:160
Function
test_representative_prefers_passed
(tmp_path)
tests/test_report.py:152
Function
test_representative_prefers_smaller_poc
(tmp_path)
tests/test_report.py:168
Function
test_require_checks_runtime_is_registered
(monkeypatch)
tests/test_sandbox.py:28
Function
test_require_passes_with_override
(monkeypatch)
tests/test_sandbox.py:23
Function
test_require_refuses_without_runtime_or_override
(monkeypatch)
tests/test_sandbox.py:17
Function
test_reset
(tmp_path)
tests/test_skill_checkpoint.py:88
Function
test_reset_requires_state_suffix
(tmp_path)
tests/test_skill_checkpoint.py:129
Function
test_resume_layout_guard
(tmp_path, n_subdirs, top_result, runs, want_err)
tests/test_checkpoint.py:103
Function
test_run_checkpoint_corrupt_json
(tmp_path)
tests/test_checkpoint.py:52
Function
test_run_checkpoint_ignores_slimmed_transcripts
(tmp_path)
tests/test_checkpoint.py:41
Function
test_run_checkpoint_missing
(tmp_path)
tests/test_checkpoint.py:21
Function
test_run_checkpoint_retries_agent_failed
(tmp_path)
tests/test_checkpoint.py:34
Function
test_run_checkpoint_terminal_statuses
(tmp_path)
tests/test_checkpoint.py:25
Function
test_run_patch_caps_iterations
(tmp_path)
tests/test_patch.py:153
Function
test_run_patch_happy_path
(tmp_path)
tests/test_patch.py:63
Function
test_run_patch_no_tag_retries
(tmp_path)
tests/test_patch.py:126
Function
test_run_patch_retries_on_failed_grade
(tmp_path)
tests/test_patch.py:95
Function
test_run_result_json_roundtrip
()
tests/test_artifacts.py:47
Function
test_run_result_no_crash
()
tests/test_artifacts.py:76
Function
test_runtime_mismatch_is_fatal
Check 8: typo in runtime name fails loudly.
tests/test_agent_sandbox.py:98
Function
test_safe_token_rejects_traversal
(tmp_path)
tests/test_skill_checkpoint.py:137
Function
test_sanitize_neutralizes_closing_tags
()
tests/test_untrusted.py:37
Function
test_save_rejects_bad_json
(tmp_path)
tests/test_skill_checkpoint.py:98
Function
test_save_stage_key
(tmp_path)
tests/test_skill_checkpoint.py:48
Function
test_save_then_load
(tmp_path, capsys)
tests/test_skill_checkpoint.py:35
Function
test_seed_then_append_mixed_formats
(tmp_path)
tests/test_found_bugs.py:195
Function
test_segv_write_op
()
tests/test_asan.py:60
Function
test_shard_then_save_clears_shards
(tmp_path)
tests/test_skill_checkpoint.py:56
Function
test_signature_assertion
()
tests/test_dedup.py:44
Function
test_signature_basic
()
tests/test_dedup.py:34
Function
test_signature_missing_fields
()
tests/test_dedup.py:55
Function
test_signature_no_frame_fallback
()
tests/test_dedup.py:50
Function
test_signature_skips_interceptor
()
tests/test_dedup.py:39
Function
test_skips_interceptor_frame
()
tests/test_found_bugs.py:51
Function
test_stops_at_second_stack_section
()
tests/test_found_bugs.py:69
Function
test_stops_before_alloc_section_even_when_crash_stack_has_no_source
()
tests/test_found_bugs.py:78
Function
test_strips_column_keeps_line
()
tests/test_found_bugs.py:56
Function
test_style_judge_prompt_wraps_diff_in_nonce_block
()
tests/test_untrusted.py:185
Function
test_summary_line_parsed
()
tests/test_asan.py:49
Function
test_t0_fail_short_circuits
(mock_docker)
tests/test_patch_grade.py:170
Function
test_t1_fail_short_circuits
(mock_docker)
tests/test_patch_grade.py:234
Function
test_t1_fails_on_asan_in_stderr
()
tests/test_patch_grade.py:137
Function
test_t1_fails_on_asan_in_stdout
()
tests/test_patch_grade.py:141
Function
test_t1_fails_on_nonzero_exit
()
tests/test_patch_grade.py:145
Function
test_t1_passes_clean_exit
()
tests/test_patch_grade.py:133
Function
test_t2_none_when_no_suite
(mock_docker)
tests/test_patch_grade.py:266
Function
test_t2_runs_when_configured
(mock_docker)
tests/test_patch_grade.py:250
Function
test_unparseable_output
()
tests/test_asan.py:91
Function
test_untrusted_block_nonce_on_both_tags
()
tests/test_untrusted.py:43
Function
test_verdict_failed_on_reattack
()
tests/test_patch_grade.py:91
Function
test_verdict_failed_on_t2_false
()
tests/test_patch_grade.py:78
Function
test_verdict_passed_all_true
()
tests/test_patch_grade.py:52
Function
test_verdict_passed_t2_none_is_ok
()
tests/test_patch_grade.py:65
Function
test_verdict_roundtrip
()
tests/test_patch_grade.py:117
Function
test_verdict_t3_never_gates
()
tests/test_patch_grade.py:104
Function
test_write_overflow
()
tests/test_asan.py:55
Function
test_write_result_includes_reason
(tmp_path)
tests/test_asan.py:146
Function
test_write_result_no_crash_no_reason
(tmp_path)
tests/test_asan.py:158
Method
to_dict
(self)
harness/artifacts.py:111
Method
to_dict
(self)
harness/artifacts.py:134
Function
write_file
Write bytes to a path inside a container. Uses ``docker exec`` (not ``docker cp``) so the write happens from the container's own view of the
harness/docker_ops.py:97
← previous
301–364 of 364, ranked by callers