Skip to main content
Loading navigation

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

What you are building

Build a stateful workflow automation pipeline using Mastra AI in TypeScript powered by o3 reasoning to traverse LEI ownership structures.

How work is evaluated

Evaluation

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

Datasets

Public datasets, plus the private datasets you have access to.

How submissions are scored

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

  • 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

Dataset notes

GLEIF corporate structure dataset subset containing 1,500 complex multi-jurisdictional entity relationship trees.

Challenge setup

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

Evaluation checks
  • Validates root LEI correctly identified
  • Accuracy of ownership depth calculation • target: 1 • range: 0.95-1
Configured evaluation evidence
  • Benchmark: GraphAML-Bench
  • Traversal Accuracy target: 1
  • 1 public reference case
Configured runtime
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)

Shows the first task, up to three tools, and up to three evidence items.

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

Metrics

  • traversal_accuracy · Target 1

Benchmarks

  • GraphAML-Bench
  • security

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON representing nested corporate entity relations

    Output: JSON containing root_parent_lei, ultimate_beneficial_owner, and depth

    Execution harness: JavaScript

Evaluation tools

  • Mastra AI · agent_framework
  • o3 · llm_engine

Recipe freeze marker

No recipe freeze time is recorded.

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