Sub topic 7
Source inspection: checking conditions before the error happens
Source inspection checks the conditions that create an error before the process continues. This chapter assumes you know the difference between a process step, an error, and a defect. It also assumes basic quality terms such as inspection and control. The Python example requires only that you can read short functions.
What source inspection means
A human error is an incorrect action or decision. A defect is the unwanted result that reaches the next step or the customer. For example, an operator may select the wrong component. The component becomes a defect only when it is installed in the product.
A later inspection can find the installed wrong component. Source inspection checks the condition before installation:
- Is the component the correct part number?
- Is the orientation correct?
- Is the quantity correct?
- Is the required machine setting active?
- Is the previous step complete?
The inspection belongs at the source of the error. It does not wait for the defect to appear downstream.
A simple source-inspection design
A useful design has three parts:
- Condition: State what must be true before the step starts.
- Check: Sense or verify that condition.
- Response: Stop, prevent, or redirect the process when the condition is false.
Suppose a worker must install a filter into a housing. The filter has a barcode, and the work order identifies the required barcode. A scanner checks the barcode before the worker can start the installation. A matching code permits the step. A mismatch blocks it and displays the expected part.
| Design choice | Example for the filter process |
|---|---|
| Condition | Scanned part number matches the work order |
| Check | Barcode scanner compares both values |
| Response | Release the installation only when they match |
This is source inspection because the check occurs before the wrong part can become part of the product. The device should create a control response when possible. A warning light that the operator can ignore is weaker than a locked fixture or disabled software button.
Source inspection and zero quality control
Shigeo Shingo connected source inspection with zero quality control, a method that aims to prevent defects rather than depend on sampling or end-of-line inspection. The idea is not that people never make errors. The idea is that the process detects the error immediately, while correction is still easy.
A source check can inspect:
- The input before processing.
- The setup before production.
- The previous step's completion status.
- The required sequence of actions.
- A fixed value, such as quantity, torque, or temperature.
For example, a tool can refuse to run unless the correct fixture is attached. A scale can prevent a batch from advancing until its weight is within the required range. A software workflow can prevent shipment until payment is recorded.
Example in software
The same principle applies when software checks a precondition before performing an action.
def release_order(order_id: str, payment_recorded: bool, item_count: int) -> str:
if not order_id.strip():
raise ValueError("Order ID is required")
if not payment_recorded:
raise ValueError("Payment must be recorded before release")
if item_count <= 0:
raise ValueError("Item count must be positive")
return f"Order {order_id} released with {item_count} item(s)"
print(release_order("ORD-1042", payment_recorded=True, item_count=3))The function checks the conditions before release. It does not release the order and then ask another process to discover that payment was missing.
Choosing and testing the check
Start with the error that occurs most often or causes the greatest harm. Then identify the condition that exists immediately before that error. Prefer a check that is automatic, direct, and difficult to bypass.
Test at least these cases:
- A valid condition permits the step.
- Each important invalid condition blocks the step.
- Missing or unreadable input fails safely.
- The operator cannot continue by simply ignoring the check.
- The check does not create excessive false alarms.
Exercise
An operator must enter a batch quantity before mixing. The system accepts zero and allows mixing to start. What source-inspection change is appropriate?
Show answer
Require a positive quantity before enabling the mixing action, and block the action when the value is missing, zero, or invalid.