Company Policy Rules Driver
Evaluates central org-wide allow/deny compliance rules outside every prompt.
Compliance rules are copy-pasted across dozens of agent prompts and easy to bypass.
One central, versioned policy table enforces allow/deny rules deterministically in code.
What It Does (In Plain English)
Policy Engine lets InfoSec and Legal define central compliance rules (who may access what data, which actions require extra checks, which actors are restricted) evaluated deterministically across all workspaces. It is strictly isolated from unverified AI memory so learned notes can never weaken compliance.
Real-World Example
- 1Compliance team registers a rule: "Contractors cannot invoke payroll export tools."
- 2A contractor triggers an assistant task that attempts to export payroll.
- 3Policy Engine evaluates the actor scope and denies the action with a logged policy code.
When Should You Turn It On?
Enterprise Edition. Add when your organization needs central RBAC/ABAC compliance policies across teams.
Safety level note: Level 1 · Review — Read-only. Can inspect and answer, never changes outside systems.
How to Add It (workspace.yaml)
# Enterprise Edition (@neusym/kit-policy-engine)
kits:
- "@neusym/kit-policy-engine@0.1.0"
kitConfigs:
policy-engine:
defaultEffect: denyKits It Works With
Technical Details & Configuration Options (6 settings)
| Package | @neusym/kit-policy-engine |
|---|---|
| Provides Ports | policy@1 |
| Requires Ports | scopes@1 |
| Optional Ports | None |
| Publishes Events | policy.changedpolicy.shadow_evaluated |
| Owned DB Collections | policy_rulespolicy_tuples |
Configuration Options (kitConfigs.policy-engine)
| Setting | Type | Default | Description |
|---|---|---|---|
allowCandidateClaims | boolean | false | — |
defaultEffect | string | "abstain" | — |
maxGraphDepth | integer | 8 | Maximum transitive relation traversal depth for ReBAC subject/group memberships. |
membershipRelations | array | ["member","parent"] | Tuple relations that make a subject its target when rules are matched (alice member group:x makes alice group:x). Tuples of any other relation are never followed. |
requireDualControl | boolean | false | When true, newly added enforce-mode rules start inactive until activated by a second distinct actor. |
resourceBindings | array | [] | Where a tool's arguments name the resource it acts on, so resource rules apply whatever field names the call uses: a tool name (or a prefix ending in *), the resourceType, and the dotted argument path holding the resource id (or a list of ids). A bound call whose argument names no id is denied (POLICY_RESOURCE_UNRESOLVED). |