promptdojo_

Model registry shape — step 5 of 7

Deploying v4 works — then v4 misbehaves in production and the rollback promote("churn", 3) crashes with KeyError: this promote() DELETES the old production entry, so v3 no longer exists to roll back to. Fix promote to ARCHIVE the incumbent instead of deleting it.

The break is on line 10 — but read the whole snippet first.

full-screen editor opens — close anytime to keep reading.