Expand description
Pure evidence contracts for swarm coordination diagnosis.
This module deliberately does not inspect Agent Mail, read the filesystem, or mutate claims. Callers provide issue metadata and optional reservation evidence, then receive a deterministic classification that future CLI, MCP, scheduler, and audit surfaces can share.
Structs§
- Agent
Mail Agent Snapshot - Minimal offline agent-liveness snapshot row exported from Agent Mail.
- Agent
Mail Reservation Snapshot - Minimal offline reservation snapshot row exported from Agent Mail.
- Claim
Assessment - Deterministic assessment for one in-progress claim.
- Claim
Assessment Input - Caller-provided input for one claim assessment.
- Claim
Assessment Policy - Thresholds used when classifying a claim.
- Coordination
Claim Advisory - Advisory reclaim guidance for one in-progress claim.
- Coordination
Claim Row - One in-progress issue plus its deterministic coordination assessment.
- Coordination
Comment - Bounded comment excerpt included with a coordination claim row.
- Coordination
Issue Row - Issue context attached to one coordination claim row.
- Coordination
Status Output - Top-level machine-readable coordination status shape.
- Coordination
Suggested Command - A command suggestion emitted for an operator to review and run manually.
- Coordination
Summary - Count summary for coordination status output.
- Coordination
Workspace Counts - Workspace context counts shown next to hidden-claim diagnosis.
- Reservation
Evidence Provenance - Provenance copied from a matching reservation snapshot.
Enums§
- Claim
Classification - Stable claim classifications used by coordination-aware surfaces.
- Claim
Owner Kind - Who appears to own the current claim.
- Coordination
Evidence Source - Evidence categories present in a claim assessment.
- Coordination
Suggested Command Purpose - Role for a suggested coordination command.
- Recommended
Action - Suggested next action for an operator or agent.
- Reservation
Evidence - Optional Agent Mail reservation evidence supplied by the caller.
- Reservation
Snapshot Match Reason - Why an Agent Mail reservation snapshot was associated with an issue.
Constants§
- COORDINATION_
SCHEMA_ VERSION - Schema version for coordination status and claim evidence outputs.
- HUMAN_
ABANDONED_ LIKELY_ AFTER_ MINUTES - Extra-conservative marker for likely abandoned human or unclear claims.
- HUMAN_
STALE_ CANDIDATE_ AFTER_ MINUTES - Human or unclear claims use a one-business-day rule of thumb.
- SWARM_
ABANDONED_ LIKELY_ AFTER_ MINUTES - Extra-conservative marker for likely abandoned swarm claims.
- SWARM_
STALE_ CANDIDATE_ AFTER_ MINUTES - Swarm-agent claims become stale candidates after two quiet hours.
Functions§
- advisory_
for_ claim - Build advisory-only reclaim guidance for one claim assessment.
- assess_
claim - Classify one in-progress claim from caller-supplied evidence.
- assess_
claim_ with_ policy - Classify one claim with caller-supplied thresholds.
- reservation_
evidence_ from_ snapshots - Derive reservation evidence for one issue from an optional offline snapshot.