Skip to content
ahmadrayan-createPublic

About

Autonomous Solar-to-EV energy and micro-grid brokerage platform built with multi-agent reasoning, TypeScript, and React—matching rooftop solar surplus to EV riders with outage awareness and thermal safety guardrails.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

VOLTI — Autonomous Solar-to-EV Energy & Micro-Grid Broker

Tagline: "Your roof powers their ride."
Event: DevFest Pakistan 2026 Buildathon ("Agents of Change")
Origin: Air University Multan Campus


Canonical Architecture Registry (Prompt 1 Foundation)

Use these exact table, tool, agent, and route names in Prompts 2–5 without renaming.

1. Database Tables (/supabase/migrations/)

Table Name Role
disco_feeders MEPCO / LESCO / IESCO feeder status, load-shedding windows, and ambient temperature (°C)
solar_hosts Rooftop & campus Smart Socket hosts, inverter class (hybrid_storage / grid_tied), surplus kW, PKR/kWh rate, connector types, earthing & amp limits
rider_requests Multimodal Vision + Urdu/Roman-Urdu triage records produced by Agent 1
escrow_sessions Smart Socket 4-digit PIN, kWh metering, 15% platform fee / 85% host split, and reroute audit state
agent_execution_logs Judge-facing Mission Control trace rows (agent_name, step_order, tool_called, decision_output, latency_ms)

2. Agents & Tools (/lib/agents/)

  • agent_0_orchestrator (Mission Control Orchestrator — Conductor + Judge Transparency Layer)
    • route_to_agent
    • log_agent_execution
  • agent_1_vision_voice (Vision & Urdu Voice Triage Agent — Perception Layer)
    • parse_dashboard_vision
    • transcribe_urdu_intent
    • estimate_remaining_range
  • agent_2_arbitrage (Grid, Solar & Tariff Arbitrage Planner — Reasoning Layer)
    • query_nearby_solar_hosts
    • check_disco_feeder_schedule
    • calculate_net_arbitrage_score
  • agent_3_escrow_guardian (Escrow Broker, Safety & Re-Route Guardian — Action & Resilience Layer)
    • lock_escrow_session
    • issue_smart_socket_pin
    • trigger_autonomous_reroute
    • generate_urdu_voice_brief

Stubbed invocation entrypoint: callAgent(agentName, input) in /lib/agents/index.ts.

3. API Routes (/server.ts)

  • GET /api/health
  • GET /api/hosts
  • GET /api/feeders
  • GET /api/logs
  • POST /api/agents/invoke
  • POST /api/orchestrator/route (Agent 0 route_to_agent execution + agent_execution_logs tracing)
  • GET /api/requests
  • POST /api/requests (persists combined triage profile into rider_requests)
  • GET /api/sessions (reads escrow_sessions)

4. Workspace A Live Modules (Prompt 2)

  • Orchestration hook: /src/hooks/useVoltiDispatch.ts (dispatch.riderRequest, dispatch.arbitrageResult, dispatch.visionResult)
  • Composer & Recommendation UI: /src/components/RequestComposer.tsx, /src/components/HostRecommendationCard.tsx
  • Server-side Gemini Runner: /lib/agents/orchestratorRunner.ts, /lib/agents/geminiClient.ts

5. Workspace B Live Modules (Prompt 3)

  • Smart Socket & Escrow hook: /src/hooks/useSmartSocketSession.ts
  • Smart Socket & Chaos UI: /src/components/SmartSocketCard.tsx, /src/components/ChaosSimulatorButton.tsx, /src/components/workspaces/SmartSocketPlaceholder.tsx
  • Server-side Agent 3 Runner: /lib/agents/agent3Runner.ts

6. Data Access & Fallback (/lib/supabaseClient.ts, /lib/mockData.ts)

  • Connects to Supabase PostgreSQL via SUPABASE_URL and SUPABASE_ANON_KEY.
  • Automatically falls back to the seeded in-memory repository (mockStore) when Supabase credentials are absent.

About

Autonomous Solar-to-EV energy and micro-grid brokerage platform built with multi-agent reasoning, TypeScript, and React—matching rooftop solar surplus to EV riders with outage awareness and thermal safety guardrails.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages