ActivityPub fuzz testing
One of the hard parts of ActivityPub development is working around other implementations' limitations. A property like target can be a string, an object, or an array of strings and/or objects. Properties like tags, attachments and items that often have array types are object or string types when there is a single value. Many implementers fail to handle these complex situations, and either throw errors or silently fail if they get compliant data structures that they didn't program for. [...]
One of the hard parts of ActivityPub development is working around other implementations' limitations. A property like target can be a string, an object, or an array of strings and/or objects. Properties like tags, attachments and items that often have array types are object or string types when there is a single value. Many implementers fail to handle these complex situations, and either throw errors or silently fail if they get compliant data structures that they didn't program for. They don't find out about their bugs until another developer sends them an activity that they didn't expect.
One way to deal with this problem is with fuzz testing. This is a testing technique where the test driver generates random legitimate and illegitimate input data for the program. The test driver has expectations for what the program should do -- process the legitimate if weird data as valid, overlook incorrect but harmless data, or return an error.
Has anyone created fuzz testing software for ActivityPub? I think it would be much easier for the ActivityPub API, but you could also do it for the federation protocol.