SEC - CODEX AGENTS: idempotent audited tool writes
This commit is contained in:
@@ -308,7 +308,15 @@ All write tools must accept:
|
||||
idempotency_key
|
||||
```
|
||||
|
||||
Agent Gateway stores result mapping and returns the prior result for duplicate keys.
|
||||
Agent Gateway requires this value for all write tools. The key is scoped by agent, hashed together with the tool name and normalized arguments, and stored with a processing/completed state.
|
||||
|
||||
Behavior:
|
||||
|
||||
- first successful request stores the tool result for 24 hours;
|
||||
- duplicate key with identical arguments returns the stored result and does not call Tasker again;
|
||||
- duplicate key with different arguments returns `idempotency_key_conflict`;
|
||||
- duplicate key while the first request is still processing returns `idempotency_key_in_progress`;
|
||||
- failed writes release the key so the same operation can be retried.
|
||||
|
||||
## Denied tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user