WarUI

Local Opt-In Audit Log

GRID-A27-F18P2beyond-baselinePlanned

An optional, local-only audit log records prompts, ASTs, commands, confirmations and denials with timestamps. The log can be exported as JSON for the host app's own compliance needs. It is off by default, never transmitted by WarGrid, and supports redaction.

Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Audit disabled; the log panel is empty.

Expected behavior

When enabled, each AI interaction appends structured entries. Redaction replaces prompt text with a hash and length. Export downloads JSON, and Clear empties the log.

Planned API surface

ai.audit.enabledai.audit.redactPromptsgrid.ai.audit.export()grid.ai.audit.clear()onAuditEntry

Acceptance criteria

  • Disabled by default (pending)
  • Entries cover the translate, preview, confirm, reject, execute and deny stages (pending)
  • The export validates against the published audit schema (pending)
  • Redaction leaves no raw prompt text (pending)