Skip to content

Guardrail receipts: record other guardrails' allow and deny decisions in the trail #294

Open

Description

@blitzcrieg1

Guardrails decide. Agentmetry records. Teams increasingly run an inline guardrail (an authorization layer, a DLP proxy, an approval gate) next to their coding agents. Each keeps its own log, if any, in its own format. Agentmetry already has a tamper-evident, SIEM-forwarded trail at the tool boundary, so it can be the neutral record those decisions land in.

Proposal

Accept a guardrail decision event through the existing ingest API: which tool, allow, deny or ask, why, and which guardrail decided. Chain it into the trail next to the tool call it governed.

  • A small, documented payload, mapped to the canonical schema like hook_remediation (recorded as its own action type, never as a tool call, so tool-sequence rules don't count it).
  • Correlation: link a decision to the matching recorded call by session and input hash where possible.
  • Disagreement is a signal. A call the guardrail denied but which still ran, or an allow with no matching call, is worth surfacing.

Constraints

  • No vendor SDKs in core: a documented payload any guardrail can post.
  • The usual ingest authentication.
  • No change to the frozen detection files.

Open question for users

Which guardrail or gateway do you run next to your agents, and does it keep a record you could hand an auditor?

Related: #45.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    on Oct 20, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions