flow "ElectricalJunction" v1.0
# ---------- IDENTITY ----------
identity.id: "engineering.electrical.electrical_junction"
identity.name: "Electrical Junction"
identity.domain: "Electrical Engineering Entities"
identity.type: "ElectricalNetworkConnectionEntity"
identity.locale: "en-GB"
# ---------- AUTHORS ----------
authors.primary: "Mark Anthony Higgins"
authors.collaborator: "Sky — Recursive AI"
authors.licence: "Kireth Research Open Research Licence; citation required"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/electrical-machine-entities/electrical-junction-ontology.html"
source.title: "Electrical Junction Ontology"
source.revised: "2026-08-04"
source.note: "Newly constructed Flow Algebra interpretation; not a verbatim extraction of hidden page code."
# ---------- PURPOSE ----------
purpose: "Represent an electrical junction as a shared connection point between conductive branches; reason about topology, current conservation, connection integrity, faults and safe operation."
# ---------- STATE_MODEL ----------
state.variables:
junction_id: str
connected_branches: set[str]
node_potential_v: float?
branch_currents_a: map[str,float]?
branch_orientation: map[str,str]?
contact_resistance_ohm: map[str,float]?
temperature_c: float?
rated_current_a: float?
rated_voltage_v: float?
enclosure_integrity: str?
connection_integrity: str?
protection_state: str?
operating_state: str
measurement_quality: str?
state.operating_state in ["unverified", "de_energised", "energised", "degraded", "faulted", "isolated"]
state.connection_integrity in ["unknown", "sound", "loose", "corroded", "damaged"]
# ---------- ENTITIES ----------
entity "ElectricalJunction" is_a "ElectricalConnectionEntity"
entity "ElectricalJunction" part_of "ElectricCircuit"
entity "ElectricalJunction" connects "ElectricalConductor"
entity "ElectricalJunction" connects "ElectricalTerminal"
entity "ElectricalJunction" participates_in "ElectricalNetwork"
entity "ElectricalJunction" monitored_by "ElectricalMeasurement"
entity "ElectricalJunction" protected_by "CircuitProtectionDevice"
relations:
branch -> terminates_at -> junction
junction -> shares_potential_with -> ideal_node
junction -> carries -> branch_current
contact -> exhibits -> contact_resistance
contact_resistance -> contributes_to -> local_heating
loose_connection -> increases_risk_of -> arcing
protective_device -> limits_consequences_of -> electrical_fault
# ---------- PATHWAYS ----------
pathway "ConnectBranches":
input: junction, branches, connection_specification
require: branches.count >= 2
require: connection_specification.compatible == true
transition: "unverified" -> "de_energised"
output: topology_registered
pathway "EvaluateCurrentBalance":
input: branch_currents_a, branch_orientation
require: all_branch_currents_measured_or_modelled
compute: signed_current_sum_a = sum(incoming_currents_a) - sum(outgoing_currents_a)
compute: residual_a = abs(signed_current_sum_a)
infer: residual_a <= configured_tolerance_a -> "KCL_consistent"
infer: residual_a > configured_tolerance_a -> "investigate_measurement_or_topology"
note: "Kirchhoff's current law applies to a complete node model; include all relevant branches and displacement-current effects where required."
pathway "EvaluateContactHeating":
input: branch_current_a, contact_resistance_ohm
require: values_are_valid_and_nonnegative
compute: local_resistive_power_w = branch_current_a^2 * contact_resistance_ohm
infer: local_resistive_power_w > configured_limit_w -> "thermal_risk_review"
note: "This is local resistive dissipation, not a complete temperature prediction."
pathway "AssessJunctionIntegrity":
input: connection_integrity, temperature_c, protection_state, measurements
infer: connection_integrity in ["loose", "corroded", "damaged"] -> "degraded"
infer: abnormal_temperature_or_arcing_detected -> "faulted"
infer: measurements_incomplete -> "unverified"
output: integrity_assessment
pathway "IsolateForInspection":
input: authorised_procedure, isolation_verification
require: authorised_procedure == true
require: isolation_verification == "proved_dead"
transition: operating_state -> "isolated"
output: inspection_permitted
note: "Only competent persons using applicable electrical safety procedures may inspect or repair."
# ---------- MINI_RECURSION_ENGINE ----------
recursion.goal: "Maintain a consistent junction model as topology and observations change."
recursion.max_iterations: 8
recursion.steps:
- "Collect branch topology and rated limits."
- "Validate measurements and sign conventions."
- "Evaluate current balance and contact heating."
- "Compare inferred state with protective and thermal evidence."
- "Record uncertainty and missing branches."
- "Re-evaluate after an observed state or topology change."
recursion.stop_when: "state_stable OR no_new_evidence OR max_iterations_reached"
# ---------- INFERENCE_RULES ----------
rule "JunctionMembership":
when: branch.endpoint == junction.id
then: branch member_of junction.connected_branches
rule "CurrentConservation":
when: complete_node_model AND steady_or_appropriately_modelled_conditions
then: sum(signed_branch_currents_a) ~= 0 within configured_tolerance_a
rule "LooseContactRisk":
when: connection_integrity == "loose"
then: flag "elevated_contact_resistance_and_arcing_risk"
rule "Overrating":
when: measured_current_a > rated_current_a OR measured_voltage_v > rated_voltage_v
then: flag "rating_exceeded"
rule "MissingEvidence":
when: topology_incomplete OR measurement_quality == "poor"
then: confidence.decrease
rule "SafetyPriority":
when: faulted OR insulation_damage_detected OR arcing_detected
then: prohibit "automatic_re_energisation_without_authorised_assessment"
# ---------- CONFIDENCE ----------
confidence.initial: 0.70
confidence.increase_when: ["verified_topology", "calibrated_measurements", "consistent_KCL", "documented_ratings"]
confidence.decrease_when: ["unknown_branch", "ambiguous_current_direction", "unverified_contact", "conflicting_measurements"]
confidence.policy: "Report uncertainty explicitly; never treat model confidence as proof of electrical safety."
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic.aliases: ["electrical node", "circuit junction", "branch junction", "junction point", "connection node"]
semantic.distinguish:
- "A junction is a connection location; a terminal is a connection interface."
- "An ideal node is equipotential; a physical junction may exhibit non-zero impedance."
- "A junction box is an enclosure and is not identical to the junction itself."
# ---------- FLOW_HASH ----------
flow_hash.method: "SHA-256 over canonicalised UTF-8 content"
flow_hash.value: "compute_on_publication"
# ---------- UPDATE_MODEL ----------
update.version: "1.0"
update.date: "2026-11-16"
update.trigger: ["source_revision", "new_engineering_evidence", "ontology_change", "validated_fault_case"]
update.policy: "Preserve provenance, validate changes and recompute flow hash after publication."
# ---------- END FLOW ----------
Download Code
Copy to Clipboard