Skip to Content
Profiles, registries and bindingsJudgment extension v1 (`x-judgment-v1`)

Judgment extension v1 (x-judgment-v1)

Rendered from spec/judgment-extension-v1.md in action-state-group/agent-action-capsule at commit 563dcb8010e5942c07c14453bd22bbc397cca0e3. The repository is the source of record; this page changes only when the site’s pinned commit does.

Status: PROVISIONAL. Held for ratification and not registered. The digest rules for rubric_digest and judge_parameters_digest are proposed and unratified, and so is everything this document adds.

Companion schema. schemas/judgment/judgment-extension-v1.json. Vectors. vectors/judgment/ (members, digest rules, and cases in vectors/judgment/README.md). Where this document and the schema disagree, this document governs and the schema is corrected to match.

A Capsule that records a judgment, by a model judge or a human expert, carries one member at /model_attestation/compute_attestation/x-judgment-v1: rubric_digest, rubric_version, judge_parameters_digest, and, for a model judge, model_hosting with the optional model_reference and model_digest (§2). Base fields keep their meaning: developer is the judge, agent_output_digest binds the judge’s answer {verdict, rationale}, and references[] carries exactly one judged_from entry.

JSON-DIGEST is the base profile’s rule: lowercase-hex SHA-256 of UTF8(JCS(value)) (RFC 8785), with no member filtering at any depth. RAW-DIGEST, in this document, is lowercase-hex SHA-256 of a published file’s raw bytes.

The key words MUST, MUST NOT, SHOULD and MAY are to be interpreted as described in BCP 14 (RFC 2119, RFC 8174) when, and only when, they appear in all capitals.

1. Model hosting

model_hosting states where the model named by developer ran. Its values are the closed set a pack’s judge declaration uses:

ValueMeaning
hostedThe model was reached through another party’s endpoint. The producer holds neither its weights nor any guarantee that the model behind the name stays the same.
self_hostedThe producer runs the weights. Whether the weights are published, so that a stranger could run them, is not stated by this value.
  • A model-judge record (one whose published judge-parameters preimage is a JudgeParameters object) MUST carry model_hosting. A human-expert record MUST NOT.
  • A verifier that finds model_hosting absent on a model-judge record MUST treat the judgment as hosted. An unstated hosting claim is read as the weaker one.
  • model_hosting sits in the member, outside judge_parameters_digest. That digest excludes the judge’s identity so that the same parameters can be compared across judges. Hosting describes the judge, not how the judge was asked. It is committed by capsule_id like every other member.

Hosted means attributable, not re-derivable. A hosted judgment is attributable: a verifier can check that the record names the declared judge and that every published preimage recomputes. It is not re-derivable: nobody outside the endpoint’s operator can run the same model again, and the name can stay fixed while the model changes. Therefore:

  • A consumer MUST NOT treat a hosted judgment’s verdict as sufficient on its own to refuse an action. It MAY treat that verdict as grounds to ask for review.
  • self_hosted does not by itself make a judgment re-derivable by a stranger. A judgment is re-runnable by whoever holds the weights. As with every judgment, it is never reproducible (vectors README: “re-runnable, not reproducible”).

model_hosting is checkable through the identity ladder (§2). A hosted record cannot carry model_digest. A self_hosted record without model_digest sits at rung 1 or 2, and is visibly weaker than one that carries it. A reader can see the difference from the record alone, without trusting the producer’s hosting claim.

2. Model identity

2.1 The identity ladder

A judgment record can identify the model that produced it at one of four rungs. Each rung proves strictly more than the one below it.

RungCarried byWhat it proves
1. Namedeveloper (model_id, §2.2)Nothing about bytes. A name is not proof of the bytes served: a proxy or a mis-deployed host can serve a different model under the same name.
2. Referencemodel_reference (optional)Which artifact was named, for example a repository, a revision and a file. It does not prove which bytes were loaded.
3. Loaded bytesmodel_digest (optional)Which bytes the producer says it loaded: lowercase-hex SHA-256 over the raw bytes of the model file actually loaded. Anyone holding a file can check it against this digest.
4. Above self-reportoutside this memberThat the reported bytes are the bytes that ran: a trusted execution environment with a load hook, or an independent referee.

Rung 3 is still self-reported. A producer can report a digest for a file it did not load. model_digest therefore makes a judgment re-derivable in principle, not proven. Text, renderings and verifiers MUST NOT describe a rung 3 record as proven, verified or attested model identity. Only rung 4 is above self-report, and this member does not carry rung 4.

Absent is absent. A producer that did not compute, or could not compute, a digest of the loaded bytes omits model_digest. It never writes a zero, an empty string or any other placeholder. The same applies to model_reference. The schema rejects an empty value, an all-zero digest and an empty or blank reference. A renderer shows an absent field as absent, never as a zero or an empty value. This is the same discipline as not_evaluable: an honest absent fact, never a fabricated one.

Rules.

  • model_digest requires model_hosting. A record with model_hosting: hosted MUST NOT carry model_digest, because nobody outside a hosted endpoint holds the loaded bytes. A hosted judgment is therefore at rung 1 or 2. That is why it is attributable and not re-derivable (§1), and it follows from the data, not from an assertion.
  • A model judgment at rung 1 or 2 is judged (Result v0 tier) at best. It never supports recomputed.
  • recomputed REQUIRES rung 3. Rung 3 is necessary, not sufficient: sampling, batching and the other judge_parameters_digest inputs still bear on whether a verdict re-derives. This document does not say when a judged verdict becomes recomputed. It says only that, below rung 3, it cannot.
  • The model file is a single file. A model loaded from several files is out of scope for v1.

Relation to existing vocabulary, which this document does not redefine. tier (recomputed | judged) keeps its meaning from evidence-result-v0.md §1. The ladder only constrains which tier a model judgment’s evidence can support. A claim’s grade (self-attested | witnessed | countersigned) attests the bundle that carries the record. A witnessed or countersigned grade moves no record up the ladder, and does not make a hosted verdict re-derivable.

2.2 Model identifier (developer)

For a model judge, developer MUST be model_id or model_id "@" version, where:

  • model_id is the model identifier exactly as a pack’s judge declaration names it, byte-equal with no case folding or other normalization, and contains no @;
  • version is the producer’s version label for the model as called, when it has one.

For a human expert, developer is a role or pseudonymous rater label, never a personal name or contact identifier.

judge_parameters_digest deliberately excludes the judge’s identity. The join on the model is therefore value-level (a string match), not digest-level: developer equals the declared model_id, or begins with the declared model_id followed by @. A pack’s judge declaration does not pin a version, so a hosted model can change behind a matching model_id (§1).

3. Answer schema

An x-judgment-v1 record’s answer is {verdict, rationale} (rationale optional), under one of two definitions in the companion schema:

  • $defs/JudgeAnswer: verdict in met | not_met | not_evaluable;
  • $defs/JudgeAnswerWithOutOfScope: the same, with verdict also out_of_scope (the Evidence Contract’s fourth verdict, spec/evidence-result-v0.md §4.2).

The record names neither: a pack’s judge declaration names one by its schema_hash (§4.1). JudgeAnswerWithOutOfScope accepts every answer JudgeAnswer accepts, so a record’s answer is well formed when it validates against JudgeAnswerWithOutOfScope; whether it fits the declared judge is check 7 (§4.2). An answer schema digest is the JSON-DIGEST of one of the two values as published in schemas/judgment/judgment-extension-v1.json at the member’s version: 1b8f1f21f261cc5ee87c23a1fc1711a0907be6599a45b1a9e3ebfe13d626a0ec for JudgeAnswer, 07ec203b83ec977d43188b4d4edb93fac563298aa54523bff09713bd52dd9507 for JudgeAnswerWithOutOfScope. Each value is frozen with its description, which is inside its digest. JudgeAnswer’s description still says it is the answer schema of every record and calls the contract’s vocabulary three-valued; this section supersedes both sentences.

out_of_scope is for a switched-on requirement only. A judge answers out_of_scope only for a requirement that carries out_of_scope_allowed (spec/evidence-result-v0.md §4.2), and a pack pins JudgeAnswerWithOutOfScope only for a judge that answers such requirements. A producer MUST NOT map a judge’s out_of_scope answer to any other verdict: where the requirement has no switch, the answer is malformed and backs no counting claim. A record does not name its requirement, so this is checked where the requirement is known: the Result claim, against its copied switch (Result v0 §4.2), and the interop profile’s evaluator (spec/interop-profile-v0.md §8.2 invariant 1, §8.3). A third party can tell that a producer mapped such an answer to another verdict only from the judge’s disclosed answer or by re-evaluating.

The axes file (axes_digest, a RAW-DIGEST inside judge_parameters_digest) is not the answer schema. It names what the judge is asked to assess, which is part of how the judge was asked.

4. Correspondence with a pack’s judge declaration

A pack obligation that a judge answers carries a judge declaration. It is forward-looking: “this obligation is answered by a judge named thus”. An x-judgment-v1 record is backward-looking: “this judge, with these parameters, produced this verdict”. The two are kept separate and are never merged. This section states how a third party joins them, to answer one question: was this recorded judgment produced by the judge the pack declared?

The judge declaration’s members are model_id, prompt_template_hash, schema_hash, input_refs and model_hosting (hosted | self_hosted).

4.1 Join table

Pack judge declarationPack methodRecord memberRecord methodJoin
model_idstring, verbatimdeveloper (base)string: model_id or model_id@version (§2.2)value-level. Outside any digest except capsule_id.
model_hostingclosed set hosted | self_hostedx-judgment-v1.model_hostingsame closed set; absent on a model-judge record reads as hosted (§1)value-level, exact.
model_digest (optional)lowercase-hex SHA-256 over the raw bytes of the model filex-judgment-v1.model_digest (optional)same method, over the file actually loaded (§2.1)digest-level, equal, when both carry it. If the declaration carries it and the record does not, the join fails: the record does not show the declared bytes. If only the record carries it, it is not part of the join. A hosted declaration or record never carries it.
(no member)x-judgment-v1.model_reference (optional)reference string (§2.1, rung 2)No pack counterpart.
prompt_template_hashJSON-DIGEST of the instruction template object, as published, before interpolationJudgeParameters.instruction_template_digest, reached by recomputing judge_parameters_digest from the published JudgeParametersJSON-DIGEST of the same objectdigest-level, equal.
(no member)JudgeParameters.prompt_file_digest (optional)RAW-DIGEST of a published judge prompt fileNo pack counterpart. MUST NOT be compared with prompt_template_hash.
schema_hashJSON-DIGEST of the answer schema(no member): one of the two answer schema digests (§3); the declaration names whichJSON-DIGEST of $defs/JudgeAnswer or of $defs/JudgeAnswerWithOutOfScopedigest-level, against one of two constants; a disclosed answer is then checked against the definition named (§4.2 check 7).
(no member)JudgeParameters.axes_digestRAW-DIGEST of the published axes fileNo pack counterpart.
input_refslist of action field names(no member)Not joinable. judged_from names the evidence by digest, not which of its fields the template read.
(no member)JudgeParameters.sampling_params, min_confidence_micros, judge_batchinside judge_parameters_digestNot declared by the pack, so any value is consistent with the declaration.
(no member)rubric_digest, rubric_versionJSON-DIGEST of the rubric document; labelNo pack counterpart. The declaring obligation is identified by the pack’s own digest, not by rubric_digest.

The template object is whatever object the judge publishes as its instruction template. Its shape is producer-defined. The pack’s prompt_template_hash and the record’s instruction_template_digest MUST be JSON-DIGESTs of the same published object. An implementation that calls its own template-object digest prompt_digest computes the value that joins with instruction_template_digest, not with this extension’s prompt_file_digest.

prompt_file_digest is OPTIONAL. A producer carries it only when the judge publishes a prompt file separately from its instruction template. When there is no such file it is absent, never a zero, an empty string or any other placeholder (§2.1, “absent is absent”). Its presence or absence changes judge_parameters_digest, like every other JudgeParameters member, and takes no part in the join with a pack’s judge declaration.

Neither digest preimage carries the action’s content. instruction_template_digest and prompt_template_hash cover the template before interpolation. prompt_file_digest and axes_digest cover published files. An interpolated prompt never enters either side.

4.2 Procedure

Given a judge declaration D, a judgment Capsule C whose member is M, the published JudgeParameters P behind C, and, when the bundle discloses it, the judge’s answer A (the disclosure field agent_output), a verifier runs seven checks:

  1. JSON-DIGEST(P) equals M.judge_parameters_digest.
  2. P.instruction_template_digest equals D.prompt_template_hash.
  3. D.schema_hash equals one of the two answer schema digests (§3).
  4. C.developer equals D.model_id, or begins with D.model_id followed by @.
  5. M.model_hosting (or hosted, if absent) equals D.model_hosting.
  6. If D.model_digest is present, M.model_digest is present and equal to it.
  7. If A is disclosed, JSON-DIGEST(A) equals C.model_attestation.compute_attestation.agent_output_digest, and A validates against the definition D.schema_hash names.

It reports one of two outcomes, and nothing else as attribution:

  • “produced by the declared judge” when checks 1 to 7 hold with A disclosed;
  • “produced by the declared judge; answer not disclosed, so not checked” when checks 1 to 6 hold and A is not disclosed. A verifier MUST NOT drop the qualifier: a withheld answer is not a checked one, and not a failed one.

So a disclosed out_of_scope answer under a declaration that pinned JudgeAnswer fails the join, and an answer substituted for the committed one fails on its digest. A record that joined under the six checks of the earlier revision still joins, with the qualifier when its answer is withheld.

Checks 1 to 3, 6 and the digest half of 7 are digest-level; the other half of 7 is schema validation. Checks 4 and 5 are value-level. When check 6 applies, the join reaches rung 3, which is still self-reported (§2.1). A pass establishes attribution, not re-derivation (§1). It says nothing about the rubric, the sampling parameters or the fields read, which the declaration does not pin (§4.1). A human-expert record never joins a judge declaration: check 1 fails on shape, because its preimage is ExpertProtocolParameters.