{"slug": "break-my-demo-400-attempts-and-no-successes", "title": "Break my demo 400 attempts and no successes", "summary": "A promotional page for an unnamed AI \"Transaction & Refund Guardrail\" API claims that 400 attack attempts against an unprotected AI customer-support bot produced no successful breaches once the guardrail was enabled, with the service calling a POST /verify endpoint that applies Layer 1 rules followed by a Layer 2 AI judge before an agent executes a refund, discount, or policy promise. The vendor offers a 7-day Shadow Mode trial at $0, then charges $99/mo for brands running one AI support agent and $399/mo for high-volume stores, support platforms, and agencies running many bots, with checks metered through Stripe. The page also supplies a copy-paste prompt instructing a coding assistant to wrap refund and discount actions in a verifyWithGuardrail helper with a 1000ms timeout that fails open during Shadow Mode.", "body_md": "Without guardrail\n\n## Unprotected AI bot\n\nCustomer\n\nAI bot · sent instantly\n\nOne API call before every refund, discount, or policy promise. Try a real attack below and watch the guardrail catch it live.\n\nWith guardrail\n\nPick a preset or edit the form, then run a live check.\n\nCalls POST /verify on this server.\n\nVerifying against policy…\n\nLayer 1 rules, then Layer 2 AI judge\n\nCall it right before your agent executes. If it's not approved, hand off to a human.\n\nPaste this prompt into your AI code editor. It finds your refund and discount actions, adds a verifyWithGuardrail helper, and wraps them in Shadow Mode so nothing changes for live customers.\n\n```\nAct as a senior software engineer. I want to integrate an external AI Transaction & Refund Guardrail API into this codebase to verify AI-generated refunds, discounts, and policy commitments before they execute.\n\n### Integration Instructions\n1. **Locate High-Stakes AI Actions:** Search this repository for where our AI customer support agent or workflow executes refunds, creates discount/promo codes, modifies orders, or sends final policy promises to customers.\n2. **Add Environment Variables:** Add `GUARDRAIL_API_URL` (defaulting to `https://YOUR-RAILWAY-URL.up.railway.app/verify`) and `GUARDRAIL_API_KEY` (placeholder `YOUR_API_KEY_HERE`) to our `.env.example` or config file.\n3. **Create a Non-Blocking Helper Function (`verifyWithGuardrail`):**\n   - Send a `POST` request to `GUARDRAIL_API_URL` with header `Authorization: Bearer ${GUARDRAIL_API_KEY}` and `Content-Type: application/json`.\n   - Pass this JSON body:\n     ``` json\n     {\n       \"action_type\": \"refund\",\n       \"proposed_amount\": 0.0,\n       \"order_total\": 0.0,\n       \"days_since_purchase\": 0,\n       \"policy_text\": \"STORE_RETURN_POLICY_HERE\",\n       \"customer_message\": \"USER_MESSAGE_HERE\",\n       \"ai_draft_reply\": \"AI_DRAFT_REPLY_HERE\",\n       \"shadow_mode\": true\n     }\n     ```\n   - Set a strict `1000ms` fetch timeout. If the request times out or fails, log a warning and default to allowing execution (`fail-open` during Shadow Mode) so live customer traffic is never interrupted.\n4. **Wrap Our Existing Action:** Call `verifyWithGuardrail` right before our refund/discount tool executes or sends its reply. Log the returned `blocked_by_policy` and `reason` fields to our console/logger. Keep `shadow_mode: true` by default so we can monitor results safely before switching `shadow_mode` to `false` for active blocking.\n\nShow me the exact files you modified and confirm how to test it locally.\n```\n\nWatch what the guardrail would have blocked for a week with zero risk, then switch on active blocking.\n\n$0for 7 days\n\nSee every refund and promise your AI would have gotten wrong, without touching live traffic.\n\n$99/mo\n\nFor brands running one AI support agent that issues refunds or discounts.\n\n$399/mo\n\nFor high-volume stores, support platforms, and agencies running many bots.\n\nPaid plans: checks are metered through Stripe and your API key appears right after checkout. Cancel anytime.", "url": "https://wpnews.pro/news/break-my-demo-400-attempts-and-no-successes", "canonical_source": "https://guardrail-api-core-production.up.railway.app/", "published_at": "2026-11-26 18:14:48+00:00", "updated_at": "2026-11-26 18:43:08.151658+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-products"], "entities": ["Stripe"], "also_reported_by": [], "takeaway": "Gate high-stakes agent actions behind a pre-execution POST /verify call that runs rule checks then an AI judge, and start with shadow_mode: true and a 1000ms fail-open timeout so live traffic is never interrupted while you log blocked_by_policy and reason.", "recommendation": {"advice": "Wrap refund and discount tool calls in a verifyWithGuardrail check with a 1000ms timeout, run it in shadow mode first, and log blocked_by_policy and reason before enabling active blocking.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/break-my-demo-400-attempts-and-no-successes", "markdown": "https://wpnews.pro/news/break-my-demo-400-attempts-and-no-successes.md", "text": "https://wpnews.pro/news/break-my-demo-400-attempts-and-no-successes.txt", "jsonld": "https://wpnews.pro/news/break-my-demo-400-attempts-and-no-successes.jsonld"}}