Skip to main content

Load-Balancing Entity Ontology

Power-System Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 16 November 2026
Audio Overview
flow "LoadBalancingEntity" v1.0

# ---------- IDENTITY ----------
identity.id: "power-system.load-balancing-entity"
identity.name: "Load-Balancing Entity"
identity.domain: "Engineering / Power-System Entities"
identity.language: "en-GB"
identity.representation: "Flow Algebra structural reasoning specification"

# ---------- AUTHORS ----------
authors.primary: "Mark Anthony Higgins"
authors.collaborator: "Sky — Recursive AI"
authors.source_credit: "Kireth Research"

# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/power-system-entities/load-balancing-entity-ontology.html"
source.title: "Load-Balancing Entity Ontology"
source.revised: "2026-08-04"
source.note: "Newly constructed Flow Algebra representation; not a verbatim extraction of embedded source code."

# ---------- PURPOSE ----------
purpose.primary: "Represent the monitoring, assessment and coordinated balancing of electrical demand and available supply."
purpose.scope: ["generation-demand matching", "phase loading", "feeder loading", "flexible demand", "storage dispatch", "constraint monitoring"]
purpose.exclusions: ["unverified live switching", "unapproved protection-setting changes", "automatic bypass of safety interlocks"]

# ---------- STATE_MODEL ----------
state.variables:
  - generation_available_MW
  - generation_dispatched_MW
  - demand_total_MW
  - imports_MW
  - exports_MW
  - storage_discharge_MW
  - storage_charge_MW
  - estimated_losses_MW
  - reserve_margin_MW
  - frequency_Hz
  - voltage_per_unit
  - feeder_loading_percent
  - phase_current_A
  - measurement_timestamp
  - measurement_quality
  - constraint_status
  - balancing_status
state.statuses: ["unobserved", "observing", "balanced", "imbalance_detected", "constrained", "corrective_action_pending", "verification_pending", "alarm", "safe_shutdown"]
state.initial: "unobserved"
state.transition:
  unobserved -> observing: "validated telemetry becomes available"
  observing -> balanced: "balance and equipment constraints are satisfied"
  observing -> imbalance_detected: "measured imbalance exceeds configured tolerance"
  imbalance_detected -> constrained: "candidate corrections conflict with equipment or operating limits"
  imbalance_detected -> corrective_action_pending: "authorised balancing action identified"
  corrective_action_pending -> verification_pending: "authorised action completed"
  verification_pending -> balanced: "post-action measurements confirm recovery"
  verification_pending -> alarm: "imbalance persists or data quality is insufficient"
  constrained -> alarm: "no permissible corrective action exists"
  alarm -> safe_shutdown: "approved protection or emergency procedure requires shutdown"

# ---------- ENTITIES ----------
entity "LoadBalancingEntity":
  is_a: "PowerSystemEntity"
  observes: ["ElectricalLoad", "Generator", "PowerGrid", "Microgrid", "PowerMeter"]
  coordinates: ["DispatchController", "EnergyStorage", "FlexibleLoad", "GridInterconnection"]
  constrained_by: ["ThermalRating", "VoltageLimit", "FrequencyLimit", "ProtectionScheme", "OperatingPermission"]
  produces: ["BalanceAssessment", "DispatchRecommendation", "ConstraintAlert", "AuditRecord"]

entity "BalanceAssessment":
  inputs: ["ValidatedMeasurements", "NetworkTopology", "OperatingLimits"]
  outputs: ["PowerMismatch", "PhaseImbalance", "FeederOverloadRisk", "ConfidenceScore"]

entity "DispatchRecommendation":
  properties: ["proposed_action", "expected_effect", "constraints_checked", "approval_status", "rollback_plan"]

# ---------- PATHWAYS ----------
pathway "AcquireMeasurements":
  input: ["meter_readings", "generation_telemetry", "storage_state", "network_state"]
  require: "timestamps and units are known"
  process: "normalise units; reject stale or implausible measurements; retain provenance"
  output: "ValidatedMeasurements"

pathway "ComputeActivePowerBalance":
  input: "ValidatedMeasurements"
  define: "supply_MW = generation_dispatched_MW + imports_MW + storage_discharge_MW"
  define: "use_MW = demand_total_MW + exports_MW + storage_charge_MW + estimated_losses_MW"
  define: "mismatch_MW = supply_MW - use_MW"
  require: "all terms use consistent boundaries, sign conventions and observation intervals"
  output: "PowerMismatch"

pathway "AssessPhaseBalance":
  input: "phase_current_A"
  require: "comparable phase measurements and applicable network configuration"
  define: "mean_current_A = mean(phase_current_A)"
  define: "max_phase_deviation_percent = 100 * max(abs(I - mean_current_A)) / mean_current_A"
  guard: "mean_current_A > 0"
  output: "PhaseImbalance"
  note: "Metric is indicative; acceptance limits depend on network design and operating standard."

pathway "AssessConstraints":
  input: ["PowerMismatch", "PhaseImbalance", "feeder_loading_percent", "frequency_Hz", "voltage_per_unit"]
  process: "compare measurements against configured, approved limits"
  output: ["ConstraintStatus", "PriorityAssessment"]

pathway "RecommendBalancing":
  input: ["ConstraintStatus", "available_generation", "flexible_demand", "storage_capability"]
  process: "rank permitted options by expected balance improvement, response time, losses and operational risk"
  require: "preserve reserve, voltage, thermal, frequency and protection constraints"
  output: "DispatchRecommendation"
  guard: "recommendation is advisory until authorised by the responsible operator or approved controller"

pathway "VerifyOutcome":
  input: ["authorised_action_record", "post_action_telemetry"]
  process: "recalculate mismatch and constraints; compare with pre-action baseline"
  output: ["VerifiedOutcome", "AuditRecord"]

# ---------- MINI_RECURSION_ENGINE ----------
recursion.engine: "LoadBalanceAssessmentLoop"
recursion.start: "AcquireMeasurements"
recursion.sequence:
  - "AcquireMeasurements"
  - "ComputeActivePowerBalance"
  - "AssessPhaseBalance"
  - "AssessConstraints"
  - "RecommendBalancing"
  - "VerifyOutcome only after an authorised action"
recursion.repeat_when: "new telemetry arrives or an operating state changes"
recursion.stop_when: "data invalid, authority absent, safety constraints violated or escalation required"
recursion.limit: "bounded by configured sampling and operational review intervals"
recursion.invariant: "never infer that a recommendation has been executed"

# ---------- INFERENCE_RULES ----------
rule "BalanceWithinTolerance":
  when: "abs(mismatch_MW) <= configured_balance_tolerance_MW AND constraints_satisfied"
  infer: "balancing_status = balanced"

rule "SupplyDeficit":
  when: "mismatch_MW < -configured_balance_tolerance_MW"
  infer: "supply_deficit_detected"
  recommend: "assess permitted generation, import, storage and demand-response options"

rule "SupplySurplus":
  when: "mismatch_MW > configured_balance_tolerance_MW"
  infer: "supply_surplus_detected"
  recommend: "assess permitted curtailment, storage charging, export or demand shifting"

rule "FeederOverload":
  when: "feeder_loading_percent > approved_feeder_limit_percent"
  infer: "thermal_constraint_violation"
  recommend: "escalate and assess approved redistribution or load reduction"

rule "PhaseImbalance":
  when: "max_phase_deviation_percent > approved_phase_imbalance_limit_percent"
  infer: "phase_loading_imbalance"
  recommend: "review phase allocation and applicable corrective options"

rule "PoorTelemetry":
  when: "measurement_quality != valid OR measurement_timestamp is stale"
  infer: "assessment_unreliable"
  prohibit: "autonomous balancing decision based solely on this assessment"

rule "UnsafeCorrection":
  when: "candidate_action violates any approved operating or protection constraint"
  infer: "candidate_action_rejected"

# ---------- CONFIDENCE ----------
confidence.inputs: ["measurement_freshness", "sensor_quality", "topology_validity", "model_fit", "constraint_completeness"]
confidence.method: "calibrated evidence-based scoring; do not invent numeric confidence"
confidence.low: "request inspection or additional measurements"
confidence.high: "eligible for operator review, not automatic authorisation"

# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
  "load balancing" ~= "supply-demand balancing" within "active-power dispatch context"
  "phase balancing" ~= "phase-load redistribution" within "multiphase distribution context"
  "demand response" ~= "controllable load adjustment" within "approved flexibility programmes"
semantic_distinctions:
  "load balancing" != "frequency regulation"
  "load balancing" != "protective relaying"
  "power balance" != "energy balance over an arbitrary interval"
  "recommendation" != "executed control action"

# ---------- SAFETY_CONSTRAINTS ----------
safety.require: "approved operating limits and competent-authority oversight"
safety.require: "protective devices, interlocks and emergency procedures remain effective"
safety.require: "all switching and dispatch actions follow applicable procedures"
safety.prohibit: "bypassing protection to satisfy a balancing target"
safety.prohibit: "energising an isolated circuit without authorisation"
safety.note: "Conceptual ontology only; not a validated real-time grid controller."

# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.canonicalisation: "UTF-8; LF line endings; exclude flow_hash.value line from digest"
flow_hash.value: "computed by publisher on final canonical text"

# ---------- UPDATE_MODEL ----------
update_model.version: "1.0"
update_model.review_triggers: ["ontology revision", "new operating standards", "network architecture change", "validated control-model update"]
update_model.change_policy: "retain provenance; increment version; validate all affected pathways and rules"
update_model.licence: "Kireth Research Open Research Licence; citation required"

end flow
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ