Skip to content

Welcome to ABS Platform Documentation

Welcome to the ABS Platform - a comprehensive Asset-Based Services Platform within the DIRAC framework ecosystem. This documentation is organized to serve three distinct audiences:

🏢 For Business Leaders

Understanding the business value and market opportunity

🏗️ For System Architects

Understanding the technical architecture and design decisions

👨‍💻 For Developers

Implementation guides and technical specifications


Quick Navigation

🚀 New to ABS Platform?

Start with Business Overview to understand the platform's purpose and value.

🔧 Planning an Implementation?

Review Architecture Overview for technical design decisions.

💻 Ready to Code?

Jump to Quick Start for immediate development setup.


About This Documentation

This documentation follows a three-tier approach: - Business: Focus on value, outcomes, and strategic decisions - Architecture: Focus on design, patterns, and system interactions
- Developer: Focus on implementation, code, and operational details

Each section is designed to be independent while providing clear pathways to deeper technical detail when needed.

Overview

The ABS Platform is a comprehensive solution for managing battery swap services with advanced state management using optimized O(1) Finite State Machines (FSMs) and data-driven agents for reactive state handling. Built on a microservices architecture with GraphQL APIs and event-driven messaging within the DIRAC ecosystem.

🎯 Key Features

Optimized FSM Implementation

  • O(1) Performance: Precomputed transition maps for constant-time lookups
  • Mathematically Correct: Implements pure functions 𝑓:(𝑆,Σ)→(𝑆′,𝑃(Λ))
  • Template/Instance Pattern: ServicePlanTemplate → ServicePlan instance model
  • Set-Based Outputs: Supports multiple outputs per transition
  • GraphQL-First: Complete API with type safety

Data-Driven Agent Architecture

  • Function-Based: Agent logic as pure TypeScript functions
  • Plugin System: Extensible agent registration and execution
  • Context Injection: Rich context with utilities for complex calculations
  • Type Safety: Strongly typed with generics for all state types
  • Battery-Centric FSM: Asset tracking with BATTERY_ISSUED ⟷ BATTERY_RETURNED cycles

🏗️ DIRAC Framework Integration

Architecture Overview

The ABS Platform operates within the DIRAC Framework with six core components: - UXI: Unified User Experience Platform - FED: Federated API Layer
- BRO: Messaging Broker Exchange - ARM: Asset Relations Management - ABS: Asset-Based Services (this platform) - BIA: Business Intelligence & Analytics

Technology Stack

  • Backend: Node.js + TypeScript + Apollo GraphQL Server
  • Frontend: React.js with GraphQL client
  • Database: TypeORM with relational database
  • Messaging: MQTT for IoT, RabbitMQ for internal events
  • Workflow: n8n for external system integration
  • Deployment: Kubernetes
  • External Systems: Odoo CRM/Finance integration

📚 Documentation Navigation

🏗️ Architecture & Design

🔧 Developer Guides

📊 Current Status & Implementation

🚀 Quick Start Guide

For Understanding the Platform

  1. Start Here: Agent Specification Guide - Core concepts and agent development
  2. Architecture: ABS Hub Ecosystem - System overview
  3. Agents: Agent Specification Guide - How to build agents

For Implementation

  1. Messaging: Messaging Convention Dictionary - Communication patterns
  2. FSM Design: FSM Duality Framework - State machine principles
  3. Architecture Overview: Architecture Overview - System architecture and implementation status

🔋 Battery Swap Service (BSS)

The BSS is our flagship implementation demonstrating the platform's capabilities:

  • Complete business logic for battery swap operations
  • Integration with Odoo CRM/Finance systems
  • MQTT integration for IoT device communication
  • Multi-agent orchestration for complex workflows

Learn more about BSS implementation →

🎯 Current Status: Phase 5 Ready

✅ Completed Implementation

  • Core FSM Engine: O(1) performance with precomputed transition maps
  • GraphQL Schema: Complete schema with 840 lines of type definitions
  • ServicePlanTemplate System: Country-specific service product definitions
  • Battery Swap Service (BSS): Complete implementation with 8 canonical agent functions
  • Schema Alignment: All setup data files corrected and validated
  • Template-Driven Design: ServicePlanTemplate provides immutable configuration

🔧 Current Focus

  • BSS Agent Functions: Implementing canonical agent API
  • DIRAC Integration: FED/BRO/ARM interaction patterns
  • Odoo Integration: Commercial operations and subscription management

💻 Contributing

This documentation is built with MkDocs Material and is automatically deployed via GitHub Actions. For development and contributing guidelines, see our development documentation.


Need help? Check our development guide or explore the specific documentation sections above.