← Về thư mục
scripts/check_audit_artifact_consistency.py
- _load_parse_audit_verdict · function · L91-L118 — def _load_parse_audit_verdict()
- _load_stream_shape_validator · function · L121-L124 — def _load_stream_shape_validator()
- LintError · class · L132-L150 — class LintError
- render · method · L148-L150 — def render(self) -> str
- LintContext · class · L154-L175 — class LintContext
- _sha256_file · function · L183-L192 — def _sha256_file(path: Path) -> str | None
- _safe_get · function · L195-L203 — def _safe_get(d: Any, *path: str) -> Any
- _load_yaml_or_json · function · L206-L219 — def _load_yaml_or_json(path: Path) -> Any
- _StrTimestampSafeLoader · class · L222-L228 — class _StrTimestampSafeLoader(yaml.SafeLoader)
- _yaml_str_timestamp_constructor · function · L231-L232 — def _yaml_str_timestamp_constructor(loader: yaml.Loader, node: yaml.Node) -> str
- _load_jsonl · function · L240-L254 — def _load_jsonl(path: Path) -> list[dict[str, Any]]
- _bare_run_id_from_basename · function · L257-L266 — def _bare_run_id_from_basename(filename: str, ext: str) -> str | None
- check_a1 · function · L274-L340 — def check_a1(entry: dict[str, Any] | None, verdict: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_a2 · function · L343-L366 — def check_a2(entry: dict[str, Any] | None, verdict: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_a3 · function · L369-L383 — def check_a3(entry: dict[str, Any] | None, verdict: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_a4 · function · L386-L408 — def check_a4(entry: dict[str, Any] | None, mode: str, location: str = "") -> list[LintError]
- check_a5 · function · L411-L436 — def check_a5(verdict: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_a6 · function · L439-L450 — def check_a6(verdict: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_a7 · function · L453-L529 — def check_a7(events: list[dict[str, Any]] | None, location: str = "") -> list[LintError]
- check_b1 · function · L537-L567 — def check_b1(sidecar: dict[str, Any] | None, events: list[dict[str, Any]] | None, verdict: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_b2 · function · L570-L605 — def check_b2(entry: dict[str, Any] | None, sidecar: dict[str, Any] | None, repo_root: Path, location: str = "") -> list[LintError]
- compute_bundle_manifest · function · L608-L628 — def compute_bundle_manifest(primary: list[dict[str, Any]], supporting: list[dict[str, Any]], template_path: str, template_sha: str) -> tuple[str, str]
- check_b3 · function · L631-L716 — def check_b3(sidecar: dict[str, Any] | None, repo_root: Path, location: str = "") -> list[LintError]
- check_b4 · function · L719-L745 — def check_b4(sidecar: dict[str, Any] | None, repo_root: Path, location: str = "") -> list[LintError]
- check_b5 · function · L748-L781 — def check_b5(sidecar: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_b6 · function · L784-L804 — def check_b6(sidecar: dict[str, Any] | None, verdict: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_b7 · function · L807-L936 — def check_b7(entry: dict[str, Any] | None, sidecar: dict[str, Any] | None, entry_path: Path | None, sidecar_path: Path | None, jsonl_path: Path | None, verdict_path: Path | None, mode: str, location: str = "", repo_root: Path | None = None, verdict: dict[str, Any] | None = None) -> list[LintError]
- check_b8 · function · L939-L953 — def check_b8(entry: dict[str, Any] | None, mode: str, location: str = "") -> list[LintError]
- check_b9 · function · L956-L969 — def check_b9(entry: dict[str, Any] | None, sidecar: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_b10 · function · L972-L1003 — def check_b10(entry: dict[str, Any] | None, verdict: dict[str, Any] | None, mode: str, location: str = "") -> list[LintError]
- check_c1 · function · L1011-L1046 — def check_c1(entry: dict[str, Any] | None, verdict: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_c2 · function · L1049-L1060 — def check_c2(entry: dict[str, Any] | None, sidecar: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_c3 · function · L1063-L1096 — def check_c3(new_entry: dict[str, Any] | None, prior_entry: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_c4 · function · L1099-L1123 — def check_c4(entry: dict[str, Any] | None, sidecar: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_d1 · function · L1131-L1157 — def check_d1(passport_audit_artifacts: list[dict[str, Any]] | None, location: str = "") -> list[LintError]
- check_d2 · function · L1160-L1183 — def check_d2(proposals: list[dict[str, Any]] | None, location: str = "") -> list[LintError]
- check_d3 · function · L1186-L1213 — def check_d3(passport_audit_artifacts: list[dict[str, Any]] | None, location: str = "") -> list[LintError]
- check_d4 · function · L1216-L1236 — def check_d4(persisted_round: int | None, proposal_round: int | None, location: str = "") -> list[LintError]
- check_e1_e2_e6 · function · L1244-L1287 — def check_e1_e2_e6(passport_audit_artifacts: list[dict[str, Any]] | None, location: str = "") -> list[LintError]
- check_e3_e4 · function · L1290-L1308 — def check_e3_e4(entry: dict[str, Any] | None, mode: str, location: str = "") -> list[LintError]
- check_e5 · function · L1311-L1321 — def check_e5(entry: dict[str, Any] | None, mode: str, location: str = "") -> list[LintError]
- check_e7 · function · L1324-L1336 — def check_e7(entry: dict[str, Any] | None, location: str = "") -> list[LintError]
- check_f1 · function · L1344-L1354 — def check_f1(run_id: Any, location: str = "") -> list[LintError]
- check_f2 · function · L1357-L1386 — def check_f2(jsonl_path: Path | None, sidecar_path: Path | None, verdict_path: Path | None, entry_path: Path | None, mode: str, location: str = "") -> list[LintError]
- check_f3 · function · L1389-L1404 — def check_f3(sidecar: dict[str, Any] | None, sidecar_path: Path | None, location: str = "") -> list[LintError]
- run_checks · function · L1412-L1618 — def run_checks(ctx: LintContext) -> list[LintError]
- _find_latest_material_entry_for_ack · function · L1621-L1642 — def _find_latest_material_entry_for_ack( artifacts: list[dict[str, Any]], ack_entry: dict[str, Any] ) -> dict[str, Any] | None
- _scan_unmerged_proposals · function · L1645-L1709 — def _scan_unmerged_proposals( output_dir: Path, persisted_entry: dict[str, Any], exclude_path: Path | None = None, ) -> list[dict[str, Any]]
- validate_against_schema · function · L1717-L1733 — def validate_against_schema(doc: Any, schema_path: Path) -> list[LintError]
- run_example_harness · function · L1741-L1784 — def run_example_harness(repo_root: Path) -> list[LintError]
- _classify_and_validate_block · function · L1787-L1906 — def _classify_and_validate_block( block: str, lang: str | None, md_path: Path, fence_start: int ) -> list[LintError]
- _relabel · function · L1909-L1910 — def _relabel(f: LintError, rule_id: str) -> LintError
- _with_location · function · L1913-L1914 — def _with_location(f: LintError, location: str) -> LintError
- _ExUsageParser · class · L1922-L1935 — class _ExUsageParser(argparse.ArgumentParser)
- error · method · L1932-L1935 — def error(self, message: str) -> None: # type: ignore[override]
- _build_parser · function · L1938-L1960 — def _build_parser() -> argparse.ArgumentParser
- _autodiscover · function · L1963-L1998 — def _autodiscover(output_dir: Path | None, run_id: str | None, jsonl: Path | None, sidecar: Path | None, verdict: Path | None, entry: Path | None, mode: str) -> tuple[Path | None, Path | None, Path | None, Path | None]
- main · function · L2001-L2309 — def main(argv: list[str] | None = None) -> int
- _missing_companion · function · L2168-L2183 — def _missing_companion(role: str, path: Path | None) -> None