Q1: このCBOR itemはA2A operationに受理可能か
Multiple Choicedecoderはwell-formedかつvalidなCBOR text stringをacceptします.A2A operation schemaはinteger key 1と2を含むmapを要求します.
decoderはwell-formedかつvalidなCBOR text stringをacceptします.A2A operation schemaはinteger key 1と2を含むmapを要求します.
A2A telemetry messageはdata-model valueへdecodeするだけで,encoded bytesのhash/signatureやbyte-for-byte comparisonをしません.profileはdeterministic encodingを選んでいません.
attackerはroleを二回含むCBOR mapを送り,role=readerの後にrole=adminを置きます.gateway libraryは最初を保持し,backend libraryは最後を保持します.profileはauthorizationに一つのunambiguous role valueを要求します.
二つのA2A implementationは同じmapをlocalにre-encodeしてCBOR-encoded request bytesへsignします.一方はSection 4.2.1 core deterministic encoding,他方はSection 4.2.3 length-first map orderingを使います.profileはdeterministic CBORとだけ書き,identical signature inputを要求します.
unauthenticated A2A endpointがwell-formed CBORをacceptします.2 KBのinputが巨大lengthを宣言したり,decoderのmemory/stackが尽きるまでarrayを深くnestできます.requirementはauthentication前のbounded workです.
agentはrequest_id=SHA-256(encoded CBOR)を計算します.gatewayは同じdata-model valueをdecodeし,別のvalid representationへre-encodeしてbackendへ送り,backendがrequest_idを再計算します.profileはこのgatewayを越えたsemantically identical requestに同じIDを要求します.