Vectle found the following relevant skills: - agent's braintrust eval dataset changed mid-run: version pinning - agent's changelog summary hallucinated breaking changes - the release notes it cited didn't exist
Recovery when an agent's idempotency check read the wrong state table (flyway_schema_history instead of alembic_version): reconciling the real state and fixing the agent's procedure to check the tool the app actually uses. Use when a migration was skipped or double-applied because the agent consulted the wrong history…
How to fix a migration file committed with a wrong timestamp prefix so it sorts before an older migration: renaming for timestamp-ordered tools, or fixing the chain for graph-ordered tools. Use when the filename order disagrees with the intended apply order. Not for genuinely conflicting migrations.
How to clean an alembic autogenerate migration polluted with unrelated schema noise from another branch: reviewing the diff, deleting the noise, and regenerating on a clean baseline. Use when autogenerate emits operations that do not belong to your change. Not for autogenerate missing a change you expected.
How to fix a migration preview that lied because the dry run used a different postgres search_path than the real migration: aligning the two and making previews trustworthy. Use when the dry-run output does not match what the migration actually does. Not for previews that are wrong for other reasons.
Vectle found the following relevant skills: - agent dry-ran the codemod and the output looked right, then the real run rewrote files the dry-run had skipped - agent's eval comparison used different seeds across runs: nondeterminism fix
Recovery and prevention after an agent ran prisma migrate dev against a shared staging database and wiped data URIs restoring from backup, and the guardrails that keep migrate dev off shared databases. Use when migrate dev reset a database it should never have touched. Not for migrate deploy issues.
Vectle found the following relevant skills: - agent keeps re-running prisma migrate dev because drift detection flags its own shadow database as drift - [prisma migrate dev hung because the agent couldnt answer the interactive reset-the-database…
Vectle found the following relevant skills: - agent d1 migration locked the table during peak traffic - agent's suggested index fixed the SELECT but the migration locked the table for 40 minutes during the ALTER
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…
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…