flow "AutomationTrigger" v1.0
# Kireth Research Semantic Library — Engineering / Automation Entities
# Original semantic Flow Algebra representation; not a verified transcription.
IDENTITY:
id: "engineering.automation.automation_trigger"
name: "Automation Trigger"
type: "EventConditionEntity"
domain: "Industrial Automation and Control Systems"
version: "1.0"
language: "en-GB"
AUTHORS:
primary: "Kireth Research"
collaborator: "Sky — Recursive AI"
SOURCE:
ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/automation-entities/automation-trigger-ontology.html"
derivation: "Original technical representation based on the named ontology topic"
licence_note: "Follow the source publisher's applicable Open Research Licence and citation requirements"
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/automation-entities/automation-trigger-ontology.html"
PURPOSE:
definition: "A recognised event or evaluated condition that requests, permits or initiates a defined automation transition or action."
objective: "Represent trigger detection, qualification, authorisation, execution and auditability without conflating a trigger with an unrestricted actuator command."
scope: ["PLC sequences", "SCADA events", "robotic cells", "batch automation", "machine control", "scheduled operations"]
exclusions: ["Unauthorised bypass of safety interlocks", "Assumption that an event is itself permission to actuate"]
STATE_MODEL:
state S_t: (I_t, R_t, B_t, K_t)
I_t: "Current trigger observations, timestamps, source health, controller mode and sequence status"
R_t: "Transition rules, event predicates, precedence, debounce and timeout constraints"
B_t: "Physical, operational, security and safety boundaries"
K_t: "Known equipment topology, trigger history, configuration and validation evidence"
expand E_t: expand(I_t, R_t)
valid V_t: filter(E_t, B_t)
select A_t: argmax(P(candidate | I_t, R_t, B_t, K_t))
update I_t+1: apply(A_t, I_t, K_t)
invariant: "No action is authorised solely because a trigger was observed"
ENTITIES:
AutomationTrigger:
properties: ["trigger_id", "trigger_kind", "source_id", "condition", "priority", "enabled", "timestamp", "quality", "latch_policy", "reset_policy"]
lifecycle: ["inactive", "observed", "qualified", "pending", "accepted", "consumed", "rejected", "expired", "faulted"]
TriggerSource:
kinds: ["sensor", "operator_command", "PLC_internal_bit", "timer", "counter", "network_message", "schedule", "state_transition"]
properties: ["source_health", "sampling_interval", "communication_status", "time_reference"]
TriggerCondition:
kinds: ["rising_edge", "falling_edge", "level_true", "threshold_crossing", "time_elapsed", "event_received", "composite_predicate"]
properties: ["threshold", "hysteresis", "debounce_ms", "minimum_hold_ms", "maximum_age_ms"]
AutomationSequence:
properties: ["sequence_id", "current_step", "allowed_transitions", "completion_status"]
GuardCondition:
properties: ["permissive", "equipment_ready", "interlock_clear", "operating_mode_valid", "authority_valid"]
TriggerAction:
properties: ["requested_transition", "command_target", "idempotency_key", "execution_result"]
TriggerRecord:
properties: ["event_id", "source_timestamp", "receipt_timestamp", "decision", "reason", "operator_or_system", "configuration_version"]
SafetyFunction:
properties: ["hazard_id", "safety_state", "independent_trip", "reset_authority"]
RELATIONSHIPS:
- "AutomationTrigger observed_from TriggerSource"
- "AutomationTrigger evaluated_by TriggerCondition"
- "AutomationTrigger gated_by GuardCondition"
- "AutomationTrigger requests TriggerAction"
- "TriggerAction may_transition AutomationSequence"
- "AutomationTrigger documented_by TriggerRecord"
- "SafetyFunction overrides normal TriggerAction"
PATHWAYS:
detection:
input: "Timestamped source event or sampled value"
steps: ["Validate source identity", "Check source quality", "Normalise units and timestamps", "Evaluate trigger predicate"]
output: "Observed trigger candidate or ignored observation"
qualification:
input: "Observed trigger candidate"
steps: ["Apply debounce or dwell", "Check hysteresis and edge semantics", "Reject stale or duplicate events", "Check mode and sequence readiness"]
output: "Qualified, pending, expired or rejected trigger"
authorisation:
input: "Qualified trigger"
steps: ["Evaluate permissives", "Check command authority", "Verify safety interlocks", "Resolve conflicts and priority"]
output: "Accepted trigger or reason-coded rejection"
execution:
input: "Accepted trigger"
steps: ["Record decision", "Issue bounded transition request", "Await acknowledgement", "Verify resulting state", "Record outcome"]
output: "Consumed trigger, timeout or fault"
recovery:
input: "Rejected, timed-out or faulted trigger"
steps: ["Preserve event evidence", "Inhibit unsafe retries", "Notify operator or supervisor", "Require authorised reset when specified"]
output: "Safe, auditable recovery state"
TRIGGER_SEMANTICS:
rising_edge: "TRUE when previous sampled value is false and current sampled value is true, with valid quality"
falling_edge: "TRUE when previous sampled value is true and current sampled value is false, with valid quality"
threshold_high: "x >= H causes assertion; x <= L causes clearing, where L < H"
time_trigger: "Eligible when validated clock and schedule conditions agree; handle clock changes explicitly"
composite_trigger: "Evaluate AND/OR predicates with specified temporal windows and precedence"
debounce: "Accept only after a configured stable interval; distinguish noise filtering from safety-rated validation"
latch: "Retain accepted event until consumption or explicit authorised reset where configured"
idempotency: "Repeated receipt of the same event identifier must not cause unintended duplicate actions"
MINI_RECURSION_ENGINE:
observe: "Collect source state and event metadata"
classify: "Determine event type, edge, freshness and source quality"
infer: "Evaluate predicates, dependencies and competing triggers"
constrain: "Apply operating mode, equipment limits, safety functions and authorisation"
decide: "Select permitted transition or rejection"
execute: "Submit bounded request and confirm acknowledgement"
verify: "Compare expected versus actual sequence state"
learn: "Update non-safety diagnostics and confidence from verified history; do not self-modify certified safety logic"
repeat_until: "Trigger consumed, rejected, expired or safely faulted"
INFERENCE_RULES:
R01: if "source_quality != good" then "reject_trigger(reason=invalid_source)"
R02: if "event_age > maximum_age" then "expire_trigger(reason=stale_event)"
R03: if "debounce_condition == unmet" then "keep_pending_without_action"
R04: if "edge_condition == false" then "do_not_fire"
R05: if "trigger_enabled == false" then "reject_trigger(reason=disabled)"
R06: if "mode_not_permitted" then "reject_trigger(reason=wrong_mode)"
R07: if "sequence_step_not_eligible" then "reject_trigger(reason=wrong_step)"
R08: if "interlock_active or safety_trip_active" then "inhibit_normal_action_and_enter_defined_safe_response"
R09: if "command_authority_invalid" then "reject_trigger(reason=unauthorised)"
R10: if "duplicate_event_id and already_consumed" then "acknowledge_without_reexecution"
R11: if "two_triggers_conflict" then "apply_documented_priority_and_record_arbitration"
R12: if "accepted_trigger and transition_acknowledged" then "mark_consumed_and_record_state"
R13: if "execution_timeout" then "fault_trigger_and_inhibit_automatic_retry_unless_validated"
R14: if "manual_reset_required" then "prohibit_automatic_rearm"
R15: if "clock_invalid and trigger_is_scheduled" then "suspend_scheduled_trigger"
R16: if "feedback_disagrees_with_expected_state" then "raise_diagnostic_and_follow_safe_response"
BOUNDARIES_AND_SAFETY:
- "Normal automation triggers must not override independent emergency-stop or safety functions"
- "Use risk-assessed safety-rated devices and logic for protective functions"
- "On communications loss, follow the engineered fail-safe or hold-state policy"
- "Do not automatically restart hazardous motion after power restoration or emergency-stop reset"
- "All automatic retries require explicit risk assessment and bounded retry limits"
- "Changes to trigger thresholds, priorities and interlocks require controlled configuration management"
- "Protect remote trigger paths with authentication, authorisation and integrity checks"
- "Timestamp quality, time synchronisation and event ordering must be considered in distributed systems"
- "Simulation and testing do not replace commissioning, functional safety verification or equipment-specific validation"
CONFIDENCE:
classification: "Engineering reasoning confidence, not a functional safety integrity rating"
high_when: ["source verified", "predicate unambiguous", "timestamps valid", "interlocks satisfied", "feedback confirmed"]
medium_when: ["minor non-safety ambiguity", "limited diagnostic evidence", "validated fallback available"]
low_when: ["source fault", "missing feedback", "ambiguous ordering", "unverified configuration"]
rule: "Low confidence cannot justify overriding a safety boundary"
SEMANTIC_EQUIVALENCE:
equivalent_terms: ["automation event trigger", "sequence initiation condition", "transition trigger", "PLC trigger event"]
related_not_identical: ["setpoint", "permissive", "interlock", "control signal", "automation step", "automation state", "safety trip"]
distinction: "A trigger is a request-producing condition; a permissive is an enabling guard; an interlock prevents prohibited action"
FLOW_HASH:
algorithm: "SHA-256"
method: "Compute over canonical UTF-8 content at publication; no fabricated digest"
value: "PENDING_CANONICAL_PUBLICATION"
UPDATE_MODEL:
review_triggers: ["ontology revision", "equipment redesign", "PLC program change", "new hazard analysis", "incident evidence", "protocol change"]
versioning: "Increment version and retain revision history"
validation: ["peer review", "predicate tests", "sequence simulation", "interlock verification", "commissioning evidence"]
provenance: "Retain source URL, author attribution, change log and validation status"
END_FLOW
Download Code
Copy to Clipboard