AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
flow "TrafficSignal" v1.0
# Kireth Research Semantic Library — original Flow Algebra representation
# Domain: Transportation Engineering > Traffic Signal
IDENTITY:
name: "Traffic Signal"
canonical_id: "transportation-engineering:traffic-signal"
class: "EngineeringEntity > TransportationEngineeringEntity > TrafficControlDevice > TrafficSignal"
definition: "A controlled visual indication system governing permitted, prohibited or conditional movements of road users at a transport conflict point."
scope: [signal_head, controller, detection, phase, stage, intergreen, crossing, communications, safety_monitoring]
distinctions:
- "Signal head: physical display; signal indication: displayed instruction; controller: logic that commands indications."
- "Phase: traffic movement or group receiving an indication; stage: compatible phases shown together, depending on local terminology."
- "Signal timing is not equivalent to road-user priority in all circumstances; legal rules and site configuration govern."
AUTHORS:
primary: "Mark Higgins — Kireth Research"
collaborator: "Sky — Recursive AI"
licence: "Kireth Open Research Licence; free use with citation required"
SOURCE:
ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/transportation-engineering-entities/traffic-signal-ontology.html"
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/transportation-engineering-entities/traffic-signal-ontology.html"
source_status: "User-supplied URL; original domain-informed flow, not a verified extraction of the linked page."
locale: "en-GB"
PURPOSE:
- "Represent signal-controlled movements and their physical, logical and operational dependencies."
- "Support semantic retrieval, traffic-control reasoning, fault classification and auditable decisions."
- "Distinguish design intent, measured state, controller commands and observed indications."
- "Prevent unsupported inference of safe operation from a green indication alone."
STATE_MODEL:
S = (I, R, B, K)
I: "Current observations: detector calls, indication states, controller status, demand, timestamps, fault flags."
R: "Relations: controls, detects, conflicts_with, precedes, serves, interlocks_with, reports_to."
B: "Boundaries: approved timings, conflict matrix, regulatory requirements, accessibility, environmental limits."
K: "Knowledge: commissioned configuration, certified safety functions, site plans, maintenance records."
state_variables:
controller_mode: [fixed_time, vehicle_actuated, adaptive, manual_authorised, flashing_if_permitted, fault]
phase_state: [red, red_amber_if_applicable, green, amber, dark, unknown]
pedestrian_state: [wait, invitation_to_cross, clearance, unknown]
communications: [healthy, degraded, lost]
detector_health: [healthy, suspect, failed]
controller_health: [healthy, degraded, faulted]
clock_quality: [synchronised, drifted, unknown]
operating_state: [commissioning, operational, restricted, maintenance, out_of_service]
ENTITIES:
TrafficSignal:
attributes: [asset_id, location, jurisdiction, operating_authority, design_revision, commissioning_date]
contains: [SignalController, SignalHead, SignalPhase, SignalStage, DetectionSystem, PowerSupply]
SignalController:
attributes: [controller_id, firmware_revision, approved_configuration, current_mode, fault_status]
commands: [SignalHead, PedestrianSignal, AudibleTactileUnit]
SignalHead:
attributes: [head_id, approach, mounting, orientation, lamp_type, visibility, monitored_status]
contains: [RedAspect, AmberAspect, GreenAspect]
SignalPhase:
attributes: [phase_id, movement_group, minimum_green, maximum_green, clearance_requirement]
relates_to: [ConflictMatrix, Intergreen, SignalStage]
SignalStage:
attributes: [stage_id, compatible_phase_set, stage_sequence, permitted_transition]
ConflictMatrix:
attributes: [movement_pairs, conflict_classification, validation_revision]
Intergreen:
attributes: [terminating_phase, starting_phase, amber_interval, all_red_interval, approved_basis]
DetectionSystem:
types: [inductive_loop, radar, video_analytics, push_button, other_approved_detector]
attributes: [detection_zone, sensitivity, health, timestamp, confidence]
PedestrianSignal:
attributes: [crossing_id, display_state, demand_registered, clearance_logic, accessibility_provision]
AudibleTactileUnit:
attributes: [location, enabled_state, operational_health, crossing_association]
PowerSupply:
attributes: [supply_state, protective_devices, backup_provision, monitored_faults]
CommunicationInterface:
attributes: [protocol, network_status, remote_monitoring, cybersecurity_controls]
TrafficApproach:
attributes: [approach_id, lanes, turning_movements, speed_environment, road_user_classes]
SafetyMonitor:
attributes: [conflicting_green_detection, lamp_monitoring, controller_watchdog, safe_fallback]
MaintenanceRecord:
attributes: [asset_id, inspection_date, defects, corrective_action, test_result, authorised_signoff]
RELATIONS:
- "TrafficSignal controls TrafficApproach via SignalPhase"
- "SignalController commands SignalHead"
- "SignalStage groups mutually compatible SignalPhase instances"
- "ConflictMatrix prohibits incompatible concurrent movements"
- "Intergreen separates specified conflicting stage or phase transitions"
- "DetectionSystem requests or extends service subject to controller constraints"
- "PedestrianSignal coordinates with conflicting vehicle phases"
- "SafetyMonitor detects unsafe or inconsistent commanded/observed states"
- "MaintenanceRecord documents inspection and configuration provenance"
- "CommunicationInterface reports health without overriding local safety interlocks"
PATHWAYS:
normal_cycle:
- "Observe traffic and pedestrian demand with timestamps and health flags."
- "Validate detector inputs and authorised operating mode."
- "Select an eligible stage subject to the approved conflict matrix and timings."
- "Terminate current service only after relevant minimum intervals and conditions."
- "Apply approved amber, clearance and intergreen transitions."
- "Energise authorised indications and verify monitored outputs where available."
- "Log phase change, demand response and any discrepancies."
pedestrian_service:
- "Register pedestrian demand and identify the associated crossing."
- "Identify all vehicle phases conflicting with the crossing movement."
- "Schedule invitation and clearance intervals using approved site-specific timing."
- "Provide accessibility outputs only when appropriately associated and verified."
fault_response:
- "Detect conflicting greens, watchdog failures, power faults or critical lamp anomalies."
- "Classify fault using certified controller diagnostics and actual output observations."
- "Enter the approved safe response; do not assume a universal fallback indication."
- "Raise alarm, record provenance and require authorised recovery and testing."
configuration_change:
- "Propose revision with conflict, timing, accessibility and traffic-impact assessment."
- "Validate against governing standards and authority approval."
- "Commission, test, record version and retain rollback information."
ENGINEERING_CONSTRAINTS:
conflict_free_indications: "For any conflicting movements a and b, NOT (green(a) AND green(b)) unless an explicitly validated non-conflicting exception applies."
timing: "All minimum, maximum and clearance intervals derive from approved site-specific configuration, not generic constants."
safe_transitions: "Stage changes must respect the applicable amber and intergreen sequence."
detector_validity: "Stale, absent or inconsistent detector data cannot be treated as verified absence of traffic."
power_and_monitoring: "Loss of supply, controller health or output monitoring invokes the site's validated fault strategy."
pedestrian_protection: "Vehicle conflicts must be controlled during pedestrian invitation and required clearance."
accessibility: "Audible/tactile cues must be coordinated with the correct crossing and operating state."
cybersecurity: "Remote commands require authenticated, authorised and auditable control; local safety interlocks remain authoritative."
site_specificity: "Timing and phasing depend on geometry, road users, speed environment and governing legislation."
engineering_assurance: "This ontology does not constitute a traffic-signal design, commissioning approval or safety certification."
MINI_RECURSION_ENGINE:
state: "S_t = (I_t, R_t, B_t, K_t)"
expand: "E_t = expand(I_t, R_t)"
validate: "V_t = {x in E_t | satisfies(x, B_t) and supported_by(x, K_t)}"
select: "x_star = argmax P(x | I_t, R_t, B_t, K_t) for x in V_t"
update: "I_(t+1) = incorporate(I_t, x_star, observed_indications, diagnostics, provenance)"
stop_condition: "Stop or escalate if V_t is empty, safety evidence is missing or an unmitigated conflict is detected."
guardrail: "Semantic inference never bypasses certified traffic controller logic."
INFERENCE_RULES:
R01: "IF two movements are marked conflicting THEN simultaneous permissive green requires rejection or explicit validated conflict resolution."
R02: "IF a phase has a valid demand AND is eligible THEN it may be considered for future service, not guaranteed immediate service."
R03: "IF pedestrian demand is registered THEN retain request until acknowledged or handled under approved logic."
R04: "IF detector data is stale THEN mark detector input uncertain and invoke configured degraded-mode handling."
R05: "IF a controller command differs from monitored indication THEN flag output discrepancy and escalate according to safety classification."
R06: "IF an intergreen is incomplete THEN prohibit starting the incompatible receiving movement."
R07: "IF safety monitor reports conflicting greens THEN trigger certified protective response and log the incident."
R08: "IF communications fail BUT local controller remains healthy THEN continue only in the approved autonomous local mode."
R09: "IF controller configuration changes THEN invalidate prior commissioning evidence until required tests are repeated."
R10: "IF pedestrian accessibility output is mismatched to a crossing THEN flag safety-critical association fault."
R11: "IF timing parameters lack an approved provenance THEN mark them unverified and prohibit deployment inference."
R12: "IF maintenance status is overdue THEN increase inspection priority without claiming the installation is automatically unsafe."
R13: "IF an approach is obstructed or a head is poorly visible THEN flag an operational visibility hazard for site review."
R14: "IF traffic demand changes THEN adaptive optimisation may change timing only within authorised safety boundaries."
R15: "IF a safety-relevant sensor is unavailable THEN do not infer a clear movement from absence of detections."
CONFIDENCE:
classes: [verified, high, moderate, low, unknown]
evidence_priority:
- "Approved site configuration and validated commissioning tests"
- "Time-stamped controller diagnostics and direct monitored indications"
- "Calibrated detectors and authorised field inspection"
- "Operational records with known limitations"
- "General traffic-engineering knowledge and unverified assumptions"
downgrade_conditions: [stale_data, contradictory_indications, unknown_configuration, failed_detector, missing_provenance]
rule: "Confidence in a semantic description does not establish functional safety."
SEMANTIC_EQUIVALENCE:
aliases: [traffic_light, traffic_control_signal, signalised_traffic_control]
related_not_equivalent: [traffic_sign, pedestrian_crossing, traffic_controller, junction, signal_head, traffic_phase]
disambiguation:
- "Traffic signal denotes a traffic-control installation or its indication system, depending on context."
- "Traffic signal is not a generic signal in telecommunications or electronics."
- "Green signal is a displayed permission subject to prevailing rules, not proof of an empty conflict area."
FLOW_HASH:
method: "SHA-256 of canonical UTF-8 flow content excluding the FLOW_HASH value"
value: "COMPUTE_ON_PUBLICATION"
UPDATE_MODEL:
version: "1.0"
created: "2026-11-20"
triggers: [standard_revision, signal_design_change, controller_firmware_change, safety_case_update, new_field_evidence]
change_control:
- "Record changes to entities, timing semantics and conflict rules."
- "Maintain source attribution and revision history."
- "Review safety-related statements against current competent-authority guidance."
- "Regenerate canonical hash after approved publication."
END_FLOW