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.
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.
How work is evaluated
Evaluates state recovery resilience and correct workflow branching for international supply agreements.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
workflow_completion_test
Verifies all required workflow steps executed without state loss
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
state_recovery_rate
Percentage of successful workflow state restorations following simulated process crash • target: 1 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
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
Reference links and supporting material
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
- Verifies all required workflow steps executed without state loss
- Percentage of successful workflow state restorations following simulated process crash • target: 1 • range:...
- Benchmark: WorkflowResilienceBench
- State Recovery Rate target: 100%
- 1 public reference case
- 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
- Mastra AI · Required
- AutoGluon · Optional
- Bito AI · Optional
- 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
- 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.