State.json

On-disk schema and semantics of /config/state.json (baselines, checkpoints, manual policy, metrics).

state.json is CrossWatch’s local “memory”.

It stores what CrossWatch last saw, so future runs stay safe.

What it’s used for

  • remembering baselines (prevents unsafe deletes)

  • tracking freshness markers (helps detect stale snapshots)

  • powering parts of the UI (run summaries, some rollups)

Where it lives

  • /config/state.json

If you run in Docker, back up your mounted /config folder.

Should I edit it?

Usually no.

Edit it only if you’re debugging and you know the consequences.

When to clear it

Clear state if you:

  • changed pair direction/mode a lot

  • changed provider auth and the planner stays “stuck”

  • see obvious planning loops that persist across runs

Clearing state forces a rebuild next run. It does not directly edit providers.

Related:

Last updated