v0.2.1 Apache-2.0 · zero dependencies · offline

Know what your upgrade will break, before it does.

MigraSutra AI reads your repository, flags risky database and dependency changes with file and line, rehearses the change safely, and writes a report a human can approve. No API key. No cloud. Nothing executed.

npx migrasutra audit --root . --out report
97/100tests passing, 0 failing
13deterministic rules
20agent skills
0runtime dependencies
How it works

Five steps, each leaving evidence

Every hop carries a content hash. Change a file halfway and the flow stops.

From repository to reviewed decision

scan.json

Findings with file, line, rule ID and a SHA-256 of each source.

plan.json

One field change, its baseline hash, prerequisites and rollback notes.

rehearsal.json

Before and after hashes. Tests and rollback are marked as not run.

gate.json

NO_GO or REVIEW_REQUIRED with every reason listed.

Verdicts

No automatic green light

The tool cannot see your test results, so it never says safe.

NO_GOA high-severity static finding exists, or the rehearsal failed. Fix this first.
REVIEW_REQUIREDThe best possible result. A person must review. Tests and rollback were not run.
UNVERIFIED_EXTERNALEvidence you imported. It is recorded and never raises the verdict.
GO_CANDIDATEReserved for a future policy with verified tests. Not implemented.
How the release verdict is decided. There is no automatic GO.
Reports

One command, three formats

JSON for machines, Markdown for pull requests, HTML for people.

High4 / 8
Medium4 / 8
Low0 / 8
Findings in the bundled risky fixture (8 total), read from the generated audit.json

Open a sample report Clean app report

Private by design

Your code stays on your machine

Files are read, never executed. Nothing is sent anywhere.

The tool does

  • Read allow-listed filesmanifests, Dockerfile, SQL migrations
  • Hash and matchdeterministic rules, stable evidence IDs
  • Write reportsonly where you point --out
  • Rehearse in a temp folderdeleted afterwards

The tool never

  • Runs your codeno installs, scripts, tests or migrations
  • Calls the internetno cloud, no telemetry, no keys
  • Edits your sourcetests compare bytes before and after
  • Reads .env filesunlisted files are ignored
Proof

Evidence you can reproduce

Self-assessed, not third-party certified. Run the commands yourself.

Tests passing97 / 100
Tests skipped (symlinks)3 / 100
Tests failing0 / 100
SQL corpus correct15 / 16
Recorded on Node v24.15.0 (win32). Reproduce with npm run test:report.

What it does not do

  • It does not run your tests, builds, installs or migrations.
  • SQL checks are heuristics, not a dialect parser. Dynamic SQL inside $$ bodies is missed.
  • Only root-level manifests and common migration folders are read.
  • Sandbox execution, codemods and a database restore lab are roadmap items.
  • Skills were not verified inside live IDE hosts.

Audit your first repository

Node.js 22 or newer is all you need.

Open the user guide