FLOW ALGEBRA — KEYWAY ONTOLOGY
Semantic Library | Shaft, Bearing and Gear Entities
Version: 1.0 | Encoding: UTF-8 | Locale: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/shaft-bearing-and-gear-entities/keyway-ontology.html
Source page attribution: Mark Anthony Higgins — Sky Recursive AI
Source page revised: 04 August 2026
Status: Original ontology reconstruction; NOT a verbatim transcription of inaccessible formal page specifications.
01. PURPOSE
Represent a keyway as a machined or formed recess in a shaft or hub that accommodates a key to constrain relative rotation and transfer torque, subject to geometry, material, assembly and operating limits.
02. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = observed keyway, shaft, hub, key, load, fit and condition information.
R_t = geometry, mating, material, load-transfer, inspection and lifecycle relations.
B_t = dimensional, physical, safety, manufacturing and evidence boundaries.
K_t = engineering definitions, validated calculations, standards and traceable observations.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and supported(x, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observations_t)
If V_t is empty: return UNKNOWN_OR_NONCONFORMING; do not infer suitability.
03. ENTITY MODEL
ENTITY Keyway:
identity: keyway_id, revision, drawing_reference
kind: shaft_keyway | hub_keyway | other_documented_variant
geometry: width, depth, length, end_radius, corner_radius, position, orientation
tolerances: width_tolerance, depth_tolerance, location_tolerance, surface_finish
material_context: parent_material, heat_treatment, surface_condition
state: proposed | manufactured | inspected | assembled | operating | damaged | retired
evidence: measurements, inspection_records, standards_reference
ENTITY Key: key_id, key_type, width, height, length, material, fit
ENTITY Shaft: shaft_id, diameter, material, torque, stress_state
ENTITY Hub: hub_id, bore, material, engagement_length
ENTITY Joint: joint_id, keyway_set, key, shaft, hub, service_conditions
ENTITY LoadCase: torque, reversal, shock_factor, cycle_count, temperature
ENTITY Inspection: method, timestamp, measured_values, outcome, provenance
04. RELATIONSHIPS
Keyway IS_FEATURE_OF Shaft | Hub
Keyway MATES_WITH Key
Keyway PARTICIPATES_IN Joint
Keyway CONSTRAINS_RELATIVE_ROTATION_OF Shaft AND Hub
Keyway TRANSMITS_LOAD_THROUGH Key AND contact_surfaces
Keyway HAS_GEOMETRY GeometrySpecification
Keyway HAS_CONDITION ConditionObservation
Keyway IS_VERIFIED_BY Inspection
Keyway MAY_INTRODUCE StressConcentration
Keyway MAY_REQUIRE RepairOrReplacement
05. OPERATIONAL FLOWS
FLOW 01 — IDENTIFY
input: feature, parent_component, drawings
action: resolve identity, orientation, revision and source provenance
output: identified_keyway | identity_conflict
FLOW 02 — CLASSIFY
input: identified_keyway, geometry
action: determine shaft-side or hub-side keyway and documented type
output: classification | unknown_type
FLOW 03 — MAP MATING PARTS
input: keyway, key, shaft, hub
action: establish complete mating geometry and load path
output: joint_graph | incomplete_joint
FLOW 04 — CHECK DIMENSIONS
input: drawings, measured_width, depth, length, radii, tolerances
action: compare measured dimensions against approved specification
output: dimensional_conformance | dimensional_nonconformance | insufficient_data
FLOW 05 — VERIFY FIT
input: keyway_pair, key_dimensions, assembly_clearances
action: check key seating, interference, clearance and engagement
output: fit_compatible | fit_incompatible | unknown_fit
FLOW 06 — ASSESS TORQUE TRANSFER
input: design_torque, key_geometry, materials, load_case
action: evaluate key shear, bearing/contact pressure and local shaft/hub stresses
output: calculated_margins | calculation_not_supported
FLOW 07 — ASSESS STRESS CONCENTRATION
input: shaft_geometry, keyway_profile, loading, fatigue_requirements
action: assess stress raisers and fatigue susceptibility using applicable methods
output: stress_assessment | needs_detailed_analysis
FLOW 08 — INSPECT CONDITION
input: visual_checks, dimensions, cracks, fretting, deformation, corrosion
action: classify condition and attach traceable evidence
output: condition_state | inspection_incomplete
FLOW 09 — RESOLVE NONCONFORMANCE
input: detected_defect, severity, approved_procedure
action: isolate affected joint and request authorised disposition
output: repair_candidate | replace_candidate | engineering_review_required
FLOW 10 — REVALIDATE LIFECYCLE
input: changes, service_history, inspection_results, new_loads
action: rerun fit, strength, fatigue and condition checks after material changes
output: validated_revision | validation_pending
06. PHYSICAL REASONING
For a rectangular parallel key under a simplified uniform-load model:
tangential_force F = 2*T/d
approximate_key_shear_stress tau = F/(b*L)
approximate_key_bearing_pressure p = F/((h/2)*L)
where T = transmitted torque, d = effective shaft diameter,
b = key width, h = key height, L = effective engaged key length.
These are preliminary key-joint checks, NOT a complete keyway strength assessment.
Account for actual contact geometry, key form, material, tolerances, load reversal,
fatigue, local stress concentration and applicable design standards.
No numerical allowable stress or safety factor is presumed.
07. INFERENCE RULES
R01 IF keyway_width outside approved_tolerance THEN dimensional_nonconformance.
R02 IF mating_key_geometry unavailable THEN fit_status = unknown.
R03 IF design_torque missing THEN torque_capacity_verification = incomplete.
R04 IF visible_crack detected THEN operation_requires_engineering_review.
R05 IF repeated_torque_reversal AND fretting_evidence THEN fatigue_review_required.
R06 IF key_bottoms_out AND designed_side_contact_not_achieved THEN fit_incompatible.
R07 IF shaft_diameter reduced_by_keyway THEN assess_local_strength_reduction.
R08 IF geometry_revision changes THEN invalidate_prior_geometry_dependent_checks.
R09 IF inspection_evidence lacks provenance THEN confidence = limited.
R10 IF all mandatory checks pass AND approval exists THEN status = validated_for_defined_load_case.
08. RECURSIVE INFERENCE ENGINE
INPUT: joint_graph, constraints, observations, prior_results
REPEAT:
expand candidate relations and relevant load cases
reject candidates violating dimensional or safety constraints
propagate dependency changes to affected calculations
request missing evidence where conclusions are underdetermined
update validated state only on supported evidence
UNTIL fixed_point OR iteration_limit OR unresolved_conflict
OUTPUT: validated_state, outstanding_issues, evidence_trail
Termination is required; recursion does not guarantee engineering adequacy.
09. TRI-MAPPING
Physical: shaft recess ↔ key contact ↔ hub recess ↔ transmitted torque
Semantic: Keyway ↔ Key ↔ Shaft ↔ Hub ↔ Joint ↔ LoadCase
Computational: geometry records ↔ constraint checks ↔ analysis ↔ inspection evidence
10. LIFECYCLE
PROPOSED -> DESIGNED -> MANUFACTURED -> INSPECTED -> ASSEMBLED
ASSEMBLED -> OPERATING only after required approval.
OPERATING -> INSPECTED | DAMAGED | RETIRED
DAMAGED -> REPAIRED only under authorised procedure and revalidation.
Any significant design or load change -> VALIDATION_PENDING.
11. VALIDATION CONTRACT
REQUIRE: unique identity, defined parent, approved geometry and load case.
CHECK: units, dimensional tolerances, key fit, stress and fatigue where relevant.
CHECK: traceability of materials, inspections, revisions and calculations.
REJECT: unsupported safety assertions, missing load data, contradictory measurements.
RETURN: PASS | FAIL | INDETERMINATE, with evidence and open issues.
12. EXECUTION GUARANTEE / LIMITS
Guarantee: deterministic rule evaluation for the same validated inputs and rule set,
subject to implementation correctness and explicit conflict handling.
No guarantee: physical safety, code compliance or service life without qualified
engineering review, verified calculations, applicable standards and inspection.
13. AI SEARCH FLOW
ENTITY: Keyway
CATEGORY: Engineering > Shaft, Bearing and Gear Entities
INTENTS: definition, design, key fit, torque transfer, machining, inspection, failure
RELATED: shaft, drive shaft, axle, spindle, spline, key, hub, coupling, gearbox
SEMANTIC_EQUIVALENCE: shaft keyseat (context-dependent); hub keyseat (context-dependent)
CAUTION: a spline is a distinct multi-tooth torque-transfer feature, not a keyway synonym.
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/shaft-bearing-and-gear-entities/keyway-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/shaft-bearing-and-gear-entities/keyway-ontology.html
ATTRIBUTION: Mark Anthony Higgins — Sky Recursive AI
UPDATE_MODEL: revise on drawing, standard, load case or inspection evidence change.
FLOW_HASH: calculate from canonical UTF-8 content during publication; not preassigned.
END OF FLOW
Download Code
Copy to Clipboard