Start / Write your first rule
Write your first rule
Create a rule in the console without writing code, see what it would change before it changes anything, publish it, and find it in the record. About ten minutes.
You need
A policy author's account on a Caroline installation with a pack loaded. The example uses the AI Agents pack: a forecast agent that should not read production stock.
- Open PoliciesSign in. Policies shows every rule as a card that reads as a sentence: who, can or can never, what, which records, only if. Read two or three before you add one: a new rule joins them, and a deny wins over any allow.
- Create the ruleChoose + New policy, then pick the parts: who it is about, can or can never, the action, the records, and any conditions. Every choice comes from your vocabulary, so the rule can only name attributes and values Caroline knows. Prefer to describe it? Type it in the box and an AI agent drafts it; read the draft as you would a colleague's.
- Read the reviewChoose Review & publish. Before anything is saved, the review shows the rule as a sentence, the change to the policy, and the past decisions it would flip: allowed calls it would now refuse, refused calls it would now allow. No flips you did not expect? Go on.
- Commit and publishGive the change a message and choose Commit & publish. Caroline checks the rule, records the change in the ledger under your name, and the engines answer with it within about a second.
- Ask the questionOpen the Policy Tester and ask the question your rule is about. The answer names your rule. Ask what would have to be true for the other answer, to see the rule's edges.
- Find it in HistoryHistory shows your change in words, who made it and when, and lets you put the policy back as it was.
Not sure yet? Shadow it
A rule can run in shadow first: the engine evaluates it on every real call and counts what it would have changed, but it does not decide. When the numbers look right, switch it on.
Next
- The rule model: every field and operator.
- Draft with AI: describe a rule in words.
- The caroline command: the same loop from your own editor.