You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document the RequestApproval escalation tool for judge mode #635
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.
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
Activity
edenreich commentedon Sep 2, 2026
@claude Can you document this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 2, 2026
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
RequestApprovalescalation toolcli-judge-mode.md: new "Escalating a rejection (RequestApproval)" sectioncli.md: tool category row +#### RequestApprovalreference entrycli.md:prompts.tools.<Tool>.descriptionoverride documented (prompts.tools.RequestApproval.description)bun run format,bun run lint:md,bun run build- all passNotes
Page names in the issue are the CLI repo's; here they map to
cli-judge-mode.mdandcli.md(which carries the CLI config reference and tool list). This repo'sREADME.mddoes not enumerate tools, so nothing to change there.Two details I took from the merged code rather than the PR body:
RequestApprovalis advertised in every mode (so a mode switch never invalidates the prompt cache); outside judge mode nothing is rejected, so it returnsnot_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
inference-gateway-releaser commentedon Sep 22, 2026
🎉 This issue has been resolved in version 0.9.14 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀