Inspiration

Engineering teams shipping RAG features and agentic workflows often rely on manual spot-checks before merging Pull Requests. Meanwhile, most AI-enabled websites bolt on read-only FAQ widgets that ignore page controls or mutate form state without clear user consent boundaries. GuardRail CI — Open Agentic Web Edition brings deterministic CI regression scoping and the Open Agentic Web MVP Profile 0.3 standard together in a single browser-native workspace.

What It Does

Every capability works both through the standard interactive page UI and through the embedded Neuro SAN conversational assistant (guardrail_assistant), backed by one shared App.page controller (script.js + site-data.js):

  1. Commercial Tier Comparison & Guarantees (get_workspace_state): Explains the 4 transparent tiers ($149 Starter Kit CLI, $790 5-Day Turnkey Paid Pilot, $1,950 Full AI Reliability Suite, $249/mo Continuous Drift Watch), runner privacy guarantees, today's local date, and written refund policy strictly grounded in page data.
  2. RAG Regression ROI Calculator (calculate_regression_roi): Models monthly/annual engineering hours and USD payroll saved for a team's Pull Request cadence, hourly senior engineer rate, and QA minutes saved per PR—keeping the manual calculator KPIs and the assistant synchronized.
  3. In-Browser Cloze Golden Assertion Synthesizer (synthesize_golden_assertions): Parses pasted Markdown documentation or OpenAPI route excerpts right in the browser to extract deterministic cloze-style golden assertions (GR-01..GR-15: endpoint_contract, pricing_accuracy, sla_factuality, domain_grounding). Expected facts (routes, prices, SLAs, percentages) are guaranteed to be literal substrings of sourceExcerpt and masked (____) out of the question prompt so an LLM cannot pass by echoing the prompt.
  4. Agent Activity Ledger with One-Click Undo (#agent-activity): Logs every in-page assistant write or confirmed scoping dossier visibly above the chat with its exact arguments and provides one-click Undo for reversible writes.
  5. Human-Confirmed Pilot Scoping Dossier (submit_pilot_booking): Validates tier, company name, business email, HTTPS repo/docs URL, local-timezone kickoff date (YYYY-MM-DD), and optimistic concurrency expectedVersion before triggering a native <dialog> (AssistantMount.DIALOGS.submit_pilot_booking) with human-readable details and direct PayPal Business Orders v2 storefront handoff.
  6. Cross-Site Public Read Bridge (bridge/bridge-actions.js): Exposes 3 stateless read tools (get_workspace_state, calculate_regression_roi, synthesize_golden_assertions) to external Open Agentic Web peer agents (callerOrigins: ["*"]) without exposing private session state or write tools.

Try It in 60 Seconds (For Judges)

  • No API Key Needed (Manual Mode): Adjust PR volume in the ROI Calculator, paste any API/SLA Markdown into the Cloze Golden Assertion Synthesizer, select a tier, and submit the Paid Pilot form to inspect the validated scoping dossier.
  • With Your Own Key (BYOK Assistant Mode): Open ⚙ AI model settings under #assistant, add an Otari / OpenRouter / OpenAI / Anthropic key, and click the 5 sample queries—including the decline query ("Apply a 30% discount code and charge my card now") to watch the agent refuse out-of-scope actions honestly and offer what the page actually provides.
  • Agent-to-Agent Mode: Any Open Agentic Web site can link to https://qinshihuangtheconqueror.github.io/guardrail-agentic-web/guardrail_ci and call the 3 public read actions through bridge/action-bridge.html.

How We Built It

  • Built on MVP Profile 0.3 (cognizant-ai-labs/agentic-web agentify-website pattern) as a zero-backend static bundle on GitHub Pages (.nojekyll preserving .well-known/nsdeploy.json and .well-known/nsdeploy-agent.json).
  • Separated pure domain logic into DOM-free site-data.js so bridge/bridge-actions.js runs safely inside headless cross-origin frames while script.js drives interactive page controls and site-actions.js registers website_* tools.
  • Compiled guardrail_ci.hocon with build_network.mjs (3,207 instruction chars + 1,612 CRUSE context, max_steps: 12, full receipt-status handling including "unknown" write non-retry, 0 errors, 0 warnings).
  • Verified with the agentify-website skill's node:test harness extended with GuardRail-specific invariants (tests/agentified.test.mjs — 20/20 checks passing, prompt + tool schema budget 10,766 / 16,000 chars, non-tautological cloze masking proof, Agent Activity Ledger scoped Undo check) and check_partner.mjs (OK: https://qinshihuangtheconqueror.github.io/guardrail-agentic-web/guardrail_ci can be called from other sites.).
  • Recorded a 1920x1080 (101.6s) H.264 walkthrough video (guardrail-agentic-web-demo.mp4) driving the shipped Neuro SAN browser runtime, tool loop, <dialog> confirmation gate, and App.page controller (using deterministic scripted completions in Playwright so no external LLM API key is exposed during automated recording, disclosed directly in-video).

Honest Limits & Safety Design

  • Write Visibility & One-Click Undo: Because the current browser runtime executes "write" tools without a pre-execution preview modal, we added the on-page Agent Activity Ledger (#agent-activity) showing exact call arguments and one-click Undo for every reversible write.
  • Validator-First Confirmation Gate: submit_pilot_booking re-runs App.page.checkPilotScoping before opening <dialog>; invalid inputs or a stale expectedVersion fail closed without opening a misleading confirmation button.
  • Static Host Coded-Tool Boundary: GitHub Pages cannot attach custom CSP headers to runtime/sandbox-worker.js, so coded tools fail closed by design; our network uses declarative website_* actions only.
  • BYOK Privacy: Visitor messages and page state go directly from the browser to the visitor's chosen LLM provider; no credentials or form inputs are sent to a GuardRail server until the visitor chooses to open the external PayPal Business checkout page.

Challenges We Ran Into

  • Eliminating tautological golden assertions where naive prompt templates leaked the expected answer into the question, solved via literal-substring extraction + ____ cloze masking.
  • Keeping manual DOM state, StubDocument unit tests, local timezones, and headless cross-origin bridge execution 100% consistent from a single SiteData source of truth.

Accomplishments That We're Proud Of

  • Zero demo mode and zero fabricated payment claims: clean boundary between validated client-side pilot scoping and server-captured PayPal Business checkout.
  • Full cross-review hardening across UX accessibility (focus preservation, mobile wrapping, Escape/Decline dialog semantics) and MVP Profile 0.3 protocol rules.

What's Next

  • Publisher-funded inference proxy (llm_router.publisher_funded: true) with strict per-IP rate limits so visitors can test conversational turns before configuring BYOK.
  • Listing in the NANDA Index / agentic_websites.md directory and cross-site linking with live OpenAPI documentation portals.
  • Automated GitHub App PR creation once PayPal Orders v2 webhook capture completes.

Built With

Share this project:

Updates

Submission history