Human Approval and Control Boundaries › The effect model: classifying actions by reversibility
Language AI HandbookAll chapters Start with what changes when the call succeeds. A local preview can be discarded. A stored internal draft can be restored from a prior version if the application keeps one. Publishing to a shared board can expose the note to people or processes outside the assistant's immediate control. A correction may fix what readers find on the board without undoing the fact that they were already shown the earlier note.
Read-only is a statement about writes. A read may still involve confidential content, a restricted resource, or a transfer to an external processor. The system needs explicit read and export boundaries even if its approval gate is primarily for writes. A preview that renders only within a private staging area and a preview sent outside it have different effects. Treat the destination as part of the operation.
Use a small effect classification for decisions in this deployment. Class 0 is a local lookup of an already accessible fixture. Class 1 is a local reversible change such as staging a preview. Class 2 is a board publication that deserves a named owner’s decision. Class 3 is an operation the example cannot classify, so the worker refuses it. These ordinal labels organize policy. They do not measure loss, duration, priority, or probability.
PythonIn [3]Expand
EFFECT_NAMES = ("Local read", "Local draft", "Publish", "Unknown")
KNOWN_ACTIONS = {"read-note": 0, "stage-preview": 1, "publish-note": 2}
def effect_class(action):
return KNOWN_ACTIONS.get(action, 3)The classifier is illustrative. It checks fixed operation names already declared by the implementation. It does not infer that an operation is safe because a caller says its name is “preview.” Only the modeled publish-note operation enters the broker implementation below. In a larger system, resolve the trusted operation and its target from the adapter that will actually perform the side effect. Its metadata should reflect what that adapter can do at a given destination.
PythonIn [4]Expand
import numpy as np
operation_names = [
"Inspect note",
"Stage private preview",
"Publish to board",
"Unrecognized action",
]
operation_classes = np.array(
[effect_class(a) for a in (*KNOWN_ACTIONS, "new-action")]
)VisualizationOut [5]Expand

Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!