Skip to main content
Challenge

Build a Sparkplug B Edge Device Connection Lifecycle Monitor

Monitor Sparkplug B DBIRTH, NDEATH, and DDEATH payloads to verify stateful device connection sequences. Generate connection audit reports identifying orphaned nodes or malformed birth sequences for network reliability engineers.

EngineeringHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Monitor Sparkplug B DBIRTH, NDEATH, and DDEATH payloads to verify stateful device connection sequences. Generate connection audit reports identifying orphaned nodes or malformed birth sequences for network reliability engineers.

IIoT Network Reliability Engineer

Ingest simulated Sparkplug B lifecycle payloads including DBIRTH, NDEATH, and DDEATH messages.

Validate MQTT topic structures and sequence numbers against the Eclipse Tahu specification rules.

Identify out-of-order state transitions or orphaned devices lacking proper death certificates.

Synthesize mock connection audit reports detailing non-compliant edge node behaviors and state machine violations for human review.

CLI dashboard or web console summarizing node connectivity states and audit reports of sequence gaps.

Generate simplified synthetic Sparkplug B JSON payloads reflecting state transitions with intentional sequence gaps and disconnected node scenarios. Starter examples below are synthetic. They are not downloaded records.

Eclipse Sparkplug Implements Sparkplug B specification rules for connection lifecycle tracking and birth/death certificates.

mastra-ai, paho-mqtt, pydantic. Mastra AI provides deterministic workflow orchestration suited for evaluating sequential payload streams and triggering conditional audit alerts. Requires an agent capable of structured parameter evaluation; lightweight local or hosted model.

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.

Parses normalized Sparkplug B lifecycle payloads according to specification v3.0.0 conventions.

Flags nodes with sequence number gaps or missing DBIRTH baseline messages.

Generates structured audit reports for orphaned nodes lacking death certificates.

Properly tracks node connectivity states across message types to enforce sequence logic.

```json [ { "input": { "node_id": "EdgeGateway_01", "record_type": "simplified_synthetic_app_record", "events": [ { "message_type": "DBIRTH", "seq": 0 }, { "message_type": "DDATA", "seq": 1 }, { "message_type": "DDATA", "seq": 3 } ] }, "expected_output": { "node_id": "EdgeGateway_01", "status": "SEQUENCE_VIOLATION", "orphaned_node": false, "missing_sequences": [ 2 ], "audit_recommendation": "Investigate dropped MQTT packets" } }, { "input": { "node_id": "EdgeGateway_02", "record_type": "simplified_synthetic_app_record", "events": [ { "message_type": "DBIRTH", "seq": 0 } ], "current_broker_status": "DISCONNECTED" }, "expected_output": { "node_id": "EdgeGateway_02", "status": "ORPHANED_NODE", "orphaned_node": true, "missing_sequences": [], "audit_recommendation": "Missing NDEATH certificate" } } ] ```

Maintains read-only monitoring of message payloads without altering broker states or dropping client connections. Use mock external writes. Require human review before any real deployment.

Rules

Participation guide

Maintains read-only monitoring of message payloads without altering broker states or dropping client connections. Use mock external writes and human review.

Delivery guide

How work is evaluated

Evaluation

Parses normalized Sparkplug B lifecycle payloads according to specification v3.0.0 conventions. Flags nodes with sequence number gaps or missing DBIRTH baseline messages. Generates structured audit reports for orphaned nodes lacking death certificates. Properly tracks node connectivity states across message types to enforce sequence logic.

Submission format

Runnable source, pinned dependencies, setup commands, working interface, example outputs, recorded demo, tests, and action logs.

Datasets

Challenge datasets

Public datasets, plus the private datasets you have access to.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
4 scoring checks
Binary
1 pass or fail dimensions
Ordinal
3 scaled dimensions
Dimension 1

Complete workflow

Ingest simulated Sparkplug B lifecycle payloads including DBIRTH, NDEATH, and DDEATH messages. Validate MQTT topic structures and sequence numbers against the Eclipse Tahu specification rules. Identify out-of-order state transitions or orphaned devices lacking proper death certificates. Synthesize mock connection audit reports detailing non-compliant edge node behaviors and state machine violations for human review.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 2

Correctness and evidence

Parses normalized Sparkplug B lifecycle payloads according to specification v3.0.0 conventions. Flags nodes with sequence number gaps or missing DBIRTH baseline messages. Generates structured audit reports for orphaned nodes lacking death certificates. Properly tracks node connectivity states across message types to enforce sequence logic.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 3

Review interface

CLI dashboard or web console summarizing node connectivity states and audit reports of sequence gaps.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 4

Safe execution

Maintains read-only monitoring of message payloads without altering broker states or dropping client connections.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Ingest simulated Sparkplug B lifecycle payloads including DBIRTH, NDEATH, and DDEATH messages.

  • Validate MQTT topic structures and sequence numbers against the Eclipse Tahu specification rules.

  • Identify out-of-order state transitions or orphaned devices lacking proper death certificates.

  • Synthesize mock connection audit reports detailing non-compliant edge node behaviors and state machine violations for human review.

Resources and assets

Reference links and supporting material

Dataset notes

Generate simplified synthetic Sparkplug B JSON payloads reflecting state transitions with intentional sequence gaps and disconnected node scenarios. Supplied starter examples are synthetic, not source extracts.

Challenge setup

Configuration summary for this challenge.

Challenge input

Input details are not configured.

Mastra AI

TypeScript agent framework.

Evaluated output

No output checks are configured.

Evaluation checks
  • Ingest simulated Sparkplug B lifecycle payloads including DBIRTH, NDEATH, and DDEATH messages. Validate MQT...
  • Parses normalized Sparkplug B lifecycle payloads according to specification v3.0.0 conventions. Flags nodes...
  • CLI dashboard or web console summarizing node connectivity states and audit reports of sequence gaps.
Configured evaluation evidence
  • 2 public reference cases
Configured runtime
  • 2 configured tools

Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.

View technical recipe

Configured tools

Action Space
  • Mastra AI · Optional
Orchestration
  • Mastra AI · Optional

Evaluation contract

  • Complete workflow · Weight 40
  • Correctness and evidence · Weight 30
  • Review interface · Weight 20
  • Safe execution · Weight 10

Reference cases

  • 2 public reference cases

Workflow tasks

No workflow tasks are configured.

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Build a Sparkplug B Edge Device Connection Lifecycle Monitor