sync

Record the result of a client-side Layer 5 codex review (sync.py merge gate) as a vault_events row. Body of the review is NOT stored — only an HMAC digest of the summary so operators can correlate without exposing review content. Opt-in: server skips writes (still returns success) unless ENV['AINOTE_LAYER5_AUDIT']='on' AND a versioned HMAC secret is configured. Used by the sync.py SessionStart hook + merge command to surface 'why was this blocked?' across multi-PC sessions.

Record the result of a client-side Layer 5 codex review (sync.py merge gate) as a vault_events row. Body of the review is NOT stored — only an HMAC digest of the summary so operators can correlate without exposing review content. Opt-in: server skips writes (still returns success) unless ENV['AINOTE_LAYER5_AUDIT']='on' AND a versioned HMAC secret is configured. Used by the sync.py SessionStart hook + merge command to surface 'why was this blocked?' across multi-PC sessions.

post/api/mcp/tools/sync_audit_layer5

Request

  • Base URL: https://api.ainote.dev
  • URL: https://api.ainote.dev/api/mcp/tools/sync_audit_layer5
  • Auth: API key in header Authorization

Request body

pathstring required

Vault path the review covered.

verdictstring required

One of: pass, flag, block, error.

summarystring

Free-form codex output summary. Server HMACs this; raw text is NEVER stored.

chunk_countinteger

Optional: number of diff chunks the client fed to codex.

duration_msinteger

Optional: wall-clock time of the codex review on the client.

Response

Tool executed successfully

Changes

No recorded changes to this operation across all 1 revision of this API.