Skip to content

migration lens

Tribunal lens card. This is not a standalone agent: when the /ca:tribunal deep audit activates the migration lens, the generic tribunal-lens-reviewer agent is dispatched once under the migration assignment and executes this card as its mandate.

Executed by tribunal-lens-reviewer under the migration assignment. Write contract + evidence discipline: finding-record.md.

Migration files in the assigned slice, cross-referenced against schema and query code.

  • the repository’s .codearbiter/security-controls.md — data-classification categories; the repository’s .codearbiter/tech-stack.md — ORM/schema conventions.
  • Reversibility: rollback/down path present; destructive ops (DROP, TRUNCATE) guarded; NOT NULL added without DEFAULT/backfill; single-step rename that breaks queries mid-deploy.
  • Data-classification annotation present for tables holding sensitive data (PII, credentials, payment, audit).
  • Immutability: edits to an already-committed migration (schema divergence across environments).
  • Index concurrency on large tables; locks that block production traffic.
  • Schema-to-code drift, backfill correctness, operation ordering, unguarded destructive operations.

Count of migration files reviewed.

Application-level data handling (appsec/secrets).