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
Microgrid Backlog 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)
            • 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
            • Context Summary
            • Canonical Scoped Operating Envelope View and History
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Scoped External Capability Binding and Status
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Competing Capability Source Conflict Handling
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Read-Only Microgrid Topology View
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Editable Topology and Terminology Alignment
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Invalid Topology Edit Rejection
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Conflicting Topology Edit Detection
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Node and Aggregate Limit Management
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Physical Rating Guardrail in Limit Editing
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Scheduled Limit Visibility Through TOU Reuse
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Telemetry Fallback Visibility Under Degradation
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Deterministic Reason Code Replays
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Depot Simulator Topology and Policy Model
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Depot Simulator Degraded Telemetry and Compatibility Scenarios
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Legacy Rebalance Path with Visible Microgrid Effect
              • User Story
              • Dependencies
              • Acceptance Criteria
            • Legacy TOU Path Reflected in Canonical Microgrid View
              • User Story
              • Dependencies
              • Acceptance Criteria
          • 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
    • Canonical Scoped Operating Envelope View and History
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Scoped External Capability Binding and Status
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Competing Capability Source Conflict Handling
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Read-Only Microgrid Topology View
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Editable Topology and Terminology Alignment
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Invalid Topology Edit Rejection
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Conflicting Topology Edit Detection
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Node and Aggregate Limit Management
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Physical Rating Guardrail in Limit Editing
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Scheduled Limit Visibility Through TOU Reuse
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Telemetry Fallback Visibility Under Degradation
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Deterministic Reason Code Replays
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Depot Simulator Topology and Policy Model
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Depot Simulator Degraded Telemetry and Compatibility Scenarios
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Legacy Rebalance Path with Visible Microgrid Effect
      • User Story
      • Dependencies
      • Acceptance Criteria
    • Legacy TOU Path Reflected in Canonical Microgrid View
      • User Story
      • Dependencies
      • Acceptance Criteria
    1. Home
    2. Work
    3. Backlog
    4. Microgrid

    Microgrid Backlog Stories¶

    Context Summary¶

    • This folder holds microgrid stories that are aligned to the microgrid system design but are not currently assigned to an active project or milestone.
    • System design reference: docs/reference/system-design/microgrid.md.

    Canonical Scoped Operating Envelope View and History¶

    User Story¶

    As an operations user, I want active and historical operating-envelope data visible through canonical microgrid surfaces so that externally supplied constraints are understandable without relying only on legacy circuit values.

    Dependencies¶

    • Operating Envelope Updates Legacy Circuit Capacity for Managed Scope and Legacy UI

    Acceptance Criteria¶

    • The canonical microgrid read surface exposes the active operating envelope associated with a microgrid or a scoped subtree, including effective capacity, validity window, status, and target scope.
    • Operators can inspect operating-envelope source metadata and history without reading raw OSCP payload logs.
    • When the interim legacy circuit available-capacity path is still active, the canonical operating-envelope view remains consistent with the effective legacy circuit value being applied.
    • Expired, withdrawn, and superseded operating envelopes remain auditable through the canonical microgrid view.

    Scoped External Capability Binding and Status¶

    User Story¶

    As an operations user, I want external capability state to be bindable to a scoped part of a microgrid so that different controllers or control modes can be represented for different sections of one site.

    Dependencies¶

    • External Capability Status to Microgrid Card
    • Read-Only Microgrid Topology View

    Acceptance Criteria¶

    • The canonical microgrid model supports binding an external capability status source to either the whole microgrid or a scoped subtree rooted at one node.
    • The product can represent different external capability states for different scoped parts of the same microgrid without creating additional microgrid identities.
    • UI status surfaces identify the target scope for any scoped external capability state rather than implying that all status is site-wide.
    • Before a generic inbound idempotency mechanism exists, repeating the same scoped external event reference may append duplicate stored history temporarily, but it must not create a conflicting visible latest scoped status outcome for the same capability and scope.

    Competing Capability Source Conflict Handling¶

    User Story¶

    As a support or configuration user, I want competing source-device bindings for the same microgrid capability to fail clearly so that one device cannot silently take over control ownership from another.

    Dependencies¶

    • External Capability Status to Microgrid Card

    Acceptance Criteria¶

    • Attempting to configure or accept a second active source device for the same microgrid + capability returns a deterministic conflict outcome rather than silently reassigning the active control point.
    • The conflict outcome identifies the microgrid, capability type, existing active source, and incoming conflicting source clearly enough for support or configuration users to diagnose the problem.
    • The previously active source binding remains unchanged after the conflict outcome.
    • The product exposes a deterministic remediation path for resolving the competing-source conflict.

    Read-Only Microgrid Topology View¶

    User Story¶

    As an operations user, I want to open a dedicated Microgrid topology view so that I can inspect the canonical node tree and attached assets for a site beyond the MVP balancing summaries.

    Dependencies¶

    • Derived Hierarchical Microgrid Structure for Load Balancing

    Acceptance Criteria¶

    • Opening the Microgrid topology view for a valid site renders the canonical node tree and attached assets from one backend response.
    • The view exposes microgrid identity, depot identity, topology version where applicable, and last-updated context for the currently displayed topology.
    • Every displayed attached asset is rendered against a valid visible node in the same topology view.
    • Opening the topology view for an unknown or unresolved microgrid shows a deterministic not-found state.

    Editable Topology and Terminology Alignment¶

    User Story¶

    As an operations user, I want the Manage UI to show microgrid node topology and updated terminology so that I can eventually configure and inspect the model directly.

    Dependencies¶

    • Read-Only Microgrid Topology View

    Acceptance Criteria¶

    • Relevant UI surfaces show Microgrid, Microgrid Node, and Node Limit terminology consistently.
    • The topology view renders node hierarchy and attached assets from the canonical topology response.
    • Topology-editing entry points, when introduced, are presented using the new terminology rather than legacy circuit-centric naming.
    • Legacy terminology does not appear in updated microgrid topology-management surfaces.

    Invalid Topology Edit Rejection¶

    User Story¶

    As an operations user, I want invalid topology edits to be rejected in the topology editor so that unsafe electrical structures cannot be saved.

    Dependencies¶

    • Editable Topology and Terminology Alignment

    Acceptance Criteria¶

    • Saving a topology edit that introduces a cycle is rejected with a deterministic validation error visible to the operator.
    • Saving a topology edit that leaves an orphan node is rejected with a deterministic validation error visible to the operator.
    • A valid topology edit is accepted and the refreshed topology view reflects the new saved structure.
    • After a failed save, the visible topology remains unchanged and no partial edit is shown as applied.

    Conflicting Topology Edit Detection¶

    User Story¶

    As an operations user, I want conflicting topology edits to fail clearly in the UI so that concurrent updates do not overwrite each other silently.

    Dependencies¶

    • Invalid Topology Edit Rejection

    Acceptance Criteria¶

    • Saving a topology edit from the most recent topology version succeeds normally.
    • Saving a stale topology edit from a second browser session or stale page state is rejected with a visible conflict outcome.
    • The conflict outcome includes enough detail for the operator to understand that the topology has changed since it was loaded.
    • After reloading the latest topology, the operator can resubmit the intended edit successfully.

    Node and Aggregate Limit Management¶

    User Story¶

    As an operations user, I want to manage node and microgrid aggregate limits so that I can configure enforceable operating constraints directly rather than only deriving them from existing asset configuration.

    Dependencies¶

    • Read-Only Microgrid Topology View

    Acceptance Criteria¶

    • The operator can create and update both node-scoped and microgrid-aggregate limits through the product surface used for limit management.
    • After save, the active policy set is visible for the selected microgrid with scope, target, and schedule context.
    • Invalid limit inputs are rejected with deterministic validation feedback visible to the operator.
    • Reloading the same microgrid shows the saved active limits exactly as applied.

    Physical Rating Guardrail in Limit Editing¶

    User Story¶

    As an operations user, I want limit editing to enforce physical ratings so that configured caps cannot exceed the actual capability of the node.

    Dependencies¶

    • Node and Aggregate Limit Management

    Acceptance Criteria¶

    • Entering a node hard cap above the physical rating is rejected with deterministic validation feedback on save.
    • Entering a node hard cap equal to or below the physical rating is accepted and visible after refresh.
    • The validation feedback identifies the node and the limit field that caused the rejection.
    • The visible policy value after a successful save matches the accepted cap exactly.

    Scheduled Limit Visibility Through TOU Reuse¶

    User Story¶

    As an operator or legacy integration user, I want TOU-driven scheduled caps to be visible on the microgrid so that existing scheduling behavior remains demonstrable during migration.

    Dependencies¶

    • Node and Aggregate Limit Management

    Acceptance Criteria¶

    • When a mapped TOU schedule becomes active, the visible active limit for the affected node or microgrid reflects the scheduled cap.
    • When no TOU schedule is active, the visible active limit falls back to the non-scheduled cap.
    • A legacy TOU write through the existing circuit path is reflected in the canonical microgrid limit view.
    • Ambiguous TOU-to-node mappings fail with deterministic error feedback to the caller and do not produce a hidden state change.

    Telemetry Fallback Visibility Under Degradation¶

    User Story¶

    As a support operator, I want degraded telemetry to produce visible fallback-demand behavior so that safe enforcement under data loss can be demonstrated.

    Dependencies¶

    • Manage UI Cycle and Breach Visibility

    Acceptance Criteria¶

    • In a simulator or controlled degraded-telemetry scenario, fresh telemetry results in visible source_mode=MEASURED on cycle or breach details.
    • In a simulator or controlled degraded-telemetry scenario, missing or stale telemetry results in visible source_mode=FALLBACK_DERIVED.
    • The operator can inspect which fallback inputs and thresholds were used for the visible outcome.
    • If fallback requirements cannot be satisfied, the visible cycle result fails safe with a deterministic reason code.

    Deterministic Reason Code Replays¶

    User Story¶

    As a support operator, I want repeated runs of the same scenario to show the same reason-code ordering so that diagnosis and alert handling are consistent.

    Dependencies¶

    • Manage UI Cycle and Breach Visibility

    Acceptance Criteria¶

    • Visible cycle results show reason codes ordered by the precedence defined in the specification.
    • Visible breach results show one deterministic primary reason code.
    • Re-running the same seeded or repeated-input scenario yields the same ordered reason-code list each time.
    • The ordering remains stable even if internal processing order changes.

    Depot Simulator Topology and Policy Model¶

    User Story¶

    As a QA or system test engineer, I want depot simulator profiles to represent microgrid nodes and limit policies so that system tests mirror the full microgrid domain behavior beyond the MVP derived-structure approach.

    Dependencies¶

    • Read-Only Microgrid Topology View
    • Node and Aggregate Limit Management

    Acceptance Criteria¶

    • Simulator profile configuration supports node hierarchy with parent-child relationships.
    • Simulator profile configuration supports attached assets linked to node identifiers.
    • Simulator supports loading node and aggregate policy inputs used by test scenarios.
    • Invalid simulator topology configuration is rejected before scenario start.

    Depot Simulator Degraded Telemetry and Compatibility Scenarios¶

    User Story¶

    As a QA or system test engineer, I want simulator scenarios for telemetry degradation and legacy alias paths so that rollout risks are validated end-to-end.

    Dependencies¶

    • Depot Simulator Topology and Policy Model
    • Telemetry Fallback Visibility Under Degradation

    Acceptance Criteria¶

    • Simulator can produce missing or stale telemetry patterns for targeted nodes.
    • Simulator scenarios can trigger both canonical microgrid rebalance requests and legacy circuit alias requests.
    • Scenario runs produce deterministic outputs for repeated seeded runs.
    • Scenario artifacts include enough output data to verify fallback source mode and reason-code behavior.

    Legacy Rebalance Path with Visible Microgrid Effect¶

    User Story¶

    As a legacy integration client, I want existing circuit rebalance calls to continue working and change visible microgrid state so that migration is non-breaking and demonstrable.

    Dependencies¶

    • Hierarchical Rebalance Across Grid and Charger Circuits
    • Manage UI Cycle and Breach Visibility

    Acceptance Criteria¶

    • POST /api/circuit/{circuit_id}/rebalance_load resolves to one microgrid_id plus one canonical scope and triggers one microgrid cycle.
    • The legacy response returns mapped identifiers and the resulting cycle is visible in the canonical microgrid status surfaces.
    • Unresolvable circuit aliases return 409 with CIRCUIT_ALIAS_NOT_RESOLVABLE.
    • Alias-path usage is auditable for migration tracking.

    Legacy TOU Path Reflected in Canonical Microgrid View¶

    User Story¶

    As a legacy integration client, I want existing circuit TOU endpoints to remain functional and update visible canonical microgrid limits so that policy migration can happen incrementally.

    Dependencies¶

    • Node and Aggregate Limit Management
    • Scheduled Limit Visibility Through TOU Reuse

    Acceptance Criteria¶

    • GET/POST /api/circuit/{circuit_id}/tou_limits continues to accept and return legacy contract shapes.
    • Legacy TOU writes update the mapped microgrid or node limit schedule behavior and the resulting active limit is visible through the canonical microgrid limit view.
    • Unsupported legacy scope mappings return deterministic 422 errors.
    • Legacy and canonical reads are consistent for the same mapped target.
    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.