Skip to content

fix: block only normalized AgentSentry V3 BLOCK decisions - #200

Merged
yaozheng-fang merged 1 commit into
volcengine:mainfrom
YuWeihung:patch-1
Nov 6, 2026
Merged

yaozheng-fang merged 1 commit into
volcengine:mainfrom
YuWeihung:patch-1

Conversation

@YuWeihung

@YuWeihung YuWeihung commented Nov 6, 2026 •

Copy link
Copy Markdown

AgentSentry V3 allowed decisions were rejected when Degraded was true or absent. Normalize DecisionType with int() and block only when the result is 2, including the string "2". Other, missing, or unconvertible decision values allow the operation, independently of Degraded and DegradeAction.

Transport failures, HTTP/API errors, and malformed response structures still return unavailable. Existing local input and tool-plan checks are unchanged. No public API or configuration changes.

@YuWeihung YuWeihung changed the title fix: honor AgentSentry V3 decisions when degraded fix: use only DecisionType for AgentSentry V3 moderation decisions Nov 6, 2026
Normalize DecisionType with int() so numeric strings such as "2" are
handled consistently. Block only when the normalized decision is 2;
allow other, missing, or unconvertible decision values regardless of
Degraded or DegradeAction.

Preserve unavailable responses for transport, API, and response errors.
Align decision, degradation, conversion, and service-error tests.
@YuWeihung YuWeihung changed the title fix: use only DecisionType for AgentSentry V3 moderation decisions fix: block only normalized AgentSentry V3 BLOCK decisions Nov 6, 2026
@yaozheng-fang
yaozheng-fang merged commit 988608f into volcengine:main Nov 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.

2 participants