1.3 KiB
1.3 KiB
Incident Mode Runbook
Use this flow when the operator needs degraded mode with peer isolation and controlled recovery.
Enter Degraded Mode
- Enter incident mode and isolate peers.
cd cmd/clawd
node ./dist/main.js incident enter --reason "peer poisoning investigation"
- Verify state.
node ./dist/main.js incident status --out pretty
node ./dist/main.js doctor --json
Expected behavior:
- incident mode is marked
active - local
seedsandpersistentPeersare cleared (unless--no-peer-isolation) - previous peer settings are snapshotted for recovery
Operate While Isolated
- Keep runtime in degraded mode while triaging.
- Validate node health and peer graph before rejoining:
node ./dist/main.js status
node ./dist/main.js peers verify
Recovery Flow
- Exit incident mode and restore previous peer settings.
node ./dist/main.js incident exit
- Verify restoration and connectivity.
node ./dist/main.js incident status --out pretty
node ./dist/main.js peers summary --out pretty
node ./dist/main.js peers verify
- If peer restoration should be skipped (manual reseed):
node ./dist/main.js incident exit --no-restore-peers
node ./dist/main.js peers sync-manifest --from-manifest <manifest-url-or-path>