SEC - CODEX AGENTS: idempotent audited tool writes

This commit is contained in:
DCCONSTRUCTIONS
2026-05-14 20:12:29 +03:00
parent c9519b52d2
commit 2c1e83dd37
14 changed files with 503 additions and 75 deletions
+12
View File
@@ -0,0 +1,12 @@
ALTER TABLE idempotency_keys
ALTER COLUMN response_body DROP NOT NULL;
ALTER TABLE idempotency_keys
ADD COLUMN IF NOT EXISTS status text NOT NULL DEFAULT 'completed'
CHECK (status IN ('processing', 'completed'));
ALTER TABLE idempotency_keys
ADD COLUMN IF NOT EXISTS locked_until timestamptz;
CREATE INDEX IF NOT EXISTS idempotency_keys_status_idx ON idempotency_keys(status);
CREATE INDEX IF NOT EXISTS idempotency_keys_locked_until_idx ON idempotency_keys(locked_until);