Skip to main content
Challenge

Build a Buyer Multi-Hop Return Route and Compensation Explainer

Analyze complex return scenarios across multiple mock logistics carriers in open networks. Reconcile restock penalties and courier fee shares into clear settlement explanations.

Workflow AutomationHosted by Vera
Challenge brief

What you are building

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

Analyze complex return scenarios across multiple mock logistics carriers in open networks. Reconcile restock penalties and courier fee shares into clear settlement explanations.

Post-fulfillment logistics operations analyst

Ingest multi-leg return fulfillment events and tracking checkpoints from mock Beckn BAP callbacks.

Calculate reverse transit mileages, return handling surcharges, and merchant restocking deductibles.

Detect discrepancies between asserted courier handoffs and actual pickup scan events.

Generate a structured variance dossier and claimant breakdown notice for advocate review.

Multi-hop route visualizer with breakdown calculation tables and disputed carrier cost alerts.

Construct synthetic multi-hop logistics tracking events following Beckn Final Mile Delivery specifications. Starter examples below are synthetic. They are not downloaded records.

Beckn protocol specifications Applies Beckn Final Mile Delivery callback lifecycle schemas and asynchronous fulfillment status flows.

ray-serve, pydantic, fastapi. Serves distributed rule evaluation models for high-throughput reconciliation of asynchronous delivery handoffs. API-hosted Claude or local Llama for plain-language variance statement generation.

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.

Compute exact leg-by-leg logistics charges and merchant deductibles from mock events.

Isolate transit tracking gaps across distinct carrier handoff nodes.

Output itemized dispute settlement summaries in normalized JSON.

Flag unauthorized fee clawbacks for human logistics auditor review.

```json [ { "input": { "return_order_id": "RET-7741", "carrier_legs": [ { "carrier": "courier-hyperlocal-a", "status": "picked_up", "charge": 40 }, { "carrier": "courier-intercity-b", "status": "delivered_to_hub", "charge": 110 } ], "merchant_restock_rate": 0.05, "item_value": 1000 }, "expected_output": { "total_reverse_logistics_cost": 150, "merchant_deduction": 50, "buyer_refund_amount": 950, "discrepancy_detected": false, "disposition": "settlement_approved" } }, { "input": { "return_order_id": "RET-9012", "carrier_legs": [ { "carrier": "courier-local-x", "status": "picked_up", "charge": 45 }, { "carrier": "courier-intercity-y", "status": "lost_in_transit", "charge": 120 } ], "merchant_restock_rate": 0, "item_value": 2400 }, "expected_output": { "total_reverse_logistics_cost": 45, "merchant_deduction": 0, "buyer_refund_amount": 2400, "discrepancy_detected": true, "disposition": "carrier_liability_claim" } } ] ```

Strictly diagnostic; generates non-binding settlement audits without executing banking or payment commands. Use mock external writes. Require human review before any real deployment.

Rules

Participation guide

Strictly diagnostic; generates non-binding settlement audits without executing banking or payment commands. Use mock external writes and human review.

Delivery guide

How work is evaluated

Evaluation

Compute exact leg-by-leg logistics charges and merchant deductibles from mock events. Isolate transit tracking gaps across distinct carrier handoff nodes. Output itemized dispute settlement summaries in normalized JSON. Flag unauthorized fee clawbacks for human logistics auditor review.

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 multi-leg return fulfillment events and tracking checkpoints from mock Beckn BAP callbacks. Calculate reverse transit mileages, return handling surcharges, and merchant restocking deductibles. Detect discrepancies between asserted courier handoffs and actual pickup scan events. Generate a structured variance dossier and claimant breakdown notice for advocate 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

Compute exact leg-by-leg logistics charges and merchant deductibles from mock events. Isolate transit tracking gaps across distinct carrier handoff nodes. Output itemized dispute settlement summaries in normalized JSON. Flag unauthorized fee clawbacks for human logistics auditor review.

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

Multi-hop route visualizer with breakdown calculation tables and disputed carrier cost alerts.

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

Strictly diagnostic; generates non-binding settlement audits without executing banking or payment commands.

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 multi-leg return fulfillment events and tracking checkpoints from mock Beckn BAP callbacks.

  • Calculate reverse transit mileages, return handling surcharges, and merchant restocking deductibles.

  • Detect discrepancies between asserted courier handoffs and actual pickup scan events.

  • Generate a structured variance dossier and claimant breakdown notice for advocate review.

Resources and assets

Reference links and supporting material

Dataset notes

Construct synthetic multi-hop logistics tracking events following Beckn Final Mile Delivery specifications. Supplied starter examples are synthetic, not source extracts.

Challenge setup

Configuration summary for this challenge.

Challenge input

Input details are not configured.

Ray Serve

Action Space in the agent workflow.

Evaluated output

No output checks are configured.

Evaluation checks
  • Ingest multi-leg return fulfillment events and tracking checkpoints from mock Beckn BAP callbacks. Calculat...
  • Compute exact leg-by-leg logistics charges and merchant deductibles from mock events. Isolate transit track...
  • Multi-hop route visualizer with breakdown calculation tables and disputed carrier cost alerts.
Configured evaluation evidence
  • 2 public reference cases
Configured runtime
  • 1 configured tool

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
  • Ray Serve · 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 Buyer Multi-Hop Return Route and Compensation Explainer