# Arupa AI

- **Event:** [Meta Global AI Developer Hackathon](https://cerebralvalley.ai/e/meta-ai-developer-hackathon)
- **When:** Oct 26, 12:00 PM – Nov 4, 9:00 PM (EST)
- **Where:** Online
- **Team:** [Ramanth Kumar Reddy Polu](https://cerebralvalley.ai/u/ramanthpolu)
- **GitHub:** https://github.com/RamanthArupa/mudrika
- **Demo video:** https://cap.so/s/ewb6rmd7q7bbx35
- **Gallery:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/5124

Mudrika (Sanskrit: signet ring, the seal that approves a payment and proves a document is genuine) is an open-source HTTP 402 payment protocol for AI agents, with a credential-verification service built on SAM 3.1.

The problem: Medaffin, our network for healthcare experts, must confirm every expert has a genuine degree and is registered. Today that means emailing a medical council, waiting days, and comparing scans by eye. The council does the work for payment, but mannually, and there is no audit trail.

How it works:
1. An expert uploads their registration certificate.
2. SAM 3.1 segments the seal, signature, and photo. Muse Spark reads the name, registration number, and issuer. Only these crops and fields leave Medaffin.
3. Medaffin's agent calls the issuer's paid lookup and receives HTTP 402 with a price and a one-time nonce.
4. Budget guards run in code first, then Muse Spark Open (Baseten) decides whether the lookup is worth it. The model can never spend beyond the coded budget.
5. The agent signs an Ed25519 voucher. The issuer verifies it and charges prepaid credits atomically (Redis Lua): no double charge, refunds exactly once on failure.
6. The issuer, which segmented every certificate it issued with SAM 3.1, near-matches crops and metadata and returns a signed result: Verified, Credentialing review, or Not verified. Borderline cases always go to a human reviewer.

Live demo (access code: mudrika-ab0f71): https://mudrika-medaffin.onrender.com
Try: genuine certificate (verified), altered certificate with a real name but a fake seal (sent to review), unknown registrant (not verified), a low budget (declined, nothing spent), and an issuer outage (refunded).

The repo runs fully offline with no keys. 45 tests pass in CI. MIT licence. The demo issuer and its certificates are fictional.

## More from Meta Global AI Developer Hackathon

- [Trailhead](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/5121)
- [Mobbs](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/5122)
- [SaySo_sakib](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/5123)
- [Vishisht Magan](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/5125)
- [Ethan Gritli](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/5126)
- [TareKV](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/5127)

---

Markdown version of https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/5124. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
