Challenge

Oil Project Regulatory Compliance Assistant with AI SDK

Kuwait's $381m upstream oil approval process requires continuous cross-checking of environmental impact assessments (EIAs) against Kuwait EPA regulations. Build a web-based conversational assistant using Vercel AI SDK (TypeScript) with streaming tool calling to analyze submission packages. Provide zero-latency streaming audit results with 95% rule match precision.

Business OperationsHosted by Vera
Challenge brief

What you are building

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

Develop a TypeScript compliance agent using Vercel AI SDK to stream real-time environmental permit verification checks.

Delivery guide

How work is evaluated

Evaluation

Evaluates streaming output response validity and accuracy of regulatory breach identification.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Loading datasets...
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

non_compliant_item_flagged

Correctly flags flaring rate violation

Binary check

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

Dimension 2

compliance_rule_precision

Precision in identifying genuine regulatory violations • target: 0.95 • 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 a TypeScript backend leveraging Vercel AI SDK core functions (`generateText`, `streamText`)

  • Define typed tools using Zod schemas for environmental parameter verification

  • Implement client-side UI streaming using `@ai-sdk/react` hooks

  • Validate oil field environmental impact submittals against KOC and KEPA thresholds

Resources and assets

Reference links and supporting material

Dataset notes

20 environmental impact submittal packages for Kuwait onshore oilfield developments.

How this agent runs

Evaluates streaming output response validity and accuracy of regulatory breach identification.

Challenge input

JSON object with proposed water reinjection volume and flaring limits

AI SDK

Provides standard streaming and component bindings for web platforms.

Evaluated output

JSON containing status, non_compliant_items array, and recommended remedy

Checks for
  • Correctly flags flaring rate violation
  • Precision in identifying genuine regulatory violations • target: 0.95 • range: 0-1
Proof of success
  • Benchmark: RegCheckBench
  • Compliance Rule Precision target: 0.95
  • 1 public reference case
Runtime evidence
  • JavaScript execution harness
  • javascript sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • Vercel AI SDK · Required
  • Synthflow · Optional
  • AutoKeras · Optional
Orchestration
  • Vercel AI SDK · Required

Evaluation contract

  • non_compliant_item_flagged · Weight 1
  • compliance_rule_precision · Weight 1

Recipe state

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

Frequently Asked Questions about Oil Project Regulatory Compliance Assistant with AI SDK