kye_decide() playground

Curl-friendly. SDK-friendly. Reset any time.

Live demoRun this demo at sandbox.kyeprotocol.com/playground.html; the same governed flow also runs in the terminal and the lab.

Construct an observed_action, choose a scenario for context, hit Decide. The shadow-mode evaluator runs the production precedence rules against the action and returns a signed decision envelope — all in your browser.

Plain Q&A

Plain Q&A

Short questions. Short answers.

  • Do I need to sign up? No.
  • Is this real? Yes. Real Workers. Real keys.
  • Can I see the source? Yes. The runtime is open.
  • Where does state go? Public sandbox DB. Resets daily.
  • Will it log my IP? No. Logs are scrubbed.
  • How many calls free? Up to 200 per hour.
  • Curl-friendly? Yes. Every endpoint.
  • Bring my own data? Yes. Drop a JSON. Try.

Plain take

Plain take

Try every endpoint. Sign every reply. No signup.

  • Real Workers. Real signatures.
  • Public test keys. Public test data.
  • Reset state with one click.
  • Curl-friendly. SDK-friendly.

Loading scenario…

Request

Try it now. Copy the curl.

Scenario context (provides PP + agent identity)

observed_action (JSON)

Decision envelope

Short take. Big idea.

POST /v1/runtime/decide → kye.pdp_decision.v1 …

// Decision JSON will appear here.

Precedence rules (reference)

Short take. Big idea.

  1. R-PROHIBIT-CLASS — action is in denied_actions for the PP → deny / denied_action_class
  2. R-AMOUNT-CAP — context.amount_gbp exceeds scope.amount_cap_gbp → require_approval / amount_cap_exceeded
  3. R-RISK-HIGH — context.risk_score ≥ 0.85 → deny / risk_threshold_exceeded
  4. R-REQUIRED-GATE-UNMET — required_gate set but gate_satisfied = false → require_approval
  5. R-MEANING-DRIFT-MATERIAL — meaning_drift === "material" → require_approval
  6. R-ASSURANCE-FLOOR — assurance_level < min_assurance → require_approval
  7. R-CONSENT-MISSING — PP requires consent + no receipt → deny / consent_required
  8. R-EXTERNAL-EXPORT — external_export === true → quarantine
  9. R-REDACTION-REQUIRED — unredacted_fields overlaps with PP's redaction_required → quarantine
  10. R-ALLOW-DEFAULT — otherwise → allow / policy_allow_default

kye-sandbox playground · in-browser engine · no backend ← All scenarios