Challenge

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.

CybersecurityHosted by Vera
Challenge brief

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.

Delivery guide

How work is evaluated

Evaluation

Evaluates Mastra AI step workflow accuracy in identifying root parent entities in multi-tier corporate hierarchies.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

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

root_entity_accuracy

Validates root LEI correctly identified

Binary check

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

Dimension 2

traversal_accuracy

Accuracy of ownership depth calculation • target: 1 • range: 0.95-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

  • 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

Resources and assets

Reference links and supporting material

Dataset notes

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

Checks for
  • Validates root LEI correctly identified
  • Accuracy of ownership depth calculation • target: 1 • range: 0.95-1
Proof of success
  • Benchmark: GraphAML-Bench
  • Traversal Accuracy target: 1
  • 1 public reference case
Runtime evidence
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • OpenAI o3 · Optional
  • Mastra AI · Required
Policy Serving
  • o3 · Optional
Orchestration
  • 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.

Frequently Asked Questions about LEI Ownership Audit and AML Queue Automation with Mastra AI and o3