ZerwOnePlatform
Private preview

Docs

Reading a result

The verdict is computed from the checks, so you can recompute it yourself and show your users why.

The verdict

VerdictWhenWhat to do
verifiedThe fix ran clean, every leak check passes after it, every guard still passes, and no sensitive guard is unconfirmed.Review the SQL, then apply it.
needs_confirmationEverything passes, but a guard hands out access to other people's rows (a membership, a share, a role) and the owner has not confirmed it is intended.Ask the owner. Send the confirmed ids in confirmed_guards and run again.
not_verifiedA statement failed, a leak is still open, a guard broke, the fix touched something outside access rules, or there was no guard to protect.Do not apply it. Read migration.errors.
no_fix_proposedNo check leaked, so no fix was asked for.Nothing to apply.

What “verified” means, and what it does not

  • It means the fix passes every check listed in the result, on a copy built from your schema.
  • It does not mean no flaw is left. A flaw no check looked for is not found. That is why every check is in the result.
  • The copy has no real rows and no function bodies. Where that matters, it is listed in migration.errors and the result is not verified.
  • Intent is not in a schema. Without app_description, a shared board can look like a private table. In our lab tests, verdicts without it were wrong 5 times in 29.

Two kinds of checks

  • Written checks come from a model that reads the schema and the app description.
  • Rule checks (rule: true) need no model: someone not on a row cannot change or delete it, a visitor cannot write, and the owner can still read and edit her own rows.