Google Sign-In Required

Use your company Google account to access the BetterFleet private content.

Back to private home

BetterFleet Support Private
Skip to content
BetterFleet Dev Wiki
Complex Circuit Load Balancing Deliverables (Stories)
Initializing search
    bf-dev
    • Home
    • Process
    • Products
    • Reference
    • Decisions
    • Work
    • Operations
    bf-dev
    • Home
      • Process Handbook
      • BetterFleet Workflow Map
      • Product Development System
      • Product Engineering Workflow
        • Process Workflows
        • Work Intake and Weekly Planning
        • Product Engineering Workflow in Linear
        • Product Engineering Delivery
        • Agent Guidance
        • Workflow
        • Skills
        • Skill Sources
        • Process Guides
        • GitLab Feature Flags
        • In-App Docs Authoring
        • Release Notes
        • Process Templates
        • Release Plan: <title>
      • Process Publishing
      • Product overview
        • General Reference
          • Core Domain Training
          • System Topology
          • Two-Axis Ontology Model
          • Ontology Primer
          • Worked Example
          • Evidence, Ownership, and Lineage
          • Energy Management
          • Standards and Protocol Map
          • Charging, Roaming, and Commercial Model
          • Charge Planning and Operations
          • Cross-Cutting Domains
          • Domain Coverage Matrix
        • BetterFleet Product Ontology
        • Core Operations Data Ontology
        • BetterFleet R&D Plan
        • Index
        • Architecture
        • Manage Product Capabilities
        • Manage Data and State
        • Manage Service Interaction Flows
        • Manage Reference
        • Manage Internal Application Diagrams
          • Manage Authorization And Permissions
          • bf-manage-core Auth and Authorization Model
          • Manage Authorization and Permissions
          • bf-manage-web Auth and Permission Model
          • Manage Service Catalog
          • bf-depot-sim
          • bf-digital-twin (Manage Role)
          • bf-fleet-health
          • bf-manage-connect
          • bf-manage-core
          • bf-manage-incidents
          • bf-manage-roaming
          • bf-manage-sitepwrmon
          • bf-manage-web
          • bf-schedule-creator (Manage Role)
          • bf-support-microsite
          • bf-telematics
        • Index
        • Architecture
        • Plan Reference
        • Plan Internal Application Diagrams
        • Plan Migration and Flags
        • Plan Simulation Request Lifecycle
          • Plan Service Catalog
          • bf-bnl-schedule-analysis-compute
          • bf-bnl-settings
          • bf-bnl-ui
          • bf-digital-twin (Plan Role)
          • bf-route-modelling
          • bf-schedule-creator (Plan Role)
      • Where to Ask Product Questions
      • Reference
        • Platform Reference
        • Platform Architecture
        • Script Runtime Model
        • Compose Profiles and Modes
        • Repository Map
        • Monolithic Git Transition FAQ
        • Monolithic Git Sizing
        • CI and Release Integration
        • Shared Reference
        • Shared Infrastructure Architecture
        • Secrets and Env Strategy
        • Vendors and Local Dependencies
        • System Reference
        • Cloud Data Dependencies
        • Ports and URLs
        • Service Matrix
          • API Docs
          • OCPI API Docs
          • OCPP API Docs
          • OSCP API Docs
          • VDV API Docs
          • Yard State API Docs
        • System Design
        • System Design: BBA Microgrid Controller Generic Packet Translation
        • System Design: Depot Simulation
        • System Design: IoT Sensor Packet
        • System Design: Microgrid Energy Orchestration
          • System Design: OCPP Profile 3 And ISO 15118 PKI
          • Architecture: BetterFleet OCPP Profile 3 and ISO 15118 PKI
          • Specification: BetterFleet OCPP Profile 3 and ISO 15118 Certificate Lifecycle Management
          • System Design: On-Prem Control
          • Challenge
          • Specification: BetterFleet On-Prem Continuity Control
          • System Design: OSCP
          • OSCP Protocol Documentation
          • Depot Sim Testing Requirements
          • System Design: OSCP Flexibility Provider Domain
      • Decisions
        • Architecture Decision Records
        • 0001 - Record architecture decisions
        • 0002 - Cognito for Authentication and Authorisation
        • 0003 - AWS Amplify for Authentication
        • 0004 - DynamoDB for default database
        • 0005 - Data Persistence
        • 0006 - Trunk-Based Development
        • 0007 - Generalised principle for automation
        • 0008 - Naming Repositories, Services, and URLs
        • 0009 - Use Timezone Aware DateTimes and UTC
        • 0010 - Use semantic release
        • 0011 - Centralized feature flag repository
        • 0012 - Use Named Exports in Storybook
        • 0013 - RESTful TITLE GraphQL
        • 0014 - Service Granularity
        • 0015 - Async/co-routine exception handling pattern
        • 0016 - Logging & log levels
        • 0017 - Instantiated Models
        • 0018 - Repository Pattern for Database Access
        • 0019 - Use of Design Tokens in TypeScript React Application
        • 0020 - API backwards compatibility and versioning
        • 0021 - Alembic Migration strategy
        • 0022 - Consistent react-hook-form usage
        • 0023 - Domain Event-Driven Architecture
        • 0024 - Domain Event Bus Tech Stack
        • 0025 - No enum types in DB table columns
        • 0026 - In-Memory Ormar Stores for Repository testing
        • 0027 - Storing Tab State in Query and Local Storage
        • 0028 - Adopt OpenTelemetry Semantic Conventions for Structured Logging
        • 0029 - Adopt RFC 9457 for HTTP Error Responses
        • 0030 - Use GitLab registry and Terraform state for ECS services
        • 0031 - Adopt DDD, Hexagonal Architecture, and CQRS for Python Domain Services
      • Work
        • Active Work
          • Work: Bba Microgrid Controller
          • Implementation Specification: BBA Microgrid Controller
          • BBA Microgrid Controller Deliverables (Stories)
          • Work: BFDev Monolithic Git
          • Challenge
          • Specification: BFDev Monolithic Git v2
          • BFDev Monolithic Git v2 Stories
          • Work: Complex Circuit Load Balancing
          • Implementation Specification: Complex Circuit Load Balancing
          • Complex Circuit Load Balancing Deliverables (Stories)
            • Context Summary
            • Load-Balancer Complex Power Node Support for Connector Strategies
              • User Story
              • Linear Ref
              • Dependencies
              • Acceptance Criteria
            • Complex Microgrid Representation, Display, and Load-Balancer Projection
              • User Story
              • Linear Ref
              • Dependencies
              • Acceptance Criteria
            • Load-Balancer Complex Power Node Support for Charger-Based Strategies
              • User Story
              • Linear Ref
              • Dependencies
              • Acceptance Criteria
            • Microgrid Status Summary View
              • User Story
              • Linear Ref
              • Dependencies
              • Acceptance Criteria
            • Manage UI Cycle and Breach Visibility
              • User Story
              • Linear Ref
              • Dependencies
              • Acceptance Criteria
            • WA-PTA Complex Load-Balancing Validation Scenario
              • User Story
              • Linear Ref
              • Dependencies
              • Acceptance Criteria
            • COR-10 and COR-11 Consolidation Review
          • Work: Dispatch Reliability and Reconciliation
          • Challenge
          • Specification: Dispatch Reliability and Reconciliation
          • Dispatch Reliability and Reconciliation (Unit User Stories)
            • Dispatch populated vehicle cards grey surface snapshot
            • Dispatch Visual Review
          • Work: Enable Scheduled Managed Charger Access
          • Challenge: Enable Scheduled Managed Charger Access
          • Specification Exploration Dossier: Enable Scheduled Managed Charger Access
          • Specification Review: Enable Scheduled Managed Charger Access
          • Specification: Enable Scheduled Managed Charger Access
          • Work: Guided Cut-Off and Release Orchestration
          • Specification: Guided Cut-Off and Release Orchestration
          • Guided Cut-Off and Release Orchestration (Unit User Stories)
          • Work: Production Deployment Validation
          • Challenge
          • Work: Scheduled Report Parity
          • Specification: Scheduled Report Parity
          • Work: Telematics
          • Telematics EventBridge Path
          • Telematics Ingress Architecture
          • Specification: Telematics Migration into bf-manage-core with 5-Minute Freshness and Health Visibility
          • Telematics Core Migration MVP (Implementation-Time BDD)
          • Work: Vector Derms
          • Implementation Specification: Vector DERMS
          • Vector DERMS Deliverables (Stories)
          • Work: Visiting Vehicle Charging Visibility
          • Specification: Visiting Vehicle Charging Visibility
          • Visiting Vehicle Charging Visibility (Unit User Stories)
          • Work: Workspace Owned Stripe Roaming
          • Specification: Workspace-Owned Stripe Credentials for Roaming Payments
        • Backlog Work
          • Work: Microgrid
          • Microgrid Backlog Stories
          • Work: Mobile Ops Companion
          • Challenge
          • Specification: Mobile Operations Companion v1
          • Mobile Operations Companion Deliverables (Stories)
          • Work: Oscp
          • OSCP Backlog Stories
        • Archived Work
          • Work: Code Canonical Orchestration
          • Challenge
          • Specification: Product Engineering Workflow
          • Product Engineering Workflow Deliverables (Unit User Stories)
          • Work: Release Notes Automation
          • Release Plan: Release Notes Automation
          • Release Notes Automation Backlog Stories
      • Operations
      • Onboarding Runbook
        • Operations Runbooks
        • Production Hotfix Release
        • Staging Hotfix Release
        • Manage Staging Release Validation
        • Terraform Plan Dry Runs
        • Operations Tooling
        • Code Indexing
        • Operations Evidence
        • Database Restoration Test Report
      • Daily Operations Runbook
      • Testing Guide
      • Troubleshooting
    • Context Summary
    • Load-Balancer Complex Power Node Support for Connector Strategies
      • User Story
      • Linear Ref
      • Dependencies
      • Acceptance Criteria
    • Complex Microgrid Representation, Display, and Load-Balancer Projection
      • User Story
      • Linear Ref
      • Dependencies
      • Acceptance Criteria
    • Load-Balancer Complex Power Node Support for Charger-Based Strategies
      • User Story
      • Linear Ref
      • Dependencies
      • Acceptance Criteria
    • Microgrid Status Summary View
      • User Story
      • Linear Ref
      • Dependencies
      • Acceptance Criteria
    • Manage UI Cycle and Breach Visibility
      • User Story
      • Linear Ref
      • Dependencies
      • Acceptance Criteria
    • WA-PTA Complex Load-Balancing Validation Scenario
      • User Story
      • Linear Ref
      • Dependencies
      • Acceptance Criteria
    1. Home
    2. Work
    3. Active
    4. Complex circuit load balancing

    Complex Circuit Load Balancing Deliverables (Stories)¶

    Context Summary¶

    • Product area: BetterFleet Manage.
    • Primary systems: bf-manage-core (microgrid derivation + hierarchical balancing), bf-manage-web (operator UX), and seeded or simulator-backed site scenarios for demonstrable outcomes.
    • Scope basis: docs/work/active/complex-circuit-load-balancing/spec.md.
    • Delivery intent: thin, demonstrable slices that show visible value through load-balancing behavior or UI state, while allowing the smallest package-level foundation slice when it is the clean prerequisite for later product-visible work.
    • MVP focus: build a derived in-memory complex microgrid structure over existing site data, anchored to the persisted microgrid as the site root and the persisted first-level GRID_CONNECTION nodes created in BBA, then use explicit existing circuit and charger ratings to enforce hierarchical limits during rebalance before investing in persistent topology-management features.

    Load-Balancer Complex Power Node Support for Connector Strategies¶

    User Story¶

    As a load-balancing engineer, I want the load-balancer package to accept a hierarchical complex power node structure derived from the site microgrid so that connector-based strategies can allocate power against realistic electrical constraints without depending on BetterFleet's full microgrid model.

    Linear Ref¶

    • COR-10

    Dependencies¶

    • Microgrid Provisioning and Management

    Acceptance Criteria¶

    • The load-balancer package accepts a hierarchical power-node input shape that mirrors the complex microgrid structure required for balancing while containing only the fields needed for allocation and constraint evaluation.
    • The power-node input can represent at least the microgrid root, first-level GRID_CONNECTION nodes, charger-circuit branches, and downstream charging assets with their effective electrical limits and parent-child relationships.
    • Connector-based load-balancing strategies use the hierarchical power-node input when calculating allocations.
    • For a WA-PTA-style hierarchy, package-level allocation logic respects grid-connection, charger-circuit, and downstream charging limits together.
    • Existing supported connector-based behavior remains deterministic for sites that do not require the richer hierarchy.

    Complex Microgrid Representation, Display, and Load-Balancer Projection¶

    User Story¶

    As an operations user, I want BetterFleet to represent and display a complex microgrid and project it into the load-balancer power-node structure so that complex sites can be inspected in-product and passed through the existing load-balancing flow.

    Linear Ref¶

    • COR-11

    Dependencies¶

    • Load-Balancer Complex Power Node Support for Connector Strategies

    Acceptance Criteria¶

    • For a site with a persisted microgrid, the product expands the representation beyond the persisted root and first-level GRID_CONNECTION nodes to derive enough complex structure to represent charger-circuit branches and downstream charging assets.
    • A read-only Manage UI surface or diagnostic summary shows enough of the complex microgrid hierarchy for an operator to confirm the expected grid-connection-to-branch-to-charger structure without editing it.
    • The product derives a load-balancer power-node structure as a subset projection of the complex microgrid and passes that projection to the existing load-balancing entry points.
    • Limits in the projected power-node structure come from the applicable existing rating sources used by the current load-balancing path: top-level circuit default/safe operating capacities, downstream circuit default/safe operating capacities, and charge-point or connector maximum ratings.
    • When an active OperatingEnvelope is present, the projected power-node structure uses the most restrictive effective constraint before invoking the load-balancer package.
    • If the existing site data cannot be resolved into a valid complex microgrid or load-balancer projection, the product returns a deterministic validation or unsupported-topology outcome.

    Load-Balancer Complex Power Node Support for Charger-Based Strategies¶

    User Story¶

    As a load-balancing engineer, I want charger-based strategies to use the same hierarchical complex power node structure as connector-based strategies so that sites using charger control modes enforce realistic grid and branch constraints during rebalance.

    Linear Ref¶

    • COR-35

    Dependencies¶

    • Complex Microgrid Representation, Display, and Load-Balancer Projection

    Acceptance Criteria¶

    • For charger-based strategies, the load-balancer package accepts and uses a hierarchical power-node input shape derived from the complex microgrid with charge-point leaves and the same ancestor grid-connection and charger-circuit structure already used for connector-based strategies.
    • For a WA-PTA-style hierarchy, charger-based allocation respects grid-connection, charger-circuit, and charge-point limits together.
    • The current product load-balancing entry points pass the existing complex-microgrid projection into charger-based rebalance flows using the same rating sources already used by the current charger-based path.
    • Existing charger-based behavior remains deterministic for sites that do not require the richer hierarchy or where no supported complex topology projection is available.
    • Connector-based strategies continue to behave unchanged when charger-based support is added.

    Microgrid Status Summary View¶

    User Story¶

    As an operations user, I want a Microgrid status summary view for complex sites so that I can see the latest cycle outcome and which part of the electrical hierarchy is constraining the site.

    Linear Ref¶

    • COR-12

    Dependencies¶

    • Complex Microgrid Representation, Display, and Load-Balancer Projection

    Acceptance Criteria¶

    • Opening the Microgrid status summary for a complex site shows the latest cycle outcome, current site-level allocation, and current branch-level constraint context.
    • When a grid or charger-circuit node constrains the cycle, the summary identifies that node and shows limit-versus-demand context.
    • Sites with no completed rebalance yet render a deterministic empty summary rather than a broken or blank view.
    • Refreshing after a new rebalance shows the latest completed outcome consistently.

    Manage UI Cycle and Breach Visibility¶

    User Story¶

    As a support operator, I want cycle outcomes and hierarchical breach context visible in UI so that I can troubleshoot complex-site balancing without backend log access.

    Linear Ref¶

    • COR-13

    Dependencies¶

    • Complex Microgrid Representation, Display, and Load-Balancer Projection

    Acceptance Criteria¶

    • UI status surfaces show cycle outcome (APPLIED, CURTAILED, REJECTED) for a selected complex microgrid.
    • UI breach or constraint surfaces show deterministic reason code and the node context that constrained the cycle.
    • When a charger-circuit branch constrains downstream chargers, the UI makes that relationship visible without requiring raw topology inspection.
    • Refreshing the UI after rebalance reflects the latest cycle state without manual data reshaping.

    WA-PTA Complex Load-Balancing Validation Scenario¶

    User Story¶

    As a QA or delivery stakeholder, I want a repeatable WA-PTA-style validation scenario so that the complex hierarchical balancing behavior can be demonstrated end-to-end.

    Linear Ref¶

    • COR-14

    Dependencies¶

    • Complex Microgrid Representation, Display, and Load-Balancer Projection

    Acceptance Criteria¶

    • A seeded or simulator-backed site scenario represents one grid connection, four charger circuits, and four chargers per charger circuit.
    • Driving demand above charger-circuit and grid limits produces visible curtailment that matches the hierarchical balancing model.
    • Re-running the same scenario yields the same visible site and branch allocation outcomes.
    • Scenario artifacts or captured simulator outputs are sufficient for QA and stakeholder review without requiring backend log inspection.
    Made with Material for MkDocs
    BFDev Docs Assistant
    New conversation?
    Ask one focused question at a time, this helps the assistant provide accurate answers about what's been implemented in BetterFleet.