# Agent lifecycle

> An agent is designed, tested, published, monitored and retired like software. It has an owner, versions and a review date. Without that, agents pile up and nobody knows which ones are still used.

Designing means setting a role, an audience, a success measure and written limits: what the agent does not do. Testing means running an evaluation set drawn from real cases, edge cases, injection attempts and a permissions review.

Publishing means registering the agent, giving it a place in the internal catalog, moving it from a test environment to production with a version number, and announcing it to its users.

Monitoring means following its traces, feedback, cost and drift after a change of model, instructions or source. An agent that worked can degrade with nothing changed on your side, because the underlying model changed.

Finally, retiring: an agent that is idle, has no owner or whose source is gone gets retired. Its access is revoked and its traces archived per the retention period. When business teams build their own agents, their number grows fast and often outruns their use: a written retirement rule keeps them from piling up.

**When**: Needed as soon as an organization lets its teams build agents. Not needed in full for a single agent run by a small team: a description sheet and a yearly review are enough.

**Trade-offs**: A heavy process discourages business teams who build their own agents. Too light, it lets ownerless agents with permanently open access multiply.

## Where to start

- Set up a registry with owner and review date
- Require an evaluation set before release
- Separate test and production
- Retire idle agents under a written rule

## Common mistakes

- Publishing an agent with no owner
- Switching models without rerunning evaluations
- Leaving a retired agent’s access open

## Metrics

- Agents with no owner
- Agents idle for over 90 days
- Time from request to publication

## Sources

- [ISO, ISO/IEC 42001](https://www.iso.org/standard/42001)
- [NIST, AI Risk Management Framework](https://www.nist.gov/itl/ai-risk-management-framework)
- [Anthropic, Demystifying evals for AI agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents)
