surface: the request field that tells the judge what kind of recruiting action it’s checking. It’s optional; omit it and the judge infers it (below). Either way it reaches the judge as part of the request and frames how the ask is read — the same text means something different as a resume screen than as a job-ad draft.
The five surfaces
resume_triage is the default — it’s the client default in tenet-client, and what inference falls back to when the text gives no signal.
The field is a free string on the wire: an unknown value is not rejected — the literal value is passed to the judge as written, with no canonical meaning behind it. That’s a forward-compatibility affordance, not an extension point. Stick to the five canonical values.
Pick the surface per request
The surface describes the user’s current intent, not your application. A recruiting copilot drafts a job ad in one turn and screens resumes in the next — two surfaces in one conversation. When you can’t classify a request cleanly, omitsurface and let the judge infer it rather than guessing. A wrong guess misframes the ask; an omitted field gets classified from the text.
Omitting surface — automatic inference
surface is optional. When you omit it, the judge classifies the request itself and records how the value was chosen:
- A provided
surfacewins — with one exception. Atphase: "agent_input", a providedresume_triageis refined when the request text clearly matches a different action: “draft a job ad for a forklift operator” sent asresume_triageis judged asjob_ad_drafting. The refined value is recorded as inferred. Ambiguous text, tool phases, and every other provided surface are judged as sent. - No clear signal defaults to
resume_triage. - A surface never exempts a request. It frames the ask; the same guards and the same judge apply whatever the surface.
Omitting
surface is the simplest fix for the hardwired-surface anti-pattern above: remove the constant and the judge classifies per request.
Per-surface examples
Each body is a validPOST /decide request — the same envelope works on /decide/stream:
context.recruiter_prompt carries the user’s ask verbatim, and context.candidate_content is present whenever the action touches a specific candidate’s material — screening it, ranking it, or writing to its owner.
Choosing a surface from a chat or agent product
A chat product doesn’t have one surface — it has one per turn. Two places to classify: Judging user turns (agent_input) — classify the turn’s intent before judging it. A keyword router or a cheap intent classifier is enough; the categories are coarse. When a turn genuinely straddles (“rank them and email the top two”), judge each action at its own tool boundary — the ranking call as candidate_ranking, the email call as candidate_outreach — rather than averaging into one surface.
Judging tool calls (tool_pre / tool_post) — you usually don’t need a classifier: the tool already encodes the intent. Map tools to surfaces once:
@judged and TenetJudgeMiddleware send the client’s configured surface on every call — there’s no per-call override on those paths today. If your agent’s tools span action kinds, gate at a dispatch choke point with evaluate(surface=...) as above, or run one scoped middleware per action family (judge_tools_pre= allowlists, one client per surface, constructed at startup).What else the judge needs in the request
A related mistake: requests that are schema-valid but leave out what the judge needs.
On a tool phase there’s more to send:
context.tool_input and context.tool_description carry the facts that make a restricted action lawful, and a bare tool call routes without them. Tool context.
Integration checklist
Run this against your integration before shipping:-
surfacechosen per request from the five canonical values — not hardwired in a constructor, config, or request template - Tool calls mapped tool → surface; unmapped tools fall back to
resume_triage -
context.recruiter_promptcarries the user’s verbatim ask on every request -
context.candidate_contentpopulated whenever the action involves a candidate’s material -
session_idstable within a conversation, different across conversations - Spot-check production traffic: the surface distribution should look like your product. A multi-feature product sending 100%
resume_triageis the hardwired anti-pattern.