Docs
Sign in

Policies

Policies are access rules for Cortex memories and knowledge: each rule says whether a subject may read, write or delete a resource, or sees it redacted.

Screenshot to add: The Memory policies page with the New policy button and a table of policies, and the side panel open on one policy showing its rules.

What it is for

Use this page to write down who should be allowed to do what with memory, and to test those rules with the simulator before they are relied on.

The Policies list

The page is titled Memory policies. If it cannot load, you see "Couldn't load policies" with a retry button. With no policies it says "No policies yet. Create a policy, then add its rules."

ColumnWhat it shows
PolicyThe name, with its description underneath
RulesHow many rules it has
StatusEnabled or Disabled
DetailsExtra facts such as "created by" and the person's name

Click a column heading to sort. The table shows 20 policies per page. Click a row to open its side panel. Click it again to close.

Create a policy

  1. Click New policy

    The button is at the top right of the page.

  2. Fill in the form

    Enter a Name (required) and an optional Description. The form says the policy is "Created enabled with no rules".

  3. Create

    Click Create policy. You see "Policy created". Then open the policy to add rules.

The policy panel

The side panel shows Status, any details, Created and Updated times, and the list of Rules. With no rules it says "No rules defined."

Each rule reads like a sentence: its number, an action badge (ALLOW, DENY or REDACT), the operation, the resources, the subjects, and any conditions.

The buttons at the bottom are:

ButtonWhat it does
SimulateOpens the simulator
Edit rulesOpens the rule editor
Disable / EnableSwitches the policy off or on
DeleteDeletes the policy and its rules, after you confirm

The Delete button is hidden for the default policy (policy-default), which cannot be deleted.

Edit rules

The editor is titled "Edit rules" with the policy name, and says "Changes apply when you save." It lists current rules, each with a Remove link, and has an Add a rule section.

FieldOptions and notes
Actionallow, deny or redact
OperationREAD, WRITE, DELETE or ALL
SubjectsComma-separated, for example user:alice, role:admin
ResourcesComma-separated, for example memory:private, memory:*
Conditions (JSON, optional)Extra conditions as JSON. Invalid JSON shows "Conditions must be valid JSON"

Click Add rule to add it to the list, then Save rules to keep your changes. You see "Rules saved". If a rule has no subjects or resources, it is shown as *.

Simulate

The simulator asks what a policy would decide.

  1. Open it

    Click Simulate in the policy panel.

  2. Describe the request

    Enter a Subject (placeholder user:alice), a Resource (placeholder memory:private) and an Operation (READ, WRITE or DELETE).

  3. Run it

    Click Run simulation. It is disabled until subject and resource are filled in. The Decision appears as a badge, with a reason if one is given.