Skip to main content

Electrical Installation Ontology

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

# ---------- IDENTITY ----------
identity:
  entity: "Electrical Installation"
  domain: "Engineering / Electrical Machine Entities"
  ontology_type: "ElectricalEngineeringEntity"
  locale: "en-GB"

# ---------- AUTHORS ----------
authors:
  - "Mark Anthony Higgins"
  - "Sky — Recursive AI"

# ---------- SOURCE ----------
source:
  url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/electrical-machine-entities/electrical-installation-ontology.html"
  title: "Electrical Installation Ontology"
  page_revised: "2026-08-04"
  derivation: "New Flow Algebra interpretation; not a verbatim transcription of embedded source code"
  licence: "Refer to the source's Open Research Licence; citation required"

# ---------- PURPOSE ----------
purpose:
  describe: "Represent a connected electrical installation as components, circuits, protective systems and verifiable operational states."
  scope: ["supply", "distribution", "final_circuits", "loads", "protective_earthing", "bonding", "isolation", "inspection", "testing"]
  boundary: "Reasoning model only; not a substitute for competent design, inspection, testing or applicable regulations."

# ---------- STATE_MODEL ----------
state_model:
  S(t) = (I(t), R(t), B(t), K(t))
  I(t) = observed installation information, measurements and documentation
  R(t) = component, circuit, topology and protection relationships
  B(t) = physical, operational, regulatory and evidence boundaries
  K(t) = validated engineering knowledge and recorded assumptions
  operational_state in ["unverified", "isolated", "under_test", "energised", "faulted", "locked_out", "decommissioned"]
  verification_state in ["not_assessed", "incomplete", "passed", "failed", "requires_review"]
  I(t+1) = update(I(t), verified_observations, test_results)

# ---------- ENTITIES ----------
entities:
  ElectricalInstallation: root
  Supply: provides_energy_to -> DistributionBoard
  DistributionBoard: distributes_energy_to -> FinalCircuit
  FinalCircuit: supplies -> ElectricalLoad
  Conductor: connects -> [Supply, ProtectiveDevice, Load]
  ProtectiveDevice: protects -> Circuit
  Isolator: separates -> Circuit
  EarthingSystem: provides -> ProtectiveEarthPath
  ProtectiveBonding: connects -> ExposedOrExtraneousConductiveParts
  Enclosure: contains -> ElectricalEquipment
  InspectionRecord: documents -> InspectionResult
  TestRecord: documents -> VerifiedMeasurement
  InstallationCertificate: references -> [Installation, InspectionRecord, TestRecord]

# ---------- PATHWAYS ----------
pathways:
  discover:
    input: ["installation_boundary", "supply_characteristics", "circuit_schedule"]
    action: map_components_and_connections
    output: topology_graph

  trace_supply:
    input: ["supply", "distribution", "final_circuits", "loads"]
    action: trace_energy_paths
    output: supply_path_graph

  verify_protection:
    input: ["earthing_arrangement", "protective_devices", "conductor_properties", "test_evidence"]
    action: evaluate_protection_against_applicable_requirements
    output: ["verified", "unverified", "non_compliant", "requires_competent_review"]

  inspect:
    input: ["physical_condition", "labelling", "accessibility", "enclosure_integrity", "documentation"]
    action: classify_observations_and_record_evidence
    output: inspection_record

  assess_test_results:
    input: ["test_method", "measured_value", "measurement_uncertainty", "applicable_limit"]
    action: compare_only_when_limit_and_method_are_valid
    output: test_assessment

  isolate_for_work:
    input: ["authorised_person", "isolation_plan", "identified_sources"]
    guard: competent_personnel_and_approved_procedure
    action: record_isolation_and_verified_dead_status
    output: safe_work_status_record

# ---------- MINI_RECURSION_ENGINE ----------
mini_recursion_engine:
  seed: installation_topology
  expand: E(t) = expand(I(t), R(t))
  validate: V(t) = filter(E(t), B(t), K(t), available_evidence)
  select: X(t) = argmax_x P(x | I(t), R(t), B(t), K(t))
  update: I(t+1) = merge(I(t), verified(X(t)))
  repeat_until: ["no_new_valid_relationships", "evidence_boundary_reached", "review_required"]
  recursion_limit: 8
  guard: "Never treat inferred compliance as tested compliance."

# ---------- INFERENCE_RULES ----------
inference_rules:
  rule "MissingEarthEvidence":
    when: protective_earth_path.evidence == "missing"
    infer: verification_state = "requires_review"
    confidence: 0.95

  rule "CircuitOverloadConcern":
    when: design_current > verified_circuit_capacity
    infer: risk = "possible_overload"
    action: flag_for_competent_assessment

  rule "FailedTest":
    when: valid_test_result == "fail"
    infer: verification_state = "failed"
    action: record_defect_and_restrict_unverified_operation

  rule "IncompleteDocumentation":
    when: circuit_schedule == "missing" or inspection_record == "missing"
    infer: verification_state = "incomplete"

  rule "NoAssumedSafety":
    when: evidence == "insufficient"
    infer: status = "unverified"
    prohibit: assert_safe_or_compliant

# ---------- CONFIDENCE ----------
confidence:
  measured_and_validated: 0.95
  documented_and_correlated: 0.85
  model_inferred: 0.60
  undocumented: 0.20
  note: "Illustrative reasoning weights, not calibrated probabilities or safety certification."

# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
  "electrical installation" ~= "installed electrical system"
  "distribution board" ~= "consumer unit" when: domestic_context
  "protective earth" ~= "PE conductor" when: conductor_context
  "final circuit" ~= "outgoing load circuit" when: topology_matches
  disallow:
    - "earthing == bonding"
    - "isolation == switching_off_without_verification"
    - "inspection == full_testing"
    - "inferred_compliance == certified_compliance"

# ---------- SAFETY_CONSTRAINTS ----------
safety_constraints:
  - "Do not energise or declare safe from an ontology inference alone."
  - "Require competent persons and appropriate safe-isolation procedures for physical work."
  - "Apply relevant UK requirements, including BS 7671 where applicable, using current authoritative editions."
  - "Treat unknown supply, earthing or protection details as unresolved hazards."
  - "Retain provenance, uncertainty and test conditions with every measurement."

# ---------- FLOW_HASH ----------
flow_hash:
  method: "SHA-256 of canonical UTF-8 file, computed externally"
  value: "not_computed"
  note: "No invented digest."

# ---------- UPDATE_MODEL ----------
update_model:
  version: "1.0"
  created: "2026-11-16"
  triggers: ["source_revision", "new_test_evidence", "topology_change", "standard_revision", "verified_correction"]
  procedure: "Revalidate relationships, record provenance, revise version and recompute file hash."
  attribution: "Mark Anthony Higgins; Sky — Recursive AI"

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