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.
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.
How work is evaluated
Evaluates Mastra AI workflow step execution and route optimization outputs.
Shared data for this challenge
Review public datasets and any private uploads tied to your build.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
route_validity
Validates recommended corridor matches expected inland pipeline path.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
execution_time_ms
Workflow step completion speed. • target: 800 • range: 0-5000
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
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
Reference links and supporting material
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
- Validates recommended corridor matches expected inland pipeline path.
- Workflow step completion speed. • target: 800 • range: 0-5000
- Benchmark: Logistics-Reroute-Bench
- Execution Time Ms target: 800
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
View technical recipe
Configured tools
- Mastra AI · Required
- Libretto · Optional
- Coplay AI · Optional
- 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.