--- id: ADHOC-2026-06-15 type: workplan title: "Ad hoc Inter-Hub production fixes" domain: custodian repo: inter-hub status: active owner: codex created: "2026-06-15" updated: "2026-06-15" --- # Ad hoc Inter-Hub production fixes ## Fix COUNT decode failures in v2 bootstrap endpoints ```task id: ADHOC-2026-06-15-T01 status: progress priority: high ``` Production Ops Hub bootstrap exposed a PostgreSQL/Haskell type mismatch in the v2 API helpers. `COUNT(*)` returns `bigint`, while the helper code decoded the result as `Int`, causing `UnexpectedColumnTypeStatementError` in widget type validation and API request log rate-limit checks. Fix the count queries so widget creation and authenticated hub-registry reads work through the documented v2 bootstrap API.