Skip to main content
Challenge

Build a Logistics Weight Variance Alert and Audit Scheduler

Analyze Beckn delivery manifests to detect significant discrepancies between original dispatch weight and return carrier collection weight. Trigger automated audit scheduling for high-risk waybills indicating potential parcel pilferage during transit.

Workflow AutomationHosted by Vera
Challenge brief

What you are building

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

Analyze Beckn delivery manifests to detect significant discrepancies between original dispatch weight and return carrier collection weight. Trigger automated audit scheduling for high-risk waybills indicating potential parcel pilferage during transit.

Logistics operations auditor

Ingest Beckn fulfillment payloads containing forward dispatch and reverse collection weights.

Calculate weight variance percentages between the two logistical hops.

Evaluate discrepancies against defined tolerance thresholds for pilferage risk.

Generate an automated audit scheduling ticket for flagged carrier nodes.

Audit scheduling dashboard displaying weight variance alerts, waybill data, and automated carrier inspection tickets.

Construct simplified synthetic app records mimicking Beckn logistics payload data with paired forward and reverse weight telemetry. Starter examples below are synthetic. They are not downloaded records.

Beckn protocol specifications References Beckn protocol fulfillment API structures for extracting payload weight specifications across transaction lifecycle stages.

pydantic-ai, fastapi, pandas. Pydantic AI enables robust structured data validation and automated extraction for calculating logistics thresholds directly from JSON payloads. Local or hosted LLM with strong JSON parsing and structured logic evaluation capabilities.

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.

Successfully parses paired dispatch and reverse weights from input payloads.

Calculates exact variance percentages correctly based on dispatch weight.

Triggers automated audit scheduling output when variance exceeds a predefined tolerance threshold.

```json [ { "input": { "waybill": "WB-771", "dispatch_weight_kg": 1.2, "reverse_weight_kg": 0.3, "carrier_id": "CARRIER-01" }, "expected_output": { "variance_percentage": 75, "threshold_exceeded": true, "action": "SCHEDULE_CARRIER_AUDIT", "risk_flag": "HIGH_PILFERAGE_PROBABILITY" } }, { "input": { "waybill": "WB-882", "dispatch_weight_kg": 2, "reverse_weight_kg": 1.95, "carrier_id": "CARRIER-02" }, "expected_output": { "variance_percentage": 2.5, "threshold_exceeded": false, "action": "NONE", "risk_flag": "NORMAL_PACKAGING_LOSS" } } ] ```

Operates completely on simulated carrier IDs and mock waybill metrics without exposing real vendor data or tracking information. Use mock external writes. Require human review before any real deployment.

Rules

Participation guide

Operates completely on simulated carrier IDs and mock waybill metrics without exposing real vendor data or tracking information. Use mock external writes and human review.

Delivery guide

How work is evaluated

Evaluation

Successfully parses paired dispatch and reverse weights from input payloads. Calculates exact variance percentages correctly based on dispatch weight. Triggers automated audit scheduling output when variance exceeds a predefined tolerance threshold.

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 Beckn fulfillment payloads containing forward dispatch and reverse collection weights. Calculate weight variance percentages between the two logistical hops. Evaluate discrepancies against defined tolerance thresholds for pilferage risk. Generate an automated audit scheduling ticket for flagged carrier nodes.

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

Successfully parses paired dispatch and reverse weights from input payloads. Calculates exact variance percentages correctly based on dispatch weight. Triggers automated audit scheduling output when variance exceeds a predefined tolerance threshold.

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

Audit scheduling dashboard displaying weight variance alerts, waybill data, and automated carrier inspection tickets.

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

Operates completely on simulated carrier IDs and mock waybill metrics without exposing real vendor data or tracking information.

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 Beckn fulfillment payloads containing forward dispatch and reverse collection weights.

  • Calculate weight variance percentages between the two logistical hops.

  • Evaluate discrepancies against defined tolerance thresholds for pilferage risk.

  • Generate an automated audit scheduling ticket for flagged carrier nodes.

Resources and assets

Reference links and supporting material

Dataset notes

Construct simplified synthetic app records mimicking Beckn logistics payload data with paired forward and reverse weight telemetry. Supplied starter examples are synthetic, not source extracts.

Challenge setup

Configuration summary for this challenge.

Challenge input

Input details are not configured.

Pydantic AI

Typed Python agent framework.

Evaluated output

No output checks are configured.

Evaluation checks
  • Ingest Beckn fulfillment payloads containing forward dispatch and reverse collection weights. Calculate wei...
  • Successfully parses paired dispatch and reverse weights from input payloads. Calculates exact variance perc...
  • Audit scheduling dashboard displaying weight variance alerts, waybill data, and automated carrier inspectio...
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
  • Pydantic AI · Optional
Orchestration
  • Pydantic 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 Logistics Weight Variance Alert and Audit Scheduler