Build a Transshipment Manifest Tariff Traceability Engine with Mastra AI
Construct an automated customs audit agent for Singapore transshipment logistics. Using Mastra AI state machine workflows, your system will inspect bill-of-lading documents, trace origin supply chain steps, and verify compliance against international tariff evasion rules.
What you are building
The core problem, expected build, and operating context for this challenge.
Build a Mastra AI step-based workflow to trace shipping cargo origins and audit transshipment documents against international tariff rules.
How work is evaluated
Evaluate accuracy in detecting origin misrepresentation in container manifest records.
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.
circumvention_flag_check
Correctly flags circumvention when substantial transformation is missing
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
tariff_risk_mae
Mean absolute error of calculated tariff risk score • target: 0.04 • 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
Design state-based Mastra AI workflows for multi-step cargo manifest verification
Build origin-tracing algorithms for transshipment container movements
Formulate risk scoring logic for potential tariff circumvention or transshipment fraud
Export Singapore Customs compliant verification reports
Reference links and supporting material
Container movement logs, bills of lading, and port customs clearance forms for Singapore transshipments.
Challenge setup
Evaluate accuracy in detecting origin misrepresentation in container manifest records.
Challenge input
JSON with container_id, declared_origin, transit_ports (array), raw_materials_origin
Mastra AI
TypeScript framework for state-machine guided agent workflows.
Evaluated output
JSON with verified_origin, tariff_risk_score (0.0-1.0), flag_circumvention (bool)
- Correctly flags circumvention when substantial transformation is missing
- Mean absolute error of calculated tariff risk score • target: 0.04 • range: 0-1
- Benchmark: Maritime_Logistics_Audit_Bench
- Tariff Risk Mae target: 0.04
- 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
- AI Legion · Optional
- Giskard · Optional
- Mastra AI · Required
Evaluation contract
- circumvention_flag_check · Weight 1
- tariff_risk_mae · Weight 1
Metrics
- tariff_risk_mae · Target 0.04
Benchmarks
- Maritime_Logistics_Audit_Bench
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON with container_id, declared_origin, transit_ports (array), raw_materials_origin
Output: JSON with verified_origin, tariff_risk_score (0.0-1.0), flag_circumvention (bool)
Execution harness: JavaScript
Evaluation tools
- Mastra AI · Workflow Framework
Recipe freeze marker
No recipe freeze time is recorded.