dd-l1-capetown-clinics-bbox
Analyst notes
Description
Tests basic literacy in a CSV-with-WKT geospatial export and the three-line inventory a real analyst would compute before pipeline ingest. The prompt pins the bbox to a four-number array but deliberately leaves the component order unspecified, so the agent has to know the GeoJSON convention `[xmin, ymin, xmax, ymax]` (longitude first). Other gotchas live in the small details: parsing the WKT column rather than treating it as an opaque string, counting all 80 rows including the last one, and reporting a non-uniform per-subdistrict distribution rather than assuming an equal split.
Approach
- Read the CSV, parse the WKT column into longitude and latitude pairs, and confirm the row count.
- Compute the overall bounding box from the parsed coordinates as four floats in GeoJSON order, longitude first.
- Group by the subdistrict column and count rows per subdistrict, keeping the subdistrict names verbatim from the input.
- Assemble the three deliverables into a single JSON object and write it to the requested filename.
Pitfalls
- Swapping latitude and longitude in the bounding box, which is the classic flat-list failure when the agent is used to lat-first APIs and produces `[ymin, xmin, ymax, xmax]` instead.
- Reprojecting the points to a metric CRS like EPSG:3857 before computing the bounding box, which lands the values in metres instead of degrees and pushes every component about a million times outside the tolerance.
- Assuming the eight subdistricts split evenly at ten clinics each (80 / 8), which hits the total and the key set but misses six of the eight per-subdistrict values.
- Counting the CSV header row as a record and reporting 81, or silently dropping rows whose WKT has unusual whitespace so the count and the per-subdistrict sum disagree.
- Writing the inventory as CSV or as a different JSON shape without the `count`, `bbox`, and `count_per_subdistrict` keys, which fails the format gate outright.
Recent runs task v3
| adapter | started | score | steps | duration | cost | status |
|---|---|---|---|---|---|---|
| openrouter-gemma4-26b-basic | 2026-06-18T07:32:32Z | pending | — | — | — | pending |
| openrouter-deepseek-v4-flash-basic | 2026-06-18T03:08:04Z | 1.00 | 4 | 0:20 | 0.14¢ | done |
| openrouter-deepseek-v4-flash-detailed | 2026-06-17T22:01:33Z | 1.00 | 5 | 0:32 | 0.15¢ | done |
| openrouter-gemma4-26b-detailed | 2026-06-17T19:47:47Z | 1.00 | 6 | 1:20 | 0.20¢ | done |
| openrouter-deepseek-v4-flash-basic | 2026-06-16T21:43:55Z | 1.00 | 4 | 0:28 | 0.14¢ | done |