You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tool-compliance scorer was blind to gitagent: gitclaw emits tool calls as
TOP-LEVEL sdk_messages (type:"tool_use", toolName/args) and tool results as
type:"tool_result", not nested in an assistant message's content blocks like the
Claude SDK. So toolCalls/policyDenials came back empty and the scorer scored
"compliant" by default. Denials also surface as text ("Tool 'cli' denied"), not
the SDK's structured permission_denials.
- Parse top-level tool_use/tool_result into the transcript (→ toolCalls).
- recordDenial() extracts the blocked tool name from "Tool 'X' denied/blocked"
text so a policy-blocked forbidden tool is scored compliant for gitagent too.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments