flow "GridStorageEntity" v1.0
# ---------- IDENTITY ----------
identity:
name: "Grid Storage Entity"
class: "Power-System Entity"
domain: "Electrical Engineering / Grid Energy Storage"
language: "en-GB"
status: "Research representation; not a certified operational controller"
# ---------- AUTHORS ----------
authors:
original_ontology: "Mark Anthony Higgins; Sky — Recursive AI"
flow_representation: "Sky — Recursive AI"
licence_note: "Refer to the source site's Open Research Licence and citation requirements."
# ---------- SOURCE ----------
source:
canonical: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/power-system-entities/grid-storage-entity-ontology.html"
title: "Grid Storage Entity Ontology"
source_revised: "2026-08-04"
interpretation: "Newly constructed semantic flow, not a verbatim transcription of embedded source specifications."
# ---------- PURPOSE ----------
purpose:
define: "Represent storage assets that absorb, retain and release energy in a power grid."
reason_over: ["charge", "discharge", "standby", "availability", "grid support", "degradation", "fault"]
boundary: "Model physical, electrical, control and safety constraints without issuing real-world commands."
# ---------- STATE_MODEL ----------
state_model:
S = (I, R, B, K)
I = {asset_id, technology, rated_power_kw, usable_capacity_kwh, soc, soh, terminal_voltage, current, temperature, operating_mode, grid_status, alarms}
R = {electrical_balance, energy_balance, charge_limits, discharge_limits, thermal_limits, protection_logic, grid_code_constraints}
B = {asset_ratings, safe_operating_envelope, interconnection_boundary, metering_boundary, control_authority}
K = {topology, storage_chemistry, operating_history, forecasts, measurements, uncertainty, maintenance_record}
states: ["offline", "standby", "charging", "discharging", "grid_support", "restricted", "faulted", "isolated"]
transitions:
offline -> standby: "verified commissioning and permission"
standby -> charging: "valid charge request and all permissives"
standby -> discharging: "valid discharge request and all permissives"
charging -> standby: "charge complete or dispatch withdrawn"
discharging -> standby: "dispatch complete or minimum reserve reached"
any_active -> restricted: "derating condition or measurement uncertainty"
any_active -> faulted: "protection event or confirmed hazardous condition"
faulted -> isolated: "authorised protective isolation and verification"
isolated -> standby: "authorised inspection, corrective action and recommissioning"
# ---------- ENTITIES ----------
entities:
GridStorageEntity:
is_a: "PowerSystemEntity"
has_component: ["EnergyStorageMedium", "PowerConversionSystem", "EnergyManagementSystem", "ProtectionSystem", "Meter", "ThermalManagementSystem"]
connects_to: ["PowerGrid", "GridConnection", "DistributionLine", "Substation", "ElectricalLoad", "Generator"]
has_property: ["StateOfCharge", "StateOfHealth", "EnergyCapacity", "PowerRating", "RoundTripEfficiency", "ResponseTime", "Availability"]
EnergyStorageMedium:
examples: ["electrochemical battery", "pumped hydro", "flywheel", "compressed air", "thermal storage coupled to power conversion"]
PowerConversionSystem:
role: "Convert electrical form and regulate exchange subject to equipment limits."
ProtectionSystem:
role: "Detect faults and enforce the applicable protective response."
EnergyManagementSystem:
role: "Evaluate requests, forecasts, reserves and operating constraints."
# ---------- PATHWAYS ----------
pathways:
identify_asset:
input: ["asset_id", "technology", "nameplate_data"]
require: "verified asset identity and units"
output: "storage entity with bounded operating envelope"
observe:
input: ["timestamped telemetry", "meter readings", "alarms"]
validate: ["freshness", "plausibility", "unit consistency", "sensor quality"]
output: "estimated operational state with uncertainty"
energy_balance:
convention: "P_grid > 0 denotes export to grid; P_grid < 0 denotes import."
rule: "dE/dt = eta_charge * P_charge - P_discharge / eta_discharge - P_aux - P_self_loss"
require: "all power terms in compatible units and consistent sign convention"
note: "The energy model is technology-dependent; efficiencies may vary with load, temperature and state."
charge_assessment:
when: "requested_mode == charging"
require: ["grid import permitted", "soc below upper bound", "thermal state acceptable", "protection healthy", "charge power within rating"]
infer: "charge_admissible"
else: "reject or restrict request with reason"
discharge_assessment:
when: "requested_mode == discharging"
require: ["export permitted", "soc above minimum reserve", "thermal state acceptable", "protection healthy", "discharge power within rating"]
infer: "discharge_admissible"
else: "reject or restrict request with reason"
grid_support:
input: ["frequency", "voltage", "dispatch request", "available reserve"]
require: ["approved service capability", "grid code compliance", "operating headroom", "protection permissives"]
infer: "eligible grid support service and constrained response envelope"
note: "No physical dispatch is authorised by this semantic model."
degradation_assessment:
input: ["cycle history", "calendar age", "temperature exposure", "capacity tests"]
infer: "state-of-health estimate and maintenance review priority"
output: "estimated usable capacity with uncertainty"
fault_response:
when: "confirmed fault or unsafe operating condition"
infer: "faulted state, blocked normal dispatch and protective escalation"
require: "qualified personnel and equipment-specific procedures for any real intervention"
# ---------- MINI_RECURSION_ENGINE ----------
mini_recursion_engine:
initialise: "S_t = (I_t, R, B, K_t)"
expand: "E_t = expand(I_t, R)"
constrain: "V_t = filter(E_t, B)"
select: "x_t = argmax P(x | I_t, R, B, K_t) over admissible interpretations"
update: "I_(t+1) = update(I_t, x_t, new_evidence)"
stop_when: ["state converged", "evidence insufficient", "safety boundary reached", "iteration budget reached"]
guarantee: "No inferred decision may override a protection constraint or create permission to operate equipment."
# ---------- INFERENCE_RULES ----------
inference_rules:
R01: "IF soc >= soc_max THEN charge_admissible = false."
R02: "IF soc <= soc_min_reserve THEN discharge_admissible = false."
R03: "IF measured_temperature outside approved_envelope THEN state = restricted_or_faulted."
R04: "IF protective_trip = true THEN normal_dispatch_admissible = false."
R05: "IF telemetry_stale = true THEN confidence decreases AND autonomous_inference = restricted."
R06: "IF requested_power exceeds available_rating THEN request = inadmissible_or_derated."
R07: "IF grid_connection_unavailable THEN grid_exchange = blocked."
R08: "IF estimated_soh decreases THEN usable_capacity_estimate must be re-evaluated."
R09: "IF generation_surplus AND charging_permitted THEN storage may absorb surplus within limits."
R10: "IF grid_demand_high AND discharge_permitted THEN storage may provide constrained support."
R11: "IF import_export_meter_disagrees_with_converter_meter THEN flag measurement discrepancy."
R12: "IF protection_status_unknown THEN do not infer operational readiness."
# ---------- CONFIDENCE ----------
confidence:
high: "Recent validated telemetry, known equipment limits and corroborating measurements."
medium: "Partial telemetry with documented uncertainty and consistent model estimates."
low: "Stale, missing, conflicting or unverified inputs."
rule: "Confidence describes evidential support, never electrical safety certification."
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
"grid-scale energy storage" ~= "grid storage entity"
"battery energy storage system" ~= "BESS" # battery-specific subtype
"state of charge" ~= "SoC"
"state of health" ~= "SoH"
"power conversion system" ~= "PCS"
distinguish:
"energy capacity (kWh)" != "power rating (kW)"
"storage asset" != "generation source"
"available energy" != "total nameplate energy"
"grid-connected" != "islanded"
"electrical isolation" != "software disable"
# ---------- SAFETY_CONSTRAINTS ----------
safety_constraints:
- "Treat this flow as research and reasoning documentation, not a live control programme."
- "Use approved protection settings, equipment ratings and applicable grid codes."
- "Do not bypass interlocks, earthing, isolation or emergency procedures."
- "Escalate thermal runaway, fire, overvoltage, insulation failure and protection trips to qualified personnel."
- "Require independent verification before commissioning or reconnection."
# ---------- FLOW_HASH ----------
flow_hash:
algorithm: "SHA-256"
scope: "Canonical UTF-8 file bytes excluding any externally stored digest"
digest: "UNSET — calculate on publication"
# ---------- UPDATE_MODEL ----------
update_model:
version: "1.0"
date: "2026-11-16"
triggers: ["ontology revision", "new storage technology", "new grid-code requirement", "new safety evidence", "model correction"]
procedure: "Review source, update rules, validate internal consistency, calculate digest and publish revision."
# END FLOW
Download Code
Copy to Clipboard