dc-l1-bangkok-attribute-coercion

Analyst notes

Description

Tests whether the agent recognises an attribute-type problem in a malformed vendor GeoJSON: every numeric column arrives as a JSON string, so client-side parseFloat in the dashboard silently returns NaN. The prompt deliberately names the symptom (NaN averages) instead of the operation (type coercion), the affected columns, or the int-versus-float split, so the agent has to inspect the file and work out what the defect is on its own.

Approach

  1. Open the input GeoJSON and inspect a few features to see how each property is encoded.
  2. Notice that every numeric column is serialised as a JSON string and that the dashboard's parseFloat fails on those.
  3. Decide which fields are integer identifiers and which are floating-point measurements based on what the values look like.
  4. Rewrite every numeric property as a proper JSON number, keeping the station_id as an integer and the measurement columns as floats.
  5. Leave the Thai-script name field, any other string columns, and the point geometry untouched, and write the result back as GeoJSON.

Pitfalls

Inputs

nameformatcrsgeometryfeatures
bangkok_aq_stations geojson EPSG:4326 Point 100

Expected outputs

nameformatcrsgeometryfeatures
bangkok_aq_typed.geojson geojson EPSG:4326 Point 100

Map

Recent runs task v3

adapterstartedscorestepsdurationcoststatus
openrouter-gemma4-26b-basic 2026-06-19T01:55:55Z 84 6 0:42 0.16¢ done
openrouter-deepseek-v4-flash-basic 2026-06-18T21:59:58Z 84 6 1:00 0.51¢ done
openrouter-deepseek-v4-flash-basic 2026-06-18T16:43:10Z pending — — — pending
openrouter-deepseek-v4-flash-detailed 2026-06-18T11:57:20Z 84 7 1:12 0.63¢ done
openrouter-gemma4-26b-detailed 2026-06-18T09:34:25Z 84 8 0:36 0.36¢ done