loop-breaker

Security & Safety

LoopBreaker is an early-stage developer tool, not a hardened production system. Read this before enabling file rollback.

Default: warn-only (safe)

loop-breaker install writes .loopbreaker/config.json with "mode": "warn".

In warn mode LoopBreaker:

This is the recommended mode for real repositories.

Rollback modes (opt-in)

Mode Behavior
warn Detect + steer only (default)
restore Overwrite changed files back to last healthy checkpoint
full restore + delete files that did not exist at checkpoint

Enable explicitly:

loop-breaker install --mode restore   # or full

Rollback risks

Session data (.loopbreaker/)

Session files may contain copies of tracked source files from checkpoints (.py, .json, etc.). Treat .loopbreaker/ as sensitive and keep it gitignored.

The scanner now ignores .loopbreaker/ so state files are not re-snapshotted.

Path safety

Workspace-relative paths are validated before any read/write. Paths containing .. are rejected.

Limitations

Reporting issues

See bug report template.