Skip to main content
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.
The hardwired-surface anti-pattern: setting surface="resume_triage" once — in a client constructor, a config value, a copy-pasted request template — and sending it on every call. Chat, drafting, ranking, outreach: the judge is told every one of them is a resume screen, so a job-ad draft or an outreach email is framed as a screening action, and your surface distribution tells you nothing about your traffic. (At agent_input the engine refines an asserted resume_triage when the text clearly says otherwise — below — but tool calls get no such repair.) Classify per request.
When you can’t classify a request cleanly, omit surface 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:
Whether the surface was provided or inferred is recorded on Tenet’s server-side decision trace; it isn’t a field on the default response. How inference and a provided value interact:
  • A provided surface wins — with one exception. At phase: "agent_input", a provided resume_triage is refined when the request text clearly matches a different action: “draft a job ad for a forklift operator” sent as resume_triage is judged as job_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.
When to rely on it vs. classify yourself: 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 valid POST /decide request — the same envelope works on /decide/stream:
Across all five, 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:
  • surface chosen 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_prompt carries the user’s verbatim ask on every request
  • context.candidate_content populated whenever the action involves a candidate’s material
  • session_id stable 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_triage is the hardwired anti-pattern.

Common mistakes