LEI Ownership Audit and AML Queue Automation with Mastra AI and o3
Unclaimed Legal Entity Identifier portfolios create systemic blind spots in institutional sanctions enforcement and ultimate beneficial ownership checks. You will construct a stateful workflow agent that extracts entity relationship trees and updates compliance queues, eliminating unassigned risk exposure across corporate structure datasets.
What you are building
The core problem, expected build, and operating context for this challenge.
Build a stateful workflow automation pipeline using Mastra AI in TypeScript powered by o3 reasoning to traverse LEI ownership structures.
How work is evaluated
Evaluates Mastra AI step workflow accuracy in identifying root parent entities in multi-tier corporate hierarchies.
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.
root_entity_accuracy
Validates root LEI correctly identified
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
traversal_accuracy
Accuracy of ownership depth calculation • target: 1 • range: 0.95-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
Orchestrate Mastra AI workflows and step graphs in TypeScript
Integrate OpenAI o3 reasoning model for complex graph traversal logic
Uncover Ultimate Beneficial Ownership (UBO) chains in orphan LEI portfolios
Automate investigator queue assignment for high-risk corporate entity clusters
Reference links and supporting material
GLEIF corporate structure dataset subset containing 1,500 complex multi-jurisdictional entity relationship trees.
How this agent runs
Evaluates Mastra AI step workflow accuracy in identifying root parent entities in multi-tier corporate hierarchies.
Challenge input
JSON representing nested corporate entity relations
Mastra AI
TypeScript framework for stateful agent workflows and RAG.
o3
Advanced reasoning engine for complex graph and entity reasoning.
Evaluated output
JSON containing root_parent_lei, ultimate_beneficial_owner, and depth
- Validates root LEI correctly identified
- Accuracy of ownership depth calculation • target: 1 • range: 0.95-1
- Benchmark: GraphAML-Bench
- Traversal Accuracy target: 1
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
View technical recipe
Configured tools
- OpenAI o3 · Optional
- Mastra AI · Required
- o3 · Optional
- Mastra AI · Required
Evaluation contract
- root_entity_accuracy · Weight 1
- traversal_accuracy · Weight 1
Recipe state
This is a preview. The configuration can change before the evaluation recipe is locked.