Process Supervision and Behavioral Specifications
Language AI HandbookAll chapters A language model that produces a final answer gives you one thing to grade. A language model that produces a trace (a sequence of observations, proposals, tool calls, approvals, and replies) gives you many things to grade, and a much harder question to answer: graded against what?
A final answer can often be compared against an answer key, a test suite, or a human preference. With a trace, you also need to decide which events carry obligations and which fields let you test those obligations.
This chapter is about that question. We will separate three ideas that get blurred together in practice. A behavioral specification is a written, reviewable, versioned document that says what an agent is permitted, required, and forbidden to do. A trace check is an executable predicate that evaluates an observed step, a relationship between events, or a whole trace against a specification clause. A learned judge is a model, trained on labels or preferences, that outputs a score for a step or a trace. They fail in different ways, cost different amounts, and answer different questions.
A written rule can specify the wrong policy. A checker can misimplement the rule. A learned judge can misclassify events even if the label policy and checker are sound. Investigating an error starts with locating it in that chain.
Process supervision gives feedback on intermediate behavior. You can use that feedback to train a model to predict step quality or to review logs against explicit rules. A rule checker returns a reproducible judgment about its inputs. The quality of that judgment depends on the specification and on what the logs record.
Keep verification results separate from measured judge accuracy. A check can establish a fact about its recorded inputs, and a score estimates agreement with its labels.
There is a third distinction running through everything: the difference between what the trace shows and what the model claims to have thought. A trace can record that the agent called restart on svc-vega before any approval was logged. It cannot record that the agent internally weighed and rejected three alternatives. When we supervise intermediate behavior, we supervise the observable record of behavior, not a window into computation. Reasoning traces are evidence to be audited, not transcriptions of cognition.
A fluent rationale is another emitted artifact. You can compare it with the actions and observations in the trace, then use other tests to investigate whether the claimed explanation affected the answer.
The worked example compares three supervisors on fictional incident-response traces. One check catches an execution that lacks a prior approval. A second test exposes a gap by changing a status report to describe an action absent from the trace.
A checker may pass behavior that falls outside every recorded rule. A test that only asserts those rules cannot establish that the policy covers all behavior you care about.
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!