Crisis Zone Data Privacy Auditor with Mastra AI
Addressing concerns in The Lancet Digital Health regarding ethical data collection during aid shortages, this challenge asks developers to construct an automated privacy audit agent. Using Mastra AI, participants will build TypeScript agents that intercept data collection streams from field surveys, perform automated leak checks for sensitive spatial coordinates and biometric traits, and enforce privacy-preserving transformations.
What you are building
The core problem, expected build, and operating context for this challenge.
Build an ethical data privacy auditing agent for humanitarian data collection using Mastra AI in TypeScript.
How work is evaluated
Evaluates privacy compliance checking and coordinate blurring precision.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
check_no_exact_coords
Ensure exact float lat/lon coordinates are stripped from output
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
privacy_compliance_score
Percentage of re-identification vectors successfully suppressed • 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
Implement real-time field data privacy auditing workflows using Mastra AI
Identify high-risk spatial-temporal trajectory markers that risk re-identification
Apply localized spatial blurring and differential noise addition
Generate ethical compliance certification logs prior to central server upload
Reference links and supporting material
Synthetic crisis region survey responses containing unblurred GPS locations, named entities, and demographic traits.
Challenge setup
Evaluates privacy compliance checking and coordinate blurring precision.
Challenge input
JSON containing survey_id, latitude, longitude, vulnerability_notes
Mastra AI
Mandatory Mastra AI framework
Evaluated output
JSON containing is_compliant (bool), redacted_notes (string), spatial_grid_cell (string)
- Ensure exact float lat/lon coordinates are stripped from output
- Percentage of re-identification vectors successfully suppressed • target: 0.95 • range: 0-1
- Benchmark: PrivEval-Humanitarian
- Privacy Compliance Score target: 0.95
- 1 public reference case
- 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
- Mastra AI · Required
- sktime · Optional
- Nvidia · Optional
- Mastra AI · Required
Evaluation contract
- check_no_exact_coords · Weight 1
- privacy_compliance_score · Weight 1
Metrics
- privacy_compliance_score · Target 0.95
Benchmarks
- PrivEval-Humanitarian
- security
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON containing survey_id, latitude, longitude, vulnerability_notes
Output: JSON containing is_compliant (bool), redacted_notes (string), spatial_grid_cell (string)
Execution harness: JavaScript
Evaluation tools
- Mastra AI · Agent Framework
Recipe freeze marker
No recipe freeze time is recorded.