It would be nice to remove the document_type from the PSON hashes for Puppet 4. This would be a modification of the API though, so it is a backwards incompatible change. But it is data that AFAIK the agent throws away anyway when it receives it.
The benefit of doing this change is that the API would look the same for all serialisation formats, and a bunch of code for the PSON special handling could be removed. It should be completely backwards compatible for Puppet, but other consumers of the API might be affected.
Here is a example of code that adds this information to the API reply (there's a bunch of places that does this):
And here is the code that throws away that info:
What do you others think about doing that change?