S40 · Pipeline skill
Trace batches and resolve issues
Record batch and quality events, trace the impact and have reviewers decide and verify resolution.
Batch records + impact tracing + human resolution and closure
- Pipeline
- 5 steps
- Human review
- 2
- Components
- 6
01Pipeline
Base pipeline
Ordered steps. Each consumes the previous output; review gates hold until a person accepts.
- Starts from
- Batch origins, inspection records and movement events
- Delivers
- Resolution evidence and open items
Review contract
People decide at review gates; components supply data, drafts or review surfaces. Unaccepted outputs do not advance.
Integration note
Normalize product-specific batch and packaging logic into shared events; device interfaces record state without equipment task dispatch.
- 01
Record batches and inspections
- Input
- Batch origins, inspection records and movement events
- Output
- Batch and inspection records linked to work orders or reservations
- BOM, production work orders and manufacturing costingRecipe expansion and material issue + work-order quality and costing
- Flower presales, quality/loss inspection and fulfillmentPerishable item reservation + quality thresholds and fulfillment tasks
- 02
Collect movement events
- Input
- Batch and inspection records linked to work orders or reservations
- Output
- Traceable scans and movement receipts
- Liquor packaging, deposits, channel pricing and trace codesPackaging and deposit calculations + trace-code risk checks
- Enterprise API access, webhooks and warehouse-device recordsAuthorized business event intake + receipts and device records
- 03
Trace the impact
- Input
- Traceable scans and movement receipts
- Output
- Affected stock, orders and proposed actions
- Batch traceability, recall tasks and distribution risk auditsBatch impact tracing + recall tasks and resolution records
- 04
Approve resolution
Human review- Input
- Affected stock, orders and proposed actions
- Output
- Human-approved quarantine, recall or replacement tasks
Decided byAssigned reviewer or requesting user
- Batch traceability, recall tasks and distribution risk auditsBatch impact tracing + recall tasks and resolution records
- Aftersales approvals, refunds and replacement ordersException intake + human-approved refund or replacement
- 05
Verify resolution
Human review- Input
- Human-approved quarantine, recall or replacement tasks
- Output
- Resolution evidence and open items
Decided byAssigned reviewer or requesting user
- Batch traceability, recall tasks and distribution risk auditsBatch impact tracing + recall tasks and resolution records
- Aftersales approvals, refunds and replacement ordersException intake + human-approved refund or replacement
02Industry versions
Industry versions
Manufacturing & industry Transferable use Link work orders, incoming batches and movement records, then list the impact of quality concerns for a quality lead to resolve.
Adaptation The manufacturing component is tagged retail in source data, so this industry remains transferable; unify batch and work-order models and integrate actual devices separately.
- 01
Record work orders and inspection batches
- Input
- Work orders, incoming batches, inspection criteria and movements
- Output
- Work-order-linked batches and inspection results
- BOM, production work orders and manufacturing costingRecipe expansion and material issue + work-order quality and costing
- Flower presales, quality/loss inspection and fulfillmentPerishable item reservation + quality thresholds and fulfillment tasks
- 02
Collect batch scan events
- Input
- Work-order-linked batches and inspection results
- Output
- Batch movement and handoff records
- Liquor packaging, deposits, channel pricing and trace codesPackaging and deposit calculations + trace-code risk checks
- Enterprise API access, webhooks and warehouse-device recordsAuthorized business event intake + receipts and device records
- 03
Trace affected materials
- Input
- Batch movement and handoff records
- Output
- Affected stock, finished goods and dispatch records
- Batch traceability, recall tasks and distribution risk auditsBatch impact tracing + recall tasks and resolution records
- 04
Quality lead approves resolution
Human review- Input
- Affected stock, finished goods and dispatch records
- Output
- Quarantine, rework or recall tasks
Decided byAssigned reviewer or requesting user
- Batch traceability, recall tasks and distribution risk auditsBatch impact tracing + recall tasks and resolution records
- Aftersales approvals, refunds and replacement ordersException intake + human-approved refund or replacement
- 05
Verify resolution and closure
Human review- Input
- Quarantine, rework or recall tasks
- Output
- Reinspection evidence and open exceptions
Decided byAssigned reviewer or requesting user
- Batch traceability, recall tasks and distribution risk auditsBatch impact tracing + recall tasks and resolution records
- Aftersales approvals, refunds and replacement ordersException intake + human-approved refund or replacement
Logistics & supply chain Transferable use Link returnable containers, fragile goods and scan receipts into batch evidence, then trace damage impact before resolution.
Adaptation Replace manufacturing and packaging models with container and goods events; scan records do not establish physical holds.
- 01
Record inbound batches and inspections
- Input
- Goods batches, container IDs and quality records
- Output
- Batch, container and quality records
- BOM, production work orders and manufacturing costingRecipe expansion and material issue + work-order quality and costing
- Flower presales, quality/loss inspection and fulfillmentPerishable item reservation + quality thresholds and fulfillment tasks
- 02
Collect loading and handoff scans
- Input
- Batch, container and quality records
- Output
- Batch movement receipts across sites
- Liquor packaging, deposits, channel pricing and trace codesPackaging and deposit calculations + trace-code risk checks
- Enterprise API access, webhooks and warehouse-device recordsAuthorized business event intake + receipts and device records
- 03
Trace affected goods
- Input
- Batch movement receipts across sites
- Output
- Affected stock, fulfillment orders and recipients
- Batch traceability, recall tasks and distribution risk auditsBatch impact tracing + recall tasks and resolution records
- 04
Lead approves holds and replacements
Human review- Input
- Affected stock, fulfillment orders and recipients
- Output
- Approved hold or replacement tasks
Decided byAssigned reviewer or requesting user
- Batch traceability, recall tasks and distribution risk auditsBatch impact tracing + recall tasks and resolution records
- Aftersales approvals, refunds and replacement ordersException intake + human-approved refund or replacement
- 05
Verify resolution evidence
Human review- Input
- Approved hold or replacement tasks
- Output
- Resolution receipts and open exceptions
Decided byAssigned reviewer or requesting user
- Batch traceability, recall tasks and distribution risk auditsBatch impact tracing + recall tasks and resolution records
- Aftersales approvals, refunds and replacement ordersException intake + human-approved refund or replacement
03Parameters
Parameters
From the pack’s params.schema.json. Choose values to build a synthetic request.
skills/_pipelines/trace-batches-and-resolve/params.schema.json
{
"synthetic": true,
"run_id": "synthetic-example",
"locale": "en",
"industry": "base",
"adapter_mode": "local",
"records": [
{
"id": "synthetic-record-1",
"synthetic": true,
"text": "Synthetic observation A: a draft needs review."
},
{
"id": "synthetic-record-2",
"synthetic": true,
"text": "Synthetic observation B: retain the unresolved question."
}
],
"decisions": {}
} 04Member components
Member components
-
BOM, production work orders and manufacturing costing
Recipe expansion and material issue + work-order quality and costing
Working 1 pipeline -
Flower presales, quality/loss inspection and fulfillment
Perishable item reservation + quality thresholds and fulfillment tasks
Working 1 pipeline -
Liquor packaging, deposits, channel pricing and trace codes
Packaging and deposit calculations + trace-code risk checks
Working 1 pipeline -
Enterprise API access, webhooks and warehouse-device records
Authorized business event intake + receipts and device records
Working 1 pipeline -
Batch traceability, recall tasks and distribution risk audits
Batch impact tracing + recall tasks and resolution records
Working 1 pipeline -
Aftersales approvals, refunds and replacement orders
Exception intake + human-approved refund or replacement
Working 3 pipelines
05Skills pack
Skills pack
Runnable reference on synthetic fixtures with tests. Domain contracts, services and approvals still need integration.
trace-batches-and-resolve-1.0.0.zip
Contains SKILL.md, pipeline.json, params.schema.json, runner, tests, fixtures, integration checklist and sources.
Synthetic workflow reference; service integration pending
Download · 20KBSHA-256 b11e553b55baeb3754b49402405221a0c021939feef04996c46509e922aacea1