Repository navigation
Customer-first dashboard; custom rules, re-ask, detector switches, Guardrails AI import - #74
Merged
Merged
Conversation
…d Guardrails AI import Dashboard: rebuilt the logged-in app around what a customer does — Home, Observe, Issues, Agents, Policies, Approvals, Test, Reports — with a shared kit, query-param tabs and little text. Rules can be tuned in place (action, on/off, sensitivity, end-user message, re-ask) with a 7-day replay first. Gateway: - Custom rules (words, patterns, topics, allowed topics, tool sequences) stored as data and enforced through a managed `custom` policy pack. - Rule.message (shown to the end user) and Rule.on_block=reask (gateway asks the model once more instead of refusing). - Per-workspace detector switches; opt-in topic and NLI grounding models. - Guardrails AI importer: reads Python, .rail or to_dict() JSON without executing it and returns a plan; apply goes through the normal stores. - agent-integrity pack: task drift, insecure code, model-based grounding. - Metrics, access, library and rule-patch routes for the dashboard. ADR 0002 records the patterns. Vendored wheels rebuilt. Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes for a customer
.rail/to_dict()JSON; preview the plan, untick, import. The code is parsed, never executed.Design
See
docs/adr/0002-customer-authored-rules.md: custom rules are data + a managedcustompolicy pack (same modes, simulation, versions, audit); importers only plan; new semantic checks raise risks and packs decide.Deploy notes
custom_rules,detector_settings(migratione2a6c4f8b131);init_db()creates them on startup.Tests
Full backend suite green apart from the wheel checks (now rebuilt, 5/5); ruff, format, import-linter clean; dashboard typecheck + 67 vitest pass; verified in the browser on a seeded demo.
🤖 Generated with Claude Code