← Về thư mục
tests/test_harness_contract.py
- _scenario_paths · function · L35-L36 — def _scenario_paths() -> list[Path]
- _skill_module · function · L39-L43 — def _skill_module(name: str)
- test_pr_offline_baseline_has_at_least_three_versioned_scenarios · function · L46-L54 — def test_pr_offline_baseline_has_at_least_three_versioned_scenarios()
- test_schema_rejects_unknown_version_and_unknown_fields · function · L57-L73 — def test_schema_rejects_unknown_version_and_unknown_fields()
- test_schema_defaults_rules_only_and_rejects_hyphenated_alias · function · L76-L93 — def test_schema_defaults_rules_only_and_rejects_hyphenated_alias()
- test_fake_clock_and_uuid_are_deterministic_and_never_sleep · function · L96-L102 — def test_fake_clock_and_uuid_are_deterministic_and_never_sleep()
- test_fault_schedule_fires_only_at_exact_occurrence · function · L105-L114 — def test_fault_schedule_fires_only_at_exact_occurrence()
- test_scripted_provider_records_calls_and_exposes_typed_error · function · L117-L133 — def test_scripted_provider_records_calls_and_exposes_typed_error()
- test_schema_rejects_ill_typed_provider_errors · function · L144-L155 — def test_schema_rejects_ill_typed_provider_errors(error, match)
- _run_for_surface · function · L158-L170 — def _run_for_surface(scenario)
- test_each_baseline_scenario_passes_and_is_byte_identical · function · L174-L181 — def test_each_baseline_scenario_passes_and_is_byte_identical(path)
- test_auto_mode_result_contract_keeps_candidate_nonterminal · function · L198-L253 — def test_auto_mode_result_contract_keeps_candidate_nonterminal( scenario_id, terminal_reason )
- _canonical_digest · function · L256-L264 — def _canonical_digest(value)
- test_auto_mode_verified_binds_candidate_evidence_artifacts_and_independent_audit · function · L267-L301 — def test_auto_mode_verified_binds_candidate_evidence_artifacts_and_independent_audit()
- test_auto_mode_review_request_cannot_precommit_the_reviewer_answer · function · L304-L341 — def test_auto_mode_review_request_cannot_precommit_the_reviewer_answer()
- test_auto_mode_review_only_issues_never_start_repair · function · L344-L376 — def test_auto_mode_review_only_issues_never_start_repair()
- test_auto_mode_reviewer_retries_once_then_passes · function · L379-L393 — def test_auto_mode_reviewer_retries_once_then_passes()
- test_auto_mode_reviewer_two_failures_become_unavailable · function · L403-L418 — def test_auto_mode_reviewer_two_failures_become_unavailable(scenario_id, error_kind)
- test_auto_mode_guardian_contract_is_exact_digest_denial_only · function · L421-L454 — def test_auto_mode_guardian_contract_is_exact_digest_denial_only()
- test_auto_mode_guardian_allow_once_consumes_exactly_once_and_rejects_replay · function · L457-L509 — def test_auto_mode_guardian_allow_once_consumes_exactly_once_and_rejects_replay()
- test_auto_mode_guardian_allow_once_rejects_and_burns_action_variant · function · L512-L546 — def test_auto_mode_guardian_allow_once_rejects_and_burns_action_variant()
- test_auto_mode_guardian_denial_circuit_opens_only_at_exact_threshold · function · L561-L594 — def test_auto_mode_guardian_denial_circuit_opens_only_at_exact_threshold( scenario_id, trigger, prior_value, after_value )
- test_auto_mode_guardian_decision_faults_fail_closed · function · L604-L627 — def test_auto_mode_guardian_decision_faults_fail_closed(scenario_id, error_kind)
- test_auto_mode_guardian_single_timeout_does_not_open_circuit · function · L630-L655 — def test_auto_mode_guardian_single_timeout_does_not_open_circuit()
- test_auto_mode_integrity_faults_are_independent_safety_failures · function · L679-L716 — def test_auto_mode_integrity_faults_are_independent_safety_failures( scenario_id, lane, error_kind )
- test_auto_mode_contract_rejects_noncanonical_guardian_action · function · L719-L724 — def test_auto_mode_contract_rejects_noncanonical_guardian_action()
- test_auto_mode_contract_rejects_reviewer_self_review · function · L727-L732 — def test_auto_mode_contract_rejects_reviewer_self_review()
- test_auto_mode_contract_cannot_self_prove_by_changing_scenario_outcome · function · L735-L766 — def test_auto_mode_contract_cannot_self_prove_by_changing_scenario_outcome()
- test_auto_mode_contract_rejects_incomplete_evidence_snapshot · function · L769-L775 — def test_auto_mode_contract_rejects_incomplete_evidence_snapshot()
- test_auto_mode_contract_rejects_complete_snapshot_with_missing_source_ref · function · L778-L784 — def test_auto_mode_contract_rejects_complete_snapshot_with_missing_source_ref()
- test_auto_mode_contract_rejects_dangling_evidence_reference · function · L787-L795 — def test_auto_mode_contract_rejects_dangling_evidence_reference()
- test_auto_mode_contract_rejects_finding_with_dangling_evidence_reference · function · L798-L804 — def test_auto_mode_contract_rejects_finding_with_dangling_evidence_reference()
- test_auto_mode_contract_rejects_pass_with_open_material_finding · function · L807-L821 — def test_auto_mode_contract_rejects_pass_with_open_material_finding()
- test_auto_mode_contract_rejects_issues_before_auto_fix_budget_exhaustion · function · L824-L835 — def test_auto_mode_contract_rejects_issues_before_auto_fix_budget_exhaustion()
- test_auto_mode_contract_requires_rules_only_noninteractive_posture · function · L839-L845 — def test_auto_mode_contract_requires_rules_only_noninteractive_posture(mode)
- test_auto_mode_contract_rejects_fault_retryability_kind_mismatch · function · L855-L863 — def test_auto_mode_contract_rejects_fault_retryability_kind_mismatch( scenario_id, retryable )
- test_auto_mode_contract_rejects_reusable_guardian_capability · function · L866-L872 — def test_auto_mode_contract_rejects_reusable_guardian_capability()
- test_auto_mode_guardian_allow_once_uses_sealed_action_allowlist · function · L898-L904 — def test_auto_mode_guardian_allow_once_uses_sealed_action_allowlist(mutate, message)
- test_auto_mode_contract_rejects_circuit_history_that_does_not_cross_threshold · function · L907-L915 — def test_auto_mode_contract_rejects_circuit_history_that_does_not_cross_threshold()
- test_auto_mode_contract_rehashes_and_rejects_receipt_digest_drift · function · L918-L936 — def test_auto_mode_contract_rehashes_and_rejects_receipt_digest_drift(monkeypatch)
- drifted_receipt · function · L924-L928 — def drifted_receipt(case, **kwargs)
- test_auto_mode_audit_subject_and_request_assessment_digests_are_distinct · function · L950-L978 — def test_auto_mode_audit_subject_and_request_assessment_digests_are_distinct( scenario_id, subject_kind, subject_entity_kind )
- test_auto_mode_contract_rejects_started_completed_audit_id_drift · function · L985-L1002 — def test_auto_mode_contract_rejects_started_completed_audit_id_drift( scenario_id, monkeypatch )
- drifted_completion · function · L991-L994 — def drifted_completion(case, assessment, assessment_digest)
- test_auto_mode_contract_rejects_unreviewed_event_payload_fields · function · L1022-L1046 — def test_auto_mode_contract_rejects_unreviewed_event_payload_fields( scenario_id, event_kind, extra_field, monkeypatch )
- drifted_emit · function · L1028-L1032 — def drifted_emit(self, kind, **kwargs)
- test_auto_mode_contract_rejects_unreviewed_event_envelope_state · function · L1049-L1063 — def test_auto_mode_contract_rejects_unreviewed_event_envelope_state(monkeypatch)
- drifted_emit · function · L1053-L1057 — def drifted_emit(self, kind, **kwargs)
- test_auto_mode_contract_requires_every_reviewed_golden_field · function · L1066-L1078 — def test_auto_mode_contract_requires_every_reviewed_golden_field(tmp_path, monkeypatch)
- test_auto_mode_contract_requires_reviewed_trace_digest · function · L1081-L1091 — def test_auto_mode_contract_requires_reviewed_trace_digest(tmp_path, monkeypatch)
- test_auto_mode_assessment_digest_binds_every_review_field · function · L1094-L1118 — def test_auto_mode_assessment_digest_binds_every_review_field()
- test_auto_mode_hash_mismatch_rehashes_runtime_mutation · function · L1136-L1151 — def test_auto_mode_hash_mismatch_rehashes_runtime_mutation( scenario_id, runtime_key, canonical_key )
- test_auto_mode_contract_golden_is_independent_and_contract_only · function · L1154-L1197 — def test_auto_mode_contract_golden_is_independent_and_contract_only()
- test_normalizer_preserves_event_order_instead_of_sorting · function · L1200-L1214 — def test_normalizer_preserves_event_order_instead_of_sorting()
- test_normalizer_uses_explicit_path_and_localhost_port_replacements · function · L1217-L1234 — def test_normalizer_uses_explicit_path_and_localhost_port_replacements()
- test_cli_runs_pr_offline_tier · function · L1237-L1259 — def test_cli_runs_pr_offline_tier(capsys)
- test_cli_counts_runner_validation_failure_once · function · L1262-L1301 — def test_cli_counts_runner_validation_failure_once(tmp_path, capsys)
- test_declared_fault_that_never_fires_fails_the_scenario · function · L1304-L1326 — def test_declared_fault_that_never_fires_fails_the_scenario()
- test_explicit_empty_invariants_is_an_opt_out · function · L1329-L1348 — def test_explicit_empty_invariants_is_an_opt_out()
- test_offline_runner_rejects_external_scenario · function · L1351-L1368 — def test_offline_runner_rejects_external_scenario()
- test_retrosynthesis_manifest_and_capabilities_are_offline · function · L1371-L1410 — def test_retrosynthesis_manifest_and_capabilities_are_offline(tmp_path)
- test_retrosynthesis_worker_runs_behind_fake_optional_modules · function · L1413-L1476 — def test_retrosynthesis_worker_runs_behind_fake_optional_modules(monkeypatch)
- FakeMolecule · class · L1417-L1419 — class FakeMolecule
- init · method · L1418-L1419 — def init(self, smiles)
- FakePrediction · class · L1421-L1427 — class FakePrediction
- FakeRetroChimeraModel · class · L1429-L1436 — class FakeRetroChimeraModel
- init · method · L1430-L1431 — def init(self, **kwargs)
- call · method · L1433-L1436 — def call(self, molecules, num_results)
- test_retrosynthesis_backend_replays_are_deterministic · function · L1479-L1488 — def test_retrosynthesis_backend_replays_are_deterministic()