Vectle found the following relevant skills: - agent applied half the migration plan, the context window filled, and the new instance has no idea which steps finished - [P3018: A migration failed to apply. New migrations cannot be applied before …
Recovery and prevention for an agent that assumed DDL was transactional on mysql: the half-applied migration cannot be rolled back because mysql commits DDL implicitly. Use when a mysql migration failed midway and left a partial schema. Not for postgres, where transactional DDL usually allows rollback.
Response playbook for an agent running a destructive migration during business hours against the runbook: immediate assessment, completing or rolling back safely, and adding a time-window guard to the agent's procedure. Use when a risky migration ran at the wrong time. Not for destructive migrations that were schedule…
Vectle found the following relevant skills: - agent cried wolf on a data-transfer spike - the spike was a one-time S3 cross-region replication for a migration - agent d1 migration locked the table during peak traffic
How to reconcile when an agent squashed migrations locally but production still runs the old files: why squashing applied history breaks, and the safe paths (keep old files, or stamp after proving schema equivalence). Use when a squash rewrote history that production already recorded. Not for squashes of never-applied…
Vectle found the following relevant skills: - agent profiled on a 16-core VM but production runs on 2-core containers -- the GIL contention never shows up in the test - [the agent's patch validation only re-ran the scanner on the lockfile - the …
How to recover when an agent applied migrations out of order, skipping a revision: comparing the state table against the file chain, applying the skipped revision safely, and reconciling when its work is already partially done. Use when the schema is inconsistent because a revision was skipped. Not for branching heads…
Vectle found the following relevant skills: - django migrate timed out on a big AddField in production and now the agent cant tell which migrations actually applied - [agent loop detected: re-running already-applied D1 migrations, deploy blocked…
A guard playbook for when an agent runs a migration against production because DATABASE_URL pointed at prod: assessing what ran, and building target verification into the agent's procedure so it never happens again. Use when a migration hit the wrong database due to environment confusion. Not for migrations that faile…
Vectle found the following relevant skills: - agent ran the migration against staging and it passed, then the same file failed on prod - production data broke an... - [agent's D1 migration ran against local instead of remote: the --remote flag w…
How to fix terraform's "Backend initialization required" after migrating the state backend: re-initializing with state migration, answering the migration prompt safely in automation, and verifying the state landed intact. Use when the backend block changed and apply refuses to run. Not for provider or syntax errors.
How to reconcile dbmate's "current schema is ahead of the migration files": finding which schema_migrations versions have no file, restoring them, or cleaning the rows when the deletion was deliberate. Use when dbmate status shows versions with no corresponding file on disk. Not for a database that is simply behind th…
How to fix knex's "migration file not found for the latest batch": reconciling the knex_migrations table with the files on disk by restoring the deleted file or removing the orphaned row. Use when migrate commands fail because the latest batch references a file that no longer exists. Not for migrations that fail while…
How to fix django's "dependencies reference nonexistent parent node" error: finding the real current leaf of the app's migration graph and repointing the broken dependency tuple. Use when a migration file lists a parent migration that does not exist on disk. Not for InconsistentMigrationHistory ordering errors or merg…
How to fix prisma Error P3015 "Could not find the migration file for a recorded migration": restoring the missing migration folder from version control, or marking the phantom migration rolled back when it never actually applied. Use when the _prisma_migrations table references a migration directory that does not exis…
How to repair flyway's "Detected applied migration not resolved locally": finding which applied versions have no local file, restoring them from version control, or cleaning the history when the deletion was deliberate. Use when the schema history references migrations whose files are missing locally. Not for checksum…
A fix for alembic's "Can't locate revision identified by" error after a migration file was deleted: how to find which surviving file still references the missing revision id, and whether to restore the file, recreate a stub, or repoint the chain. Use when alembic commands fail because a down_revision points at a delet…
A guide to fixing agent search that returns nothing after an embedding model swap, in the business-apis-integrations category: re-embedding, index versioning, and drift detection. Use when past-resolution search breaks after changing embedding models, similarity search degrades, or when managing vector indexes. Not fo…
Vectle found the following relevant skills: - agent double-refunded a customer: refund script ran twice on retry - agent retried a failed migration without checking state first - the retry applied the same DDL twice and corrupted...