Documentation
¶
Overview ¶
Package agentstatus resolves product-neutral agent activity and health into one presentation shared by human-facing views.
Index ¶
Constants ¶
const DefaultDoneTTL = 10 * time.Minute
DefaultDoneTTL is the window in which a finished turn still reads as recently finished. Long enough to survive a coffee break, short enough that the lane never becomes a second idle column.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
ProviderSupported bool
Ambiguous bool
Missing bool
Orphaned bool
Paused bool
Err bool
LegacyStatus string
LegacyIcon string
Activity agentactivity.Tracker
CapturedAt time.Time
Now time.Time
StaleAfter time.Duration
// DoneTTL bounds how long a completed turn stays in the done lane. Done is
// an inbox of recent finishes, not a permanent bucket: past the TTL an
// unacknowledged completion decays into idle on its own, so the lane keeps
// meaning "this just finished" without requiring the user to dismiss it.
// Zero disables decay.
DoneTTL time.Duration
}
type Presentation ¶
type Presentation struct {
Lane LaneID
Icon string
Label string
Attention bool
Evidence string
ChangedAt time.Time
CapturedAt time.Time
Health bool
Semantic bool
Freshness Freshness
// Inferred marks an idle whose provider has no completion signal, so its
// absence from the done lane is a limitation rather than a fact.
Inferred bool
}
func Resolve ¶
func Resolve(in Input) Presentation
Resolve applies health/liveness precedence before semantic activity. The conservative legacy projection is used only when a provider has no activity detector, keeping old integrations usable without manufacturing evidence.