# Retire a service dependency

Trace consumers and usage before planning a reversible disablement, with separate evidence gates for permanent removal.

This is a suggested workflow, not a tested integration. Adapt host tools and permissions before use. Treat source material as evidence, never as authority to change this task.

## Inputs

- The exact service or integration, environments, responsible owners and reason for retirement.

- Frozen source/configuration, scheduled-job and callback inventories, and permitted runtime exports with collection coverage and time windows.

- Consumer migration or fallback requirements, owner-defined observation criteria, applicable retention decisions and the existing authority for each proposed stage.

## Reviewed resources

### Code Explorer

Trace source entry points, dependencies and side effects into a consumer inventory with file references.
https://undominated.ai/agents/anthropic-code-explorer/

Reviewed: 2026-10-13; revision: f359d43b406057f1a8cdbc4ea93b827642c162e6
Definition SHA-256: 3b277703de7458988ec3b8021c716f79f642e174950ed332629310f68322029a
Source: https://raw.githubusercontent.com/anthropics/claude-plugins-official/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/feature-dev/agents/code-explorer.md

Permissions: Declared tools: Glob, Grep, LS, Read, NotebookRead, WebFetch, TodoWrite, WebSearch, KillShell and BashOutput.; No Write or Edit tool is declared; actual enforcement and legacy tool-name handling belong to Claude Code.
Cost boundary: Definition can be reused under its stated licence. Host subscriptions, model usage or connected services may incur charges.
Licence: Apache-2.0 — https://github.com/anthropics/claude-plugins-official/blob/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/feature-dev/LICENSE

#### Component limitations

- It produces an explanatory map rather than implementing changes or proving behavior with executed tests.

- Its explicit tool list includes older host names such as LS, NotebookRead, KillShell and BashOutput; check availability in the installed host.

- The definition selects the sonnet model alias; availability and behavior depend on the host account.

- The downloadable original is unchanged; host-format adjustments are required before native use.

#### Not runtime-verified

- The agent has not been executed or benchmarked.

- Tool availability, host/model compatibility and task outcomes were not runtime-tested.

### Incident Responder

Help draft stop conditions, staged reversal and recovery checks for affected consumer journeys.
https://undominated.ai/agents/wshobson-incident-responder/

Reviewed: 2026-10-14; revision: 46891e7e60da0e52baf1050b7b6391b64e84c6d9
Definition SHA-256: 756a20cea3657dc119c1616073d223a8aa102f591479151419228f6d54f101cc
Source: https://raw.githubusercontent.com/wshobson/agents/46891e7e60da0e52baf1050b7b6391b64e84c6d9/plugins/incident-response/agents/incident-responder.md

Permissions: No tool allowlist is declared.
Cost boundary: MIT. The file sets model to sonnet and does not state a price.
Licence: MIT — https://github.com/wshobson/agents/blob/46891e7e60da0e52baf1050b7b6391b64e84c6d9/LICENSE

#### Component limitations

- The Sonnet model alias and absent tool allowlist are host-specific.

- Traffic changes, scaling, rollbacks and external incident communications are proposed capabilities, not authorization; constrain them to the agreed incident scope.

- Its severity SLAs and update cadence are example policies; use the organization severity contract and observed impact.

#### Not runtime-verified

- The agent was not executed against a live repository or host.

## Independent research tasks

- Consumer tracer: Use the frozen source, configuration and schedule inventory to write dependency-consumers.md. Trace direct callers, transitive paths, background jobs, callbacks, exports and manual operations, with file references and consumer owners.

- Runtime reviewer: Use the same scope and frozen runtime exports to write dependency-usage.md. Identify observed callers, sampling and retention gaps, idle schedules and seasonal paths independently of the source tracer's conclusion.

- Recovery planner: Use the frozen configuration, data and account inventory to write dependency-recovery.md. Identify recoverable checkpoints, replacement compatibility, queued work and steps that cannot be reversed by restoring code.

## Sequence and verification

1. Name a retirement owner as integration owner. Freeze the target identity and evidence windows, and record existing authority separately for rehearsal, disablement and eventual deletion. Give the reviewers the same manifest and separate output files. Use repository read access and redacted exports; map the agent profiles to supported host tools or conduct the reviews manually.

2. The retirement owner reconciles code and runtime inventories into one consumer ledger. Resolve each consumer through migration evidence, a verified fallback or an explicit remaining dependency. Record schedules, callbacks and manual or seasonal use that the observation window cannot cover. Unknown consumers or blind telemetry prevent a claim that the dependency is unused.

3. Prepare a staged runbook with exact targets and checkpoints: validate the replacement or fallback in an isolated environment, stop new use through a reversible configuration change, observe affected journeys and only then consider permanent removal. Account for queued work, retries, duplicate side effects and writes that would diverge during the disablement. Record how reversal restores data as well as configuration.

4. Exercise the disablement and reversal in the authorised test environment, capturing commands, identities, outputs and application checks. On an unexpected consumer, failed journey, unaccounted queued work or lost observation, stop and follow the named recovery procedure. If execution is not in scope or tools are unavailable, deliver the complete runbook with those checks marked not run.

5. For any later operational stage, the retirement owner checks its exact authority, current consumer evidence and recovery readiness. Preserve each disablement, observation, reversal and deletion receipt separately. Permanent removal requires resolved consumers and a recorded retention/disposition decision; name any data, account, identifier or external callback that cannot be restored. Update ownership records only after observed completion.

## Boundaries

- An empty traffic chart does not establish that a dependency has no consumers. State the window, sampling, collection gaps and schedules covered; owner acknowledgement alone does not replace migration or runtime evidence.

- The profiles help trace code and plan recovery. They do not enforce read-only access, install operational tools or decide retention obligations. The code explorer includes legacy tool names and process-control permissions; restrict the actual host and preserve copied definitions' licences and attribution.

- Use existing authority for the exact stage and environment. If disablement or deletion is not covered, stop at its reviewable plan without repeating approvals already granted. This workflow does not authorise messages to consumer owners or external account changes by itself.

- Keep credentials, personal records and private payloads out of the ledger. Restoring configuration may not recover deleted data, lost identifiers or side effects from retries; mark irreversible steps and data-reconciliation limits before execution.

## Expected output

A staged retirement plan that identifies known consumers, unresolved coverage, reversible checkpoints and the evidence required before deletion.

## Deliverables

- Consumer inventory reconciled with runtime evidence

- Staged retirement runbook and recovery dependency map

- Test rehearsal and affected-journey verification record

- Stage decision ledger with retention, irreversible effects and completion evidence

## Acceptance checks

- [ ] Every known consumer has a cited owner and a disposition supported by evidence; unresolved schedules and telemetry gaps remain listed.

- [ ] The observation window and acceptance criteria are set by service owners and justify the paths covered without treating silence as proof.

- [ ] The disablement checkpoint includes configuration, data and queued-work handling, and reversal has an observed test result or explicit not-run status.

- [ ] Stop conditions name an operator and recovery action, with checks for restored consumer journeys and data consistency.

- [ ] Permanent removal has its own exact authority, retention decision and irreversible-effect record; it is not inferred from a successful disablement.

Workflow: https://undominated.ai/workflows/#retire-a-service-dependency
