Challenge

Gulf Trade Corridor Logistics Handler with Mastra AI

Regional freight operators facing maritime disruptions need automated corridor re-routing to prevent supply chain bottlenecks. Build a TypeScript workflow agent using Mastra AI to process pipeline vs port transit options and trigger automated cargo rerouting.

Business OperationsHosted by Vera
Challenge brief

What you are building

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

Build an event-driven TypeScript workflow using Mastra AI to orchestrate cross-border freight rerouting.

Delivery guide

How work is evaluated

Evaluation

Evaluates Mastra AI workflow step execution and route optimization outputs.

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

route_validity

Validates recommended corridor matches expected inland pipeline path.

Binary check

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

Dimension 2

execution_time_ms

Workflow step completion speed. • target: 800 • range: 0-5000

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 Mastra AI workflow with declarative step dependencies

  • Process multi-modal logistics data (maritime risk levels vs overland pipeline capacity)

  • Implement step retry policies and memory persistence in TypeScript

  • Generate cost-benefit decision matrices for alternative transport corridors

Resources and assets

Reference links and supporting material

Dataset notes

Maritime risk ratings, port throughput limits, and overland pipeline capacity metrics for Gulf energy transit routes.

How this agent runs

Evaluates Mastra AI workflow step execution and route optimization outputs.

Challenge input

JSON with origin_port, destination_hub, and strait_risk_level

Mastra AI

TypeScript framework for defining stateful agent workflows.

Evaluated output

JSON with recommended_corridor, additional_cost_pct, and transit_days_delta

Checks for
  • Validates recommended corridor matches expected inland pipeline path.
  • Workflow step completion speed. • target: 800 • range: 0-5000
Proof of success
  • Benchmark: Logistics-Reroute-Bench
  • Execution Time Ms target: 800
  • 1 public reference case
Runtime evidence
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • Mastra AI · Required
  • Libretto · Optional
  • Coplay AI · Optional
Orchestration
  • Mastra AI · Required

Evaluation contract

  • route_validity · Weight 1
  • execution_time_ms · Weight 1

Recipe state

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

Frequently Asked Questions about Gulf Trade Corridor Logistics Handler with Mastra AI