AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
flow "ProductionBatch" v1.0
# Kireth Research Semantic Library — original Flow Algebra representation
IDENTITY:
name: "Production Batch"
class: "ManufacturingEngineeringEntity > ProductionBatch"
domain: [manufacturing, production_management, traceability, quality_assurance]
definition: "An identified collection of units or material produced under a defined production order, process route and bounded set of manufacturing conditions, with records enabling genealogy, conformity and disposition."
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/manufacturing-entities/production-batch-ontology.html"
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/manufacturing-entities/production-batch-ontology.html"
provenance: "Original domain-based semantic model; source page content has not been verified."
PURPOSE:
- Represent production batches as traceable manufacturing entities.
- Relate input lots, operations, equipment, operators, inspection evidence and output units.
- Preserve genealogy across batch splitting, merging, rework and disposition.
- Detect missing records, process deviations and unresolved quality holds.
- Support auditable manufacturing decisions without substituting for authorised quality release.
STATE_MODEL:
S = (I, R, B, K)
I: "Current batch identity, quantities, operation progress, material genealogy and recorded measurements."
R: "Relationships, manufacturing rules, routing rules, acceptance criteria and inference rules."
B: "Process limits, resource constraints, specification limits, safety and traceability boundaries."
K: "Verified records, calibration evidence, approved revisions, test results and provenance."
lifecycle: [planned, released_to_production, in_process, awaiting_inspection, on_hold, rework, accepted, rejected, closed, archived]
state_transitions:
planned_to_released: "Approved order, route, materials and equipment availability."
released_to_in_process: "First authorised operation begins."
in_process_to_inspection: "Required operations complete with records."
inspection_to_accepted: "All applicable acceptance criteria and release approvals satisfied."
any_active_to_hold: "Nonconformance, uncertain genealogy, missing evidence or safety concern."
hold_to_rework: "Approved disposition and controlled rework instructions."
accepted_to_closed: "Reconciliation, documentation and authorised closure."
state_guard: "A batch cannot be accepted solely because its nominal process sequence is complete."
ENTITIES:
ProductionBatch:
attributes: [batch_id, product_id, order_id, revision, target_quantity, actual_quantity, unit_of_measure, start_time, completion_time, status, facility_id, provenance]
ProductionOrder:
attributes: [order_id, product_specification, planned_quantity, due_date, authorised_revision, priority]
ProductSpecification:
attributes: [product_id, revision, dimensions, material_requirements, quality_characteristics, acceptance_criteria]
BillOfMaterials:
attributes: [bom_id, revision, component_requirements, approved_alternatives]
MaterialLot:
attributes: [lot_id, supplier, grade, certificate, receipt_status, expiry_or_shelf_life, quantity]
BatchInput:
attributes: [batch_id, lot_id, quantity_consumed, consumption_time, operation_id, evidence]
ManufacturingRoute:
attributes: [route_id, revision, ordered_operations, dependencies, inspection_gates]
ManufacturingOperation:
attributes: [operation_id, sequence, work_instruction_revision, start_time, end_time, status, output_quantity]
Workstation:
attributes: [station_id, machine_id, location, capability, availability]
Equipment:
attributes: [equipment_id, qualification_state, maintenance_state, calibration_state]
Tooling:
attributes: [tool_id, configuration, wear_state, serviceability, calibration_reference]
Operator:
attributes: [operator_id, role, authorisation, training_status]
ProcessParameterRecord:
attributes: [operation_id, parameter, measured_value, unit, timestamp, instrument_id, tolerance, source]
InspectionRecord:
attributes: [inspection_id, characteristic, method, sample_plan, measured_result, decision, inspector, timestamp]
Nonconformance:
attributes: [nc_id, affected_batch, affected_units, description, severity, containment, disposition, approval]
ReworkOrder:
attributes: [rework_id, affected_units, approved_instruction, operation_history, verification]
GenealogyLink:
attributes: [parent_batch, child_batch, link_type, material_quantity, timestamp, evidence]
BatchDisposition:
attributes: [batch_id, accepted_quantity, rejected_quantity, quarantined_quantity, authorised_by, decision_time]
ShipmentRecord:
attributes: [shipment_id, batch_id, shipped_units, destination, release_reference]
RELATIONSHIPS:
- "ProductionBatch fulfils ProductionOrder."
- "ProductionBatch conforms_to ProductSpecification and BillOfMaterials revision."
- "ProductionBatch consumes MaterialLot through BatchInput."
- "ProductionBatch follows ManufacturingRoute composed_of ManufacturingOperation."
- "ManufacturingOperation uses Workstation, Equipment and Tooling."
- "ManufacturingOperation performed_by authorised Operator."
- "ManufacturingOperation generates ProcessParameterRecord and InspectionRecord."
- "Nonconformance affects ProductionBatch or identified constituent units."
- "ReworkOrder resolves or modifies an approved Nonconformance disposition."
- "GenealogyLink connects source and destination batches after splitting or merging."
- "BatchDisposition determines release eligibility and traceable quantity."
PATHWAYS:
planning:
- "Receive production order and approved product revision."
- "Allocate batch identifier, route, input material and production resources."
- "Validate material availability, suitability and traceability."
execution:
- "Release work instructions and verify equipment readiness."
- "Record each operation, operator, time, consumed inputs and resulting output."
- "Capture critical process measurements with instrument provenance."
- "Reconcile quantities at each transfer and operation boundary."
inspection:
- "Apply approved sampling and acceptance criteria."
- "Record measurement results, uncertainty and inspection decision."
- "Place affected units on hold when evidence is incomplete or nonconforming."
disposition:
- "Determine accepted, rejected, rework and quarantined quantities."
- "Require authorised approval before release or rework."
- "Preserve genealogy through every reclassification and transfer."
closure:
- "Reconcile input and output quantities and deviations."
- "Lock approved batch history and retain audit-ready records."
- "Associate any shipment with the released batch or unit identifiers."
CONSTRAINTS:
identity: "Every batch_id must be unique within its governed identification scope."
revision: "Specifications, BOMs, routes and work instructions must carry controlled revisions."
traceability: "Each consumed input lot must have a recorded identity and quantity."
quantity_balance: "Account for accepted, rejected, scrapped, reworked, in-process and quarantined units without double counting."
equipment: "Safety-critical equipment must be serviceable and qualified for the operation."
calibration: "Measurement acceptance requires appropriate valid calibration or justified alternative evidence."
operator: "Restricted operations require verified operator authorisation."
acceptance: "Release requires completed applicable inspections, resolved holds and approval."
segregation: "Rejected and quarantined units must not silently re-enter accepted inventory."
genealogy: "Splits and merges must retain parent-child lineage and quantity reconciliation."
data_integrity: "Do not overwrite original records; preserve corrections, authorship and timestamps."
safety: "Engineering and quality actions remain subject to site procedures and competent human review."
MEASURES:
planned_quantity: "Target number or mass of conforming units; specify units."
produced_quantity: "Total completed output before disposition."
accepted_quantity: "Output accepted against the authorised criteria."
rejected_quantity: "Output permanently rejected or scrapped."
held_quantity: "Output temporarily unavailable pending investigation."
first_pass_yield: "Units passing required criteria without rework / units initially assessed; define denominator."
batch_yield: "Accepted output / defined input basis; declare unit and scope."
cycle_time: "Elapsed time from authorised batch start to specified completion milestone."
lead_time: "Elapsed time from order release to completed and released batch."
process_capability: "Statistical assessment requiring appropriate stable-process data and assumptions."
traceability_completeness: "Share of mandatory genealogy links supported by records."
measurement_uncertainty: "Uncertainty associated with inspection and process measurement results."
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 at accepted, rejected, archived or an unresolved mandatory hold."
recursion_guard: "Do not infer release from incomplete records or repeat speculative conclusions as evidence."
INFERENCE_RULES:
R01: "IF a production order is approved AND route and resources are valid THEN batch may be released."
R02: "IF an input material lot lacks required identity THEN block its consumption pending verification."
R03: "IF a critical operation exceeds an approved process limit THEN create deviation and hold affected units."
R04: "IF equipment calibration is expired for a required measurement THEN mark measurement validity unresolved."
R05: "IF an operator lacks required authorisation THEN flag operation for formal review."
R06: "IF mandatory operation evidence is missing THEN prevent batch acceptance."
R07: "IF inspection result violates an acceptance criterion THEN create nonconformance and initiate containment."
R08: "IF a batch is split THEN create child identifiers with retained parent lineage and quantity accounting."
R09: "IF batches are merged THEN retain all contributing source batch identities and quantities."
R10: "IF rework is approved THEN require controlled instructions and post-rework verification."
R11: "IF accepted plus rejected plus held plus in-process quantities do not reconcile THEN flag a quantity discrepancy."
R12: "IF a nonconformance remains unresolved THEN batch release is prohibited."
R13: "IF all required tests pass AND records are complete AND approvals exist THEN batch is eligible for release review."
R14: "IF a batch is shipped THEN associate shipment with released quantity and traceable identifiers."
R15: "IF a source lot is recalled THEN identify descendant batches, products and shipments through genealogy."
R16: "IF a specification revision changes during production THEN assess applicability and record authorised disposition."
R17: "IF measurements conflict THEN retain conflicting records and seek resolution rather than selecting a convenient result."
R18: "IF a defect is discovered after release THEN initiate controlled containment, trace-back and corrective action."
CONFIDENCE:
levels: [verified, high, moderate, low, unknown]
verified: "Supported by controlled primary records and authorised checks."
high: "Supported by multiple consistent independent records."
moderate: "Supported by partial evidence with documented assumptions."
low: "Preliminary or indirect evidence; investigation needed."
unknown: "No reliable evidence or provenance available."
propagation: "Derived conclusions cannot exceed the confidence of their critical premises without independent verification."
missing_data: "Unknown is not equivalent to compliant, noncompliant or zero."
SEMANTIC_EQUIVALENCE:
canonical: "ProductionBatch"
near_terms: [manufacturing_batch, production_lot, shop_floor_batch, batch_run]
related_not_equivalent: [material_lot, production_order, manufacturing_operation, product_serial_number, shipment, work_order]
disambiguation: "A production batch identifies a bounded manufacturing output cohort; a material lot identifies supplied or produced material provenance, while a production order authorises planned work."
FLOW_HASH:
method: "SHA-256 over canonical UTF-8 content excluding the hash value itself"
value: "COMPUTE_ON_PUBLICATION"
UPDATE_MODEL:
triggers: [new_operation_record, material_substitution, quality_result, process_deviation, batch_split, batch_merge, rework, specification_revision, release_decision, recall]
process:
- "Preserve original version and record new evidence with timestamp and author."
- "Re-evaluate constraints, genealogy, quantity balance and release eligibility."
- "Record changed inferences, their provenance and confidence."
- "Publish a new controlled revision following authorised review."
rollback: "Restore a prior approved model version without deleting audit history."
governance: "Human quality authority owns acceptance, nonconformance disposition and release decisions."
END_FLOW