# MC 101648 Agent Mapping Cleanup

# MC 101648 Agent Mapping Cleanup

**Verdict:** PASS  
**Date:** 2026-05-21  
**Task:** `[P3-2] Delete 23-32 unmapped agent .md files; update specialist-mapping.json`

## Summary

The sweep found active valid agent definitions that were unmapped, plus two invalid duplicate `0.md` files. The safe action was to map valid active agents and archive only the invalid `0.md` duplicates with SHA256 evidence.

## Changes

- Updated `~/system/agents/specialist-mapping.json`.
- Added mapping coverage for active unmapped personas in `~/.claude/agents` and `~/system/agents/definitions`.
- Retained active definitions, including `minion.md`, `sentry-code-simplifier.md`, and `sp-code-reviewer.md`, after focused reference checks showed active chain/docs references.
- Archived invalid duplicate files:
  - `~/.claude/agents/0.md`
  - `~/system/agents/definitions/0.md`

## Validation

- JSON syntax valid: `python3 -m json.tool ~/system/agents/specialist-mapping.json` exit `0`.
- `~/.claude/agents`: `64` markdown files, `0` unmapped exact/case.
- `~/system/agents/definitions`: `55` markdown files, `0` unmapped exact/case.
- `0.md` no longer exists in either active agent directory.
- Routing smoke tests passed:
  - `code-reviewer` routes to CodeCraft / Code Reviewer and `sp-code-reviewer` alternative.
  - `minion` routes to CodeCraft / Minion at 98% confidence.

## Evidence

- `/tmp/101648-final-unmapped-analysis.txt`
- `/tmp/101648-final-hashes.txt`
- `/tmp/101648-routing-smoke-code-reviewer.txt`
- `/tmp/101648-routing-smoke-minion.txt`
- `/tmp/101648-system-defs-refs-focused.txt`
- `~/system/_archive/agent-orphans-2026-05/manifest-101648-agent-cleanup.json`

## Hashes

- `specialist-mapping.json`: `ff4a79581818a711ec64b0b636b40b35f4b2e7cbc1e018fb4c404481f2b5af7e`
- `0.md.agents.archived-20260521T121500Z`: `78a361cc0a986d630995d24c7aa95859aed2e779b0ff99366494b8198e006016`
- `0.md.definitions.archived-20260521T121500Z`: `78a361cc0a986d630995d24c7aa95859aed2e779b0ff99366494b8198e006016`
- `manifest-101648-agent-cleanup.json`: `4c699dc9d91cebf5bd1ed74b7791b9d6d3962d0c5769f95eb526dbc5041c8d85`