Idempotent

An operation you can run many times with the same result as running it once.

AI expressions PHP

Also called: idempotency

Running it a second time changes nothing. That makes retries safe: if a step fails halfway, you can simply run it again.

Example

PUT /users/5 {"name": "Ana"}   → idempotent: always ends with name = Ana
POST /users  {"name": "Ana"}   → not idempotent: creates a new user each time

AI says

"I made the migration idempotent."

It checks first and only changes what isn't done yet, so running it twice does no harm.

Related

← Hallucination Updated 2026-11-26 Regression →