Preset Scenario:
1: PLAN / edit (Denied S2)
2: IMPLEMENT / edit (Allowed)
3: IMPLEMENT / bash (Denied S4)
Show Default Allow
Pause Animation
Reset
KITSUNE GUARD ENGINE // EVALUATION PIPELINE
CLICK TOOL CHIP TO CYCLE PRESETS | HOVER STAGE FOR ENGINE.PY CODE
ENGINE.PY INSPECTOR
30 def evaluate_call(call, phase):
32 # Stage 1: Parse Call
call = parse_tool_call(req)
45 # Stage 2: Whitelist
if tool not in phase.tools:
return deny(phase, tool)
58 # Stage 3: Phase Guards
for g in phase.guards:
if not g(call): return deny()
71 # Stage 4: Tool Guards
for g in tool_guards[tool]:
if not g(call): return deny()
88 # Stage 5: Fall-through
return {"allowed": True}
------------------------------
102 # Denial Assembler
msg.phase = phase.name
msg.tools = phase.tools
msg.trans = phase.transitions
return KitsuneCard(msg)
OK
OK
OK
PASS
DENY
DENY
DENY
SHARED KITSUNE DENIAL MESSAGE ASSEMBLY LANE
01: TOOL CALL
edit(src/app.py)
02: WHITELIST
tool.lower() in
phase.tools
03: PHASE GUARDS
iterate over
phase.guards
04: TOOL GUARDS
phase.tool_guards
[tool]
05: VERDICT
ALLOWED: TRUE
CURRENT_PHASE
phase: PLAN
AVAIL_TOOLS
[read, search]
TRANSITIONS
[to_implement]
KITSUNE CARD
denied: forbidden
tool in phase
DEFAULT ALLOW FALL-THROUGH:
If no guard denies, step 5 grants execution.
NODE DETAILS
Description line 1
Description line 2