← Về thư mục
harness/auto_mode_terminal_contract.py
- _TerminalCase · class · L95-L112 — class _TerminalCase
- user_truth · method · L103-L104 — def user_truth(self) -> str
- recovery_mode · method · L107-L108 — def recovery_mode(self) -> str
- recoverable · method · L111-L112 — def recoverable(self) -> bool
- _Recorder · class · L115-L159 — class _Recorder
- init · method · L116-L126 — def init( self, *, identity: Mapping[str, str], clock: FakeClock, uuid_factory: FakeUUIDFactory, ) -> None
- emit · method · L128-L159 — def emit( self, kind: str, *, specific_kind: str, phase: str, status: str, payload: Mapping[str, Any], ) -> EventEnvelope
- _mapping · function · L162-L165 — def _mapping(value: Any, where: str) -> Mapping[str, Any]
- _only_keys · function · L168-L181 — def _only_keys( value: Mapping[str, Any], allowed: set[str], where: str ) -> Mapping[str, Any]
- _identifier · function · L184-L187 — def _identifier(value: Any, where: str) -> str
- _text · function · L190-L193 — def _text(value: Any, where: str) -> str
- _bool · function · L196-L199 — def _bool(value: Any, expected: bool, where: str) -> bool
- _integer · function · L202-L207 — def _integer(value: Any, where: str, *, minimum: int = 0) -> int
- _canonical_bytes · function · L210-L216 — def _canonical_bytes(value: Mapping[str, Any]) -> bytes
- _digest · function · L219-L220 — def _digest(value: Mapping[str, Any]) -> str
- _identity · function · L223-L235 — def _identity(fixtures: Mapping[str, Any]) -> Mapping[str, str]
- _choice · function · L238-L244 — def _choice(value: Any, choices: set[str], where: str) -> str
- _validate_condition · function · L247-L467 — def _validate_condition(reason: str, raw: Any) -> Mapping[str, Any]
- _project_terminal_reason · function · L470-L504 — def _project_terminal_reason( stop_reason: str, *, owner_domain: str = "general", open_material_findings: bool = False, boundary_violation: bool = False, ) -> str
- _load_expected · function · L507-L556 — def _load_expected(scenario_id: str) -> Mapping[str, Any]
- _case · function · L559-L615 — def _case(scenario: Scenario, expected: Mapping[str, Any]) -> _TerminalCase
- _terminal_payload · function · L618-L631 — def _terminal_payload(case: _TerminalCase) -> dict[str, Any]
- _ordered_events · function · L634-L653 — def _ordered_events(events: tuple[EventEnvelope, ...]) -> list[str]
- _evaluate · function · L656-L759 — def _evaluate( scenario: Scenario, *, case: _TerminalCase, expected: Mapping[str, Any], events: tuple[EventEnvelope, ...], ) -> list[str]
- run_auto_mode_terminal_contract · function · L762-L817 — def run_auto_mode_terminal_contract( scenario: Scenario, *, offline: bool = True, clock: FakeClock | None = None, uuid_factory: FakeUUIDFactory | None = None, ) -> ScenarioResult