← Về thư mục
scripts/test_audit_schemas.py
- TestSchemasParseAsDraft202012 · class · L383-L391 — class TestSchemasParseAsDraft202012(unittest.TestCase)
- test_every_schema_file_exists_and_parses · method · L386-L391 — def test_every_schema_file_exists_and_parses(self) -> None
- _SchemaTestBase · class · L394-L414 — class _SchemaTestBase(unittest.TestCase)
- setUpClass · method · L400-L404 — def setUpClass(cls) -> None
- assertValid · method · L406-L410 — def assertValid(self, doc: dict[str, Any]) -> None
- assertInvalid · method · L412-L414 — def assertInvalid(self, doc: dict[str, Any]) -> None
- TestEntrySchema · class · L417-L468 — class TestEntrySchema(_SchemaTestBase)
- test_persisted_minor · method · L420-L421 — def test_persisted_minor(self) -> None
- test_proposal_pass · method · L423-L424 — def test_proposal_pass(self) -> None
- test_proposal_audit_failed · method · L426-L427 — def test_proposal_audit_failed(self) -> None
- test_persisted_material_with_acknowledgement · method · L429-L430 — def test_persisted_material_with_acknowledgement(self) -> None
- test_rejects_persisted_with_bad_status · method · L432-L433 — def test_rejects_persisted_with_bad_status(self) -> None
- test_rejects_persisted_minor_with_acknowledgement · method · L435-L438 — def test_rejects_persisted_minor_with_acknowledgement(self) -> None: # A4 hand-edit attack: someone adds acknowledgement to a MINOR entry # to claim residue acknowledgement that the §5.4 prompt never solicited.
- test_rejects_persisted_pass_with_acknowledgement · method · L440-L441 — def test_rejects_persisted_pass_with_acknowledgement(self) -> None
- test_rejects_audit_failed_proposal_without_failure_reason · method · L443-L444 — def test_rejects_audit_failed_proposal_without_failure_reason(self) -> None
- test_rejects_pass_proposal_with_failure_reason · method · L446-L447 — def test_rejects_pass_proposal_with_failure_reason(self) -> None
- test_rejects_artifact_path_absolute · method · L449-L450 — def test_rejects_artifact_path_absolute(self) -> None
- test_rejects_artifact_path_dotdot · method · L452-L453 — def test_rejects_artifact_path_dotdot(self) -> None
- test_rejects_deliverable_path_absolute · method · L455-L456 — def test_rejects_deliverable_path_absolute(self) -> None
- test_rejects_deliverable_path_dotdot · method · L458-L459 — def test_rejects_deliverable_path_dotdot(self) -> None
- test_rejects_unknown_agent · method · L461-L462 — def test_rejects_unknown_agent(self) -> None
- test_rejects_malformed_run_id · method · L464-L465 — def test_rejects_malformed_run_id(self) -> None
- test_rejects_short_deliverable_sha · method · L467-L468 — def test_rejects_short_deliverable_sha(self) -> None
- TestJsonlSchema · class · L471-L512 — class TestJsonlSchema(_SchemaTestBase)
- test_thread_started · method · L474-L475 — def test_thread_started(self) -> None
- test_turn_started · method · L477-L478 — def test_turn_started(self) -> None
- test_item_completed_agent_message · method · L480-L481 — def test_item_completed_agent_message(self) -> None
- test_item_completed_tool_execution · method · L483-L486 — def test_item_completed_tool_execution(self) -> None: # tool-using runs emit completed events for non-agent_message item types # (no text field expected).
- test_item_started_tool_execution · method · L488-L491 — def test_item_started_tool_execution(self) -> None: # codex 0.125 emits item.started before matching item.completed for # tool calls (command_execution, file_change, etc.).
- test_turn_completed · method · L493-L494 — def test_turn_completed(self) -> None
- test_rejects_thread_started_without_id · method · L496-L497 — def test_rejects_thread_started_without_id(self) -> None
- test_rejects_unknown_event_type · method · L499-L500 — def test_rejects_unknown_event_type(self) -> None
- test_rejects_turn_completed_without_usage · method · L502-L503 — def test_rejects_turn_completed_without_usage(self) -> None
- test_rejects_thread_id_all_dashes · method · L505-L506 — def test_rejects_thread_id_all_dashes(self) -> None
- test_rejects_thread_id_without_separators · method · L508-L509 — def test_rejects_thread_id_without_separators(self) -> None
- test_rejects_item_started_with_extra_top_field · method · L511-L512 — def test_rejects_item_started_with_extra_top_field(self) -> None
- TestSidecarSchema · class · L515-L540 — class TestSidecarSchema(_SchemaTestBase)
- test_clean_run · method · L518-L519 — def test_clean_run(self) -> None
- test_audit_failed_run_with_empty_thread_id · method · L521-L522 — def test_audit_failed_run_with_empty_thread_id(self) -> None
- test_rejects_non_semver_codex_version · method · L524-L525 — def test_rejects_non_semver_codex_version(self) -> None
- test_rejects_missing_jsonl_thread_id · method · L527-L528 — def test_rejects_missing_jsonl_thread_id(self) -> None
- test_rejects_non_canonical_template_path · method · L530-L531 — def test_rejects_non_canonical_template_path(self) -> None
- test_rejects_bundle_path_with_dotdot · method · L533-L534 — def test_rejects_bundle_path_with_dotdot(self) -> None
- test_rejects_bundle_absolute_path · method · L536-L537 — def test_rejects_bundle_absolute_path(self) -> None
- test_rejects_process_stdout_path_escaping · method · L539-L540 — def test_rejects_process_stdout_path_escaping(self) -> None
- TestVerdictSchema · class · L543-L556 — class TestVerdictSchema(_SchemaTestBase)
- test_clean_minor · method · L546-L547 — def test_clean_minor(self) -> None
- test_audit_failed · method · L549-L550 — def test_audit_failed(self) -> None
- test_rejects_unknown_status · method · L552-L553 — def test_rejects_unknown_status(self) -> None
- test_rejects_audit_failed_without_failure_reason · method · L555-L556 — def test_rejects_audit_failed_without_failure_reason(self) -> None