Skip to main content

Product Stream Ontology

Chemical Engineering Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 23 November 2026
Audio Overview
flow "ProductStream" v1.0

# Kireth Research Semantic Library — Flow Algebra
# Domain: Chemical Engineering / Process Streams

IDENTITY:
  name: "Product Stream"
  class: "ChemicalEngineeringEntity > ProcessStream > ProductStream"
  domain: [chemical_engineering, process_systems, material_flow, product_quality]
  definition: "A material stream leaving a process operation and designated as a product, intermediate product, co-product or by-product under a defined process boundary and specification."
  distinction: "A product stream is classified by its intended process role, not solely by physical composition or outlet location."

AUTHORS:
  primary: "Mark Higgins — Kireth Research"
  collaborator: "Sky — Recursive AI"
  licence: "Kireth Open Research Licence — free reuse with citation required"

SOURCE:
  ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/chemical-engineering-entities/product-stream-ontology.html"
  citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/chemical-engineering-entities/product-stream-ontology.html"
  provenance: "Original domain-based semantic model; source-page contents have not been verified."

PURPOSE:
  - Represent product streams as identifiable, measurable, time-dependent engineering entities.
  - Connect process outputs to composition, specification, custody and downstream destinations.
  - Support traceable material and energy balances, quality assessment and fault inference.
  - Distinguish product, co-product, intermediate, recycle, waste and emission streams.
  - Prevent unsupported quality, safety or compliance conclusions.

STATE_MODEL:
  S = (I, R, B, K)
  I: "Stream identity, source unit, destination, flow conditions, composition, measured values and timestamps."
  R: "Process relationships, phase equilibria, material and energy balances, specification rules and transfer dependencies."
  B: "Equipment limits, operating envelopes, product specifications, safety constraints and data-validity boundaries."
  K: "Validated measurements, calibrated instruments, laboratory analyses, process records and uncertainty."
  lifecycle: [designed, commissioned, operating, sampled, accepted, diverted, held, reprocessed, isolated, retired]
  operating_states: [absent, starting, on_specification, off_specification, transient, interrupted, contaminated, unknown]
  state_change_requires: [event_time, cause, evidence, authorised_action]

ENTITIES:
  ProductStream:
    attributes: [stream_id, name, source_unit_id, outlet_port_id, destination_id, product_role, phase, status, timestamp]
    relationships: [exits, feeds, contains, measured_by, specified_by, sampled_by, transferred_to]
  ProcessUnit:
    attributes: [unit_id, equipment_type, operational_state, operating_limits]
  StreamPort:
    attributes: [port_id, direction, design_rating, connection_id]
  ProductClassification:
    values: [final_product, intermediate, co_product, by_product, recovered_material]
    note: "Classification may depend on commercial and process context."
  MaterialComponent:
    attributes: [component_id, chemical_identity, phase, mass_fraction, mole_fraction, concentration, impurity_flag]
  ThermodynamicState:
    attributes: [temperature_K, absolute_pressure_Pa, phase_fractions, density_kg_m3, specific_enthalpy_J_kg]
  FlowMeasurement:
    attributes: [mass_flow_kg_s, molar_flow_mol_s, volumetric_flow_m3_s, uncertainty, timestamp, sensor_id]
  ProductSpecification:
    attributes: [spec_id, component_limits, purity_target, moisture_limit, physical_properties, sampling_method, acceptance_rule]
  QualitySample:
    attributes: [sample_id, stream_id, collection_time, method, result, laboratory_id, chain_of_custody]
  Destination:
    attributes: [destination_id, destination_type, transfer_permission, containment_requirements]
    types: [storage, packaging, shipment, downstream_process, rework, quarantine, waste_management]
  Instrument:
    attributes: [instrument_id, measurement_type, calibration_status, validity_interval, diagnostic_state]
  TransferPath:
    attributes: [path_id, piping, valves, pumps, containment, isolation, pressure_rating]
  Deviation:
    attributes: [deviation_id, parameter, limit, severity, first_detected, evidence, disposition]
  ProductBatch:
    attributes: [batch_id, start_time, end_time, quantity, release_status, traceability_id]
  EvidenceRecord:
    attributes: [record_id, origin, timestamp, quality_flag, uncertainty, revision]

PATHWAYS:
  material: "upstream_process -> source_unit -> product_outlet -> transfer_path -> destination"
  quality: "product_stream -> representative_sample -> validated_analysis -> specification_comparison -> disposition"
  control: "sensor -> controller -> actuator -> process_response -> product_stream -> sensor"
  traceability: "stream_id -> process_run_or_batch -> samples -> quality_release -> storage_or_shipment"
  diversion: "off_specification -> alarm -> authorised_isolation_or_diversion -> rework_or_quarantine"
  feedback: "measured_product_quality -> process_diagnosis -> reviewed_setpoint_change -> remeasurement"
  information: "instrument -> timestamped_record -> historian -> validated_knowledge_state"

CONSTRAINTS:
  C01: "Every stream must have a unique identity within its process context and time interval."
  C02: "Every claimed flow direction must agree with the process connectivity model."
  C03: "A product designation does not prove conformance to a product specification."
  C04: "Component mass fractions sum to approximately one within stated uncertainty for a complete composition basis."
  C05: "Mass, molar and volumetric flow rates must retain units, basis and measurement conditions."
  C06: "Steady-state material balance assumptions must not be applied to unverified transients."
  C07: "Transfer destinations must be compatible with chemical hazards, temperature, pressure and containment."
  C08: "A release decision requires current, representative, validated evidence and an applicable specification."
  C09: "Measurements outside instrument validity or calibration limits are flagged, not silently trusted."
  C10: "Unknown phase, composition or hazard classification must not be inferred as safe."
  C11: "Recycled, waste and emission streams must not be relabelled as products without explicit process-role evidence."
  C12: "Safety interlocks and legal discharge requirements override optimisation objectives."

MEASURES:
  total_mass_flow: "m_dot_total = sum_i(m_dot_i), using a consistent time basis"
  component_mass_flow: "m_dot_i = w_i * m_dot_total for a homogeneous stream and valid mass fractions"
  total_molar_flow: "n_dot_total = sum_i(n_dot_i)"
  purity_mass_basis: "purity = m_target / m_total on a declared sample basis"
  component_recovery: "recovery_i = product_component_rate_i / feed_component_rate_i, for defined system boundaries"
  yield: "yield requires an explicit chemical reaction or process basis; not interchangeable with purity or recovery"
  energy_rate: "H_dot = m_dot * h for a single representative specific enthalpy basis"
  balance_residual: "residual = total_in - total_out - accumulation - generation + consumption, using consistent sign convention"
  uncertainty: "Report uncertainty and sampling interval with every computed result."

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 evidence_supported(x, K_t)}"
  select: "x_star = argmax_x P(x | I_t, R_t, B_t, K_t), x in V_t"
  update: "I_(t+1) = incorporate(I_t, x_star, new_observations, provenance)"
  stop: "Stop when no supported new inference exists, data are insufficient or safety constraints prohibit action."
  recursion_guard: "Bound inference depth, reject circular self-confirmation and preserve unresolved uncertainty."

INFERENCE_RULES:
  R01: "IF a stream exits a process unit AND is explicitly designated as saleable output THEN classify as candidate final product."
  R02: "IF output is consumed by another processing step THEN classify as intermediate unless contrary process evidence exists."
  R03: "IF multiple intended valuable outputs are recovered THEN represent distinct co-product streams with separate specifications."
  R04: "IF any validated product property violates its applicable limit THEN mark off_specification."
  R05: "IF a sample is missing or unrepresentative THEN product release status remains unverified."
  R06: "IF component fractions do not close within uncertainty THEN flag composition inconsistency."
  R07: "IF measured outlet flow disagrees with an applicable mass balance THEN investigate measurement, accumulation, leakage and unmodelled branches."
  R08: "IF temperature or pressure exceeds a validated transfer limit THEN prohibit automated transfer recommendation."
  R09: "IF sensor health is degraded THEN reduce confidence and seek independent corroboration."
  R10: "IF composition changes significantly during a transient THEN invalidate unqualified steady-state assumptions."
  R11: "IF product purity meets specification but a hazardous impurity exceeds its limit THEN product remains off_specification."
  R12: "IF validated quality and traceability evidence satisfy all release conditions THEN mark eligible_for_authorised_release, not automatically released."
  R13: "IF destination containment is incompatible with the product hazard THEN require isolation and engineering review."
  R14: "IF stream identity or batch linkage is lost THEN quarantine traceability-dependent release decisions."
  R15: "IF off-specification output is redirected for reprocessing THEN retain the original deviation and lineage."
  R16: "IF new laboratory evidence contradicts an online analyser THEN retain both records and initiate reconciliation."

CONFIDENCE:
  levels: [verified, high, moderate, low, unknown]
  verified: "Traceable validated evidence supports the specific claim and time interval."
  high: "Multiple consistent reliable sources with bounded uncertainty."
  moderate: "Partial measurement support or reasonable model inference with stated assumptions."
  low: "Sparse or conflicting evidence; hypothesis only."
  unknown: "No adequate evidence or applicable basis."
  rule: "Never elevate model inference to verified measurement without independent validation."

SEMANTIC_EQUIVALENCE:
  canonical: "Product Stream"
  near_terms: [product_outlet_stream, process_product_flow, output_product_stream]
  related_not_equivalent: [feed_stream, recycle_stream, waste_stream, vent_stream, product_batch, final_product_inventory]
  disambiguation: "A product stream is a moving or defined process output; a product batch is a bounded quantity with traceability, and a product specification is a set of acceptance criteria."

FLOW_HASH:
  method: "SHA-256 over canonical UTF-8 content excluding the hash value itself"
  value: "COMPUTE_ON_PUBLICATION"

UPDATE_MODEL:
  triggers: [process_reconfiguration, new_specification, revised_composition, equipment_change, new_measurement, safety_incident, regulation_change]
  process:
    - "Record the initiating event and source evidence."
    - "Check stream identities, connectivity and units."
    - "Recalculate relevant material and energy balances."
    - "Reassess specifications, hazards, uncertainty and inference validity."
    - "Version the ontology and retain historical lineage."
  rollback: "Restore the last validated revision if an update fails consistency or safety checks."
  governance: "Engineering, quality and safety decisions require authorised review; this ontology is not a plant operating procedure."

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