Conversation
…them Post-stage guardrails were described as checking a streamed response before it reaches the caller and ending the stream on a block. Only config-file rules with guardrails.streaming.enabled act while a stream is generated; other post-stage checks run once after it has been delivered. Mask was also listed as a guardrail action, but the gateway runs it as Log; masking PII is the PII check's remediation setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been 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.
Summary
The guardrail pages described two things differently from how the gateway behaves:
guardrails.streaming.enabledcheck a stream while it is generated, and only on/v1/chat/completions. Every other post-stage check, including those set up in the dashboard, runs once after the stream has been delivered, sees the text only when the gateway records bodies, and can't stop anything already sent.Every statement was checked against the gateway source. The streaming behaviour is the same on the gateway's
mainand in release v1.43.3, so these pages can merge now.Related: future-agi/future-agi#3237 removes Mask from the dashboard's action list. The Mask wording here holds before and after it ships. future-agi/future-agi#3233 adds per-check stages for dashboard guardrails; these pages describe stages generically and will need an update when it ships.
What changed
Command Center → Guardrails (
command-center/features/guardrails.mdx): the Streaming Guardrails section now says what each stage does to a stream:config.yamlpost rules can act while a stream is generated whenguardrails.streaming.enabledis on, withcheck_intervalandfailure_action;It also says headers can't change once a stream starts, and that dashboard and SDK rules always run synchronously.
Command Center → Streaming (
command-center/features/streaming.mdx): the guardrails paragraph and its Next Steps card, which now links to the streaming section.Command Center → API reference (
command-center/concepts/api-reference.mdx): the streaming guardrail note.Protect (
protect/index.mdx,protect/concepts/understanding-protect.mdx,protect/reference/guardrail-checks.mdx,protect/troubleshooting/guardrail-fires-on-the-wrong-requests.mdx):Checks
node scripts/audit-links.mjs: 0 broken nav links, 0 broken content links. The orphan-page warnings were already onmain.node scripts/check-deleted-pages.mjs main: no pages deleted.npx astro build: every page compiled.git diff --check: clean.🤖 Generated with Claude Code