kosha
Smart offline payments, seamless anytime.
Created on 1st October 2025
•
kosha
Smart offline payments, seamless anytime.
Description of your solution
Description of Our Solution
Our solution is a mobile-first financial application designed to provide robust offline payments and proactive, agentic intelligence for urban and semi-urban users who frequently transact in environments with unreliable connectivity The primary users are groups—like roommates or travel buddies —who need a seamless way to split bills and manage shared expenses or people in rural areas with very less connectivity or people who wants to be a part of self help groups (Circles).
The product blends two core strengths: reliable local queuing and P2P delivery with a local-first, human-in-the-loop Agentic AI that fundamentally reduces friction and prevents errors.
1. The Offline-First Foundation & Synchronization
The application is built on an event-sourcing approach, ensuring the application remains functional regardless of network status:
Local Event Queue: Every user action—such as creating a transaction (create_tx) or a request (request_tx) —is recorded as an immutable event in a durable local store. Transactions are marked with statuses like pending (recorded locally, not synced), synced (uploaded to the server), and confirmed (server-processed, final).
Robust Reconciliation: When connectivity returns, the local queue synchronizes safely to the Supabase-backed canonical storage. An immutable tx_id prevents duplication on replay after reconnection (idempotency), with the server maintaining the final state
Local P2P Delivery: For nearby friends, the application prioritizes instant transaction exchange by using local networking (mDNS/WebRTC/Bluetooth) to discover and authenticate devices. This allows events to sync immediately when the internet is spotty but devices are physically close.
2. The Agentic AI Core: Intelligence Across Three Layers
The Agent is the product's primary innovation. It operates locally (on-device), running a hybrid of rules and lightweight machine learning to ensure instant, personalized assistance, even when offline:
A. Reactive Safety Layer (Rules)
This layer runs fully offline and deterministically. It is responsible for immediate safety checks, blocking or requesting confirmation for dangerous-looking actions like double sends or out-of-range large transfers.
B. Proactive Assistance Layer (Heuristics + Tiny ML)
This is where the agent provides personalized value by observing behavior and balance states.This layer includes all existing core functionalities:
Circle Management: It suggests auto-split planning & rebalancing actions when a payment occurs, maintaining the circle ledger.
Financial Coaching: It provides budget nudges and categorization and detects spending anomalies (deviation beyond learned thresholds
Reminder Scheduling: It schedules proactive reminders for pending requests or late payments.
Primary Innovation: Proactive Local Delivery Planning (P2P Prediction)
We significantly enhance the Proactive Assistance Layer by having the agent predict the most likely successful P2P opportunity.
The Prediction: When a transaction is marked as pending because the recipient is offline, the Agent analyzes historical co-location/time patterns between the sender and receiver
The Suggestion: It proactively suggests the next likely time window for a successful P2P sync. This allows the user to schedule a local push notification prompt to the recipient, transforming a pending sync into a probable, instant, face-to-face transfer, effectively reducing the time-to-settlement for offline payments.
C. Learning Loop & Personalization (Cloud-Assisted)
The agent provides explainable recommendations(e.g., "I suggested this because..."). User decisions (accept/reject) are recorded as feedback .With explicit user consent, anonymized features are uploaded for cloud aggregation to train stronger personalization models. This ensures continuous improvement, with updated rules or model deltas pushed back to the local device.
3. Security, Privacy, and Control
Privacy is local-first.
Raw transaction details stay on the device by default,
Tracks Applied (1)
