Challenge

Mastra AI Land Entitlement and Permit Risk Scoring Workflow with Claude Code

Suburban land developments suffer expensive timeline delays due to undetected municipal entitlement restrictions and zoning code conflicts. Construct a Mastra AI workflow with Claude Code integration to cross-evaluate local zoning codes against parcel geometry. Achieve automated zoning error detection across 100 test parcels with 90% precision.

Business OperationsHosted by Vera
Challenge brief

What you are building

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

Implement a Mastra AI graph workflow utilizing Claude Code CLI execution to validate land parcel zoning regulations and generate municipal permit risk scores.

Delivery guide

How work is evaluated

Evaluation

Evaluates accuracy of zoning risk scoring and restriction compliance logic across land parcels.

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

far_compliance_check

Validates FAR calculation and compliance decision

Binary check

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

Dimension 2

risk_precision

Accuracy of permit risk score assignment • target: 0.9 • 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

  • Build workflow graphs in Mastra AI (`@mastra/core`) with sequential steps for zoning verification and risk calculation

  • Integrate Claude Code automated workspace execution tools to generate dynamic GeoJSON constraint checkers

  • Ingest municipal setback requirements, floor-area ratios (FAR), and allowed land use classifications

  • Produce structured permit risk scores and variance mitigation recommendations

Resources and assets

Reference links and supporting material

Dataset notes

Suburban zoning district specification records mapped with land parcel geometry and building envelopes.

How this agent runs

Evaluates accuracy of zoning risk scoring and restriction compliance logic across land parcels.

Challenge input

JSON containing parcel_sqft, proposed_building_sqft, max_far, zoning_district

Mastra AI

TypeScript AI workflow framework for sequential agent graphs.

Claude Code

Automated AI engineering tooling for executing local CLI scripts.

Evaluated output

JSON containing compliant, calculated_far, permit_risk_score, violations

Checks for
  • Validates FAR calculation and compliance decision
  • Accuracy of permit risk score assignment • target: 0.9 • range: 0-1
Proof of success
  • Benchmark: Zoning Compliance Code Benchmark
  • Risk Precision target: 0.9
  • 1 public reference case
Runtime evidence
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • Claude Code · Required
  • Mastra AI · Optional
  • Kore.ai · Optional
Observation
  • Claude Code · Required
Orchestration
  • Mastra AI · Optional

Evaluation contract

  • far_compliance_check · Weight 1
  • risk_precision · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Mastra AI Land Entitlement and Permit Risk Scoring Workflow with Claude Code