Commerce Quality
Run quality inspections, track non-conformances, and place quality holds on inventory.
How It Works
- Create an inspection for incoming goods, production output, or returns.
- Inspect items and record pass/fail results with defect codes.
- Create non-conformance reports (NCRs) for failures.
- Place quality holds to prevent movement of suspect inventory.
- Resolve NCRs with root cause analysis and corrective actions.
- Release holds when items pass re-inspection.
Usage
- MCP tools:
create_inspection, list_inspections, record_inspection_result, create_ncr, update_ncr, create_quality_hold, release_quality_hold.
- Writes require
--apply.
Inspection Types
- Incoming, Receiving, InProcess, Final, Random, Return
Inspection Results
- Pending, Pass, Fail, ConditionalPass
NCR Statuses
- Open -> UnderReview -> PendingDisposition -> CorrectiveAction -> PreventiveAction -> Verification -> Closed (or Cancelled)
Severity Levels
- Critical, Major, Minor, Observation
Disposition Options
- UseAsIs, Rework, Repair, Scrap, ReturnToVendor, Downgrade, SortAndScreen
Hold Types
- QualityInspection, CustomerReturn, Recall, Damaged, Expired, Quarantine, RegulatoryHold, InvestigationHold
Output
{"status":"inspection_completed","inspection_id":"INS-001","result":"conditional_pass","pass_rate":0.96,"ncr_created":"NCR-2025-0012"}
Present Results to User
- Inspection result and pass rate.
- Defect codes and quantities affected.
- NCR number and required disposition.
- Active quality holds and affected SKUs.
Troubleshooting
- Cannot complete inspection: ensure all items have been inspected.
- Hold blocking shipment: release the hold or re-route to quarantine location.
- NCR stuck open: check that corrective action and verification steps are completed.
References
- references/quality-inspections.md
- /home/dom/stateset-icommerce/crates/stateset-core/src/models/quality.rs
- /home/dom/stateset-icommerce/crates/stateset-embedded/src/quality.rs
1---2name: commerce-quality3description: Manage quality inspections, non-conformance reports, and quality holds. Use when inspecting received goods, production output, or customer returns for defects.4---5
6# Commerce Quality
7
8Run quality inspections, track non-conformances, and place quality holds on inventory.
9
10## How It Works
11
121. Create an inspection for incoming goods, production output, or returns.
132. Inspect items and record pass/fail results with defect codes.
143. Create non-conformance reports (NCRs) for failures.
154. Place quality holds to prevent movement of suspect inventory.
165. Resolve NCRs with root cause analysis and corrective actions.
176. Release holds when items pass re-inspection.
18
19## Usage
20
21- MCP tools: `create_inspection`, `list_inspections`, `record_inspection_result`, `create_ncr`, `update_ncr`, `create_quality_hold`, `release_quality_hold`.
22- Writes require `--apply`.
23
24## Inspection Types
25
26- Incoming, Receiving, InProcess, Final, Random, Return
27
28## Inspection Results
29
30- Pending, Pass, Fail, ConditionalPass
31
32## NCR Statuses
33
34- Open -> UnderReview -> PendingDisposition -> CorrectiveAction -> PreventiveAction -> Verification -> Closed (or Cancelled)
35
36## Severity Levels
37
38- Critical, Major, Minor, Observation
39
40## Disposition Options
41
42- UseAsIs, Rework, Repair, Scrap, ReturnToVendor, Downgrade, SortAndScreen
43
44## Hold Types
45
46- QualityInspection, CustomerReturn, Recall, Damaged, Expired, Quarantine, RegulatoryHold, InvestigationHold
47
48## Output
49
50```json
51{"status":"inspection_completed","inspection_id":"INS-001","result":"conditional_pass","pass_rate":0.96,"ncr_created":"NCR-2025-0012"}
52```
53
54## Present Results to User
55
56- Inspection result and pass rate.
57- Defect codes and quantities affected.
58- NCR number and required disposition.
59- Active quality holds and affected SKUs.
60
61## Troubleshooting
62
63- Cannot complete inspection: ensure all items have been inspected.
64- Hold blocking shipment: release the hold or re-route to quarantine location.
65- NCR stuck open: check that corrective action and verification steps are completed.
66
67## References
68- references/quality-inspections.md
69- /home/dom/stateset-icommerce/crates/stateset-core/src/models/quality.rs
70- /home/dom/stateset-icommerce/crates/stateset-embedded/src/quality.rs