Update modes settings
PATCH applies RFC 7396 JSON Merge Patch to the modes block (the two top-level master switches autonomy_mode + integrity_mode). null deletes a key; missing keeps; present replaces. Arrays are replaced wholesale (not item-merged). Requires Idempotency-Key and If-Match.
Authorizations
Supabase JWT token in Authorization: Bearer header
Headers
Client-supplied idempotency token. Replays within 24 hours return the stored result verbatim. See ADR-023.
1 - 128Optimistic concurrency token. Pass the ETag from a recent GET ("sha256:<hex64>" shape). A stale ETag returns 412 Precondition Failed; a missing header returns 428 Precondition Required. See RFC 9110 §13.1.1.
^"sha256:[0-9a-f]{64}"$Path Parameters
Agent identifier (e.g. smolt-abc123)
Body
Response
The modes primitive was updated at the agent scope.
agent alignment modes put, patch New sha256:<hex64> of the spec at this scope after the write.
x >= 1Pre-existing structural issues outside the modified primitive. Present only when the existing spec carries unrelated validation problems; never blocks the write.