When to use smart rules
Use a smart rule when the same kind of data sits in differently named fields across your connectors, so a field path would miss some of them:Agents can't change bank details
Agents can't change bank details
An agent that updates employee records shouldn’t be able to change where people get paid, whichever system holds the details.Create a
bank_details project label describing bank account numbers, sort codes and IBANs. A Refuse writes by label statement naming it refuses any call that writes those details, and the agent’s other updates go through.Labels
Each description is saved as a label. StackOne provides built-in labels, and you can create your own. To use one, add either of these Tool Policies statements when you build a policy:- Mask fields by label masks response fields that hold the labelled data.
- Refuse writes by label refuses calls that write it.
- Built-in labels: Defined by StackOne (for example
compensation). StackOne measures classification accuracy for built-in labels. These labels cannot be edited or deleted. - Project labels: Defined in your project. StackOne has not measured their classification accuracy, so they carry an Unmeasured tag. Run policies that name unmeasured labels in Monitored first to verify decisions before enforcing them.
Create a label
1
Open the Labels tab
Select the project, open Project Settings > Policies, and select the Labels tab.
2
Enter label details
Click Create label.Set the following:
- Name: the name rules use for the label, for example
bank_details. The name cannot be changed after the label is created. - Description: the data a field must hold to match the label, for example
Bank account numbers, sort codes and IBANs. Describe the data rather than field names.
3
Save the label
Click Create.
Unclassified fields
A field is unclassified when the classifier is unsure whether it matches. A smart rule’s Unlabelled setting decides what happens to unclassified fields:- deny: treats an unclassified field as if it matched, so it’s masked in a response or the write is refused. This is the default.
- allow: lets unclassified fields through. Fields that match a label are still masked or refused.
1
Open Policies
Select the project and open Project Settings > Policies.
2
Open the policy
Click the policy in the table to open its side panel.
3
Set Unlabelled
- On the smart rule’s statement, set Unlabelled to deny or allow.
- Click Save changes.
@unlabelled("allow") annotation above the statement. Without it, the statement uses deny.
Pause smart rules in a project
Turning Smart Rules off pauses every smart rule in the project’s policies. The policies’ other statements keep applying.1
Open AI Settings
Select the project and open Project Settings > AI Settings.
2
Turn Smart Rules off or on
- Under Policies, turn Smart Rules off to pause smart rules, or on to resume them.
- Click Confirm.
Smart rules keep running when AI features are turned off with the Status switch in AI Settings. Use Smart Rules to pause them.
Related
Tool Policies
Build the policies that hold your smart rules.
PII Redaction
Redact personal data from responses by category instead of by label.