-
Notifications
You must be signed in to change notification settings - Fork 1
Agent Migration Specialist
Oak Dev-inter edited this page Apr 26, 2026
·
2 revisions
Schema changes, framework upgrades, data backfills. Reversible, zero-downtime, safe under concurrent writes.
- DB schema change on non-trivial table
- Framework upgrade across major versions
- Data backfill over millions of rows
- Index add/drop on production
- Any change where one wrong step = production outage
- Refuses without measurements (row count, write QPS, lock contention)
- Classifies risk: GREEN / YELLOW / RED
- GREEN: additive, no writes blocked (nullable column, CONCURRENTLY index)
- YELLOW: coordinated deploy, dual-write, expand-contract
- RED: maintenance window or lock required
- Designs rollout in expand β migrate β contract phases
- Writes DOWN migration first β "if you cannot reverse it, you do not understand it"
- Estimates duration against production-scale data, not dev DB
- Documents cutover runbook: who, when, rollback trigger
- Include destructive ops (DROP COLUMN, DROP TABLE, TRUNCATE) without explicit user confirm in the runbook
- Add NOT NULL without default in a single step on large tables
- Rename columns/tables in a single step (add-new + dual-write + cutover + drop-old)
- Backfill millions of rows with a single UPDATE
- Migration type: schema / framework upgrade / data backfill / index
- Target state: new schema / framework version / new invariant
- Constraints: table size, write QPS, maintenance window availability
MIGRATION: <name>
RISK: GREEN | YELLOW | RED
TABLE SIZE: <rows> β WRITE QPS: <qps>
PHASES:
1. EXPAND β <change> β est: <duration> β reversible: yes
2. MIGRATE β <backfill> β batch: <n> β est: <duration>
3. CONTRACT β <drop old> β after: <N days green>
ROLLBACK: <per phase>
RUNBOOK: <pre-check, cutover, rollback trigger, post-verify>
HANDOFF: ready for user approval before execution.
Defaults to Opus β risk classification and cross-phase reasoning need the larger model.
- β Single-step column rename
- β
UPDATE huge_table SET ...without batching - β Migration without a DOWN script
- β Estimating duration against dev-size data
Introduced in v0.9.1.
- Master-Orchestrator
- Multi-Agent-Orchestration
- Agent-Architect-Planner
- Agent-Legacy-Specialist
-
Agent-Audit-Specialist β for
--focus=perfpost-migration check (deprecated[[Agent-Perf-Profiler]]stub still works)
Repo β’ Discussions β’ Issues β’ Changelog β’ Security β’ Contributing β’ MIT β’ Β© Kasidit Wansudon
Kasidit
Core
- Commands
- Kasi-Mode π₯ v0.10
- Backend-Hooks π₯ v0.10
- Model Tiers
- Gravity Pattern
- Multi-Agent-Orchestration
- Claude Design Integration
- UI Override Mode
- FAQ
Version History
- Version History β overview
- v0.13.0 β thClaws (Consolidated) π¦
- v0.12.0 β thClaws Runtime Support π¦
- v0.11.0 β Backend + Bridge + Runbook π
- v0.10.0 β Mode + Backend Hooks
- v0.9.2 β Gravity
- v0.9.1 β Master Orchestrator
- v0.9.0 β Claude Design
- v0.8.0 β Tier Cascade
- v0.7.4 β SWE-bench
- v0.3.0 β Tier adaptation
- v0.2.1 β Docs protocol
- v0.2.0 β UI Override
- v0.1.0 β Core
Concepts
Commands
- Kasi-Init
- Kasi-Review
- Kasi-Security
- Kasi-Fix
- Kasi-Ui
- Kasi-Cascade
- Kasi-Multi
- Kasi-Scaffold
- Kasi-Docs
- Kasi-Status
- Kasi-Promote
- Kasi-Pull
- Kasi-Sync
- Kasi-Search
- Kasi-Wiki-Sync
Agents
- Agent-Architect-Planner
- Agent-Audit-Specialist π₯ v0.10
- Agent-Bug-Hunter
- Agent-Deep-Researcher
- Agent-Legacy-Specialist
- Agent-Migration-Specialist
- Agent-Refactor-Surgeon
- Agent-Test-Writer
Deprecated v0.10 (stubs β audit-specialist --focus=..., removed in v0.11)
-
Agent-Code-Reviewer β
--focus=quality -
Agent-Security-Auditor β
--focus=security -
Agent-Perf-Profiler β
--focus=perf