flow "PowerSystemEntity" v1.0
# ---------- IDENTITY ----------
id: "engineering.power_system.power_system_entity"
title: "Power System Entity Ontology"
domain: "Engineering / Power-System Entities"
locale: "en-GB"
# ---------- AUTHORS ----------
authors: ["Mark Anthony Higgins", "Sky — Recursive AI"]
licence: "Kireth Open Research Licence; citation required"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/power-system-entities/power-system-entity-ontology.html"
source.revised: "2026-08-04"
source.note: "Original Flow Algebra synthesis based on the page title and power-system engineering principles; page's full ontology specification was not available in extracted text."
# ---------- PURPOSE ----------
purpose: "Represent a power-system entity, its connections, operating state, constraints, energy exchanges and safety reasoning."
# ---------- STATE_MODEL ----------
state S = (I, R, B, K)
I: identity, topology, ratings, measurements, operating mode
R: electrical and operational relations
B: equipment limits, protection constraints, physical boundaries
K: validated engineering knowledge, observations and provenance
state.mode: ["unknown", "de-energised", "energised", "standby", "fault", "isolated", "maintenance"]
state.quality: ["observed", "estimated", "unverified"]
# ---------- ENTITIES ----------
entity PowerSystemEntity:
attributes: [id, type, rated_voltage, rated_current, rated_power, frequency, phase_count, status]
relations: [connects_to, supplies, consumes, converts, stores, protects, measures, controls]
entity Source: [generator, utility_supply, inverter]
entity Network: [bus, feeder, line, cable, transformer]
entity Load: [motor, heater, facility, converter]
entity Protection: [breaker, relay, fuse, isolator, earthing]
entity Measurement: [voltage, current, frequency, power, energy, temperature]
entity Boundary: [thermal_limit, current_limit, voltage_limit, insulation_limit, fault_limit]
# ---------- PATHWAYS ----------
pathway "identify":
read entity.id, entity.type, entity.ratings
validate required_fields
emit entity_profile
pathway "map_topology":
read terminals, connections, direction_of_energy_transfer
validate connection_compatibility
emit topology_graph
pathway "evaluate_operation":
read voltage, current, phase, frequency, power_factor
infer apparent_power = voltage * current for single_phase_ac
infer active_power = apparent_power * power_factor for single_phase_ac
infer apparent_power = sqrt(3) * line_voltage * line_current for balanced_three_phase_ac
infer active_power = apparent_power * power_factor for balanced_three_phase_ac
compare measurements with equipment_ratings
emit operating_assessment
pathway "energy_balance":
read source_power, load_power, losses, storage_power_change
infer residual = source_power - load_power - losses - storage_power_change
evaluate residual within measurement_uncertainty
emit balance_assessment
pathway "protection":
read protection_settings, equipment_ratings, fault_indicators
flag settings_exceed_ratings
flag suspected_fault when measured_values_exceed_validated_limits
emit protection_review
# ---------- MINI_RECURSION_ENGINE ----------
recursive evaluate(entity, depth, visited):
if entity.id in visited: return "cycle_recorded"
if depth >= configured_depth_limit: return "depth_limit"
visited = visited union entity.id
profile = pathway("identify", entity)
for neighbour in entity.connected_entities:
evaluate(neighbour, depth + 1, visited)
reconcile topology, energy_balance, protection
return assessment_with_provenance
# ---------- INFERENCE_RULES ----------
rule "overload_risk":
when measured_current > rated_current and readings_valid
infer overload_risk = true
action: "flag for qualified engineering review"
rule "voltage_mismatch":
when measured_voltage outside validated_voltage_band
infer voltage_nonconformance = true
rule "loss_or_measurement_discrepancy":
when abs(energy_balance.residual) > combined_uncertainty
infer investigate_losses_or_measurements = true
rule "isolation_not_proven":
when status == "isolated" and absence_of_voltage_not_verified
infer safe_to_touch = false
rule "unknown_rating":
when equipment_rating missing
infer compliance_status = "unverified"
# ---------- CONFIDENCE ----------
confidence.inputs: [sensor_calibration, timestamp, topology_completeness, rating_provenance, model_assumptions]
confidence.policy: "Do not convert unknown or estimated measurements into confirmed safety assertions."
confidence.output: [high, medium, low, unknown]
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic.aliases:
"power-system entity" = "power system component or subsystem"
"electrical grid component" ~= "power-system entity"
"feeder" != "busbar"
"protective earthing" != "operational neutral"
semantic.scope: "Equivalence is contextual, not an assertion of identical physical behaviour."
# ---------- SAFETY_CONSTRAINTS ----------
safety: "Conceptual reasoning only; not a protection-setting, switching or live-work instruction."
safety: "Electrical isolation, verification, protection coordination and design require competent professionals and applicable standards."
safety: "Never infer de-energisation solely from a switch position or control signal."
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.value: "ad8737f2f089611b27171ca347ffd590dc7bb671ba600e93b1c11da6334ef8b1"
flow_hash.scope: "UTF-8 text of this flow excluding the hash value line"
# ---------- UPDATE_MODEL ----------
update.trigger: [topology_change, rating_change, new_measurement, fault_event, maintenance_event, standards_revision]
update.steps: [validate_source, reconcile_entities, recompute_pathways, review_inferences, record_provenance, publish_revision]
update.policy: "Preserve version history; do not overwrite verified evidence with unsupported inference."
# ---------- END FLOW ----------
Download Code
Copy to Clipboard