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.
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."
| Column | What it shows |
|---|---|
| Policy | The name, with its description underneath |
| Rules | How many rules it has |
| Status | Enabled or Disabled |
| Details | Extra 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
Click New policy
The button is at the top right of the page.
Fill in the form
Enter a Name (required) and an optional Description. The form says the policy is "Created enabled with no rules".
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:
| Button | What it does |
|---|---|
| Simulate | Opens the simulator |
| Edit rules | Opens the rule editor |
| Disable / Enable | Switches the policy off or on |
| Delete | Deletes 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.
| Field | Options and notes |
|---|---|
| Action | allow, deny or redact |
| Operation | READ, WRITE, DELETE or ALL |
| Subjects | Comma-separated, for example user:alice, role:admin |
| Resources | Comma-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.
Open it
Click Simulate in the policy panel.
Describe the request
Enter a Subject (placeholder
user:alice), a Resource (placeholdermemory:private) and an Operation (READ, WRITE or DELETE).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.