Skip to main content
Challenge

Cross-Border Industrial Partner Workflow Engine with Mastra AI

Aramco's $3.7bn agreements with French industrial suppliers require structured cross-border contract processing, currency risk evaluation, and compliance routing. Build a resilient TypeScript workflow agent using Mastra AI to automate multi-stage agreement validation. Achieve 100% workflow state recovery on simulated network interruptions.

Business OperationsHosted by Vera
Challenge brief

What you are building

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

Develop an event-driven TypeScript workflow engine using Mastra AI to manage multi-step cross-border procurement agreement approvals.

Delivery guide

How work is evaluated

Evaluation

Evaluates state recovery resilience and correct workflow branching for international supply agreements.

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

workflow_completion_test

Verifies all required workflow steps executed without state loss

Binary check

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

Dimension 2

state_recovery_rate

Percentage of successful workflow state restorations following simulated process crash • target: 1 • 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

  • Define stateful step-by-step workflows using Mastra AI step functions

  • Integrate Mastra AI memory and context persistence modules

  • Automate contract conversion checks between EUR and SAR/USD with threshold alerts

  • Verify cross-border sanctions and trade compliance checklists

Resources and assets

Reference links and supporting material

Dataset notes

25 synthetic cross-border industrial procurement contracts between GCC national energy firms and European suppliers.

Challenge setup

Evaluates state recovery resilience and correct workflow branching for international supply agreements.

Challenge input

JSON object with French partner details, contract value in EUR, and technology category

Mastra AI

Provides structured, event-driven workflow primitives with state persistence.

Evaluated output

JSON with converted SAR value, required sign-off levels, compliance status, and step history

Evaluation checks
  • Verifies all required workflow steps executed without state loss
  • Percentage of successful workflow state restorations following simulated process crash • target: 1 • range:...
Configured evaluation evidence
  • Benchmark: WorkflowResilienceBench
  • State Recovery Rate target: 100%
  • 1 public reference case
Configured runtime
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)

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
  • Mastra AI · Required
  • AutoGluon · Optional
  • Bito AI · Optional
Orchestration
  • Mastra AI · Required

Evaluation contract

  • workflow_completion_test · Weight 1
  • state_recovery_rate · Weight 1

Metrics

  • state_recovery_rate · Target 1

Benchmarks

  • WorkflowResilienceBench
  • general

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON object with French partner details, contract value in EUR, and technology category

    Output: JSON with converted SAR value, required sign-off levels, compliance status, and step history

    Execution harness: JavaScript

Evaluation tools

  • Mastra AI · TypeScript Agent Engine

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Cross-Border Industrial Partner Workflow Engine with Mastra AI