Smart Shikka Policy Decision API Preview

dry_run preview_only decision_only persistence_off execution_off payment_off

What is the Policy Decision API?

The Policy Decision API is the central policy decision layer for Smart Shikka Core. Before any tool action is approved, planned, or executed, the request must pass through this decision engine. It determines whether the action is allowed as preview, requires owner approval, requires an execution plan, requires adapter selection, requires server-side key configuration, or is critically blocked. In this preview, all decisions are computed but never persisted and never unlock real execution.

Decision Matrix (9 outcomes)

OutcomeStatus
allow_previewAllowed
block_preview_onlyGated
requires_owner_approvalGated
requires_execution_planGated
requires_adapter_selectionGated
requires_server_side_keyGated
requires_auditGated
requires_rate_limitGated
critical_blockBlocked

Request Examples

Email validation preview
Decision: allow_preview (read-only validation, no network)
Phone OTP send attempt
Decision: requires_owner_approval + requires_execution_plan + requires_audit
WhatsApp send attempt
Decision: requires_owner_approval + requires_execution_plan + requires_adapter_selection
Live research attempt
Decision: requires_owner_approval + requires_execution_plan (Python disabled)
Payment mutation attempt
Decision: critical_block (payment cannot proceed)
Anshika agent tool request
Decision: preview decision only (no Anshika API call)

Decision Receipt Preview

In preview mode, decision receipts are generated as static previews only. They are not persisted, not signed, and not valid for execution. Future: persistent decision store with signed receipts.

Safety Guarantees

Future Unlock Plan

  1. Persistent decision store
  2. Signed decision receipts
  3. Role-based policy rules
  4. Adapter allowlist integration
  5. Approval workflow integration
  6. Safe execution plan integration
  7. Audit store integration

Policy decisions feed into the Tool Approval Workflow, Safe Execution Plan, and Tool Adapter Registry.

Version 2.1.2.0.266 · Phase: policy_decision_api_preview · PR: #267 · Smart Shikka