3f50e67 validated the accounting payload as one object, so a non-text value
in an unrelated field such as model_group or status discarded a valid
billed key, team and user, and the callback's identity took their place.
The record now reads each accounting field on its own through a typed
mapping. Every well-formed billed owner field (key, team, user,
organization) is kept, and malformed unrelated fields only blank
themselves. A billed owner field that is present but not text is left
empty rather than taken from the callback, and that record is exported
cost only, with no body upload.
The test that expected the callback's scope after a malformed field is
replaced by two tests. One shows that an unrelated malformed field keeps
every billed owner and their uploaded body despite conflicting callback
identities. The other shows that a malformed billed owner is never claimed
by the callback and exports cost only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>