Skip to content
UsecaseBoard
← All use cases
hnGuardrails

Gate refunds and DB writes behind deterministic checks, not prompt hopes

At a glance

An Ask HN on controlling agents that take real actions converges on: LLM proposes → deterministic validator (rules, spend ceilings, replay checks) → human approve—especially for refunds, payments, and database writes where prompt 'never do X' fails. This workflow is listed under Guardrails, Refunds, Approvals, Safety, Architecture.

Agents / tools
AI Agents

Building a tool for these workflows? See weekly rates.

Save ideas in this browser. Upvotes count across the board.

Prompt excerpt

Design an action gate for my agent: it may propose refunds, DB writes, and API calls as structured intents, but a deterministic rules layer must validate order window/amount/idempotency, then pause for my approve/reject. The LLM must not hold direct write credentials.

Sponsored

CodeBuddy

Tencent Cloud AI coding assistant for IDE and CLI.

Try CodeBuddy ↗
Explore all →
blogsafety

OpenRouter Armor: plain-English classifier for agent tool calls

Beta plugin sits between the model and your app: write hard-deny/soft-deny/allow rules in prose; Armor evaluates every tool call (powered by a decision model) and blocks policy violations before bash/git/exfil runs—Claude Code auto mode works via Ori on any OpenRouter model.

OpenRouter ArmorJevClaude Code+2
Source ↗