Upgrade safely across Guardian versions, policy gates, baselines, and release-decision artifacts.
Guardian is designed to be backward compatible, but release governance introduces local artifacts you should account for when upgrading:
guardian.lock (reproducible scans + drift control).guardian/baseline.json (baseline tracking).guardian/critiques.json (monitor snapshot hydration).guardian/release_decisions.jsonl (human approval + override audit trail).guardian/governance_summary.json (governance status snapshot for IDE/CLI/automation)This guide covers a safe upgrade flow that preserves your workflow and avoids confusing "all findings are new" situations.
Update Guardian
/download or via in-app updates.Open the same workspace root
Start monitoring once
Confirm guardian.lock
guardian.lock, it will be created after a scan.guardian.lock to version control if you want reproducible scans across the team.Recreate baseline (recommended)
This usually means the baseline is missing or incompatible with your current rules hash.
Fix:
Guardian writes a small set of files to your workspace for safety and reproducibility:
.guardian/
AGENT_INSTRUCTIONS.md
baseline.json
critiques.json
critiques.md
history.jsonl
agent_queue.jsonl
agent_queue.<timestamp>.jsonl
chat.md
chat_queue.md
STALL
undo/
index.json
<hash>.bak
guardian.lock
If your organization requires strict repository hygiene, you can:
guardian.lock (recommended).guardian/ to .gitignore if you don’t want to track local history/snapshotsNotes:
.guardian/* is generated and owned by Guardian. Avoid editing these files manually.STALL is only present while monitoring is stalled on a critical file.undo/ is created after you apply a fix (per-file last undo).If you run Guardian in CI via guardian-cli, align the scan_profile and lock mode:
guardian-cli scan --root . --scan-profile source --lock-mode warn
If migration behaves unexpectedly:
/contact for support