| The agent will downgrade from JSON to PSON serialization if the very first puppetserver response header X-PUPPET_VERSION < 6.0. Typically this occurs when making the initial node request to determine the agent's environment. Puppet's http client should record PSON downgrade in its session, and use that for subsequent connections. So if the node request causes us to downgrade, then the facts should be encoded in PSON and submitted with the catalog request, and later the report should be submitted as PSON. |