failure

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	UsageLimit = "usage_limit"
	Transient  = "transient"
)

Failure kinds a supervisor waits out instead of diagnosing.

Variables

This section is empty.

Functions

func Classify

func Classify(reason string) string

Classify returns "usage_limit", "transient" or "" (diagnose as usual). Environment-marker evidence is structured host output, never a model fault.

func ParseReset

func ParseReset(msg string, now time.Time) (time.Time, bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL