Lifecycle Fields
Set Agent Lifecycle
List Expired Agents
Returns agents whoseexpires_at date has passed. Use this to identify agents that need decommissioning or renewal.
sponsor_id, status, or days_expired.
List Agents Due for Review
Returns agents whose next review date has passed or is approaching. Use this to enforce periodic access reviews.sponsor_id or days_overdue.
Review Frequency Options
The
review_date is automatically calculated as now plus the review interval whenever review_frequency is set or changed.
Audit Trail
Lifecycle changes (settingexpires_at, review_frequency, or sponsor_id) do not currently emit their own audit event.
Use Cases
- Compliance - EU AI Act requires periodic review of high-risk AI systems. Set
review_frequencytoquarterlyfor high-risk agents. - Shadow agent cleanup - Set short expiry dates on newly discovered agents to force review.
- Team accountability - Assign
sponsor_idso every agent has a responsible owner. - Decommissioning workflow - Poll
GET /agents/expiredand call the kill switch yourself to block agents past their expiry; MeshAI does not auto-block expired agents today.

