package agent import "fmt" // FinalReadinessError reports that the model exhausted its recovery attempts // before satisfying the host-observed delivery checks. type FinalReadinessError struct { Attempts int Reason string } func (e *FinalReadinessError) Error() string { if e == nil { return "final-answer readiness failed" } return fmt.Sprintf("final-answer readiness failed %d times: %s", e.Attempts, e.Reason) }