CX · Reference guideadjudicate
PlaygroundDownloadsAboutv0.17.0

adjudicate

Out-of-band agent adjudicator for the similar review band (EXPERIMENTAL x/ tier; cx-private #376, similar.md §5.3 ruling Q4). Consumes review-band [pair …] elements and produces [resolution verdict=… decided-by='agent:' [left …] [right …]] records — the exact table the resolutions: predicate option (the known-verdicts tier, similar.md §5.4) already consumes, so each run stays deterministic and the adjudicator runs between runs. Pure prompt shaping (prompt-of), verdict parsing (verdict-of; unparseable → :review, the safe default), and record building (resolution-of, decisive) are split from the effectful adjudicate-pair/adjudicate, which compose cx-x/llm:complete under a scoped net grant.

Experimental x/ tier — imported as cx-x/adjudicate. Bundled and gated in-tree like any other module, but EXEMPT from the frozen-surface stability promise (std-lib README, decision D3): a semver-breaking change is allowed here while the surface settles, and the frozen-surface canary never counts it. Pin behaviour you depend on with your own fixtures.

adjudicate:prompt-of

[$adjudicate:prompt-of] -> string — Render one review [pair …] as the adjudication prompt (payloads via format:canonical; score/evidence included when present). Prompt text is not version-stable.

adjudicate:verdict-of

[$adjudicate:verdict-of] -> atom — Parse a model reply to :match / :no-match / :review by precedence (no-match before match, then review); unparseable → :review.

adjudicate:resolution-of

[$adjudicate:resolution-of] -> element — Build one [resolution verdict=… decided-by=… [left …] [right …]] record (the similar.md §4.1 resolutions row shape).

adjudicate:decisive

[$adjudicate:decisive] -> any — Filter resolution records to firm verdicts (:match/:no-match), dropping :review, preserving order.

adjudicate:adjudicate-pair

[$adjudicate:adjudicate-pair] -> element — Adjudicate one review pair via cx-x/llm:complete (net): prompt-of → verdict-of → resolution record with decided-by='agent:'.

adjudicate:adjudicate

[$adjudicate:adjudicate] -> any — Adjudicate a sequence of review pairs in input order (net); returns resolution records ready to carry on a predicate as resolutions:.