Repository navigation
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>
… change Only a pre-stage Block returns 403. A post-stage Block from a dashboard guardrail returns 200 with x-agentcc-guardrail-triggered, and a synchronous config.yaml post rule makes /v1/chat/completions return 500. Update api-reference, guardrail-checks, understanding-protect and the Enforcement Modes table to match. Note that the gateway doesn't apply a guardrail's Stage setting today (each check runs at its built-in stage) and align the Built-in Guardrail Types table with that. Revert the Mask action list change, which belongs with the dashboard change that removes Mask. 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 streaming and blocked responses differently from how the gateway behaves:
403;guardrails.streaming.enabledcheck a stream while it is generated, and only on/v1/chat/completions;data: [DONE], and can't stop or recall what was already sent.403. Only a pre-stage Block does:200with thex-agentcc-guardrail-triggeredheader;config.yamlpost rule makes/v1/chat/completionsreturn500.Every statement was checked against the gateway source on
main, so these pages can merge now.Related:
What changed
command-center/features/guardrails.mdx):guardrails.streamingmode (check_interval, stop or disclaimer), which uses onlyconfig.yamlrules;config.yamlrule uses its ownstage.command-center/features/streaming.mdx): the guardrails paragraph and its Next Steps card, which now links to the streaming section.command-center/concepts/api-reference.mdx): the streaming note and the post-stage statuses.protect/concepts/understanding-protect.mdx,protect/reference/guardrail-checks.mdx): the Stage note, and when the gateway returns403,200with the triggered header, or500.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