FLOW ALGEBRA — HYDRAULIC FAILURE ENTITY ONTOLOGY
Version: 1.1
Source: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/hydraulic-entities/hydraulic-failure-entity-ontology.html
Source authors: Mark Anthony Higgins — Sky Recursive AI
Generated: 2026-11-16
Status: Newly generated semantic interpretation; not a verbatim extraction of the website's downloadable code.
flow "HydraulicFailureEntityOntology" v1.1
# ---------- IDENTITY ----------
AUTHORS:
- Mark Anthony Higgins
- Sky — Recursive AI
SOURCE: Hydraulic Failure Entity Ontology | Kireth Research
PURPOSE: Represent, detect, classify and reason over failures in hydraulic systems.
DOMAIN: Engineering > Hydraulic Entities > Hydraulic Failure Entity
# ---------- CORE ENTITY ----------
ENTITY HydraulicFailure:
is_a: EngineeringFailure
affects: HydraulicSystem | HydraulicComponent | HydraulicCircuit
identified_by: EvidenceSet
has_mode: FailureMode
has_severity: Severity
has_state: FailureState
has_cause: CauseHypothesis?
has_effect: SystemEffect*
has_timestamp: Time?
has_confidence: Confidence
ENTITIES:
HydraulicSystem, HydraulicPump, HydraulicMotor, HydraulicCylinder,
HydraulicValve, HydraulicHose, HydraulicSeal, HydraulicFilter,
HydraulicReservoir, HydraulicAccumulator, HydraulicCircuit,
HydraulicFluid, PressureSensor, FlowSensor, TemperatureSensor,
ContaminationSensor, MaintenanceRecord, Alarm, EvidenceSet
FAILURE_MODES:
ExternalLeakage, InternalLeakage, PressureLoss, Overpressure,
FlowRestriction, Cavitation, Aeration, Contamination,
Overheating, SealDegradation, HoseRupture, ValveSticking,
PumpWear, ActuatorStall, SensorFailure, ControlFailure
# ---------- STATE MODEL ----------
STATE_MODEL:
Nominal -> Degraded when observed_anomaly
Degraded -> Failed when function_lost or safety_limit_exceeded
Degraded -> Nominal when verified_recovery
Failed -> Isolated when isolation_confirmed
Isolated -> Repairing when maintenance_authorised
Repairing -> Testing when corrective_action_complete
Testing -> Nominal when acceptance_tests_pass
Testing -> Failed when acceptance_tests_fail
STATE_VARIABLES:
pressure: measured_P
flow_rate: measured_Q
temperature: measured_T
fluid_level: measured_L
contamination: measured_C
vibration: measured_V
leakage_rate: measured_leak
demand: requested_output
actual_output: delivered_output
# ---------- RELATIONSHIPS ----------
RELATIONS:
HydraulicFailure -> affects -> HydraulicComponent
HydraulicFailure -> propagates_through -> HydraulicCircuit
HydraulicFailure -> evidenced_by -> SensorObservation
HydraulicFailure -> mitigated_by -> CorrectiveAction
HydraulicFailure -> constrained_by -> OperatingEnvelope
HydraulicFailure -> assessed_against -> SafetyLimit
HydraulicFailure -> may_cause -> SecondaryFailure
# ---------- PHYSICAL AND LOGICAL CONSTRAINTS ----------
CONSTRAINTS:
P_min <= measured_P <= P_max when operating
Q_min <= measured_Q <= Q_max when demand_active
T <= T_max when operating
contamination <= contamination_limit
fluid_level >= minimum_safe_level
measured_values require units, timestamps and sensor provenance
thresholds must come from the specific system specification
a single anomaly is evidence, not automatic proof of its cause
# ---------- PATHWAYS ----------
PATHWAY Observe:
SensorObservation -> normalise_units -> validate_quality
-> compare_with_operating_envelope -> AnomalySet
PATHWAY Diagnose:
AnomalySet -> map_to_failure_modes -> generate_hypotheses
-> compare_evidence -> rank_hypotheses -> Diagnosis
PATHWAY Respond:
Diagnosis -> assess_severity -> select_safe_response
-> notify_operator -> isolate_if_required -> MaintenanceAction
PATHWAY Verify:
MaintenanceAction -> perform_acceptance_tests
-> verify_limits -> confirm_function -> UpdatedFailureState
# ---------- INFERENCE RULES ----------
INFERENCE_RULES:
IF demand_active AND pressure_low AND flow_low
THEN infer PossibleSupplyFailure with confidence conditional_on_evidence
IF pressure_high AND downstream_flow_low
THEN infer PossibleRestrictionOrClosedValve
IF pressure_oscillation AND abnormal_noise AND low_inlet_pressure
THEN infer PossibleCavitation
IF fluid_level_falling AND external_fluid_detected
THEN infer PossibleExternalLeakage
IF actuator_drift AND command_held AND external_leak_absent
THEN infer PossibleInternalLeakage
IF temperature_rising AND efficiency_falling
THEN infer PossibleExcessiveLosses
IF contamination_high AND filter_pressure_drop_high
THEN infer PossibleFilterLoading
IF sensor_readings_disagree
THEN infer PossibleInstrumentationFault
# ---------- MINI RECURSION ENGINE ----------
MINI_RECURSION_ENGINE:
INPUT: SystemState, ObservationSet, OperatingEnvelope, EvidenceHistory
INITIALISE: hypotheses := classify(ObservationSet)
REPEAT:
hypotheses := expand(hypotheses, causal_relations)
hypotheses := filter(hypotheses, physical_constraints)
hypotheses := rank(hypotheses, evidence_consistency, provenance)
request_next_measurement := select_discriminating_test(hypotheses)
evidence := update(evidence, available_test_results)
UNTIL: evidence_sufficient OR iteration_limit OR safety_stop
OUTPUT: RankedHypotheses, Uncertainty, RecommendedInspection, SafetyFlags
# ---------- SEMANTIC EQUIVALENCE ----------
SEMANTIC_EQUIVALENCE:
hydraulic malfunction ~ hydraulic system fault
pressure loss ~ insufficient hydraulic pressure [context-dependent]
fluid leak ~ hydraulic leakage [context-dependent]
component breakdown ~ component failure [context-dependent]
NOTE: Similar expressions are not automatically identical failure mechanisms.
# ---------- VALIDATION ----------
VALIDATION:
require entity_identity
require affected_system_or_component
require observation_provenance
require engineering_units
require evidence_for_diagnosis
distinguish observation from hypothesis from confirmed failure
reject unsupported certainty
preserve safety-critical uncertainty
CONFIDENCE:
observed: direct instrument or inspection evidence
inferred: supported by multiple consistent observations
provisional: plausible but unverified
unknown: insufficient evidence
UPDATE_MODEL:
trigger: new_observation | inspection | maintenance | specification_change
action: recompute_hypotheses -> revalidate -> retain_history
FLOW_HASH:
method: SHA-256 of canonicalised published flow text
value: TO_BE_COMPUTED_ON_PUBLICATION
# ---------- SAFETY AND SCOPE ----------
SAFETY:
This ontology supports reasoning and documentation, not autonomous
safety-critical control. Do not override equipment interlocks or
manufacturer procedures. A qualified engineer must validate diagnosis,
operating limits and any return-to-service decision.
END FLOW
Download Code
Copy to Clipboard