Skip to content

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

Merged
yaozheng-fang merged 1 commit into
volcengine:mainfrom
YuWeihung:fix/agentsentry-decision-type
Nov 6, 2026
Merged

yaozheng-fang merged 1 commit into
volcengine:mainfrom
YuWeihung:fix/agentsentry-decision-type

Conversation

@YuWeihung

@YuWeihung YuWeihung commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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.

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 force-pushed the fix/agentsentry-decision-type branch from e24b5a5 to 8f59776 Compare November 6, 2026 08:26
@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 6d39944 into volcengine:main Nov 6, 2026
10 checks passed
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