← Về thư mục
openai4s/benchmark/bringup.py
- BringupError · class · L46-L47 — class BringupError(ValueError)
- _Snapshot · class · L51-L58 — class _Snapshot
- _sha256 · function · L61-L62 — def _sha256(data: bytes) -> str
- _canonical_json · function · L65-L74 — def _canonical_json(payload: Any) -> bytes
- _reject_constant · function · L77-L78 — def _reject_constant(value: str) -> None
- _reject_duplicate_keys · function · L81-L87 — def _reject_duplicate_keys(pairs: list[tuple[str, Any]]) -> dict[str, Any]
- _strict_json · function · L90-L96 — def _strict_json(data: bytes) -> Any
- _nonempty_string · function · L99-L100 — def _nonempty_string(value: Any) -> bool
- _sha256_string · function · L103-L104 — def _sha256_string(value: Any) -> bool
- _nonnegative_int · function · L107-L108 — def _nonnegative_int(value: Any) -> bool
- _finite_nonnegative · function · L111-L114 — def _finite_nonnegative(value: Any) -> bool
- _numbers_match · function · L117-L125 — def _numbers_match(left: Any, right: Any) -> bool
- _sum_finite_numbers · function · L128-L135 — def _sum_finite_numbers(values: list[int | float]) -> int | float | None
- _segment_ok · function · L138-L150 — def _segment_ok(value: Any, *, generation: bool = False) -> bool
- _declared_path · function · L153-L165 — def _declared_path(root: Path, rel: Any) -> Path | None
- _is_within · function · L168-L169 — def _is_within(path: Path, root: Path) -> bool
- _stat_identity · function · L172-L180 — def _stat_identity(info: os.stat_result) -> tuple[int, ...]
- _artifact_identity · function · L183-L188 — def _artifact_identity(path: Path, info: os.stat_result) -> tuple[str | int, ...]
- _snapshot_path · function · L191-L261 — def _snapshot_path( root: Path, candidate: Path, *, keep_data: bool ) -> tuple[_Snapshot | None, str]
- _snapshot_declared · function · L264-L270 — def _snapshot_declared( root: Path, rel: Any, *, keep_data: bool ) -> tuple[_Snapshot | None, str]
- _parse_snapshot · function · L273-L279 — def _parse_snapshot(snapshot: _Snapshot) -> tuple[Any | None, str]
- seal_record · function · L282-L292 — def seal_record(record: dict[str, Any]) -> dict[str, Any]
- verify_bringup · function · L295-L1056 — def verify_bringup( root: Path, record_path: Path | None = None, *, expected_weights: dict[str, str] | None = None, ) -> dict[str, Any]
- emit · function · L332-L337 — def emit( check_id: str, ok: bool, detail: str = "", *, blocking: bool = True ) -> None
- claim_artifact · function · L339-L346 — def claim_artifact(snapshot: _Snapshot, role: str) -> str