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.
What you are building
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
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.
How work is evaluated
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.
Runnable source, pinned dependencies, setup commands, working interface, example outputs, recorded demo, tests, and action logs.
Datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
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.
Missing or incorrect.
Partly complete, with documented gaps.
Complete, with reproducible evidence.
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.
Missing or incorrect.
Partly complete, with documented gaps.
Complete, with reproducible evidence.
Review interface
Audit scheduling dashboard displaying weight variance alerts, waybill data, and automated carrier inspection tickets.
Missing or incorrect.
Partly complete, with documented gaps.
Complete, with reproducible evidence.
Safe execution
Operates completely on simulated carrier IDs and mock waybill metrics without exposing real vendor data or tracking information.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Learning goals
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
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
Challenge input
Input details are not configured.
Pydantic AI
Typed Python agent framework.
Evaluated output
No output checks are configured.
- 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...
- 2 public reference cases
- 2 configured tools
Shows the first task, up to three tools, and up to three evidence items.
View technical recipe
Configured tools
- Pydantic AI · Optional
- 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.