Skip to content

feat(runner): route external privacy restrictions - #926

Closed
afourniernv wants to merge 1 commit into
codex/privacy-target-mappingfrom
codex/privacy-external-signal
Closed

afourniernv wants to merge 1 commit into
codex/privacy-target-mappingfrom
codex/privacy-external-signal

Conversation

@afourniernv

@afourniernv afourniernv commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Draft stack 3/10.

What

Add standard and restricted execution lanes to a route. An embedded host can mark a request as restricted, and the whole request runs through the restricted targets.

The selected lane covers routing calls, answer candidates, fallbacks, and auxiliary calls.

Why

A trusted host may already know that a request cannot leave a restricted model set. Switchyard needs to preserve that boundary while keeping the configured routing algorithm.

How tested

Tests cover route opt-in, mixed Responses state, restricted judges, answer fallbacks, and auxiliary targets. The complete stack passed workspace formatting, Clippy with warnings denied, and workspace tests. No live provider calls.

Notes for reviewers

Adds privacy.restricted_targets, privacy.accept_external_signal, and one additive Rust helper:

mark_privacy_restricted(&mut request);

Existing Rust signatures, Python APIs, HTTP APIs, and the Relay ABI are unchanged.

Signed-off-by: Alex Fournier <afournier@nvidia.com>
@afourniernv
afourniernv added this pull request to stack #934 October 6, 2026 18:18
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

🚀 View preview at
https://NVIDIA-NeMo.github.io/Switchyard/pr-preview/pr-926/

Built to branch gh-pages at 2026-10-06 18:19 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@afourniernv

Copy link
Copy Markdown
Contributor Author

Closing this draft stack for now. I’m sharing the cumulative branch and design/evaluation artifacts for architecture feedback before reopening a smaller stack.

@afourniernv afourniernv closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant