context: the request field carrying what the judge can’t see for itself — the tool you’re about to call, the arguments you’re about to call it with, what came back. When a model runs, the entire dict is serialized into its prompt, so everything in it is evidence the judge reasons over, not a routing hint it files away. Not every request needs a judge call — read where to put content you need judged before you decide where it goes.
Send it whenever you judge a tool call (phase="tool_pre" / "tool_post"). Without it the judge scores the request as written, and a request that doesn’t say why a restricted action is lawful is genuinely ambiguous — so it routes to a human.
What the judge sees
The wholecontext dict reaches the judge as text — extra application-specific keys are fine and often useful. And role: "tool" messages are treated as untrusted content where user-role messages are the operator’s request: that distinction is what lets the judge read an instruction buried in retrieved content as an injection attempt instead of as the operator’s own request. Safety bundle.
Facts change outcomes; names do not
The tool’s name buys nothing:context.tool_name on its own doesn’t move a verdict. The parameters and the description do, and tool_input works with no tool_name at all.
That’s the design. The judge isn’t accepting a claim that a tool is compliant; it’s reading stage: post_offer, consent_on_file: true and evaluating whether that describes something lawful. Send facts, not claims.
The fields
context.recruiter_prompt and context.candidate_content still matter on every call — what else the judge needs in the request.
With
tenet-client, pass the lawful-basis facts in context= and the ask in tool_input: tool_input={"recruiter_prompt": user_ask}, context={"stage": "post_offer", "consent_on_file": True}. They land at the top level of the wire context, which the judge reads. A dict tool_input also rides the top-level tool_input field, which isn’t rendered to the judge — so anything else the judge must read goes in context too.The operational fast-pass
Deterministic guards run on every request. Behind them, a purely operational request can returninclude with no judge call (the ops_fast_pass path).
On a tool call the thing under judgment usually isn’t the ask — it’s the arguments: the message body you’re about to send, the draft you’re about to post. Put it where the judge reads it:
- Content the call will produce → prose in
context.tool_input. - Content you retrieved → a
role: "tool"message. - Facts about the call — role, stage, consent flags →
contextkeys.
tenet-client, a dict tool_input also rides the top-level tool_input field. That field isn’t rendered to the judge, so put prose the judge must read in context= as well.
Or say it in the request text
If the harness would rather put the basis in the prompt than incontext, that works. Say what the action is for in the request itself — the role, the process stage, the consent or policy basis — and the judge evaluates it on the merits, the same way it evaluates facts in tool_input.
This isn’t background-check-specific. The judge scores the request as written, so any tool call touching restricted data or a protected class should say what it’s for — for the same reason a well-formed audit log does.
What a caller can’t assert
A caller-asserted field is never an exemption on its own. The engine re-validates it, and an assertion it can’t verify can only tighten a guardrail, never loosen one. That’s by design: a field that could exempt a call could be set by anything calling the API.tool_name is a hint, not a credential, and neither it nor intent exempts a call. The same rule is what scopes caller-asserted intent to the one phase where the engine can check it — see the read-intent contract.
The distinction worth holding onto:
- Stating the basis in the request or in
tool_inputhands the judge a claim it evaluates on the merits. Works. - Asserting compliance through a field asks the judge to accept a conclusion. Not accepted, by design.
Before and after
Cautions
- Don’t send tool output as a
usermessage. Userole: "tool". Sent asuser, retrieved content reads as the operator’s own instruction — exactly the confusion an injection attack relies on. - Keep
tool_outputto what’s being judged. Everything incontextis packed into the judged payload, so a large retrieval blob is the main driver of judge latency.
Verifying a change
Readverdict. If it routes, read findings[0].evidence_span — the judge writes a specific, natural-language account of what it found missing. Use that, not route_reason, which is a machine-readable category rather than an explanation.
Verdicts on marginal phrasings carry run-to-run variation. Sample a case several times before treating it as a regression test.
Links
- Surfaces — choosing the surface, and the other fields the judge needs
- Read-intent & wire contract — how far a caller-asserted signal goes
- How the Judge decides — the verdict vocabulary
- API overview — the full request envelope