Skip to content

[DOCS] Judge mode page: decisions backend and the offline decision-model example #1090

Closed

Description

@inference-gateway-maintainer

Summary

PR inference-gateway/cli#1691 adds a decision-model judge behind judge.yaml backend: decisions. The judge asks the gateway POST /v1/decisions endpoint and thresholds p(approve) at judge.min_confidence (default 0.7) instead of parsing a generative verdict. New user-facing surface: the backend and min_confidence config keys, the INFER_JUDGE_BACKEND and INFER_JUDGE_MIN_CONFIDENCE env overrides, the DECISIONS_ENABLED=true gateway requirement, and the offline ollama/clef decision-model example in the cli examples/working-offline directory (hosted variant ollama_cloud/clef:27b).

Acceptance Criteria

  • The judge mode page documents the decisions backend, min_confidence, the fail-closed threshold semantics, and the reason text the agent sees on a rejection
  • The configuration reference lists judge.yaml backend and min_confidence and both env overrides
  • The gateway requirement is captured: the gateway must run with DECISIONS_ENABLED=true and the model must list decisions among its output modalities
  • The offline example (ollama pull clef with the working-offline compose) and the hosted ollama_cloud/clef:27b variant are described

Filed from the review of PR inference-gateway/cli#1691, which commits to filing this ticket.

Activity

  1. added
    documentation
    on Nov 3, 2026
  2. edenreich commented on Nov 4, 2026

    @edenreich
    Contributor

    @claude can you document this?

  3. inference-gateway-maintainer commented on Nov 4, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 3m 37s —— View job • docs/issue-1090-20261104-1218 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1090-20261104-1218?quick_pull=1&title=Issue%20%231090%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231090%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented

    • Read cli-judge-mode.md and the upstream CLI surface (judge mode doc + working-offline README)
    • Documented the decisions backend, min_confidence, fail-closed threshold semantics, and the rejection reason text
    • Added backend / min_confidence to the judge.yaml example and field table, plus INFER_JUDGE_BACKEND and INFER_JUDGE_MIN_CONFIDENCE to the env overrides
    • Captured the gateway requirement (DECISIONS_ENABLED=true, decisions output modality) with links to the Decisions API reference
    • Described the offline ollama pull clef walkthrough and the hosted ollama_cloud/clef:27b variant
    • Validated: bun run lint:md, bun run format:check, bun run build all pass

    All changes are in cli-judge-mode.md. DECISIONS_ENABLED is already covered by the generated configuration reference, so configuration.md needed no edit. I also scoped the existing JSON verdict contract section to the llm backend and noted that system_prompt / max_tokens do not apply to the decisions backend.

    PR: #1091

    Skipped: the upstream page also describes per-batch judging of multiple pending calls ({action} expanding to several <tool_call id="..."> blocks), which this page still documents as one call per gate - that is a separate change outside this ticket's scope.
    | Branch

  4. moved this from Todo to In progress in 2026on Nov 4, 2026
  5. moved this from In progress to QA in 2026on Nov 4, 2026
  6. moved this from QA to Done in 2026on Nov 4, 2026
  7. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions