Policy kinds and moments
The fixed lists a policy is written in. Explained in Policy.
Kinds
| Kind | Code | Its one setting |
|---|---|---|
| Needs approval | needs_approval | Who may approve: the owner, or named roles |
| Sends back | sends_back | How many tries (up to 5), and what happens when they run out |
| Fixes | fixes | None. Not yet available |
| Hides | hides | What is left in its place |
Moments
| Moment | Code |
|---|---|
| Before a tool runs | before_tool |
| After a tool returns | after_tool |
| Before the model reads | before_model |
| Before work is handed in | before_hand_in |
| Before the answer is sent | before_answer |
Which kind may act when
| Before a tool runs | After a tool returns | Before the model reads | Before hand-in | Before the answer | |
|---|---|---|---|---|---|
| Needs approval | Yes | Yes | Yes | ||
| Sends back | Yes | Yes | Yes | ||
| Fixes | Yes | Yes | Yes | ||
| Hides | Yes | Yes |
The API does not take any other pair, and says so in words: "A policy that hides cannot act before a tool runs".
When the tries run out
For a policy that sends back.
| Setting | What happens |
|---|---|
| A person decides | They may let it through, say what to change, or stop it |
| A person decides, not to let it through | They say what to change, or stop it |
| Let it through, marked | Nobody is asked. What is still wrong is marked for everyone who reads it |
What is left
For a policy that hides.
| Setting | Leaves |
|---|---|
| Remove | Nothing |
| Name it | [Social security number] |
| Keep the last four | ****6789 |
An application
| Key | Values |
|---|---|
| Mode | In force, on trial |
| Scope | Every agent, or some |
| Values | What the policy takes, each with the policy's own default |
Value types
number, text, list, yes_no.
When two find something
It is sent back first, and the approval waits for what comes back. Hides always applies.