panelGet early access

How it works

A check between the agent and the action.

Panel is a proxy that sits in front of an OpenAI-compatible model endpoint you already use. Replies and actions pass through it before the customer sees them or your store changes.

The path of one request

  1. Your policy. You write the rules in a policy file: numeric limits, time windows, eligibility conditions, things the bot may never promise, and escalation thresholds. Each rule has an id and a plain-English description.
  2. Extract. Panel reads the agent's draft reply and pulls out the claims and actions in it (amounts, percentages, promises, refusals).
  3. Check, in code. Each claim is a pass, a violation (with the rule id and reason) or unverified (a needed fact is missing). Unverified claims are blocked by default, so nothing passes silently. The facts come from the real order, not from the model.
  4. Regenerate or fall back. A blocked draft goes back to the model with the reason, up to twice. If it still fails, the customer gets the policy's safe reply. Every block, regeneration and fallback is logged.
  5. Consent. An action runs only if the customer's latest message clearly asked for it, or said yes to the bot's offer of it in the previous reply. A question gets an explanation and an offer, never an action. This is checked from the transcript, separately from the prompt and the guard. With no transcript, nothing runs.
  6. Re-check, then run. The executor re-reads the order fresh and re-checks the action with the same deterministic checker. A refund larger than what is still refundable is blocked, not run.
  7. Confirmation matches reality. What the bot tells the customer is worded from the executor's result: "I've issued a refund" only if it really ran, "I've sent this for approval" if it was queued, and "I wasn't able to complete that" if it failed.

Three execution modes

ModeWhat happens to an approved action
dry_run (default)Recorded, with what auto mode would have done. Nothing runs.
approvalQueued. Runs only when someone clicks Approve on a local approval page.
autoRuns at once if within the limits you set (for example refunds up to a dollar amount); otherwise queued.

Never twice

Each action gets a key made from the conversation, the order, the action type and the amount. The key is stored once in a SQLite ledger, and only one caller can move it into "executing". Tests cover 20 concurrent submits running once, a restart keeping the ledger, and approving twice running nothing the second time.

Hand-offs

When a conversation needs a person, Panel sends a deterministic summary (order facts, the first and last customer message, actions taken or queued, the last 10 messages) to a webhook or by email. If no channel is configured, the hand-off fails and the bot says it could not complete it. It never claims a person was told.

What it does not do yet

  • It only enforces rules written in the policy file. Anything not written down is not checked.
  • It does not check tool calls: requests that use tools are refused by the proxy.
  • Consent recognition is phrase-based and imperfect. See the evals for the cases it gets wrong.
  • Exchanges are manual: approved ones go to your team through the hand-off channel.
  • The ledger is a single SQLite file, so run one instance.