Overview
Governance rules are stored as a simple object with boolean flags. When enabled, they create network-level blocking rules that prevent specific types of navigation or requests.Available Rules
Disallow Clickable URLs
Prevents agents from navigating to any URL by clicking links. This forces agents to only use URLs explicitly provided in prompts. Use case: Ensure agents don’t follow external links that might lead to unintended domains.Disallow Query Parameters
Blocks navigation to any URL containing query parameters (URLs with? in them).
Use case: Prevent agents from accessing dynamic URLs that might expose sensitive data through URL parameters.
Storage Structure
Governance rules are stored inchrome.storage.local under the key governanceRules:
Implementation Details
Rule IDs
Each governance rule is assigned a unique DNR rule ID:background.js:465-468
Disallow Clickable URLs Rule
When enabled, creates a DNR rule that blocks all HTTP/HTTPS navigation from the extension:background.js:479-490
Disallow Query Parameters Rule
When enabled, blocks all URLs containing query strings:background.js:498-511
The
initiatorDomains field contains the extension ID, ensuring these rules only apply to navigation initiated by the extension itself.How to Configure
Updating Rules
Rules are updated via message passing from the dashboard:background.js:263-267
updateDNRRules() function efficiently manages rule changes:
- Only adds rules that don’t exist
- Only removes rules that should be disabled
- Skips updates if no changes are needed
background.js:470-529
Loading on Startup
Governance rules persist across extension restarts:background.js:360-379
Best Practices
- Test First: Enable rules in a test environment before deploying to users
- Document Policies: Keep a record of which rules are enabled and why
- Combine with URL Blocking: Use governance rules alongside URL blocking for defense in depth
- Monitor Agent Behavior: Check session logs to ensure rules aren’t blocking legitimate agent actions
Related
- URL Blocking - Domain-based navigation restrictions
- Action Blocking - Element-level interaction controls