Decision owner
Shift supervisor
The named role remains accountable for the consequential decision.
Manufacturing
Designed for Shift supervisor
Give a shift supervisor a single grounded view of the running shift by fusing MES production events, downtime reasons, quality alerts, and handover notes into prioritized actions and an auto-drafted handover the supervisor signs.
Contract MAN-03 · primary aggregate ProductionShift · mode loading
Decision brief
This brief starts with the decision, evidence, and accountable owner. The guided workflow then shows how the recommendation was produced.
The evidence and control points that shape this recommendation.
Decision owner
Shift supervisor
The named role remains accountable for the consequential decision.
Governed evidence
5 record types
Structured records and cited text ground the recommendation.
Workflow
5 controlled stages
Each transition records its input, output, status, and audit context.
Human controls
1 approval gate
Approval gates prevent the copilot from making consequential decisions.
Two hours into night shift a packaging line is 12 percent behind plan; the copilot shows 47 minutes lost to film splices on one wrapper, links a control-chart violation on seal strength to the same machine, recommends moving the changeover ahead of the at-risk export order, and drafts the handover that the supervisor edits and signs..
Give a shift supervisor a single grounded view of the running shift by fusing MES production events, downtime reasons, quality alerts, and handover notes into prioritized actions and an auto-drafted handover the supervisor signs.
Signed ShiftHandoverNote passed to the next crew gives Shift supervisor the evidence needed to begin the final governed business outcome, with the decision trail retained for review.
Step 1 of 5
| Field | Value |
|---|
| Field | Value |
|---|
The output appears here immediately. More technical evidence remains available below.
The demonstration keeps deterministic controls, AI assistance, and approval separate.
Source systems enforce identity, workflow order, policy filters, and record updates.
Retrieval and generation assemble relevant evidence into a cited recommendation or draft.
Shift supervisor verifies material claims and approves the consequential action.
Run the stages in order before using the Copilot. Every stage explains what happens, why it matters, the evidence it uses, and the complete API request and response.
Automated stage
What happens: Shift supervisor performs open the shift and load the plan using Shift schedule, crew roster, and order sequence and produces ProductionShift with targets and constraints. The transition is deterministic and does not require autonomous model approval.
Why it matters: ProductionShift with targets and constraints gives MES integration service the evidence needed to begin Stream production and downtime events, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/open-the-shift-and-load-the-plan
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: MES integration service performs stream production and downtime events using Machine counts, stoppages, and reason codes and produces Live output and downtime event stream. The transition is deterministic and does not require autonomous model approval.
Why it matters: Live output and downtime event stream gives Analytics agent the evidence needed to begin Rank losses and quality risks, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/stream-production-and-downtime-events
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Analytics agent performs rank losses and quality risks using Downtime minutes, scrap, and quality alerts and produces Prioritized loss list with probable causes. The transition is deterministic and does not require autonomous model approval.
Why it matters: Prioritized loss list with probable causes gives Shift copilot the evidence needed to begin Recommend the next line actions, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/rank-losses-and-quality-risks
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Shift copilot performs recommend the next line actions using Loss ranking, order due times, crew availability and produces Cited action list such as changeover resequencing. The transition is deterministic and does not require autonomous model approval.
Why it matters: Cited action list such as changeover resequencing gives Shift supervisor the evidence needed to begin Sign the shift handover, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/recommend-the-next-line-actions
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Human approval required
What happens: Shift supervisor performs sign the shift handover using Drafted handover with open issues and commitments and produces Signed ShiftHandoverNote passed to the next crew. A named human approver must review the evidence before the transition completes.
Why it matters: Signed ShiftHandoverNote passed to the next crew gives Shift supervisor the evidence needed to begin the final governed business outcome, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/sign-the-shift-handover
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Run a stage to see its explanation, evidence, full request, and full response.
Ask a question and receive an answer grounded in retrieved ProductionShift evidence.
Select a starter question or enter your own.
Loaded live from /api/config, /api/domain/model, and
/api/domain/sample.
productionShifts/tenantId + /plantLineIdTwo hours into night shift a packaging line is 12 percent behind plan; the copilot shows 47 minutes lost to film splices on one wrapper, links a control-chart violation on seal strength to the same machine, recommends moving the changeover ahead of the at-risk export order, and drafts the handover that the supervisor edits and signs.
| Container | Role | Hierarchical partition key | Document types |
|---|---|---|---|
productionShifts |
Primary | /tenantId + /plantLineId |
ProductionShift, DowntimeEvent, ProductionOrderStatus, QualityAlert, ShiftHandoverNote |
| Type | Container | Partition key | Identifier pattern | Embedding fields |
|---|---|---|---|---|
ProductionShift |
productionShifts |
/tenantId + /plantLineId |
shift::{plantLineId}::{shiftDate}::{shiftCode} |
None |
DowntimeEvent |
productionShifts |
/tenantId + /plantLineId |
downtime::{plantLineId}::{eventId} |
operatorCommentVector |
ProductionOrderStatus |
productionShifts |
/tenantId + /plantLineId |
order::{plantLineId}::{productionOrderId} |
None |
QualityAlert |
productionShifts |
/tenantId + /plantLineId |
qualityalert::{plantLineId}::{alertId} |
None |
ShiftHandoverNote |
productionShifts |
/tenantId + /plantLineId |
handover::{plantLineId}::{shiftDate}::{shiftCode} |
narrativeVector |
Read shift state, orders, downtime, and alerts for the line in one partition query.
productionShifts
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.plantLineId = @plantLineId AND c.type IN ('ProductionShift','ProductionOrderStatus','DowntimeEvent','QualityAlert') ORDER BY c.startUtc DESC
Rank stoppage reason codes by lost minutes to focus the crew.
productionShifts
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.plantLineId = @plantLineId AND c.type = 'DowntimeEvent' AND c.startUtc >= @shiftStartUtc ORDER BY c.durationMinutes DESC
Flag orders whose remaining quantity cannot finish before the due time at current rate.
productionShifts
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.plantLineId = @plantLineId AND c.type = 'ProductionOrderStatus' AND c.completedQuantity < c.scheduledQuantity AND c.dueUtc < @horizonUtc ORDER BY c.dueUtc ASC
List open quality alerts that must be resolved before handover.
productionShifts
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.plantLineId = @plantLineId AND c.type = 'QualityAlert' AND c.dispositionState = 'open' ORDER BY c.alertSeverity DESC