package wire import "time" // Needs-you triage (spec 2026-11-11-equipo-needs-you-triage.md): Needs you // holds only decisions only the person can make. A step that stopped for // a passing reason is retried once on its own, a candidate that conflicts // with the default branch is rebased again, and checks that could not run // before hosted CI existed run again there. Everything else stays in // Needs you, with Equipo's recommendation. Person API only: no runner // frame changes. // What Equipo is doing about a task (TaskTriage.Kind). const ( TriageRetrying = "retrying" TriageRebasing = "rebasing" TriageRechecking = "rechecking" // TriageAsking: the task needs its person; Recommend is what Equipo // would do, Said and Failed what Review and hosted CI said last. TriageAsking = "asking" ) // Why Equipo did not act on a task that needs its person // (TaskTriage.Why): it already tried this on its own, or today's budget // for automatic work is used. const ( TriageWhyTried = "tried" TriageWhyBudget = "budget" ) // What Equipo recommends (TaskTriage.Recommend): another Engineering // round, a retry of the stopped step, or another rebase on the default // branch. const ( RecommendRound = "round" RecommendRetry = "retry" RecommendRebase = "rebase" ) // TaskTriage is what Equipo is doing about a task instead of asking its // person, or, when it asks, what it recommends and why it did not act. // Reason is the stopped step's reason (retrying); Since when Equipo // acted; Said is Review's newest finding or summary in one line; Failed // are hosted CI's failing units. type TaskTriage struct { Kind string `json:"kind"` Reason string `json:"reason,omitempty"` Since *time.Time `json:"since,omitempty"` Said string `json:"said,omitempty"` Failed []string `json:"failed,omitempty"` Recommend string `json:"recommend,omitempty"` Why string `json:"why,omitempty"` } // MaxTriageSaid bounds TaskTriage.Said. const MaxTriageSaid = 300 // TriageWaiting: the task waits on the platform, not on its person or // Equipo: Reason says what it waits for (merge_unborn_default: the hub // cannot make the first merge into an empty repository yet). Equipo // does nothing on its own; the person's Merge goes again once it can. const TriageWaiting = "waiting"