/sasy:sasy-why-blockedfrom sasy
Explains why SASY blocked or allowed an agent action by analyzing policy rules, denial traces, and common misconfigurations. Use when tool calls are denied or everything is blocked.
Ships in sasy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find which of these is happening, from the user's output, code and policy:
with sasy.session(policy=Path("policy.dl")):; policy="policy.dl" as a
string is treated as policy source, not a filename.IsAuthorized(idx) rule matches and no
Unauthorized(idx) rule does. Tell the cases apart with the decision's
denial_trace.reasons: each has a reason_type. Several can be present.
NOT_ALLOWLISTED means no allow rule matched; DENYLISTED means a deny
rule fired; ASK means a // @ask rule requests human approval, which is
not a policy error (an application without approval handling treats it as
a denial); NOT_AUTHENTICATED and SYNC_TIMEOUT mean the request itself
failed (credentials, or the engine timed out on recorded context), not the
policy. Do not infer the case from the message text: denial_reasons and
suggestions can carry // @deny_message and // @suggestion text from
allow rules as well as from deny rules.
NOT_ALLOWLISTED, denial_trace.allow_routes lists each allow rule as
blocked (cannot match this request, e.g. a different tool name),
possible or unknown.DENYLISTED, find the Unauthorized rule in the policy and explain
which recorded input made it fire. Ancestry rules (CurrentDepends,
ToolResult, ...) fire on anything the requesting message was computed
from, including earlier tool results and summaries..decl), or a typo in
a relation name.UNAUTHENTICATED or TLS errors mean
the SDK's settings do not match the running engine; see
https://docs.sasy.ai/local-engine/ troubleshooting.To reproduce a decision in isolation, rebuild the same inputs with sasy.record
and call sasy.check_tool_call with the requesting message's ID; print
authorized, denial_reasons, suggestions and denial_trace.
Explain the cause in one or two sentences, then propose the smallest fix: a
policy change (with the write-policy skill) if the rule is wrong, or a code
change if the agent recorded the wrong inputs. Do not weaken a policy just to
make a correct denial go away; say when the block is the policy working as
intended. Details: https://docs.sasy.ai/policy-language/ (validating and
debugging a policy).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sasy-labs/sasy --plugin sasy8 skills in this plugin
/sasy-adkProtect a Google ADK agent application with SASY so function tools, agent transfers and child agents are checked against a policy. Use when the user's agents are built with Google ADK and they want SASY enforcement./sasy-custom-agentAdd SASY policy enforcement to agent code that does not use a supported framework, using sasy.record, sasy.check_tool_call and sasy.session. Use for hand-written agent loops, custom orchestration or direct LLM API calls./sasy-examplesRun and explain the SASY example demos (message-flow, LangChain, Google ADK, Langroid) - which example shows what, how to run one, its options, and how to read its output. Use when the user wants to see SASY working, asks for a demo or a walkthrough, or asks how to run an example or what its output means./sasy-helpExplain what SASY is and list the SASY skills and what each one does. Use when the user asks what SASY is, what the SASY skills can do, which SASY skills are available, or how to get started with SASY./sasy-langchainProtect a LangChain agent with SASY so every tool call is checked against a policy before it runs. Use when the user's agent is built with LangChain or LangGraph and they want SASY enforcement./sasy-langroidProtect a Langroid multi-agent program with SASY so tool calls are checked against a policy before they run. Use when the user's agents are built with Langroid and they want SASY enforcement.Other plugins' skills for the same job