flow "Transistor" v1.0
# ---------- IDENTITY ----------
identity.id: "engineering.electronic_component.transistor"
identity.name: "Transistor"
identity.class: "ElectronicComponent"
identity.domain: "Electronic Engineering"
identity.language: "en-GB"
identity.status: "constructed_ontology_flow"
# ---------- AUTHORS ----------
authors.primary: "Mark Anthony Higgins"
authors.collaborator: "Sky — Recursive AI"
authors.licence: "Kireth Open Research Licence; citation required"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/electronic-component-entities/transistor-ontology.html"
source.title: "Transistor Ontology"
source.revised: "2026-08-04"
source.method: "Newly constructed semantic representation; not verbatim source code"
# ---------- PURPOSE ----------
purpose.primary: "Represent transistor structure, electrical behaviour, control, operating states and failure reasoning."
purpose.scope: ["BJT", "MOSFET", "JFET", "switching", "amplification", "thermal constraints", "diagnostics"]
purpose.exclusions: ["device-specific guaranteed limits", "automatic approval of safety-critical designs"]
# ---------- STATE_MODEL ----------
state.variables:
device_type: enum("BJT", "MOSFET", "JFET", "other")
polarity: enum("NPN", "PNP", "n_channel", "p_channel", "unknown")
operating_mode: enum("off", "active", "saturation", "cutoff", "ohmic", "breakdown", "fault", "unknown")
terminal_voltages: map(str, float)
terminal_currents: map(str, float)
junction_temperature_C: float?
ambient_temperature_C: float?
dissipated_power_W: float?
safe_operating_area_valid: bool?
gate_or_base_drive_valid: bool?
thermal_margin_valid: bool?
fault_flags: set(str)
state.initial:
operating_mode: "unknown"
safe_operating_area_valid: null
gate_or_base_drive_valid: null
thermal_margin_valid: null
fault_flags: []
state.transitions:
- "unknown -> off: validated control and terminal measurements indicate non-conduction"
- "off -> active: valid bias establishes controlled conduction"
- "active -> saturation: BJT reaches saturation under appropriate drive and load"
- "off -> ohmic: MOSFET channel is enhanced and conducts within its resistive region"
- "any -> breakdown: terminal stress exceeds characterised breakdown conditions"
- "any -> fault: electrical, thermal or integrity constraint is violated"
- "fault -> unknown: service and verified requalification completed"
# ---------- ENTITIES ----------
entities.transistor:
is_a: "SemiconductorDevice"
subclass_of: "ElectronicComponent"
function: "Control electrical current or provide gain using semiconductor behaviour"
entities.bjt:
is_a: "BipolarJunctionTransistor"
terminals: ["base", "collector", "emitter"]
types: ["NPN", "PNP"]
controlled_by: "base-emitter bias and base current"
entities.mosfet:
is_a: "FieldEffectTransistor"
terminals: ["gate", "drain", "source", "body_optional"]
types: ["n_channel", "p_channel"]
controlled_by: "gate-source voltage"
entities.jfet:
is_a: "FieldEffectTransistor"
terminals: ["gate", "drain", "source"]
controlled_by: "gate-source bias"
entities.associated:
- "PowerSupply"
- "ElectricalLoad"
- "GateDriver"
- "BiasNetwork"
- "HeatSink"
- "PrintedCircuitBoard"
- "CurrentSensor"
- "VoltageSensor"
- "ThermalSensor"
- "ProtectionCircuit"
# ---------- RELATIONSHIPS ----------
relationships:
- "Transistor -> is_part_of -> ElectronicCircuit"
- "Transistor -> controls -> LoadCurrent"
- "Transistor -> dissipates -> Heat"
- "Transistor -> constrained_by -> SafeOperatingArea"
- "Transistor -> may_fail_as -> OpenCircuit"
- "Transistor -> may_fail_as -> ShortCircuit"
- "Transistor -> may_fail_as -> ParameterDegradation"
- "BJT -> responds_to -> BaseEmitterBias"
- "MOSFET -> responds_to -> GateSourceVoltage"
- "JFET -> responds_to -> GateSourceBias"
# ---------- PATHWAYS ----------
pathway "IdentifyDevice":
input: ["part_number", "terminal_mapping", "device_datasheet"]
require: "datasheet or validated device identification"
derive: ["device_type", "polarity", "ratings", "terminal_mapping"]
output: "identified_transistor"
otherwise: "unknown_device"
pathway "EvaluateBias":
input: ["identified_transistor", "terminal_voltages", "terminal_currents"]
evaluate: "bias polarity and magnitude against characterised operating regions"
output: ["operating_mode", "gate_or_base_drive_valid"]
otherwise: "insufficient_evidence"
pathway "EvaluateBJT":
require: "device_type == BJT"
calculate: "beta_forced = abs(I_collector / I_base) when I_base != 0"
note: "Current gain is operating-point dependent; do not assume a fixed beta."
evaluate: "cutoff, forward-active or saturation using datasheet limits and measured biases"
output: "bjt_operating_assessment"
pathway "EvaluateMOSFET":
require: "device_type == MOSFET"
evaluate: "V_GS, V_DS, I_D and temperature against device-specific transfer and output curves"
note: "V_GS(th) is not a guarantee of low-resistance fully enhanced operation."
output: "mosfet_operating_assessment"
pathway "EvaluatePower":
input: ["terminal_voltages", "terminal_currents", "switching_waveforms_optional"]
calculate: "P_device = time_average(sum(terminal_voltage * terminal_current)) using consistent sign convention"
evaluate: "conduction and switching losses where relevant"
output: "dissipated_power_W"
pathway "EvaluateThermal":
input: ["dissipated_power_W", "ambient_temperature_C", "thermal_impedance_data"]
estimate: "T_j = T_a + P_device * R_theta_JA for applicable steady-state thermal model"
evaluate: "transient thermal impedance for pulses; heatsink and mounting conditions for assembly"
output: ["junction_temperature_C", "thermal_margin_valid"]
otherwise: "thermal_model_unavailable"
pathway "EvaluateSafeOperatingArea":
input: ["voltage_stress", "current_stress", "pulse_duration", "junction_temperature_C", "datasheet_SOA"]
evaluate: "all stresses within device-specific derated safe operating area"
output: "safe_operating_area_valid"
otherwise: "unverified"
pathway "DiagnoseFault":
input: ["observed_voltage", "observed_current", "observed_temperature", "expected_operating_mode"]
compare: "observations against valid operating envelopes"
infer: ["open_circuit", "short_circuit", "gate_damage", "thermal_overstress", "bias_failure", "parameter_drift"]
output: ["fault_flags", "diagnostic_confidence"]
# ---------- MINI_RECURSION_ENGINE ----------
mini_recursion_engine:
seed: "Transistor"
expand: ["device_type", "terminals", "bias", "load", "thermal_path", "protection"]
observe: ["voltage", "current", "temperature", "switching_state"]
validate: ["datasheet_ratings", "operating_region", "SOA", "thermal_limits"]
infer: ["mode", "performance", "fault_candidates"]
revise: "update conclusions when measurements or component specifications change"
stop_when: "evidence sufficient or safety boundary reached"
max_depth: 5
# ---------- INFERENCE_RULES ----------
rule "OvervoltageRisk":
when: "measured_terminal_voltage > rated_terminal_voltage"
then: "flag('overvoltage'); operating_mode = 'fault'"
confidence: "high_when_ratings_verified"
rule "OvercurrentRisk":
when: "measured_current > applicable_current_limit"
then: "flag('overcurrent'); request_protective_action"
confidence: "high_when_limits_verified"
rule "ThermalRisk":
when: "estimated_or_measured_Tj > maximum_rated_Tj"
then: "flag('thermal_overstress'); request_protective_action"
confidence: "high_when_thermal_model_valid"
rule "InsufficientDrive":
when: "requested_on_state and drive_below_required_operating_condition"
then: "flag('insufficient_drive'); check_bias_and_driver"
confidence: "medium_until_device_curve_verified"
rule "PossibleShortCircuit":
when: "uncommanded_conduction and measured_off_state_impedance_unusually_low"
then: "flag('possible_short_circuit'); require_isolated_testing"
confidence: "provisional"
rule "PossibleOpenCircuit":
when: "valid_drive_present and expected_conduction_absent"
then: "flag('possible_open_circuit'); inspect_connections_and_device"
confidence: "provisional"
# ---------- SAFETY_CONSTRAINTS ----------
safety.require_datasheet: true
safety.no_unverified_ratings: true
safety.isolate_power_before_component_testing: true
safety.discharge_stored_energy_before_handling: true
safety.respect_electrostatic_discharge_precautions: true
safety.protection_is_external_to_ontology: true
safety.note: "This reasoning model is not a substitute for qualified electrical design or testing."
# ---------- CONFIDENCE ----------
confidence.identity: "high_with_validated_part_number"
confidence.operating_mode: "conditional_on_measurements_and_device_characteristics"
confidence.fault_diagnosis: "hypothesis_until_confirmed_by_safe_test"
confidence.thermal_estimate: "model_dependent"
confidence.unknown_values: "must_remain_unknown"
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
- "transistor ~ semiconductor switching or amplifying device (context dependent)"
- "BJT ~ bipolar junction transistor"
- "MOSFET ~ metal-oxide-semiconductor field-effect transistor"
- "JFET ~ junction field-effect transistor"
- "V_GS ~ gate-to-source voltage"
- "V_CE ~ collector-to-emitter voltage"
- "SOA ~ safe operating area"
semantic_distinctions:
- "Transistor != mechanical switch"
- "BJT != MOSFET"
- "threshold_voltage != fully_enhanced_gate_voltage"
- "absolute_maximum_rating != recommended_operating_condition"
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.value: "UNSET"
flow_hash.policy: "Compute over canonical UTF-8 flow content after final publication; do not invent a hash."
# ---------- UPDATE_MODEL ----------
update_model.version: "1.0"
update_model.date: "2026-11-17"
update_model.trigger: ["source_revision", "datasheet_revision", "ontology_extension", "verified_correction"]
update_model.method: "review -> revise -> validate -> recompute_hash -> publish"
update_model.provenance: "Retain source URL, author attribution and revision history"
# ---------- END FLOW ----------
Download Code
Copy to Clipboard