aeat.agent.eval._replay module¶
Determinism-replay for operator tool calls.
Captures golden tool-call records (the tool name, its arguments, and the resolved invocation) and replays them, asserting the resolution is byte-identical. A non-deterministic mapping is an assurance failure in regulated work: the same operator action must always project onto the same deterministic CLI invocation. Pure: the resolver is injected, so this module stays free of the entrypoints layer it replays.
- ToolCallResolver¶
A resolver projects a (tool_name, args) call onto its deterministic invocation.
- class GoldenToolCall(**data)[source]¶
Bases:
BaseModelA captured tool call and its resolved invocation.
- tool_name: str¶
- args: tuple[str, ...]¶
- invocation: tuple[str, ...]¶
- record_tool_call(tool_name, args, *, resolve)[source]¶
Capture a golden tool call by resolving it once.
- replay_tool_call(record, *, resolve)[source]¶
Return True when re-resolving the record yields its captured invocation.
- divergent_replays(records, *, resolve)[source]¶
Return the records whose replay diverges from their captured invocation.
- Return type:
- Returns:
Tuple of divergent
GoldenToolCallrecords.- Parameters: