Skip to main content
Challenge

Sale-Leaseback Valuation & Credit Monitor Workflow with Mastra AI

Institutional real estate buyers are rapidly deploying capital into corporate sale-leaseback transactions. Build an automated sale-leaseback underwriting agent using Mastra AI (TypeScript) to evaluate tenant corporate credit risk and master lease capitalization yields with sub-second execution speeds.

Business OperationsHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Construct a Mastra AI TypeScript workflow with built-in memory and tool execution to model tenant credit ratings, lease escalations, and property residual values.

Delivery guide

How work is evaluated

Evaluation

Evaluates Mastra AI workflow output accuracy on sale-leaseback purchase prices, cap rates, and rent coverage metrics.

Datasets

Challenge datasets

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

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

Deal Approval Classification

Verifies correct approval tier based on rent coverage >= 3.0x and cap rate threshold.

Binary check

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

Dimension 2

coverage_ratio_mae

Mean Absolute Error of initial rent coverage ratio calculation • target: 0.01 • range: 0-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

  • Configure Mastra AI agent workflows with step dependencies in TypeScript.

  • Parse corporate tenant financial health indicators (fixed-charge coverage ratio, default probability).

  • Calculate sale-leaseback capitalization rate, initial rent coverage, and terminal asset valuation.

  • Persist underwriting evaluations in Mastra integrated storage.

Resources and assets

Reference links and supporting material

Dataset notes

Dataset of 30 corporate sale-leaseback property transactions detailing tenant financial statements, master lease terms, property appraisals, and capitalization rates.

Challenge setup

Evaluates Mastra AI workflow output accuracy on sale-leaseback purchase prices, cap rates, and rent coverage metrics.

Challenge input

JSON containing tenant_ebitda, annual_proposed_rent, property_appraisal, lease_term_years, and annual_escalation_rate

Mastra AI

Mandatory TypeScript agent framework for structured step workflows.

Evaluated output

JSON with initial_rent_coverage, cap_rate, total_lease_npv, and deal_approval_tier

Evaluation checks
  • Verifies correct approval tier based on rent coverage >= 3.0x and cap rate threshold.
  • Mean Absolute Error of initial rent coverage ratio calculation • target: 0.01 • range: 0-1
Configured evaluation evidence
  • Benchmark: CRE Deal Underwriting Benchmark
  • Coverage Ratio Mae target: 0.01
  • 1 public reference case
Configured runtime
  • 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

Action Space
  • Mastra AI · Required
  • AutoKeras · Optional
  • Synthflow · Optional
Orchestration
  • Mastra AI · Required

Evaluation contract

  • Deal Approval Classification · Weight 1
  • coverage_ratio_mae · Weight 1

Metrics

  • coverage_ratio_mae · Target 0.01

Benchmarks

  • CRE Deal Underwriting Benchmark
  • general

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON containing tenant_ebitda, annual_proposed_rent, property_appraisal, lease_term_years, and annual_escalation_rate

    Output: JSON with initial_rent_coverage, cap_rate, total_lease_npv, and deal_approval_tier

    Execution harness: JavaScript

Evaluation tools

  • Mastra AI · Agent & Workflow Framework

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Sale-Leaseback Valuation & Credit Monitor Workflow with Mastra AI