flow "ElectricalFaultEntity" v1.0
# ---------- IDENTITY ----------
id: "power-system.electrical-fault-entity"
type: "EngineeringFaultEntity"
domain: "PowerSystemEngineering"
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/electrical-fault-entity-ontology.html"
source.title: "Electrical Fault Entity Ontology"
source.revised: "2026-08-04"
source.note: "Newly constructed interpretation; not a verbatim extraction of embedded specifications."
# ---------- PURPOSE ----------
purpose: "Represent abnormal electrical conditions, their evidence, consequences, protective responses and recovery requirements as traceable semantic relationships."
# ---------- STATE_MODEL ----------
state.initial: "UNASSESSED"
state.allowed: ["UNASSESSED", "NORMAL", "SUSPECTED", "CONFIRMED", "PROTECTION_ACTIVE", "ISOLATED", "UNDER_INVESTIGATION", "CLEARED", "VERIFIED", "UNKNOWN"]
state.transitions:
- "UNASSESSED -> NORMAL | SUSPECTED | UNKNOWN"
- "NORMAL -> SUSPECTED"
- "SUSPECTED -> CONFIRMED | NORMAL | UNKNOWN"
- "CONFIRMED -> PROTECTION_ACTIVE | ISOLATED"
- "PROTECTION_ACTIVE -> ISOLATED | UNDER_INVESTIGATION"
- "ISOLATED -> UNDER_INVESTIGATION"
- "UNDER_INVESTIGATION -> CLEARED | UNKNOWN"
- "CLEARED -> VERIFIED | SUSPECTED"
- "VERIFIED -> NORMAL | SUSPECTED"
# ---------- ENTITIES ----------
entity.fault: "ElectricalFault"
entity.system: "ElectricalNetwork"
entity.component: "ElectricalComponent"
entity.measurement: "ElectricalMeasurement"
entity.protection: "ProtectiveRelay"
entity.breaker: "CircuitBreaker"
entity.isolator: "Isolator"
entity.earthing: "EarthingSystem"
entity.event: "FaultEvent"
entity.record: "DiagnosticRecord"
entity.operator: "AuthorisedOperator"
fault.classes:
- "SHORT_CIRCUIT"
- "EARTH_FAULT"
- "OPEN_CIRCUIT"
- "OVERLOAD"
- "OVERVOLTAGE"
- "UNDERVOLTAGE"
- "PHASE_IMBALANCE"
- "INSULATION_FAILURE"
- "ARC_FAULT"
- "FREQUENCY_DEVIATION"
relations:
- "ElectricalFault occurs_in ElectricalNetwork"
- "ElectricalFault affects ElectricalComponent"
- "ElectricalMeasurement provides_evidence_for ElectricalFault"
- "ProtectiveRelay detects ElectricalFault"
- "ProtectiveRelay commands CircuitBreaker"
- "CircuitBreaker interrupts FaultCurrent"
- "DiagnosticRecord documents FaultEvent"
# ---------- INPUTS ----------
input.voltage: "Measured voltage [V]"
input.current: "Measured current [A]"
input.frequency: "Measured frequency [Hz]"
input.phase: "Phase measurements and sequence"
input.residual_current: "Residual current [A]"
input.insulation: "Insulation test evidence, where safely obtained"
input.protection_events: "Relay alarms and trip records"
input.topology: "Network connectivity and switch states"
input.ratings: "Equipment and protection ratings"
input.quality: "Measurement validity, timestamps and uncertainty"
# ---------- PATHWAYS ----------
pathway "AcquireEvidence":
read: ["voltage", "current", "frequency", "phase", "residual_current", "protection_events", "topology", "quality"]
require: "timestamped measurements and identified measurement sources"
emit: "EvidenceSet"
pathway "ClassifyFault":
from: "EvidenceSet"
evaluate: ["threshold deviations", "phase asymmetry", "current discontinuity", "earth-fault indication", "protection event correlation"]
emit: ["CandidateFaultClass", "EvidenceTrace", "Uncertainty"]
guard: "No single symptom proves a unique fault cause"
pathway "AssessImpact":
from: "CandidateFaultClass"
traverse: "AffectedComponents -> ConnectedCircuits -> DependentLoads"
emit: ["PotentialImpact", "AffectedZone"]
pathway "Protect":
when: "Confirmed fault or independently validated protection criterion"
delegate: "Certified protection and interlocking systems"
emit: ["ProtectionEvent", "IsolationStatus"]
guard: "Reasoning output is advisory; never override hardware protection"
pathway "Recover":
require: ["Authorised assessment", "Cause addressed", "Isolation verified", "Applicable inspection and tests passed"]
emit: "VerifiedRecoveryCandidate"
guard: "Do not automatically re-energise based on semantic inference"
# ---------- MINI_RECURSION_ENGINE ----------
recursion.seed: "EvidenceSet"
recursion.expand: "Follow fault -> component -> network -> protection -> consequence relationships"
recursion.filter: "Retain only supported, relevant and non-duplicate hypotheses"
recursion.rank: "Evidence quality, physical plausibility, topology consistency and consequence severity"
recursion.stop: "No new supported hypotheses, evidence exhausted or iteration budget reached"
recursion.output: "RankedFaultHypotheses with provenance"
# ---------- INFERENCE_RULES ----------
rule "OvercurrentCandidate":
if: "measured_current exceeds applicable validated operating limit"
then: "infer OVERLOAD_OR_SHORT_CIRCUIT_CANDIDATE"
confidence: "conditional"
rule "EarthFaultCandidate":
if: "residual_current exceeds validated earth-fault criterion"
then: "infer EARTH_FAULT_CANDIDATE"
confidence: "conditional"
rule "OpenCircuitCandidate":
if: "expected continuity absent AND topology indicates a required conductive path"
then: "infer OPEN_CIRCUIT_CANDIDATE"
confidence: "conditional"
rule "InsulationDegradationCandidate":
if: "qualified insulation evidence falls below applicable validated acceptance criteria"
then: "infer INSULATION_FAILURE_CANDIDATE"
confidence: "conditional"
rule "TripCorrelation":
if: "relay trip event aligns with current and topology evidence"
then: "increase support for associated fault hypothesis"
guard: "Trip event alone does not establish root cause"
rule "UnknownEvidence":
if: "measurement stale OR inconsistent OR unavailable"
then: "set assessment UNKNOWN and request verification"
# ---------- SAFETY_CONSTRAINTS ----------
safety:
- "Treat exposed or potentially energised conductors as hazardous"
- "Never infer absence of voltage from an open switch alone"
- "Isolation, lock-off, proving dead and earthing follow applicable procedures and competent personnel"
- "Fault current, arc-flash and protective-device ratings require engineering validation"
- "Never bypass protection, interlocks or safety controls"
- "No automated restoration without independent safety authorisation"
# ---------- CONFIDENCE ----------
confidence.scale: "0.0..1.0"
confidence.policy: "Calibrate against verified cases; do not invent numerical certainty"
confidence.factors: ["Sensor integrity", "Evidence agreement", "Topology validity", "Protection records", "Model coverage"]
confidence.unknown: "Insufficient evidence"
# ---------- SEMANTIC_EQUIVALENCE ----------
equivalence:
- "electrical fault ~ abnormal electrical condition [context-dependent]"
- "earth fault ~ ground fault [regional terminology]"
- "short circuit != overload"
- "isolation != proven dead"
- "protective trip != verified root cause"
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.scope: "Canonical UTF-8 content excluding the hash value itself"
flow_hash.value: "UNCOMPUTED"
# ---------- UPDATE_MODEL ----------
update.version: "1.0"
update.date: "2026-11-16"
update.trigger: ["Ontology revision", "New fault class", "Validated evidence", "Protection standard revision"]
update.policy: "Revalidate rules, preserve provenance and increment version"
# ---------- END FLOW ----------
Download Code
Copy to Clipboard