Skip to main content

Controller Ontology

Control-System Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 18 November 2026
Audio Overview
flow "Controller" v1.0

# Kireth Research Semantic Library — Control System Entities
# Original Flow Algebra representation; source page content not independently verified.

IDENTITY:
  entity: "Controller"
  class: "ControlEngineeringEntity"
  parent: "ControlSystemEntity"
  domain: "Engineering / Control Systems"
  description: "An entity that computes control actions from references, observations, internal state and configured control laws."
  scope: [continuous, discrete, embedded, industrial, supervisory]

AUTHORS:
  primary: "Kireth Research"
  collaborator: "Sky — Recursive AI"
  licence: "Open Research Licence — attribution and citation required"

SOURCE:
  ontology: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/control-system-entities/controller-ontology.html"
  citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/control-system-entities/controller-ontology.html"
  derivation: "New domain-specific representation; not a verbatim extraction"

PURPOSE:
  primary: "Represent controller architecture, behaviour, decisions, verification and lifecycle."
  secondary: ["Map commands to controlled processes", "Trace control decisions", "Identify unsafe or invalid operation", "Support diagnosis and design review"]
  exclusions: ["A controller is not identical to its sensor, actuator or controlled plant", "This ontology does not certify a real installation"]

STATE_MODEL:
  state S(t):
    reference r(t): "Requested setpoint or trajectory"
    measured_output y_m(t): "Validated sensor observation"
    estimated_state x_hat(t): "Optional estimated plant state"
    error e(t): "r(t) - y_m(t), when dimensions and units agree"
    integral_state z(t): "Accumulated error with anti-windup"
    derivative_state d(t): "Filtered rate or derivative estimate"
    control_output u(t): "Command after constraints and interlocks"
    operating_mode m(t): [offline, initialising, manual, automatic, degraded, fault, safe_stop]
    health h(t): [healthy, warning, faulted, unknown]
    sampling_interval Ts: "Positive duration for sampled controllers"
    controller_configuration K: "Gains, filters, limits, permissions and safety settings"
    timestamp: "Monotonic sample or event time"
  transitions:
    offline -> initialising: "Power and configuration available"
    initialising -> automatic: "Checks pass and authorisation granted"
    automatic -> degraded: "Permitted recoverable fault"
    automatic -> fault: "Unacceptable condition or failed validation"
    fault -> safe_stop: "Apply independently engineered safe response"
    safe_stop -> initialising: "Explicit reset after fault clearance and authorisation"
  invariants:
    - "Reject non-finite, stale, out-of-range or dimensionally inconsistent inputs"
    - "Apply actuator limits, rate limits and safety interlocks before command release"
    - "Manual-to-automatic transfer should avoid avoidable command discontinuities"
    - "Loss of feedback must not silently be treated as zero error"
    - "A safety-critical shutdown must not rely solely on ordinary control software"

ENTITIES:
  controller:
    types: [on_off, proportional, PI, PID, feedforward, state_feedback, model_predictive, adaptive, supervisory]
    attributes: [controller_id, algorithm, firmware_version, sample_rate, configuration_revision, operating_mode]
  plant:
    role: "Physical or simulated process whose behaviour is regulated"
    properties: [dynamics, disturbance, constraints, delay, operating_envelope]
  sensor:
    role: "Produces measured or estimated process feedback"
    properties: [range, calibration, latency, uncertainty, health]
  actuator:
    role: "Converts bounded controller commands into physical action"
    properties: [command_range, slew_rate, saturation, failure_mode]
  setpoint:
    role: "Desired output or state, subject to validity and rate constraints"
  comparator:
    role: "Calculates tracking error in consistent units"
  observer:
    role: "Estimates states from available measurements and model assumptions"
  safety_interlock:
    role: "Inhibits or overrides commands when specified hazards arise"
  event_log:
    role: "Records inputs, outputs, state transitions, alarms and revisions"

PATHWAYS:
  measurement:
    steps: ["Read sensor", "Validate timestamp and range", "Apply calibration and filtering", "Estimate state and uncertainty"]
  regulation:
    steps: ["Validate setpoint", "Calculate error", "Evaluate control law", "Apply anti-windup and saturation", "Check interlocks", "Issue command"]
  monitoring:
    steps: ["Compare commanded and observed response", "Detect persistent deviation", "Classify possible faults", "Raise alarm or transition mode"]
  recovery:
    steps: ["Enter defined safe state", "Record cause", "Require inspection and authorisation", "Reinitialise", "Validate before returning to automatic"]

CONTROL_LAWS:
  proportional:
    expression: "u_raw(t) = Kp * e(t)"
    note: "Proportional action alone may leave steady-state error."
  PID_continuous_ideal:
    expression: "u_raw(t) = Kp*e(t) + Ki*integral(e(t) dt) + Kd*de(t)/dt"
    conditions: "Appropriate units, sign convention, filtering and tuning required."
  PI_discrete_example:
    expression: "z[k] = z[k-1] + Ts*e[k]"
    expression_output: "u_raw[k] = Kp*e[k] + Ki*z[k]"
    caveat: "Implement conditional integration or back-calculation anti-windup when saturated."
  state_feedback:
    expression: "u = -K*x_hat + N*r"
    condition: "Model validity, observability and stability must be assessed."
  saturation:
    expression: "u = clamp(u_raw, u_min, u_max)"
  rate_limit:
    expression: "abs(u[k]-u[k-1]) <= du_max*Ts"
  sampled_timing:
    expression: "sampling_interval = 1 / sampling_frequency"
    caveat: "Computational delay, jitter and sensor latency affect closed-loop behaviour."

MINI_RECURSION_ENGINE:
  initialise:
    - "Resolve controller, plant, sensor and actuator identities"
    - "Load approved configuration and operating envelope"
    - "Check feedback availability and command inhibition state"
  repeat_each_control_cycle:
    - "Observe and timestamp inputs"
    - "Reject invalid or stale observations"
    - "Update state estimate and tracking error"
    - "Evaluate configured controller law"
    - "Apply saturation, rate limits, anti-windup and interlocks"
    - "Publish permitted command and record evidence"
    - "Compare subsequent response with expected behaviour"
    - "Reassess confidence, alarms and mode"
  terminate_or_hold:
    - "When commanded to stop or safety criteria fail, transition to the engineered safe condition"
  recursion_guard:
    max_iterations_per_cycle: 1
    stop_on: [invalid_input, interlock_trip, watchdog_expiry, unstable_response, unauthorised_mode_change]

INFERENCE_RULES:
  - id: CR01
    if: "feedback unavailable or stale"
    then: "Invalidate feedback-dependent regulation and enter the configured degraded or safe state"
  - id: CR02
    if: "command at saturation and error persists"
    then: "Flag saturation and constrain integral accumulation"
  - id: CR03
    if: "persistent tracking error exceeds approved threshold"
    then: "Raise deviation alarm; investigate actuator, sensor, disturbance and tuning"
  - id: CR04
    if: "measured response direction contradicts the expected plant response"
    then: "Check sensor polarity, actuator direction, control sign and wiring"
  - id: CR05
    if: "oscillation amplitude grows or damping deteriorates"
    then: "Flag potential instability; do not automatically increase controller gains"
  - id: CR06
    if: "requested setpoint violates process envelope"
    then: "Reject or constrain setpoint and record reason"
  - id: CR07
    if: "controller timing deadline missed"
    then: "Raise timing fault and apply watchdog policy"
  - id: CR08
    if: "configuration changes without approved revision"
    then: "Block deployment and request authorised review"
  - id: CR09
    if: "manual-to-automatic transfer requested"
    then: "Initialise internal controller states for bumpless transfer where applicable"
  - id: CR10
    if: "safety interlock is active"
    then: "Override normal command generation with the engineered interlock response"

CONFIDENCE:
  representation: "Evidence-based qualitative or calibrated probabilistic confidence"
  evidence: [sensor_quality, calibration_status, model_fit, timing_integrity, command_acknowledgement, plant_response]
  decrease_when: [stale_data, unmodelled_disturbance, repeated_saturation, sensor_disagreement, missing_test_evidence]
  never_infer: "Successful control or safety certification solely from a valid command"

SEMANTIC_EQUIVALENCE:
  synonyms: [control_unit, automatic_controller, process_controller, regulating_controller]
  contextual: [PLC, DCS_controller, embedded_controller, motion_controller]
  distinctions:
    - "Controller != control system: a system includes the plant, feedback, actuators and interfaces"
    - "Controller != actuator: the actuator executes the controller's command"
    - "Controller != sensor: the sensor supplies observations"
    - "PID controller is a subtype, not a synonym for every controller"

FLOW_HASH:
  method: "SHA-256 over canonical UTF-8 flow text after author-approved normalisation"
  value: "GENERATE_ON_PUBLICATION"
  note: "Do not invent a digest before canonicalisation."

UPDATE_MODEL:
  version: "1.0"
  date: "2026-11-18"
  triggers: [ontology_revision, new_control_algorithm, validated_safety_requirement, measurement_correction, new_test_evidence]
  procedure: ["Preserve prior version", "Review affected entities and rules", "Validate examples and constraints", "Regenerate canonical hash", "Publish with citation backlink"]
  validation:
    - "Check units and signs in all control equations"
    - "Test normal, saturated, sensor-loss and interlock scenarios"
    - "Review stability and timing assumptions for the actual plant"
    - "Require independent safety engineering for safety-critical deployment"

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