Skip to main content

Control State 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 "ControlState" v1.0

# Kireth Research Semantic Library — Control State Ontology
# Original Flow Algebra model; source page not independently verified.

IDENTITY:
  id: "engineering.control_system.control_state"
  label: "Control State"
  type: "EngineeringControlStateEntity"
  domain: "Control Engineering / Automation"
  version: "1.0"
  locale: "en-GB"

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

SOURCE:
  canonical: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/control-system-entities/control-state-ontology.html"
  citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/control-system-entities/control-state-ontology.html"
  derivation: "Newly constructed semantic model; not a verbatim page extraction"

PURPOSE:
  define: "Represent the observable and inferred operating condition of a control system at a specified instant."
  distinguish: ["controller operating mode", "plant dynamic state", "commanded state", "measured state", "safety state"]
  support: ["state estimation", "transition validation", "diagnostics", "safe control", "historical traceability"]

STATE_MODEL:
  state S(t) = (mode, x_hat, y, r, u, q, health, interlocks, timestamp, confidence)
  mode in ["OFF", "INITIALISING", "STANDBY", "MANUAL", "AUTOMATIC", "HOLD", "DEGRADED", "FAULT", "SAFE_SHUTDOWN"]
  x_hat: "Estimated plant-state vector; model-dependent"
  y: "Measured process-output vector with units and quality flags"
  r: "Requested setpoint vector"
  u: "Applied manipulated-variable vector"
  q: "Discrete control phase or sequence step"
  health: "Sensor, actuator, controller and communication health"
  interlocks: "Active permits, inhibits and trips"
  timestamp: "Monotonic acquisition time plus synchronised wall-clock reference when available"
  confidence: "Quality of the state estimate, not a guarantee of safety"
  transition: "S(t+1) = T(S(t), inputs(t), events(t), guards(t))"
  observation: "z(t) = H(x(t)) + measurement_noise(t)"
  estimated_state: "x_hat(t+1) = estimator(x_hat(t), u(t), z(t+1))"

ENTITIES:
  - ControlSystem: "System containing plant, controller, feedback and actuation paths"
  - ControlState: "Time-indexed snapshot of the system's control condition"
  - Controller: "Computes requested control actions"
  - Plant: "Physical or simulated process under control"
  - ProcessVariable: "Measured output relevant to regulation"
  - Setpoint: "Desired reference value or trajectory"
  - ManipulatedVariable: "Applied influence on the plant"
  - ControlSignal: "Command transmitted to an actuator or subordinate controller"
  - StateEstimator: "Reconstructs unmeasured dynamic state where observability permits"
  - ModeManager: "Authorises transitions between operating modes"
  - Interlock: "Enforces a defined operational constraint"
  - SafetyFunction: "Independent protective function where required by design"
  - AlarmEvent: "Time-stamped notification of abnormal conditions"
  - FaultRecord: "Evidence of a detected malfunction and its diagnostic context"
  - TransitionRecord: "Previous state, event, guard outcome, new state and responsible actor"

PATHWAYS:
  measurement_to_state:
    path: "sensor -> validation -> engineering-unit conversion -> timestamp -> state estimate"
    guard: "Reject stale, implausible, out-of-range or invalid-quality inputs"
  reference_to_control:
    path: "authorised setpoint -> limit checks -> controller -> actuator command -> plant"
    guard: "Mode permits automatic control and no blocking interlock is active"
  feedback_update:
    path: "plant -> sensor -> process variable -> error calculation -> controller update"
    guard: "Measurement freshness and loop timing within validated bounds"
  manual_to_auto:
    path: "MANUAL -> tracking/bumpless transfer -> AUTOMATIC"
    guard: "Controller output aligned, feedback valid, permission granted"
  auto_to_hold:
    path: "AUTOMATIC -> HOLD"
    guard: "Hold is permitted for this plant and does not bypass protective functions"
  fault_to_safe:
    path: "any active state -> FAULT -> SAFE_SHUTDOWN"
    guard: "Defined trip or protective demand; response according to verified safety design"
  recovery:
    path: "FAULT -> diagnostic clearance -> authorised reset -> STANDBY"
    guard: "Cause addressed, safety checks passed, no automatic restart unless explicitly engineered"
  audit:
    path: "state change -> immutable event record -> operator display -> historical archive"

MINI_RECURSION_ENGINE:
  input: ["previous_state", "new_measurements", "commands", "faults", "permissions", "time"]
  cycle:
    1: "Validate signal quality, units, timestamp and origin"
    2: "Estimate current physical state and associated uncertainty"
    3: "Evaluate interlocks and protective trips before normal control actions"
    4: "Determine permitted mode transitions and reject prohibited ones"
    5: "Calculate controller output only for modes allowing active regulation"
    6: "Constrain commands by validated operating envelopes and rate limits"
    7: "Compare commanded and observed responses for discrepancy detection"
    8: "Publish new state, quality flags and transition evidence"
    9: "Repeat on the configured scan/event schedule; detect missed deadlines"
  termination: "Stop normal command generation on critical fault; preserve independent safety action"
  invariant: "No command may override a protective interlock through this recursion"

INFERENCE_RULES:
  R01: "IF mode = AUTOMATIC AND feedback invalid THEN inhibit normal closed-loop updates; enter configured fallback state"
  R02: "IF command changes AND measured response remains inconsistent beyond validated timeout THEN raise tracking fault"
  R03: "IF interlock trip active THEN block affected actuator commands regardless of setpoint"
  R04: "IF state transition lacks authorisation THEN reject transition and record security/operational event"
  R05: "IF measurement timestamp is stale THEN mark state estimate degraded and prevent unsupported claims of current state"
  R06: "IF controller output saturates THEN flag saturation; apply configured anti-windup where relevant"
  R07: "IF manual-to-auto transfer is requested THEN require bumpless-transfer criteria before switching"
  R08: "IF multiple sensors disagree beyond tolerance THEN reduce estimate confidence and request diagnosis"
  R09: "IF critical communication is lost THEN apply system-specific fail-safe behaviour, not an assumed universal state"
  R10: "IF a fault clears THEN require prescribed reset and validation before restart"
  R11: "IF estimator residual exceeds threshold THEN mark estimate suspect; do not equate residual alone with a proven fault"
  R12: "IF safety function is independent THEN do not model its action as dependent on the ordinary controller's availability"

CONTROL_RELATIONSHIPS:
  error: "e(t) = r(t) - y(t), for compatible quantities and units"
  discrete_plant: "x[k+1] = f(x[k], u[k], d[k])"
  output: "y[k] = h(x[k]) + v[k]"
  linear_example: "x[k+1] = A*x[k] + B*u[k] + E*d[k]"
  control_law_example: "u[k] = controller(e[k], x_hat[k], controller_memory[k])"
  quality_note: "The example equations are model-dependent and not universal physical laws"

VALIDATION:
  require: ["defined modes", "documented guards", "valid units", "timestamp policy", "fault policy", "transition log"]
  tests:
    - "Nominal start, standby, manual and automatic sequences"
    - "Invalid and delayed feedback"
    - "Saturated outputs and actuator non-response"
    - "Interlock activation during each operating mode"
    - "Power interruption and communications failure"
    - "Unauthorised mode change and reset attempts"
    - "Safe recovery without unintended automatic motion"
  acceptance: "Only pass when implementation-specific requirements and verified safety constraints are satisfied"

CONFIDENCE:
  evidence_levels:
    high: "Fresh validated sensors, consistent model residuals and known controller mode"
    medium: "Partial observations with bounded uncertainty"
    low: "Stale, conflicting, missing or uncalibrated observations"
  rule: "Confidence in inferred state must never substitute for a safety case"

SEMANTIC_EQUIVALENCE:
  close_terms: ["controller state", "operating state", "control mode", "automation state"]
  distinctions:
    control_state: "Composite condition of the control system at a time"
    plant_state: "Physical dynamic variables of the process"
    control_mode: "Discrete operating regime such as MANUAL or AUTOMATIC"
    setpoint: "Desired value, not necessarily the observed state"
    actuator_state: "Actual condition of the actuator, not merely its command"
  mapping: "ControlState -> describes -> ControlSystem"
  related: ["Controller", "ControlLoop", "ProcessVariable", "Setpoint", "ManipulatedVariable", "ControlSignal", "ActuatorState", "SafetyInterlock"]

FLOW_HASH:
  method: "SHA-256 over canonical UTF-8 content after normalisation"
  value: "computed-on-publication"
  note: "No unverified digest is asserted"

UPDATE_MODEL:
  triggers: ["mode definition change", "new control law", "new safety requirement", "fault taxonomy revision", "validation evidence update"]
  governance: "Version changes must preserve provenance, rationale and prior state-transition semantics"
  review: "Engineering validation and safety review required before operational use"
  compatibility: "Map renamed states explicitly; do not silently reinterpret historical logs"

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