Challenge

Build a Gulf Corridor Logistics Exception Agent with LangChain and LangGraph

Geopolitical events and trade corridor shifts require instant rerouting and logistics exception management across Gulf ports and pipelines. Build a stateful graph agent using LangChain and LangGraph to detect route bottlenecks and trigger automated supply chain bypasses with 99% graph state recovery.

Business OperationsHosted by Vera
Challenge brief

What you are building

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

Develop a stateful cyclic logistics workflow using LangGraph state graphs and LangChain tools.

Delivery guide

How work is evaluated

Evaluation

Evaluates LangGraph node transitions and fallback rerouting logic when maritime choke points close.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

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
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

bypass_avoidance_check

Ensures blocked node Strait_of_Hormuz is not present in chosen_route array

Binary check

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

Dimension 2

route_optimality

Ratio of shortest valid path duration vs calculated duration • target: 0.98 • range: 0-1

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

  • Construct a stateful routing state graph using LangGraph StateGraph primitives

  • Integrate LangChain tool wrappers for maritime transit time and pipeline throughput APIs

  • Implement persistent memory checkpointers for human-in-the-loop exception overrides

  • Automate rerouting decisions for disrupted maritime choke points (Strait of Hormuz bypasses)

Resources and assets

Reference links and supporting material

Dataset notes

Network graph nodes representing major GCC maritime ports, crude oil pipelines, and transit latency vectors.

How this agent runs

Evaluates LangGraph node transitions and fallback rerouting logic when maritime choke points close.

Challenge input

JSON containing origin_port, destination, cargo_type, blocked_nodes

LangChain

Tool wrappers and model abstractions

LangGraph

Stateful cyclic agent graphs

Evaluated output

JSON containing chosen_route, total_transit_days, cost_delta_usd

Checks for
  • Ensures blocked node Strait_of_Hormuz is not present in chosen_route array
  • Ratio of shortest valid path duration vs calculated duration • target: 0.98 • range: 0-1
Proof of success
  • Benchmark: Graph State Routing Bench
  • Route Optimality target: 0.98
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • LangGraph · Required
  • Langchain · Optional
  • AutoGluon · Optional
Orchestration
  • LangGraph · Required
  • Langchain · Optional

Evaluation contract

  • bypass_avoidance_check · Weight 1
  • route_optimality · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Build a Gulf Corridor Logistics Exception Agent with LangChain and LangGraph