Kavach KYA (Sovereign Agentic Spend Firewall)

v0.1.0
io.github.srigenmedia/kavach-kya Checked 3 days ago Published 15 days ago

Zero-custody agentic spend firewall with <50ms kill-switch, 1-tap 2FA holds & audit hash chains.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

kavach_check_spend_policy Check Agent Spend Policy

Evaluate an agent spend 5-tuple against Kavach KYA velocity limits, merchant allowlists, and prompt-injection guards prior to payment.

ParameterTypeDescription
amount_minor_or_units *integerTransaction amount in minor units
cart_mandate_hash *stringSHA-256 digest of cart mandate
kya_agent_id *stringUnique KYA agent identifier
merchant_vpa_or_recipient *stringRecipient VPA or merchant identifier
tenant_id *stringTenant identifier bound to operator token
user_intent_hash *stringSHA-256 digest of user intent
asset_or_currencystringISO currency or asset code
intent_summarystringOptional short intent summary for judge audit
payment_utr_or_refstringOptional external payment reference
tool_payload_summarystringOptional tool payload summary for judge audit

kavach_get_agent_status Get KYA Agent Status

Inspect a KYA agent's live eligibility_flag (0/1), daily velocity spend, and active policy limits.

ParameterTypeDescription
kya_agent_id *stringUnique KYA agent identifier
tenant_idstringOptional tenant identifier matching operator token

kavach_trigger_kill_switch Trigger Agent Kill-Switch

Atomically flip eligibility_flag = 0 in <50ms and propagate agent revocation to downstream 402-in-a-Box gateways.

ParameterTypeDescription
kya_agent_id *stringUnique KYA agent identifier
reason *stringMandatory audit reason for agent kill-switch
tenant_idstringOptional tenant identifier matching operator token