Build an Actuarial Climate Risk Evaluation Engine with Mastra AI and Claude 4 Sonnet
Insurance actuaries need advanced climate scenario models to underwrite regional infrastructure risks accurately. Build a TypeScript workflow using Mastra AI and Claude 4 Sonnet to extract property exposure metrics, calculate climate loss projections, and format actuarial risk reports.
What you are building
The core problem, expected build, and operating context for this challenge.
Develop a TypeScript workflow using Mastra AI and Claude 4 Sonnet to perform structured climate risk assessment for insurance portfolios under MAS risk guidelines.
How work is evaluated
Evaluates Mastra AI workflow output quality against standard actuarial climate loss projection benchmarks.
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.
risk_tier_classification
Ensures property with elevation < 1.5m and high SLR scenario is classified HIGH risk
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
eal_accuracy
Calculated EAL within 5% tolerance of reference physics model • target: 0.95 • 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
Build TypeScript agentic workflows using Mastra AI framework
Leverage Claude 4 Sonnet for quantitative actuarial reasoning and analysis
Integrate geospatial climate flood hazard layers into underwriting steps
Generate MAS-compliant climate risk disclosure summaries
Reference links and supporting material
Synthetic coastal asset inventory and climate vulnerability curves for Southeast Asian ports.
How this agent runs
Evaluates Mastra AI workflow output quality against standard actuarial climate loss projection benchmarks.
Challenge input
JSON object with asset_location, structural_value_usd, sea_level_rise_scenario_m
Mastra AI
Provides TypeScript workflow engine with state control
Claude 4 Sonnet
Delivers superior mathematical and technical document reasoning
Evaluated output
JSON object with risk_tier, expected_annual_loss_usd, and mas_compliance_summary
- Ensures property with elevation < 1.5m and high SLR scenario is classified HIGH risk
- Calculated EAL within 5% tolerance of reference physics model • target: 0.95 • range: 0-1
- Benchmark: ActuaryBench-2026
- Eal Accuracy target: 0.95
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
View technical recipe
Configured tools
- Mastra AI · Required
- Langfuse · Optional
- Langfuse · Optional
- Claude 4 Sonnet · Optional
- Mastra AI · Required
Evaluation contract
- risk_tier_classification · Weight 1
- eal_accuracy · Weight 1
Recipe state
This is a preview. The configuration can change before the evaluation recipe is locked.