GPT-5 finding
Community pods mapping emits empty podId when tokenId is missing, producing invalid entries
mediumapi-contracthigh
- src/commands/list/pods.ts
An empty string podId is not a valid identifier and contradicts preceding behavior in owner-scope normalization where entries without a podId are dropped. The README and tests imply podId should be a usable on-chain id (feeds into `reppo vote --pod <podId>`). Emitting rows with podId '' can confuse users/agents and break downstream automation.
Recommendation
Filter out pods lacking tokenId in --all mapping (skip rows where tokenId is null/undefined) so all emitted entries have a valid non-empty podId. Alternatively, keep rows but omit them from count and clearly mark them as invalid; filtering is preferable for stability.