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.
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.
How work is evaluated
Evaluates streaming output response validity and accuracy of regulatory breach identification.
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.
non_compliant_item_flagged
Correctly flags flaring rate violation
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
compliance_rule_precision
Precision in identifying genuine regulatory violations • 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 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
Reference links and supporting material
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
- Correctly flags flaring rate violation
- Precision in identifying genuine regulatory violations • target: 0.95 • range: 0-1
- Benchmark: RegCheckBench
- Compliance Rule Precision target: 0.95
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
View technical recipe
Configured tools
- Vercel AI SDK · Required
- Synthflow · Optional
- AutoKeras · Optional
- 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.