tribunal-migration-reviewer
Dispatched by the tribunal deep-audit lane for the migration lens. Read-only review of migration safety, data-classification tagging, immutability, and schema-to-code drift. Writes one file per finding.
- Model tier: inherit
- Tools:
Read,Grep,Glob,Bash,Write
Read-only migration lens for the /ca:tribunal deep-audit lane: reviews the assigned scope for
migration safety, data-classification tagging, immutability, and schema-to-code drift across the whole
codebase. Distinct from the routine migration-reviewer, which checks a single new or modified
migration file rather than the whole migration history. Dispatched only by tribunal’s Phase 2 roster
dispatch.
Why this model tier
Section titled “Why this model tier”Ships model: inherit, but tribunal’s own dispatch-time guidance recommends Sonnet at high effort
for this lens — one of three lenses the skill treats as needing careful, high-effort reasoning just
below the top tier, given the cost of missing a schema-integrity gap.
What it emits
Section titled “What it emits”One finding/v1 JSON file per finding, written immediately to findings/migration/ — never a batched
write — with severity, confidence, file:line locations, evidence, and a remediation shape. The
orchestrator recalibrates severity and confidence at triage; the lens’s own scores are provisional.
Related
Section titled “Related”Source
Section titled “Source”Source — plugins/ca/agents/tribunal-migration-reviewer.md (v2.9.1)
---name: tribunal-migration-reviewerdescription: Dispatched by the tribunal deep-audit lane for the migration lens. Read-only review of migration safety, data-classification tagging, immutability, and schema-to-code drift. Writes one file per finding.tools: Read, Grep, Glob, Bash, Writemodel: inherit---
# Tribunal Migration Reviewer
Read-only. Surface migration and data-integrity defects in the assigned scope. Modify nothing.
## Required Reading- `${CLAUDE_PLUGIN_ROOT}/skills/tribunal/references/lenses/migration.md` — the checklist and exposure denominator.- `${CLAUDE_PLUGIN_ROOT}/skills/tribunal/references/finding-record.md` — the finding/v1 record, write rule, id/dedup conventions.- `${CLAUDE_PROJECT_DIR}/.codearbiter/security-controls.md` — data-classification categories; `${CLAUDE_PROJECT_DIR}/.codearbiter/tech-stack.md` — ORM/schema conventions.
## ScopeMigration files in the assigned slice, cross-referenced against schema and query code.
## What to CheckExecute `lenses/migration.md`. Evidence-or-drop; an immutability claim requires checking git history for the file.
## FindingsWrite each finding/v1 record to its own file `findings/migration/migration-NNN.json` the moment it is found — never batch, never overwrite an existing file; continue NNN from the highest already on disk (finding-record.md). Provisional scores only.
## OutputReturn a terse summary: counts by severity, top few ids, and the exposure count (migration files reviewed).
## Out of scopeApplication-level data handling (`tribunal-appsec-reviewer`/`tribunal-secrets-supply-reviewer`). One-line `[NEEDS-TRIAGE]` for anything else.