Repository navigation
fix: align gateway hook timeout with daemon execution - #1288
Merged
willkill07 merged 1 commit intoOct 12, 2026
Merged
willkill07 merged 1 commit into
willkill07 merged 1 commit into
Conversation
Use the existing 30-second daemon and agent hook budget for both gateway transports. Share the limit with generated hook configs and preserve failure policies and no-retry behavior. Fixes RELAY-1020. Signed-off-by: Will Killian <[email protected]>
Contributor
2 tasks done
willkill07
added a commit
that referenced
this pull request
Oct 12, 2026
#### Overview Fail-closed hooks currently exit 1 on delivery errors, which does not block Claude Code's permission-bearing hooks. Return exit 2 for these errors across gateway and managed daemon execution, including hooks routed through daemon workers. - [x] I confirm this contribution is my own work, or I have the right to submit it under this project's license. - [x] I searched existing issues and open pull requests, and this does not duplicate existing work. #### Details - Map the existing `HookDelivery` error to exit 2 and wrap gateway setup failures consistently. - Preserve fail-open behavior, structured guardrail rejections, configuration defaults, and public APIs. No breaking API or configuration changes. - Cover connection errors under both policies, verified gateway failures, response limits, timeouts, and a real `--require-worker` daemon returning HTTP 503. Document the exit statuses. - Verified a clean three-way merge with `fix/relay-1020-gateway-hook-timeout` (#1288). Validation: eight focused CLI tests passed. `just test-rust` ran 5,797 tests: 5,795 passed initially; the two diagnostic failures passed when rerun with isolated configuration and inherited logging overrides removed. `just docs` and staged `uv run pre-commit run` passed. Language binding suites were not run because their contracts are unchanged. #### Where should the reviewer start? Start with `crates/cli/src/commands/mod.rs` for exit-status mapping and `crates/cli/src/hooks/delivery.rs` for gateway setup error wrapping. The strict-routing regression in `crates/cli/tests/cli_tests.rs` verifies exit 2 when a required daemon worker is unavailable. #### Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to) - Fixes [RELAY-1021](https://linear.app/nvidia/issue/RELAY-1021/block-on-hook-delivery-failures) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Hook delivery failures now return exit code `2` when fail-closed behavior is configured, including connection errors, timeouts, and HTTP errors. Fail-open delivery failures continue to return `0`. * Guardrail rejections continue to return exit code `2`. * **Documentation** * Updated hook forwarding guidance to clarify exit codes for fail-open and fail-closed policies across gateway and daemon hooks. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Will Killian <[email protected]>
2 tasks done
willkill07
added a commit
that referenced
this pull request
Oct 14, 2026
#### Overview Add 0.10.1 release notes covering the fifteen PRs merged into `release/0.10` since `0.10.0`, plus the anticipated merge of #1317, with matching patch-upgrade guidance. Preserve the 0.10.0 notes and follow the NVIDIA documentation style guide. - [x] I confirm this contribution is my own work, or I have the right to submit it under this project's license. - [x] I searched existing issues and open pull requests, and this does not duplicate existing work. #### Details - Cover daemon-worker LLM middleware (#1281), the YAML dependency update (#1282), hook timeout and failure-policy fixes (#1288, #1289, #1290), and request-edit preservation (#1296). - Cover Anthropic streaming storage (#1303), Python typed reconstruction (#1304), Go native handle lifetimes (#1302), authenticated Pi hooks and session ownership (#1306), dynamic plugin trust failures (#1305), and verified native plugin loading (#1307). - Cover Pi named-upstream restrictions (#1314), LangChain tool-schema edits (#1316), and the configurable ChatGPT Codex endpoint (#1319). - Assume #1317 will merge: document plugin HTTP error helpers and prefixes, preservation of remote Guardrails and forwarded hook HTTP error statuses, verified reporting identities, and streaming limits. Verified against its current head `b61bb7da0bc6de7b7d5d27a569981867b7b2fcb9`; its implementation is not merged into this branch. - Add upgrade guidance for hook credentials and registration, generated hooks, daemon response behavior, request edits, Pi extensions and private provider endpoints, native plugin dependencies, stored Python typed values, ChatGPT endpoints, and HTTP error handling. - Keep PR references and counts out of user-facing release notes. Preserve the prior CodeRabbit corrections for MCP route registration, forwarded-stream observation limits, sanitizer-only behavior, and 0.10.1 installation pins. - Merge the latest `release/0.10` into the PR branch. Distinguish personal hook refresh commands from administrator-managed daemon bundles. Validation: `just docs`, `uv run pre-commit run`, and `git diff --cached --check` passed. Fern skipped the published redirect-history check because FDR returned HTTP 403. Verified the merged release range against source and public documentation, and the assumed #1317 behavior against its current PR source and docs. Language test suites were not run because the PR diff only updates documentation prose and installation version pins. Package installation commands, live daemon upgrades, plugin activations, and hook refreshes were not executed. Validation runs on the current release branch; #1317 remains an explicit release-content assumption. #### Where should the reviewer start? Start with `Release 0.10.1` in `docs/about-nemo-relay/release-notes/index.mdx`, then review `Update from NeMo Relay 0.10.0 to 0.10.1` in `docs/reference/migration-guides.mdx`. Review the new Pi endpoint, ChatGPT endpoint, LangChain tool-edit, and HTTP error guidance, including the #1317 merge assumption. Check matching version pins in `docs/getting-started/installation.mdx`. #### Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to) - Relates to: none <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added NeMo Relay 0.10.0 and 0.10.1 release notes, including feature highlights, compatibility updates, fixes, and known issues. * Expanded migration guidance with upgrade steps and details on hook credentials and delivery, daemon-worker middleware behavior, request editing, plugin requirements, and Python value handling. * Updated installation examples across supported platforms, packages, and integrations to reference version 0.10.1. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Will Killian <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Gateway hooks currently stop waiting after two seconds, even though daemon hook forwarding and generated Claude Code/Codex hook configs allow 30 seconds. This rejects LLM judge guardrails that need more than two seconds to evaluate. Use a shared 30-second hook forwarding limit across gateway and daemon/worker execution.
Details
Validation:
just test-rust: 5,796 of 5,798 tests passed; the two logging-related failures passed on isolated reruns with inherited logging overrides removed and an empty system config directory.just docs-linkcheckpassed; Fern could not check redirects against the published site because FDR returned 403.uv run pre-commit runpassed on the staged changes, including external documentation links, formatting, Clippy, Cargo checks, and dependency audits. The automatic commit-time repeat encountered GitHub HTTP 503/504 responses on two unchanged documentation links; only that duplicate link check was skipped for the commit. Binding suites were not run because their runtime/API contracts are unchanged.Where should the reviewer start?
Start with
crates/cli/src/hooks/mod.rsandcrates/cli/src/hooks/delivery.rsfor the shared timeout and its two gateway transports. Then review the delayed-response and no-retry regressions incrates/cli/tests/cli_tests.rsandcrates/cli/tests/coverage/shared/installer_tests.rs.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit