Govern Deployment Safety
- Freeze source revision, build inputs, dependency locks, migration head, configuration schema, and target environment.
- Scan the release context for secrets, caches, test residue, local state, backups, and excluded files.
- Compare required/declared/runtime environment keys without exposing values.
- Prove one migration head, upgrade on a disposable target, downgrade when supported, interrupted recovery, and persistence across controlled restart.
- Build once; record artifact/image identities and deploy the exact recorded artifact.
- Verify health, readiness, critical consumer contracts, and rollback using the deployed identity.
- Bind claims to source bundle digest, revision, migration, artifact, environment, and evidence hashes.
- Report residual risks and all unexecuted gates. A described drill is not an executed drill.
For paired binary and metadata artifacts, validate metadata before writing, write temporary generations on the destination filesystem, flush and sync as supported, atomically replace each destination, and bind both files to one generation fingerprint. Detect mixed generations, stale sidecars, duplicate or rewound ID watermarks, unknown schema versions, truncation, hostile allocation lengths, and bounded transient replacement retries. Cleanup failure must never mask the primary failure, and original artifacts remain recoverable until the new generation is verified.