Build an Operator Handover and Shift Knowledge Capture Workspace — implementation
Linked challenge: Build an Operator Handover and Shift Knowledge Capture Workspace
Prompt source
implementation74 lines11 sectionsNo variables1 code block
## Build
Correlate unstructured operator shift notes with Sparkplug B edge telemetry alarms and line state transitions. Synthesize actionable shift handover briefs and maintain a persistent historical resolution playbook for recurring production anomalies.
## User
Operations Shift Supervisor
## Workflow
1. Parse Sparkplug B metric streams and device lifecycle payloads to identify anomalous machine trips.
2. Ingest informal text handover notes recorded by outgoing machine operators.
3. Align timestamped operator mitigation actions with underlying telemetry recovery events.
4. Synthesize a validated shift handover report highlighting unresolved line interlocks and verified operating tips.
## Interface
Split-view shift console with incoming alarm timelines, draft handover cards, and operator note reconciliation editors.
## Data
Simulated Sparkplug B telemetry dumps (JSON-serialized payloads) and mock operator log snippets in local fixtures.
Starter examples below are synthetic. They are not downloaded records.
## Source
[Eclipse Sparkplug](https://raw.githubusercontent.com/eclipse-sparkplug/sparkplug/master/README.md)
Sparkplug B device lifecycle state messages, metric timestamps, and property metadata structures.
## Tools
mastra-ai, pydantic, sqlite3.
Provides modular workflow orchestration for multi-step text normalization and time-series alarm correlation.
Local or hosted LLM with strong technical summarization and timeline extraction capabilities.
## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.
## Acceptance
- Correlates raw operator notes with Sparkplug B alarms within +/- 5 minutes.
- Extracts explicit unresolved mechanical issues into an incoming shift task list.
- Exports handover briefs adhering to standard ISA-TR106 shift documentation structures.
## Starter Examples
```json
[
{
"input": {
"shift_id": "SHIFT-DAY-2025-05-10",
"operator_notes": "Stamping line feeder jammed at 14:15. Had to manually clear scrap chute. Pressure seems slightly low on regulator 2.",
"telemetry_events": [
{
"timestamp": "2025-05-10T14:15:02Z",
"metric_name": "Line1/Feeder/Fault",
"value": true
},
{
"timestamp": "2025-05-10T14:22:10Z",
"metric_name": "Line1/Feeder/Fault",
"value": false
}
]
},
"expected_output": {
"incident_summary": "Feeder jam occurred at 14:15 and was resolved manually by 14:22.",
"unresolved_risks": [
"Low pressure observed on regulator 2."
],
"watch_items": [
"Monitor Line1/Feeder scrap chute for recurring buildup."
]
}
},
{
"input": {
"shift_id": "SHIFT-NIGHT-2025-05-10",
"operator_notes": "Normal run, no interruptions.",
"telemetry_events": []
},
"expected_output": {
"incident_summary": "Nominal operations with zero recorded fault events.",
"unresolved_risks": [],
"watch_items": []
}
}
]
```
## Safety
Produces read-only handover summaries; does not manipulate PLC states or reset active safety interlocks.
Use mock external writes. Require human review before any real deployment.