Skip to content

Add confirmation UX and immutable audit logging for agent actions #261

Description

@michaelmwu

Parent: #257

Goal

Add confirmation UX and immutable audit logging for agent-driven actions from Discord.

Scope

  • Show exact planned actions before non-trivial writes.
  • Require explicit confirmation for medium/high risk actions.
  • Require a second authorized human for critical actions.
  • Store audit records for every attempted tool call, allowed or denied.
  • Keep audit writes best effort where appropriate so command flows do not fail solely because audit logging failed.

Audit fields

  • actor user ID
  • Discord user ID
  • Discord guild/channel/message IDs
  • organization/workspace/project context
  • operation ID
  • requested natural-language input
  • proposed intent
  • tool name
  • sanitized arguments
  • policy decision
  • confirmation or approval actor
  • execution result
  • timestamps

Discord UX example

I’m going to update TASK-123, assign it to Sarah, and set the due date to May 15, 2026.
Reply `confirm` to proceed.

Acceptance criteria

  • Confirmed execution uses the previously frozen plan.
  • Denied and failed actions are audited.
  • Secrets and sensitive values are redacted in audit payloads.
  • Audit behavior follows the repo guidance for best-effort human-triggered service actions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions