feat: add persisted batch text testing

This commit is contained in:
Xin Wang
2026-08-10 13:49:24 +08:00
parent 5b8b9fd097
commit 19e8c8c108
27 changed files with 3855 additions and 1450 deletions
+24
View File
@@ -0,0 +1,24 @@
"""Structured failures shared by the text runner and batch orchestrator."""
from __future__ import annotations
from dataclasses import dataclass
@dataclass
class TestExecutionError(RuntimeError):
code: str
message: str
stage: str
retryable: bool = False
def __post_init__(self) -> None:
RuntimeError.__init__(self, self.message)
def as_dict(self) -> dict[str, object]:
return {
"code": self.code,
"message": self.message,
"stage": self.stage,
"retryable": self.retryable,
}