Skip to main content
Challenge

UK Planning Permission Auto-Audit Workflow with Mastra AI

Planning applications in the UK must strictly comply with local council development plans and conservation zone constraints. Construct an end-to-end automated planning permission compliance workflow using Mastra AI in TypeScript to parse proposal summaries and cross-reference UK Planning Portal rules. Achieve 92% precision in identifying required environmental and heritage impact assessments.

Business OperationsHosted by Vera
Challenge brief

What you are building

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

Build an automated TypeScript planning audit workflow using Mastra AI to evaluate UK planning permission applications for missing compliance documents.

Delivery guide

How work is evaluated

Evaluation

Evaluates detection of required statutory documents based on UK planning application criteria.

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

flags_match

Verifies correct setting of compliance assessment requirement flags.

Binary check

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

Dimension 2

doc_precision

Precision of required document recommendations. • target: 0.92 • 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

  • Set up Mastra AI workflow step definitions and agent configurations in TypeScript

  • Parse UK planning application metadata (building height, conservation status, flood zone)

  • Determine required statutory submission documents (Heritage Impact, Flood Risk Assessment)

  • Generate automated compliance status reports for municipal planning officers

Resources and assets

Reference links and supporting material

Dataset notes

Dataset of UK planning application summaries, location attributes, conservation zone statuses, and local authority document checklists.

Challenge setup

Evaluates detection of required statutory documents based on UK planning application criteria.

Challenge input

JSON object with proposal_text, in_conservation_area (boolean), flood_zone_level (1-3)

Mastra AI

Mandatory assigned framework.

Evaluated output

JSON object with requires_heritage_impact (boolean), requires_flood_assessment (boolean), missing_docs (array of strings)

Evaluation checks
  • Verifies correct setting of compliance assessment requirement flags.
  • Precision of required document recommendations. • target: 0.92 • range: 0-1
Configured evaluation evidence
  • Benchmark: UKPlanningPolicyBench
  • Doc Precision target: 0.92
  • 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
  • RAI · Optional
Policy Serving
  • Vercel AI Gateway · Optional
Orchestration
  • Vercel AI Gateway · Optional
  • Mastra AI · Required

Evaluation contract

  • flags_match · Weight 1
  • doc_precision · Weight 1

Metrics

  • doc_precision · Target 0.92

Benchmarks

  • UKPlanningPolicyBench
  • general

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON object with proposal_text, in_conservation_area (boolean), flood_zone_level (1-3)

    Output: JSON object with requires_heritage_impact (boolean), requires_flood_assessment (boolean), missing_docs (array of strings)

    Execution harness: JavaScript

Evaluation tools

  • Mastra AI · TypeScript Workflow Engine

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about UK Planning Permission Auto-Audit Workflow with Mastra AI