Opus finding
Platform GET /pods identifier extraction silently drops pods whose id is `0`
lowbughigh
- src/commands/query/emissions-due.ts:110-113
If a pod has numeric id 0 (legitimate first-pod NFT in many schemes), `(0).toString()` yields '0', which survives the filter. That's fine. However, if the API returns id as the string '0', it still passes — also fine. The bigger issue: if both `id` and `podId` are missing, `?.toString()` becomes undefined and is filtered out silently with no diagnostic. A misshaped response from the platform would mean emissions-due reports $0 with zero pods rather than surfacing an error.
Recommendation
Emit PLATFORM_API_INVALID_RESPONSE if any pod object lacks both id and podId, rather than silently filtering.