IDY-END-01Tier IIIdentity & Least-Privilege

Safe Decommissioning

Retire agents in a controlled way that preserves audit trail, revokes permissions, and handles downstream dependencies.

Runtime: TerminateAgentOps: DecommissionSee on the matrix →
SAFE DECOMMISSIONING Dependency Analysiscallers ·callees Revoke CredsIAM cleanup Dispose Memoryretentionpolicy Preserve Auditretirementpointer Archive ConfigevidentiaryRetirement is a controlled procedure — not a delete.
In Plain English

This page is the complete instruction page for one pattern called "Safe Decommissioning." It explains the problem this pattern solves, the idea behind the solution, when you should (and should not) use it, and what happens afterward — both the good effects and the costs.

This matters because building AI agents is not just about making them clever. It is also about making them safe and predictable. Following a well-tested pattern like this one helps avoid common mistakes, and shows you exactly which safety rules and regulations it connects to, listed under "Standards Mesh" on this page.

Context

Removing an agent from a multi-agent system can break orchestration flows. Decommissioning without dependency analysis creates production incidents.

Problem

Ad-hoc retirement leaves orphaned credentials, dead references, and lost audit history.

Forces

  • Clean removal vs dependency risk
  • Data retention vs data minimisation

Solution

Formal decommissioning procedure: dependency analysis (who calls this agent, who does this agent call), credential revocation, memory disposal per retention policy, audit-log preservation with pointer to retirement record, archival of configuration for evidentiary need.

Applicability

  • End-of-life of any production agent
  • Portfolio rationalisation
  • Incident-driven shutdown

Anti-Patterns

  • Deleting agents without dependency check
  • Retaining credentials "just in case"

Consequences

  • +Clean portfolio
  • +Bounded credential sprawl
  • +Audit continuity
  • Procedure-heavy