Policies
Policies are configured separately for each application. They let you enable the built-in HiveTrace protection, and create custom rules for user requests.
Required permissions
Section titled “Required permissions”| Action | Area | Min. access level |
|---|---|---|
| Viewing the page | Applications | Read |
Application policies | Read | |
| Editing policy settings | Applications | Read |
Application policies | Edit | |
| Deleting a custom policy | Applications | Read |
Application policies | Full | |
| Editing an application from the header | Applications | Edit |
| Deleting an application from the header | Applications | Full |
| Updating the application profile | Applications | Edit |
Application policies | Edit | |
Protection profiles | Read |
If the user does not have access to view the page, 403 — Access denied is displayed.
Opening policy settings
Section titled “Opening policy settings”- In the sidebar, select Applications.
- Open the required application by clicking its card or its name, depending on the selected view.
- Hover over the Protection tab.
- Click Censoring policies.

The page header displays the application’s name, ID, and description (if any). The copy button is available next to the ID. The header also contains the Back to applications link that leads to the Applications section.
Editing the application
Section titled “Editing the application”
- Click
Edit. - Change the required fields.
- Click
Save.
Deleting the application
Section titled “Deleting the application”
- Click
Delete. - Confirm the deletion in the confirmation dialog.
This action cannot be undone. Prior to deletion, please verify that integration traffic has been stopped or redirected and that the associated API tokens are no longer in use.
Profile
Section titled “Profile”If a profile is selected, its name is displayed. If no profile is selected, individual settings are applied. When the application’s protection settings are changed, the application is removed from the profile, and the current settings become individual.
The profile can be updated on the page:
- Click the
Profilebutton. - Select the required profile from the list. The search field helps narrow the list.
- Confirm applying the profile to the application in the confirmation dialog.

HiveTrace Guardrail
Section titled “HiveTrace Guardrail”HiveTrace Guardrail provides built-in protection against unsafe requests. Enable checks independently for each direction:
- Input checks messages sent from the user to the model.
- Output checks model responses before they are returned to the user.
Select Save to apply changes. Reset to Defaults discards unsaved changes and restores the last saved values.

Custom Policies
Section titled “Custom Policies”A custom policy validates user requests using an instruction prompt. The Model rules table displays the name and prompt of every policy.

Available actions:
- Add policy opens the policy form.
- A row checkbox selects a policy; the header checkbox selects all visible rows.
- Delete Selected removes the selected policies and is enabled after at least one row is selected.
- Customized Columns controls which table columns are visible.
- The row ⋮ menu is used to edit or delete a specific policy, as well as to work with the policy version history, where previous versions can be viewed and the required one restored.
- Rows per page, Previous, and Next control pagination.
Creating, editing, and testing a policy
Section titled “Creating, editing, and testing a policy”Select Add policy, or choose Edit from a row’s ⋮ menu. Complete these fields:
- Name — a clear rule name.
- Prompt — the instruction used to validate user requests.
- Input — enables the policy for incoming messages.
Use the test panel on the right to enter a sample request and send it:
- a red message with a warning icon means the policy detected a violation;
- a green message with a shield means the request passed validation.
Test both prohibited and acceptable wording. Select Save when finished; Cancel closes the form without saving.

Version history and restoration
Section titled “Version history and restoration”- Open ⋮ → History / Versions for the policy.
- Find the required version. Each card shows its number, creation date, author, action, and saved settings. Use Load more if the version is not yet displayed.
- Compare the saved settings with the version marked Current Version.
- Click Restore beside the required previous version. The action applies immediately; there is no separate confirmation dialog.
- Wait for the success notification. The dialog closes and the page refreshes. Check the restored settings and test the policy with a sample message.

The current version has a label instead of a Restore button. Restoring requires Application policies → Edit for this application; without that permission, the button is disabled. Closing the history dialog without clicking Restore does not change the settings. Restoration changes the current policy; it does not recalculate previously processed messages.
Verify the result
Section titled “Verify the result”After saving the settings, send a test request through the connected application. To inspect triggers, open the record in Session Analytics, then use the Censors or Validation configuration tabs. With a synchronous protected integration, a detected violation can also block the request.