Side Effect Safety

Use immediately before an authorized write, delete, publish, migration, replacement, retry, or external side effect. Verify target, blast radius, rollback, idempotency, and post-change state. Do not trigger for reads, planning, or reversible local edits.

xiongweilin f82f06e 2 files · 1.4 KB Updated

File contents

Side-Effect Safety

The checks below are mandatory safety controls for authorized side effects, not optional post-implementation validation. They remain required when general validation is user-gated.

Before the effect:

  1. Resolve the exact target and scope with a read-only check.
  2. Identify blast radius, partial-failure modes, reversibility, and a rollback or compensation path.
  3. Make retries idempotent or explicitly bounded.
  4. Split destructive work into independently verifiable steps.

For replacement or cleanup, verify the new backup or replacement before retiring the old one.

After the effect, verify the resulting state and leave failures visible. Do not treat a model's completion claim as evidence.

Success signal

A reviewer can identify the target, blast radius, rollback or compensation path, idempotency guard, and fresh post-change verification.

xiongweilin/agent-skills/tree/main/side-effect-safety commit f82f06e7ef

Frequently asked questions

npx skillmds@latest add xiongweilin/side-effect-safety