Documentation
¶
Overview ¶
Package failure classifies why a ticket stopped (a usage limit, a transient fault, or something to diagnose) and reads the reset time out of a usage-limit message, by wording alone so it works for any agent. The shem and the orchestrator share it.
Index ¶
Constants ¶
const ( UsageLimit = "usage_limit" Transient = "transient" )
Failure kinds a supervisor waits out instead of diagnosing.
Variables ¶
This section is empty.
Functions ¶
func Classify ¶
Classify returns "usage_limit", "transient" or "" (diagnose as usual). Environment-marker evidence is structured host output, never a model fault.
func ParseReset ¶
ParseReset extracts the instant a usage limit lifts from an agent's message: a delay ("in 3 hours 20 minutes"), an ISO timestamp, a dated clock time ("Nov 4th, 2026 12:39 PM") or a bare clock time (its next occurrence). A parenthesised zone name applies to the time before it; without one the shem's own zone does. It reports false for anything it cannot place, so the caller backs off instead.
Types ¶
This section is empty.