Evaluation
Assert what a skill must leave untouched
Use protected records and unchanged-state checks to test explicit limits.
A run can create the requested result and still fail by editing unrelated data. Positive assertions catch missing work. Unchanged-state checks catch collateral changes in areas a user expected the system to preserve, such as an original file or a record outside the requested set.
Identify the protected surface
List the resources and fields the operation must leave alone. Capture their IDs, versions, or digests before execution. Choose observable state that represents the user’s concern. Comparing an entire database snapshot may introduce unrelated noise, while a narrowly scoped check could miss a broader unintended edit.
Keep attempts and outcomes distinct
A denied call can leave no durable change and still indicate a problem in routing or instructions. Record both whether a disallowed action was attempted and whether it succeeded. Blocking by the application provides direct protection, while evaluation can help the team reduce inappropriate attempts.
Include neighboring fixtures
Place a target beside resources with similar labels, a locked item, and an existing artifact that should be preserved. Assert that only approved changes occurred. Retain these cases when refactoring checks so the absence of a write remains a first-class requirement.