Get Sidebar Badges
{companyId}.
Response Semantics
- The handler resolves the company, checks company access, and then computes the badge summary.
- The returned object includes
approvals,failedRuns,joinRequests,evaluationQueue, andinbox. inboxis synthesized from the current badge buckets and alert conditions; it is not a separate persisted counter.
High-Level Buckets
| Field | Source |
|---|---|
approvals | Actionable approval records in pending or revision_requested state |
failedRuns | Latest run state per agent when the latest run is failed or timed_out |
joinRequests | Pending join requests when the caller can approve joins |
evaluationQueue | Latest queue annotations that still need review |
inbox | Combined count used by the navigation chrome |
Inbox Synthesis
The route adds the following intoinbox:
- actionable approvals
- failed agent runs
- pending join requests, when visible to the caller
- a single alert bucket for agent errors when there are no failed runs
- a single alert bucket for budget pressure when the company is at or above 80 percent of budget utilization
- the evaluation queue count
Scope Notes
- The company ID can be either a UUID or an issue-prefix alias.
- The response is driven by current database state and company access.