Skip to content

v0.1.7: Error-contract fixes: recovery hints for block_not_found, geography_not_found, provider_not_found, and missing_geography_ids

Choose a tag to compare

@cyanheads cyanheads released this 04 Jun 08:34
v0.1.7
19c1ca6

Error-contract fixes: recovery hints for block_not_found, geography_not_found, provider_not_found, and missing_geography_ids

Service-layer notFound() throws omitted data.recovery.hint — agents received the correct error code but no structured recovery guidance. Handlers now own the guard via ctx.fail() + ctx.recoveryFor() so the full wire shape is always populated.

Fixed:

  • fcc_compare_areas: wrong reason invalid_all_states_combo reused when no geography_ids provided — now missing_geography_ids (#7)
  • fcc_search_availability, fcc_get_coverage_summary, fcc_get_provider: not-found guards moved from service to handler; recovery hints now on the wire (#9)
  • fcc_geocode_block: service returns null for off-US/water coords; handler throws block_not_found with recovery hint (#10)

106 tests pass; bun run devcheck clean.