Skip to content

[DOCS] Document the RequestApproval escalation tool for judge mode #635

Closed

Description

@inference-gateway-maintainer

Summary

inference-gateway/cli PR inference-gateway/cli#1162 (issue inference-gateway/cli#1156) adds a user-facing RequestApproval tool for judge mode. When the LLM judge rejects a tool call (auto-with-judge mode or tools.safety.approval_behaviour: judge), the agent can now explicitly ask the user to override the rejection via the interactive question form (Approve / Deny plus free-text "Other"). Approval records a one-shot bypass so the exact rejected call runs once with the judge bypassed. Headless or no-TTY runs degrade to a distinguishable "no approver reachable" result instead of hanging, and every judge rejection now hints that the escalation path exists.

The docs do not describe this flow yet.

Affected pages

  • judge-mode.md - document the escalation flow: when the tool is offered, the Approve/Deny/Other question, one-shot bypass semantics, that the escalation is consumed even on dismissal, and the hint appended to judge rejections.
  • configuration-reference.md - the request_approval tool description default (in config/prompts.go) is user-overridable via prompts.yaml like other tools.
  • README.md - the tool list, if it enumerates tools, should include RequestApproval.

Acceptance Criteria

  • judge-mode.md documents the RequestApproval escalation: when the tool is available, the Approve/Deny/Other options, and the one-shot bypass after approval.
  • judge-mode.md documents headless/no-approver degradation (no hang, distinguishable result, turn continues) and that channels without a question form degrade the same way.
  • configuration-reference.md notes the request_approval prompt default and its prompts.yaml override.
  • Any tool enumeration in README.md includes RequestApproval.

Activity

  1. added
    documentation
    on Sep 2, 2026
  2. added theissue type on Sep 2, 2026
  3. moved this to Todo in 2026on Sep 2, 2026
  4. edenreich commented on Sep 2, 2026

    @edenreich
    Contributor

    @claude Can you document this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Sep 2, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Documented the RequestApproval escalation tool

    • Gather context (checked the merged CLI code, not just the PR description)
    • cli-judge-mode.md: new "Escalating a rejection (RequestApproval)" section
    • cli.md: tool category row + #### RequestApproval reference entry
    • cli.md: prompts.tools.<Tool>.description override documented (prompts.tools.RequestApproval.description)
    • Validated bun run format, bun run lint:md, bun run build - all pass
    • PR opened: docs: document RequestApproval judge escalation tool #636

    Notes

    Page names in the issue are the CLI repo's; here they map to cli-judge-mode.md and cli.md (which carries the CLI config reference and tool list). This repo's README.md does not enumerate tools, so nothing to change there.

    Two details I took from the merged code rather than the PR body:

    • The escalation uses the regular tool approval box (with a context block showing the judge's reason plus the agent's what/why), not a multiple-choice question form. Approve/Auto-Approve overrides; Reject/dismissal denies.
    • RequestApproval is advertised in every mode (so a mode switch never invalidates the prompt cache); outside judge mode nothing is rejected, so it returns not_rejected. Documented it that way instead of "offered only in judge mode".

    Also documented: one attempt per rejected call (consumed even on dismissal), the one-shot bypass consumed by a single re-issued invocation, the hint appended to judge rejections, and the "no approver reachable" degrade for headless/CI plus channels without an approval form.
    | Branch

  6. moved this from Todo to In progress in 2026on Sep 2, 2026
  7. moved this from In progress to QA in 2026on Sep 2, 2026
  8. moved this from QA to Done in 2026on Sep 3, 2026
  9. inference-gateway-releaser commented on Sep 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.14 🎉

    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

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions