Desktop snapd serial request and assertions

Is there any documentation that explains what snapd expects in the way of its serial request, the response and the connection/relationship of that to the encodedGeneric* assertions that are baked in.

I’ve been doing a lot of source reading and I’m pretty close to understanding the entire chain but I can’t quite make the last bit work.

I get some errors about circular assertions:

circular assertions are not expected: account-key (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)

Thanks.

I guess I’ve answered my own questions. The trouble was in the root account and root account key.