<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>An Evaluation of Communication Protocol Languages for Engineering Multiagent Systems</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>09/04/2020</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10274300</idno>
					<idno type="doi">10.1613/jair.1.12212</idno>
					<title level='j'>Journal of Artificial Intelligence Research</title>
<idno>1076-9757</idno>
<biblScope unit="volume">69</biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Amit K Chopra</author><author>Samuel H Christie V</author><author>Munindar P. Singh</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Communication protocols are central to engineering decentralized multiagent systems. Modern protocol languages are typically formal and address aspects of decentralization, such as asynchrony. However, modern languages differ in important ways in their basic abstractions and operational assumptions. This diversity makes a comparative evaluation of protocol languages a challenging task.We contribute a rich evaluation of diverse and modern protocol languages. Among the selected languages, Scribble is based on session types; Trace-C and Trace-F on trace expressions; HAPN on hierarchical state machines, and BSPL on information causality. Our contribution is four-fold. One, we contribute important criteria for evaluating protocol languages. Two, for each criterion, we compare the languages on the basis of whether they are able to specify elementary protocols that go to the heart of the criterion. Three, for each language, we map our findings to a canonical architecture style for multiagent systems, highlighting where the languages depart from the architecture. Four, we identify design principles for protocol languages as guidance for future research.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>We understand a multiagent system (MAS) as a decentralized system of autonomous agents, each of whom represents a real-world entity such as a person or an organization. In particular, a MAS is not a separate computational entity but is realized purely through its member agents. When a MAS models a collective such as an institution, the institution can be viewed as an entity that is itself a member of the MAS <ref type="bibr">(Singh, 2013)</ref>.</p><p>Agents in a MAS coordinate their computations while retaining loose coupling in their construction and decision making. To accommodate such a conception of a MAS, it is crucial that (1) agents coordinate their computations via arms-length communication, that is, via asynchronous messaging, and (2) the coordination requirements be clearly specified and support a programming model that facilitates the construction of agents.</p><p>The foregoing twin requirements have motivated an extensive study of languages for specifying communication protocols. Broadly, a communication protocol specifies the coordination in a MAS by specifying two or more interacting roles, the messages (that is, message schemas) exchanged by these roles, and the conditions under which agents playing those roles may send (instances of) the various messages to one another. Further, a protocol yields a programming interface (skeleton) for every agent such that if an agent implements its interface, then the agent is compliant. Compliance with the stated protocol is the primary correctness criterion for individual agents: If all agents complied, then their computations would be correctly coordinated.</p><p>For concreteness, Use Case 1 describes a protocol informally.</p><p>Use Case 1 (Purchase) A buyer requests an item from a seller, who responds with an offer. The buyer may accept or reject the offer. If the buyer accepts the seller's offer, the seller delivers the specified item to the buyer, following which the buyer sends the specified payment to the seller.</p><p>For Use Case 1, the roles would be buyer and seller. The messages would be Request, Offer, Reject, Accept, Payment, and Deliver. buyer may send Request, Accept, Reject, and Payment, and seller may send Offer and Deliver. Each message contains the information relevant to that message (presumably capturing what that message connotes in the protocol). For example, Request contains the item and Offer contains the price. We identify additional constraints from Use Case 1: Offer concerns the same item as specified in Request; and, Payment specifies the same amount as the price in Offer.</p><p>The notion of protocol is naturally a foundational one for multiagent systems. Both <ref type="bibr">Hewitt (1991)</ref> and <ref type="bibr">Gasser (1991)</ref> identify protocols as one of the central challenges for MAS. Protocols are central to work on agent communication languages <ref type="bibr">(FIPA, 2002;</ref><ref type="bibr">Vieira, Moreira, Wooldridge, &amp; Bordini, 2007)</ref>; on institutions, e.g., <ref type="bibr">(d'Inverno, Luck, Noriega, Rodriguez-Aguilar, &amp; Sierra, 2012)</ref>; and on agent-oriented software engineering (AOSE) methodologies such as Gaia <ref type="bibr">(Zambonelli, Jennings, &amp; Wooldridge, 2003)</ref>, Tropos <ref type="bibr">(Bresciani, Perini, Giorgini, Giunchiglia, &amp; Mylopoulos, 2004)</ref>, and Prometheus <ref type="bibr">(Padgham &amp; Winikoff, 2005)</ref>. The centrality of protocols has spurred work on protocol specification languages and approaches. Agent UML (AUML) <ref type="bibr">(Odell, Parunak, &amp; Bauer, 2001)</ref>, an early graphical notation for specifying protocols that extends UML, is applied in Tropos and Prometheus and by FIPA for specifying interaction protocols <ref type="bibr">(FIPA, 2003)</ref>. Inspired from problems in telecommunications networks and UML, Message Sequence Charts <ref type="bibr">(ITU, 2004</ref>) was another early standardization of a protocol notation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Problem</head><p>From modest beginnings in informal notations based on UML, work on protocol languages has grown to encompass a number of sophisticated-and in some cases, complicatedformal approaches that boast diverse basic abstractions and operational assumptions. For example, the abstractions employed include state machines <ref type="bibr">(Baldoni, Baroglio, Martelli, &amp; Patti, 2006;</ref><ref type="bibr">Winikoff, Yadav, &amp; Padgham, 2018)</ref>, logic-based constraints <ref type="bibr">(Baldoni, Baroglio, Marengo, &amp; Patti, 2013)</ref>, action descriptions <ref type="bibr">(Desai &amp; Singh, 2008a)</ref>, trace expressions <ref type="bibr">(Castagna, Dezani-Ciancaglini, &amp; Padovani, 2012;</ref><ref type="bibr">Ferrando, Winikoff, Cranefield, Dignum, &amp; Mascardi, 2019)</ref>, session types <ref type="bibr">(Yoshida, Hu, Neykova, &amp; Ng, 2013)</ref>, and information constraints <ref type="bibr">(Singh, 2011a)</ref>. Operational assumptions range from synchronous communication <ref type="bibr">(Winikoff et al., 2018)</ref>, to asynchronous but pairwise FIFO communication <ref type="bibr">(Castagna et al., 2012;</ref><ref type="bibr">Yoshida et al., 2013)</ref>, to unordered asynchronous communication <ref type="bibr">(Singh, 2011a)</ref>.</p><p>The rich diversity of languages for specifying protocols raises an important question: how may we compare and evaluate them? Today, we lack generally clear evaluation criteria and use cases for protocol languages that would enable us to evaluate them on conceptual grounds. And yet, there is a general belief in the research community that existing languages can largely tackle the challenges of building multiagent systems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">Contributions, Novelty, and Significance</head><p>We posit that current languages, illustrating the established paradigms, largely do not support the engineering of decentralized multiagent systems. In support, we contribute a conceptual evaluation of protocol languages with respect to decentralization. Specifically, our contributions in this paper are the following.</p><p>First, we provide evaluation criteria for protocol languages that are informed by decentralization. The criteria have to do with how well a language supports specifying flexible interactions; whether a language enables expressing the appropriate information constraints; and the assumptions (demands) a language makes of a MAS's operational environment.</p><p>Second, we undertake a comparative evaluation of selected protocol languages against the aforementioned criteria. The selected languages are modern, diverse, and prominent. An important feature of our evaluation is our reliance on "minimal" use cases for protocols that help bring forth the distinctions between the languages. Specifically, for each criterion, we take realistic use cases that go to its heart and specify them as best possible in each of the selected languages. We then analyze each resulting protocol specification for validity according to the semantics of the language it is specified in. Following this methodology, we show that several of the selected languages fall short of what is required to support decentralization.</p><p>Third, we identify the architectural assumptions underlying the selected languages and discuss how they map to MAS architecture.</p><p>Fourth, we posit principles for engineering MAS and discuss how the languages fare against them. No unitary perspective states that a protocol must not specify orderings of events from a unitary perspective. Noninterference and the end-to-end principle for protocols both concern layering. Noninterference states that a protocol must not interfere with agent reasoning. The end-to-end principle states that a protocol can be fully and correctly implemented only in agents, not in the infrastructure. Relying on infrastructure for correctness (e.g., via FIFO message delivery) may be inadequate and unnecessary for correctness. The end-to-end principle for protocols derives from the more general end-to-end principle for system design <ref type="bibr">(Saltzer, Reed, &amp; Clark, 1984)</ref>. This paper's significance lies in bringing forth the information models, semantics, and architectural assumptions underlying protocol languages as they relate to decentralization. Doing so not only provides a conceptual framework for understanding protocols and protocol languages but also clarifies requirements for MAS and yields guidance on research into protocol languages. Its novelty arises from the absence, currently, of such a framework.</p><p>Notably, this paper focuses on essential representational criteria for protocols and plays down contingent features such as current tool support and popularity.</p><p>We use the following notational conventions throughout (except in listings and figures). We use small caps for role names; Slant for protocol and message names; sans serif for parameter names; and teletype for parameter values.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.3">Organization</head><p>The rest of this paper is organized as follows. Section 2 introduces protocols as an architectural abstraction for MAS. Section 3 introduces the languages we analyze at depth in this paper. Section 4 evaluates the languages for concurrency and extensibility, as important aspects of flexibility; Section 5 for protocol instances, integrity, and social meaning, as important aspects related to the information exchanged in protocol enactments; and Section 6 for assumptions about the operational environment for protocol enactment. Section 7 teases out the architectural models underlying the various languages and compares them to the canonical MAS architecture, as presented earlier. It also presents broad principles for protocol languages and evaluates the selected languages against them. Section 8 summarizes the overall evaluation in the context of alternative evaluations in the literature. It ends with a discussion of future directions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Multiagent Systems Architecture</head><p>A protocol is an architectural abstraction and therefore any evaluation of protocol languages must start with a clear understanding of MAS architecture. Below, we present a canonical architectural style <ref type="bibr">(Shaw &amp; Garlan, 1996)</ref> for MAS, clearly indicating its components, assumptions, and constraints. The idea is that any concrete instantiation of the architecture must satisfy constraints but without making stronger assumptions.</p><p>Strictly speaking, agents and roles are distinct categories (an agent may play several roles and a role may be played by several agents). For expository convenience, and to focus on other concerns in this paper, we assume that any role is played by a single agent and distinct roles are played by distinct agents. This assumption enables us to identify an agent with the role it plays. From here on, we talk primarily of agents and deemphasize roles.</p><p>As Figure <ref type="figure">1</ref> depicts, each agent represents an autonomous principal, for example, a human or an organization. An agent internally encodes the private decision making of its principal, including any private knowledge bases that it relies upon for decision making. We elide principals in the subsequent figures.</p><p>In general, to achieve interoperation, the interoperating parties must agree at multiple levels <ref type="bibr">(Singh &amp; Huhns, 2005)</ref>. Here, the protocols focus on the operational level, which concerns the exchange of information (i.e., reflected in constraints on the ordering and occurrence of messages). In particular, we set aside both low-level concerns such as how the information is encoded and high-level concerns as to the meaning of the information exchanged-though we insist that protocols be able to support a flexible representation of meaning.</p><p>An agent sends and receives messages via a communication infrastructure. An agent's observations are its message emissions and receptions. For simplicity and in accordance with the literature, we assume that agents make observations serially <ref type="bibr">(Agha, 1986;</ref><ref type="bibr">Fagin,</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Agent Agent</head><p>Principal Principal Protocol Specification</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Asynchronous communication infrastructure</head><p>Figure <ref type="figure">1</ref>: Minimal MAS architecture. Agents implement the protocol and communicate via asynchronous messaging. The communication infrastructure provides no message delivery guarantees other than that it is noncreative (delivers only those messages that were sent).</p><p>Halpern, <ref type="bibr">Moses, &amp; Vardi, 1995;</ref><ref type="bibr">Hewitt, 1977)</ref>. An agent's history is the set of its observations. Technically, an agent complies with a protocol if and only if all of its observations are correct with respect to the protocol. Constraints 1 and 2 address the correctness of emissions and receptions, respectively.</p><p>Constraint 1 (Emission correctness) The correctness of a message emission by an agent may be determined from the agent's history.</p><p>Constraint 1 rules out reliance on any kind of state other than the history for purposes of determining the correctness of emissions. In particular, it rules out reliance on (1) the global state, which may include what the agent has not observed; (2) the future state of an agent, because any decision should respect causation; and (3) an agent's internal state, for example, as encoded in its beliefs <ref type="bibr">(Singh, 1998)</ref>.</p><p>Constraint 2 (Reception correctness) The reception of any message that was emitted correctly is correct.</p><p>Constraint 2 captures the intuition of respecting the structure of causality. Specifically, if the reception of a message could be incorrect, then that message ought never to have been sent. Otherwise, the recipient would enter a "corrupted" state from which there is no recourse. The only alternative would be for the infrastructure to intervene and prevent a message reception that would be erroneous, but doing so would customize the infrastructure to include application-specific details, in contravention of the famous end-to-end principle <ref type="bibr">(Saltzer et al., 1984)</ref>, which advocates generality in the infrastructure.</p><p>Constraints 1 and 2 imply that agents need no more than an asynchronous communication infrastructure, as captured by Constraints 3 and 4.</p><p>Constraint 3 (Asynchrony: Nonblocking emission) Sends are nonblocking, meaning that when an agent sends a message, it does not synchronize with the receiver on the sending action.</p><p>Constraint 4 (Asynchrony: Anytime reception) An agent receives a message when it is delivered by the infrastructure. That is, message reception is nondeterministic.</p><p>Of course, an agent being autonomous may choose not to act on a message it has received but the reception itself occurs due to the infrastructure.</p><p>Asynchrony promotes loose coupling between agents. Notably, programming paradigms for building distributed systems such as the actor model <ref type="bibr">(Agha, 1986;</ref><ref type="bibr">Hewitt, 1977;</ref><ref type="bibr">Hewitt, Bishop, &amp; Steiger, 1973)</ref> give prominence to asynchronous messaging for organizing decoupled computations. Practical communication infrastructures such as the Internet support asynchronous messaging. In fact, asynchrony is the only viable option in the important setting of the Internet of Things (IoT) <ref type="bibr">(OASIS, 2014;</ref><ref type="bibr">Shelby, Hartke, &amp; Bormann, 2014;</ref><ref type="bibr">XMPP, 2015)</ref>.</p><p>Assumption 1 (Infrastructure guarantees) The infrastructure is noncreative; that is, only sent messages are received. Further, the infrastructure does not deliver corrupt messages.</p><p>Notice that Assumption 1 does not say that a sent message be also received. Indeed, messages may be lost in transit. Some applications of MAS may require messages to be delivered; the analysis in this paper however does not rely upon such an assumption. Also notice that no message delivery order was assumed. Constraint 2 means no such assumption is required for purposes of correctness.</p><p>Constraint 5 (Fullness) A protocol fully specifies a multiagent system at the operational level.</p><p>Conceptually, as stated above, a protocol specifies the constraints on the operational level, i.e., on the information exchange. Constraint 5 states that nothing else besides a protocol is needed to characterize a MAS at the operational level. That is, this constraint rules out reliance on extra-protocol mechanisms for coordination, e.g., agreements about when to send or not send certain messages. Such extra-protocol mechanisms would amount to hidden coupling between the agents: Agents developed to interoperate solely on the basis of the protocol would not interoperate with agents that relied on extra-protocol mechanisms. Constraint 5 means that Figure <ref type="figure">1</ref> captures a MAS fully from the standpoint of coordination.</p><p>Figure <ref type="figure">2</ref> elaborates on the architecture of Figure <ref type="figure">1</ref> by refining an agent into two components: protocol filter and reasoner.</p><p>An agent's protocol filter ensures compliance. The filter interfaces with the communication infrastructure to send and receive messages. And it interfaces with the reasoner to notify the reasoner of observations of interest and to accept message emission requests. The filter materializes the agent's history and uses it to check the correctness of any message that the reasoner requests it to send. If the message is correct, the filter sends the message on the infrastructure (and records the emission as an observation in the history). If the message is not correct, the filter discards the message with the indication of an exception to the reasoner (and does not change the history). The filter is a form of generic protocol-based control on the reasoner <ref type="bibr">(Banihashemi, De Giacomo, &amp; Lesp&#233;rance, 2016</ref><ref type="bibr">, 2018)</ref>.</p><p>An agent's reasoner encodes the decision making of its principal. The reasoner determines how an agent processes events, both private (e.g., an update to an internal knowledge base) and observations recorded by the filter. The processing of an event may require the emission of a message, for which the reasoner relies on the filter. For example, referring to Use Case 1, buyer's reasoner, upon being notified by an internal database that a particular item was out of stock, may ask the filter to send a Request for that item to seller. If the Request is correct, the filter sends it to seller. seller's reasoner, when notified by its filter of the reception of the Request, may determine-by looking up an internal price list-that an Offer for the requested item should be sent for some price. And so on. The architecture in Figure <ref type="figure">3</ref> further refines the architecture in Figure <ref type="figure">2</ref> by introducing a declarative specification of the social meaning of an interaction <ref type="bibr">(Singh, 1998)</ref> and a runtime for the language in which meaning is specified, namely, the meaning computer. The meaning specification takes an agent's observations as the base-level social events and maps combinations of social events to higher-level social events.</p><p>Constraint 6 defines what may be considered a social event.</p><p>Constraint 6 (Social) A social event is either an observation or is inferred from other social events <ref type="bibr">(Chopra &amp; Singh, 2016)</ref>.</p><p>Constraint 6 means that a social event cannot feature any information that does not show up in an observation (of a message, as defined earlier). Internal events that reflect updates to an agent's internal state (e.g., its beliefs) have no effect on the computation of social events <ref type="bibr">(Singh, 1998)</ref>.</p><p>Social meaning is essential to the application-specific correctness of MAS. A MAS for financial loans may model social meaning via abstractions for debt, collateral, default, and so on. For example, from events corresponding to the issuance of a loan and a payment against the loan, a new debt event could be inferred that reflects the outstanding debt. Further, were the outstanding debt to be zero, it could lead to the inference of a new repaid event. In like manner, a MAS that supports a community of toy train enthusiasts could model social meaning via abstractions for the provenance, ownership, and desirability of a toy train.</p><p>In MAS research, social meaning is often modeled via commitments <ref type="bibr">(Bentahar, Moulin, Meyer, &amp; Chaib-draa, 2004;</ref><ref type="bibr">Dastani, van der Torre, &amp; Yorke-Smith, 2017;</ref><ref type="bibr">Fornara &amp; Colombetti, 2002;</ref><ref type="bibr">Meneguzzi, Magnaguagno, Singh, Telang, &amp; Yorke-Smith, 2018</ref> &amp; Yorke-Smith, 2019; <ref type="bibr">Winikoff, Liu, &amp; Harland, 2005;</ref><ref type="bibr">Yolum &amp; Singh, 2002)</ref> and other norms <ref type="bibr">(Alechina, Halpern, Kash, &amp; Logan, 2018;</ref><ref type="bibr">Artikis, Sergot, &amp; Pitt, 2009;</ref><ref type="bibr">Padget, Vos, &amp; Page, 2018)</ref>. In the rest of the paper, for reasons of concreteness and familiarity, we use commitments as an exemplar way of modeling social meaning. Use Case 2 illustrates the use of commitments to capture meaning.</p><p>Use Case 2 (Deliver-Payment Commitment) In the context of purchase in Use Case 1, the meaning of an Accept from seller to buyer for some item for some price is that it creates a commitment from buyer to seller that if seller Delivers the item by some deadline, then buyer will make a Payment of the price by some deadline.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Overview of Selected Languages</head><p>For this evaluation, we select protocol specification languages that are recent, have a formal semantics, and represent diverse doctrines. AUML notably is not in our selection: neither is it recent nor does it have a satisfactory formal semantics. AUML is closely related to UML Sequence Diagrams, which too lacks a formal semantics. Some of the selected languages though adopt important intuitions behind AUML, including the idea of specifying an interaction as a control flow of messages and using a graphical notation. One might argue that some of the languages we discuss below seek to formalize intuitions that undergird AUML.</p><p>Below, we introduce the main ideas of the selected languages by specifying Use Case 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Multiparty Session Types: Scribble</head><p>Scribble <ref type="bibr">(Yoshida et al., 2013)</ref> is a practical instantiation of multiparty session types <ref type="bibr">(Honda, Yoshida, &amp; Carbone, 2016)</ref>. In Scribble, a protocol is an ordering of constituent protocols (bottoming out at individual message specifications) using constructs such as sequence, choice, and recursion. Scribble assumes that communication between pairs of participants is asynchronous but ordered over FIFO channels.</p><p>Listing 1 gives an encoding of Use Case 1 as a Scribble protocol. In the listing, a semicolon (;) indicates sequencing.</p><p>Listing 1: Purchase (Use Case 1) in Scribble. Given a protocol, Scribble yields projections, called local protocols, for each agent. (We retain the term "projection" to avoid conflict with "protocol.") The idea is that the protocol represents computations from a unitary perspective whereas an agent's projection represents computations from its own local perspective. Scribble's tools <ref type="bibr">(Scribble, 2018</ref>) may be used to generate these projections. We have used the tooling to verify all Scribble specifications presented in this paper.</p><p>Listing 2 gives the projections for each of the agents in the Purchase protocol in Listing 1. buyer's projection says: send Request to seller, then receive Offer (from seller), then send either Accept or Reject. If Accept is sent, then receive Deliver and then send Payment. seller's projection is read in an analogous manner.</p><p>Notice that in the protocol, the choice between Accept and Reject is indicated as buyer's. Therefore, in the projections, the choice is interpreted as an internal choice for buyer and as an external choice for seller. The agent with an internal choice chooses from the available alternatives autonomously. The agent with an external choice does not choose but follows along. The internal choice determines the external choice. Thus, if buyer chooses to send Accept (alternatively, Reject), its reception resolves the seller's choice to receive Accept (alternatively, Reject).</p><p>Listing 2: Scribble projections of Purchase (Listing 1) for buyer and seller. The notion of realizability ties together a protocol and its projections. A protocol is realizable if and only if the agents acting locally based on their projections jointly realize exactly the computations of the protocol (as we shall see, this is not always the case). The Purchase protocol in Listing 1 is realizable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Trace-C</head><p>Castagna et al. ( <ref type="formula">2012</ref>) describe a language for specifying protocols that is based upon trace expressions, which we refer to as Trace-C. A trace is a sequence of communication events. In Trace-C, each expression maps to a set of traces. The expression x m -&#8594; y is atomic; it denotes the communication of message m from x to y; and it maps to the (singleton) set of traces {m}. The ; operator denotes sequential composition; the expression e; f is the concatenation of the traces of e with the traces of f . The &#8744; operator denotes choice; the expression e &#8744; f is the union of traces of e and the traces of f . The &#8743; operator denotes the shuffle of its operands; the expression e &#8743; f is the set of those traces that represent an interleaving of a trace of e with a trace of f . Like Scribble, Trace-C assumes FIFO-based asynchronous communication.</p><p>Listing 3 shows how Use Case 1 may be rendered in Trace-C. Although the Trace-C specification appears more algebraic than Scribble, we can see that they are structurally similar once we realize that the choice operator in Scribble corresponds to the &#8744; operator in Trace-C. The projections generated by Trace-F for Listing 3 though are different from the projections produced by Trace-C as shown in Listing 4. Specifically, in Trace-F, the choice in the protocol does not reduce to internal and external choice in the projections for buyer and seller. Instead, the choice is preserved in the projection and the distinction between internal and external choice is captured semantically in a decision structure. In general, Trace-F preserves all binary operators used in a protocol in the projections.  <ref type="formula">2019</ref>) introduce two dimensions of variation in reasoning about the realizability (which they term "enactability") of a protocol. One dimension concerns the communication infrastructure-whether it is asynchronous or synchronous and if it is asynchronous what kind of ordered delivery guarantees it offers. Out of the other approaches evaluated in this paper that support asynchrony, none requires stronger ordering guarantees than FIFO delivery. Hence, the interesting cases for Trace-F, for our purposes, are asynchrony without any kind of ordered delivery, which we refer to as unordered asynchrony, and asynchrony with FIFO delivery, which we refer to as FIFO asynchrony.</p><p>The other dimension that <ref type="bibr">Ferrando et al. (2019)</ref> introduce (drawing upon <ref type="bibr">(Desai &amp; Singh, 2008b</ref>)) concerns how the sequence operator is interpreted in terms of the observations of events. Take the protocol in Listing 6.</p><p>Listing 6: A Trace-F protocol.</p><p>Under the send before send (SS) interpretation, w must send p before w sends q. Under the send before receive (SR) interpretation, w must send p before y receives q. Under the receive before send (RS) interpretation, x must receive p before w sends q. And, under the receive before receive (RR) interpretation, x must receive p before y receives q.</p><p>Whether a protocol is realizable depends on the communication infrastructure and the interpretation of the sequence operator. For concreteness, let us consider the protocol in Listing 6 under unordered asynchrony. The protocol is realizable with either SS (w being the sender of both p and q can ensure that p is sent before q) or SR (from the facts that the protocol is realizable under SS and the emission of a message must be prior to its reception). However, the protocol is realizable neither under RS (w has no way of knowing when x has received p, so it cannot ensure that q will be sent after the reception of p) nor under RR (since the receivers are different, there is no way to ensure that q will be received after the reception of p). Changing the interpretation to FIFO asynchrony makes no difference (because the receivers of p and q are different).</p><p>To see how the choice of communication infrastructure makes a difference, consider the protocol in Listing 7. Notice that both p and q are messages from w to x. Under unordered asynchrony and with the RR interpretation, the protocol is unrealizable (there being no way to guarantee that p will be received before q). However, under FIFO asynchrony and the RR interpretation, the protocol is realizable (p is sent before q, so p is also received before q). Listing 7: A Trace-F protocol.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">HAPN</head><p>HAPN <ref type="bibr">(Winikoff et al., 2018</ref>) is a graphical language that enables specifying a protocol as a nested state machine in a manner similar to statecharts <ref type="bibr">(Harel, 1987)</ref>. As Figure <ref type="figure">4</ref> shows, nodes represent states or reference other protocols to compose those protocols. Edges can have complex annotations, supporting the specification of message transmissions, guard expressions, and changes to the state. HAPN has been implemented in tooling that animates a state machine. Although <ref type="bibr">Winikoff et al.</ref> acknowledge the importance of realizability, they do not give a method for projecting HAPN protocols nor do they discuss the specific infrastructure assumptions under which a HAPN protocol would be realizable. HAPN provides methods to flatten a hierarchical protocol into simple protocols and finite state machines for verification.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">BSPL</head><p>BSPL <ref type="bibr">(Singh, 2011a</ref><ref type="bibr">(Singh, , 2012))</ref>, the Blindingly Simple Protocol Language, and Splee <ref type="bibr">(Chopra, Christie, &amp; Singh, 2017)</ref>, which extends BSPL, are exemplars of information-based languages. Instead of specifying the control flow between messages, BSPL specifies information causality and integrity constraints.</p><p>Listing 8 shows the Purchase protocol in BSPL. It specifies a set of roles, a set of parameters, and a set of messages. In Purchase, the roles are buyer and seller; the parameters are ID, item, price, decision, and OK; and message schemas are Request, Offer, and so on. Request is a message from buyer to seller and has parameters ID and item. BSPL is declarative; the order in which the messages appear in a protocol is irrelevant to how the protocol may be enacted.</p><p>Listing 8: Purchase in BSPL. A BSPL protocol may be viewed as an information object as described by the protocol parameters, at least one of which is annotated key. The key parameters enable identifying instances of the protocol: distinct bindings for the key parameters identify distinct instances of the protocol. Purchase specifies ID as its key parameter. A key parameter of the protocol is also a key parameter of the messages in which it appears and enables identifying distinct instances of messages. Thus, parameter ID is key for all messages in Purchase. Protocol instances are related to protocol enactment: A protocol instance is a view over correlated (by bindings of common keys) message instances. For example, an emission of Request with ID 1 and item fig yields a Purchase instance with ID 1 and item fig.</p><p>A protocol instance must satisfy integrity, which is the idea that no two message instances that are correlated with the protocol instance may conflict on (that is, have different bindings for) any parameter-this is the meaning of a key. Thus for example, a Request with ID 1 and item fig and an Offer with ID 1 and item jam would violate integrity: ID 1 may either be associated with item fig or item jam, but not both.</p><p>For any instance, causality constraints specify information flow and are expressed via in and out adornments on parameters (we omit discussion of the nil adornment since it does not feature in any BSPL specification in the present paper). Ordering between messages falls out of these constraints. To see how, consider Request. In Request, both ID and item are adorned out , meaning that in sending a Request, buyer produces bindings for ID and item. When seller receives the Request, it comes to know those bindings unless it knew them already. In Offer, both ID and item are adorned in , meaning that seller needs to know these parameters before seller can send Offer. This means that if seller has seen Request before, it can send Offer by producing a binding for price. When buyer receives Offer, it may send either Accept or Reject since it knows the bindings of ID, item, and price and it may produce a binding for address (which features in Accept but not Reject), decision and OK (which features in Reject but not Accept). It cannot send both Accept and Reject though because both messages produce a binding for decision, and integrity requires a parameter to have at most one binding. When seller receives Accept, it knows address and therefore may send Deliver by producing a binding for dropOff. Upon reception of Deliver, buyer knows dropOff, and therefore, it can send Payment by producing a binding for OK.</p><p>A tuple of bindings for a protocol's parameters corresponds to a complete protocol instance. That is the motivation for Purchase being designed such that Reject features OK but Accept does not. On the Accept branch, the protocol completes with Payment.</p><p>Unlike the languages introduced earlier, BSPL does not give the computations of a protocol from a unitary perspective. Instead, it takes an inherently decentralized perspective. Any computation of a protocol is a vector comprised of a history for each agent. However, the vector is conceptual (not materialized anywhere). To be able to correctly enact a protocol, an agent needs no more than its history. Therefore projections are trivial in BSPL.</p><p>BSPL works with asynchronous communication without any ordering guarantees.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Flexibility</head><p>Does a language support specifying flexible protocols? Being able to interact flexibly is supportive of autonomy <ref type="bibr">(Yolum &amp; Singh, 2002)</ref>. However, flexibility is in tension with decentralization: Independently-constructed agents deciding locally must still be able to interoperate. Below, we discuss concurrency and extensiblity, two aspects of flexibility. Below, we denote enactments via sequence diagrams, as in Figure <ref type="figure">5</ref>, where each agent's lifeline captures its history.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Concurrency</head><p>Does a language support specifying protocols in which agents may emit and receive messages concurrently? Consider Use Case 3.</p><p>Use Case 3 (Flexible purchase) buyer sends Request to seller to ship some item. After sending Request, buyer may send Payment. After receiving Request, Seller may send Shipment. That is, Payment and Shipment are not mutually ordered.  To understand what enactments are supported by the protocol in Listing 9, following Trace-C <ref type="bibr">(Castagna et al., 2012, p. 14)</ref>, we eliminate &#8743; from the protocol to obtain the equivalent protocol in Listing 10. Trace-C determines the protocol in Listing 10 as unrealizable.</p><p>Listing 10: A Trace-C protocol equivalent to the protocol in Listing 9. Let us see why. Listing 11 gives the projections that Trace-C yields for Listing 10. The choice (denoted by &#8744;) in the protocol must be interpreted as external choice (denoted +) for one agent and internal choice (denoted &#8853;) for the other. Recall that an agent with an internal choice can choose autonomously. An agent with an external choice cannot; its choice is determined by the internal choice of another agent. In Listing 11, buyer has the internal choice and seller the external choice (it would not matter to our analysis if it were the other way around since the situation is symmetric).</p><p>Listing 11: Trace-C projections of the protocol in Listing 10.</p><p>Buyer : S e l l e r ! R e q u e s t .</p><p>( ( S e l l e r ? Shipment . S e l l e r ! Payment ) &#8853; ( S e l l e r ! Payment . S e l l e r ? Shipment ) )</p><p>S e l l e r : Buyer ? R e q u e s t .</p><p>( ( Buyer ! Shipment . Buyer ? Payment ) + ( Buyer ? Payment . Buyer ! Shipment ) )</p><p>Given the projections in Listing 11, if buyer chooses to send Payment, when Payment reaches seller, it effectively determines the choice to receive Payment by seller. Such an enactment realizes the protocol trace where Payment happens before Shipment, so no problem here. However, if buyer chooses to receive Shipment, seller must send it. The seller could send Shipment if it knew of buyer's choice or it could act autonomously. However neither is a possibility. Constraint 5 rules out covert communication and synchronization and therefore rules out the possibility of the seller learning of buyer's choice. As seller's choice is internal, it cannot send Shipment autonomously. This means the system is deadlocked, which leads Trace-C to conclude that the protocol is unrealizable. The situation where agents must make mutually compatible choices to ensure correctness is known as nonlocal choice <ref type="bibr">(Ladkin &amp; Leue, 1995)</ref>.</p><p>Listing 12 shows the projections in Trace-F for the protocol in Listing 9. Under both unordered and FIFO asynchrony, the protocol is determined unrealizable by Trace-F, no matter what interpretation is chosen for the sequence operator. The reason behind the rejection is the same reason the Trace-C protocol above is rejected: a nonlocal choice that cannot always be made in a mutually compatible manner by the agents.</p><p>Listing 12: Trace-F projections of the protocol in Listing 10.</p><p>Buyer : S e l l e r ! R e q u e s t .</p><p>( ( S e l l e r ? Shipment . S e l l e r ! Payment ) &#8744; ( S e l l e r ! Payment . S e l l e r ? Shipment ) ) S e l l e r : Buyer ? R e q u e s t .</p><p>( ( Buyer ! Shipment . Buyer ? Payment ) &#8744; ( Buyer ? Payment . Buyer ! Shipment ) )</p><p>Listing 13 shows how we might model Use Case 3 in Scribble. For the same reasons as for Trace-C, the protocol in the listing is determined unrealizable by Scribble.</p><p>Listing 13: Flexible purchase (Use Case 3) in Scribble. Some research branches of Scribble <ref type="bibr">(Demangeon, Honda, Hu, Neykova, &amp; Yoshida, 2015)</ref> have included a parallel operator, which however is absent from the main Scribble language and implementation. We hypothesize that a parallel operator would manifest as a problematic nonlocal choice. Our hypothesis is based on the fact that Trace-C's &#8743; operator is in essence a parallel operator and as we showed in the analysis of flexible purchase in Trace-C, &#8743; manifests as a problematic nonlocal choice in the projections.</p><p>Figure <ref type="figure">6</ref>'s HAPN protocol captures only the first two enactments of Figure <ref type="figure">5</ref>, not the concurrent one because HAPN requires synchrony.  Listing 14 gives a BSPL protocol. It supports the enactment in Figure <ref type="figure">5c</ref> because after buyer sends Request, it has the information needed to send Payment and, upon receiving Request, seller has the information needed to send Shipment. The protocol also supports the enactments in Figures <ref type="figure">5a</ref> and<ref type="figure">5b</ref>.</p><p>Listing 14: Flexible purchase (Use Case 3) in BSPL. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Extensibility</head><p>Is the protocol language such that an agent may participate in multiple, potentially unrelated protocols specified in it? If the answer is yes, we refer to the language as extensible. Technically, extensibility means that an agent may interleave observations of messages from several protocols and yet be compliant with each of them. If an agent may participate in only one protocol, that is, observe messages from only one protocol, then the language is nonextensible.</p><p>Extensibility is a practical necessity. For example, an organization as an agent may interact with other organizations using one protocol but interact with its own members using another protocol. Further, nonextensibility would be an undue restriction on an agent's design and therefore its principal's autonomy.</p><p>As basic a requirement as extensibility appears to be, we show below that several languages are in fact not extensible.</p><p>Use Case 4 (Pricing and Catalog) seller and buyer engage in the Pricing protocol, by which a buyer may obtain offers for requested items from seller. In addition, seller engages with provider via the Catalog protocol to obtain information about the newest products. Further, buyer is unaware of Catalog and provider is unaware of Pricing, indicating that these protocols are not composed into a single protocol.</p><p>Figure <ref type="figure">7</ref> shows an enactment of Use Case 4 in which the messages of Pricing and Catalog are interleaved. In particular, notice that seller observes messages from both protocols. There is nothing in the enactment that tells us it should be deemed incorrect. Such enactments would in fact be indicative of flexibility. If a protocol language were not extensible, then enactments such as the one in Figure <ref type="figure">7</ref> would be deemed incorrect.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Buyer</head><p>Seller Provider R eq ue st Q u e r y N e w e s t O ff er  <ref type="bibr">(2012, p.</ref> 3) promote the correctness criterion of fitness with respect to a protocol, which says that an agent correctly implements (fits) a protocol only if the agent does not observe any message that is not in the protocol. <ref type="bibr">Castagna et al.</ref> give the example of a protocol in which seller may send buyer messages corresponding to price and descr (of an item) and say that a seller that sent any message other than price and descr would violate the protocol. Naturally, it follows that if an agent observes messages from two or more Trace-C protocols, then it correctly implements none of those protocols. In essence, fitness limits agents to implementing a single protocol.</p><p>Returning to our example, Trace-C says that to correctly implement Pricing, seller must not observe any message from Catalog and to correctly implement Catalog, seller must not observe any message from Pricing. An agent that engages in both Pricing and Catalog violates both. Considering the seller's projections for Pricing and Catalog, given in Listing 16, helps see the violations clearly. If you consider the projection from Pricing, the only trace that satisfies the projection is Request followed by Offer. In particular, no trace with Query or Newest satisfies the projection from Pricing. By an analogous argument, no trace with Request or Offer would satisfy the projection from Catalog. Based on the foregoing analysis, we conclude that Trace-C does not support extensibility.</p><p>Listing 16: Projections of Pricing and Catalog in Trace-C (and Trace-F) for Seller.</p><p>// S e l l e r ' s p r o j e c t i o n from P r i c i n g S e l l e r : Buyer ? R e q u e s t ; Buyer ! O f f e r // S e l l e r ' s p r o j e c t i o n from C a t a l o g S e l l e r : P r o v i d e r ! Query ; P r o v i d e r ? Newest Following an analogous line of reasoning, we can see that Trace-F and Scribble do not support extensibility either: Pricing and Catalog yield projections for seller, none of which entertains traces with events from the other (in fact, the projections in Listing 16 double as projections in Trace-F as well). HAPN's state-machine semantics rules out interleavings with other protocols. Therefore, HAPN too does not support extensibility.</p><p>The underlying reason Trace-C, Trace-F, Scribble, and HAPN come up short on extensibility is they all implicitly identify the universe of discourse (the messages that agents may observe) with the messages specified in the protocol.</p><p>BSPL supports extensibility. In fact, BSPL refers to a universe of discourse, which for an agent would include any messages it observes, regardless of the protocols they feature in. Any message schema is an elementary protocol is BSPL and determining the correctness of an observation of the message depends on the causality and integrity constraints specified in the schema. Correctness does not depend upon the protocol in which a message schema occurs. Listing 17 and Listing 18 specify Pricing and Catalog, respectively, in BSPL. The role seller features in both protocols and interleaves observations of messages from both protocols.</p><p>Listing 17: Pricing in BSPL.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>}</head><p>One may argue that the problem of extensibility is rendered moot if both Pricing and Catalog were composed into a single protocol. Composing the protocols would enable an agent to interleave interactions from both protocols without compromising fitness. Listing 19 gives Pricing+Catalog, a composition of Pricing and Catalog, in Trace-C. The fitness of seller with respect to the composed protocol is thus a possibility. However, there are significant drawbacks to requiring explicit composition just for the sake of fitness. First, it would create large unwieldy protocols with potentially unrelated communications and introduce otherwise unrelated agents into the MAS just because they are reachable from each other based on their interactions with common agents. Second, when protocols are large and unwieldy, projections for agents and their implementations would become correspondingly complicated. Third, it would prevent any organizational abstraction. For example, the protocol by which an organization trades with others will have to be composed with all the protocols pertaining to interactions internal to the organization, which would be undesirable. Fourth, the composite protocol may turn out to be unrealizable anyway. Pric-ing+Catalog in Listing 19 is in fact unrealizable. The reason is that the protocol sets up a problematic nonlocal choice (seller sends Query or buyer sends Request).</p><p>Listing 19: Pricing+Catalog in Trace-C.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>// P r i c i n g+C a t a l o g ( Buyer Request</head><p>----&#8594; S e l l e r ; S e l l e r Offer ---&#8594; Buyer ) &#8743; ( S e l l e r Query ---&#8594; P r o v i d e r ; P r o v i d e r Newest ----&#8594; S e l l e r )</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Information Modeling</head><p>Does a language enable capturing the information model underlying the interactions in a MAS? Further, does the information model captured in a protocol specification enable computing social meaning correctly? It is the information conveyed via messaging that enables coordination in a MAS. Such information has a model, starting with constraints such as would be captured in a message schema, e.g., to capture message instances, and extending to constraints between message schemas in a protocol specification, e.g., to capture correlation and integrity in protocol enactments, which may be viewed as groups of message instances. Further, due to Constraint 6, since a meaning-level event is computed as a view over one or more protocol events, the soundness of information at the meaning-level relies on the soundness of information generated in protocol-level events.</p><p>We elaborate below on protocol instances and the integrity of information as a lead up to social meaning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Protocol Instances</head><p>A practical requirement is that a protocol, being a pattern of communication, may be instantiated several times. We refer to each instantiation as a protocol instance that would be comprised of some appropriately correlated messages. How well does a protocol language support-via its constructs-the modeling of protocol instances? Consider Use Case 5.</p><p>Use Case 5 (Concurrent Pricing) A buyer and seller may engage in several, possibly concurrent engagements, in each of which a buyer sends a request for some item and the seller responds with an offer. Figure <ref type="figure">8</ref>: Four possible enactments of Use Case 5, in each of which buyer and seller engage in two instances of Pricing. Messages with identifier 1 belong to one instance and messages with identifier 2 to the other instance.</p><p>Figure <ref type="figure">8</ref> illustrates some enactments involving two instances of the pattern in Use Case 5. The messages contain identifiers (1 and 2) to help distinguish the instances from each other and to correlate messages within an instance.</p><p>Listing 20 gives a candidate Scribble protocol capturing Use Case 5. Here, the use of the language feature of recursion enables buyer and seller to engage repeatedly in the pricing pattern of Use Case 5. However, each pricing engagement must happen in its entirety before another can start; that is, the protocol does not allow interleaving of multiple pricing engagements. Thus, although the protocol supports the enactment of Figure <ref type="figure">8a</ref>, it excludes the enactments of Figures <ref type="figure">8b</ref> and<ref type="figure">8c</ref>. The enactment of Figure <ref type="figure">8d</ref> is also excluded but for a different reason: it violates FIFO, which is a requirement for Scribble.</p><p>Listing 20: Concurrent Pricing (Use Case 5) in Scribble. ( Buyer Request(ID, item)  ----------&#8594; S e l l e r ; S e l l e r Offer(ID, price) --------&#8594; Buyer ) * Like Scribble, Trace-F too supports recursion.</p><p>Listing 22 gives a recursive Trace-F protocol for Use Case 5. As for Scribble and Trace-C, each iteration must complete before another can begin, thereby excluding the enactments of Figures <ref type="figure">8b</ref> and<ref type="figure">8c</ref> due to the semantics of the language. Under unordered asynchrony, the protocol is unrealizable because the enactment in Figure <ref type="figure">8d</ref> may occur but the protocol cannot handle it. Under FIFO asynchrony, Figure <ref type="figure">8d</ref>  ----------&#8594; S e l l e r ; S e l l e r Offer(ID, price) --------&#8594; Buyer ; P With the aim of supporting the enactment in Figure <ref type="figure">8c</ref>, Listing 23 gives an alternative Trace-F protocol. This protocol has two problems. One, it would support at most two instances. Two, and in any case, it is unrealizable. This is because the protocol would manifest in a problematic nonlocal choice in the projections for buyer and seller: after sending the first Request, buyer can either send the second Request or receive Offer, and after receiving the first Request, seller can either send Offer or receive the second Request.</p><p>Listing 23: Another attempt at Concurrent Pricing (Use Case 5) in Trace-F.</p><p>( Buyer Request(ID, item)  ----------&#8594; S e l l e r ; S e l l e r Offer(ID, price) --------&#8594; Buyer ) &#8743; ( Buyer</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Request(ID, item)</head><p>----------&#8594; S e l l e r ; S e l l e r Offer(ID, price) --------&#8594; Buyer )</p><p>Listing 24 (unclear if it is a legal Trace-F specification) improves upon Listing 23 by allowing an unbounded number of instances; however, it remains unrealizable for the same reason as Listing 23.</p><p>Listing 24: Concurrent Recursive Pricing (Use Case 5) in Trace-F. Request(ID, item)  ----------&#8594; S e l l e r ; S e l l e r Offer(ID, price) --------&#8594; Buyer &#8743; P Figure <ref type="figure">9</ref> specifies the protocol in HAPN, which supports iteration by introducing cycles in the state machine. As for the Scribble and Trace-C protocols, and the Trace-F protocol in Listing 22, each iteration must complete before another can begin, thereby excluding the enactments of Figures <ref type="figure">8b</ref> and<ref type="figure">8c</ref>. Notice that the requirement of synchrony eliminates Figures <ref type="figure">8c</ref> and<ref type="figure">8d</ref>. That is, there are two strikes against Figure <ref type="figure">8c</ref>. Because Scribble, Trace-C, and Trace-F support one of the four enactments in Figure <ref type="figure">8</ref>, we conclude that they partially support instances. By contrast, BSPL fully supports the specification of instances via key parameters of protocols. Listing 17 in fact gives the BSPL protocol that supports all the enactments in Figure <ref type="figure">8</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>P = Buyer</head><p>To help understand why the protocol in Listing 17 supports each of the enactments in Figure <ref type="figure">8</ref>, the following observations suffice. First, buyer can send a Request at any point because it can generate bindings for both parameters of Request, namely, ID and item. However, as ID is key, no two Requests may contain the same binding for ID. Second, seller may send Offers only for those IDs whose bindings it knows from prior communicationshere, from Request messages it has received. Further, once seller knows a binding for ID, it can send (depending on whether its reasoner determines that it should send) an Offer with that binding of ID at any point since the protocol allows it to generate a binding for the only other parameter in Offer, namely, price.</p><p>As an alternative to using recursion or iteration to capture instances, one could use a conversation identifier to capture protocol instances. In this approach, each message would be tagged with an externally generated identifier. Specifically, let m be an instance of a protocol message and c be a conversation identifier; then instead of merely transmitting m, a tuple c, m would be transmitted. Messages with the same conversation identifier may be considered to belong to the same instance. FIPA ACL (implemented in the JADE platform <ref type="bibr">(Bellifemine, Caire, &amp; Greenwood, 2007)</ref>), adopts such an approach, supporting the tagging of messages with conversation identifiers.</p><p>Consider the Scribble specification in Listing 25 (analogous specifications could be written in Trace-C, Trace-F, and HAPN). One could argue that when used with conversation identifiers, the specification would capture the essence of Use Case 5, and specifically the enactments in Figures <ref type="figure">8a, 8b,</ref> and<ref type="figure">8c</ref>. However, in being external to protocol languages, the construct of a conversation identifier constitutes an ad hoc mechanism for identifying instances. In particular, using a conversation identifier would go against Constraint 5 by introducing additional coupling between agents (via the particulars of the conversation identifier). Further, no languagebased support, e.g., in a protocol adapter, could be provided for managing conversations. The burden of conversation management would fall upon the agent developer. For example, the developer would have to ensure that no two Requests are sent with the same conversation identifier; and when a c, m tuple is sent or received, it advances the state of the correct instance, that is, of the instance identified by c.</p><p>Finally, consider that a single conversation identifier will be insufficient for many scenarios. For example, in an instance of an insurance policy subscription, there could be several claims, each a distinct subinstance. Modeling the scenario would therefore require two identifiers, one for the policy subscription (say, pID) and a composite one that identifies a claim in the context of a subscription (say, pID, cID ). In general, the specification of identifiers would depend on the scenario being modeled, which illustrates really the need of supporting identifiers-and through them, instances-generally and systematically in protocol languages, e.g., as BSPL does.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Integrity</head><p>Building upon instances, integrity means that information in a protocol instance must not be inconsistent. For example, in any instance of Purchase, item must have a unique binding; it cannot be fig in Request and jam in Offer.</p><p>Scribble does not support integrity. In Scribble, the message names and the data types of the information carried in a message matter; however, the information carried in the message does not matter. The motivating example of a Scribble travel booking protocol <ref type="bibr">(Yoshida et al., 2013, p. 8</ref>) is illuminating in this regard. Listing 26 reproduces the relevant parts of that protocol.</p><p>Listing 26: Relevant parts of a Scribble travel booking protocol <ref type="bibr">(Yoshida et al., 2013)</ref>. . . . } Figure 10 partially reproduces the customer's finite state machine (FSM) that is extracted from the above protocol and that serves as the basis for compliance checking in the agent: a deviation from the FSM is a violation of the protocol <ref type="bibr">(Yoshida et al., 2013, p. 10)</ref>. Notice that the parameter journey is absent; all that matters is that customer sends a String to agency. To drive home the point about the lack of information modeling in Scribble, we refer the reader to the implementation of the customer agent <ref type="bibr">(Yoshida et al., 2013, p. 11)</ref>, which does not mention journey.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A!query(String)</head><p>A?price(Int)  HAPN partially guarantees information integrity. Once a variable is bound in an enactment, as item is at state s 1 in Figure <ref type="figure">9</ref>, any message attempting to use that variable with a different value is illegal. HAPN's "unbind" operation does not compromise integrity under its assumptions of synchronicity and shared state; all agents would simultaneously see any updates, and would never have inconsistent bindings for any variable. However, HAPN does not ensure integrity when implementing the protocol in a decentralized asynchronous environment, expecting the designer to check for realizability and to make corrections to any problems arising.</p><p>BSPL supports integrity, as described in Section 3.5. Some authors of Trace-F have investigated a language closely related to Trace-F that supports parameters <ref type="bibr">(Ancona, Ferrando, &amp; Mascardi, 2017)</ref>. This language (which we dub Trace-Parameters), like HAPN, partially captures integrity by supporting parameter bindings. Listing 28 (reproduced from <ref type="bibr">(Mascardi &amp; Ferrando, 2019</ref>)) gives a protocol in Trace-Parameters. The expression on the right-hand side of the = may be read as a binding for a parameter (here, ID) followed by the scope over which that binding holds. That is, ID must have the same fresh binding throughout the specified scope. The fresh binding mechanism is not sufficiently expressive to capture integrity, since integrity needs identifiers (as BSPL supports via key parameters). Specifically, the protocol in Listing 28 allows two Request messages to be sent with the same binding for ID. Not only that, it allows two Request messages with the same binding of ID to have different bindings for item.</p><p>Listing 28: A protocol in Trace-Parameters that requires the same binding for ID throughout in every recursion instance. T = ID . Buyer Request(ID, item)  ----------&#8594; S e l l e r ; S e l l e r Offer(ID, price) --------&#8594; Buyer ; T</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Social Meaning</head><p>In general, a specification of social meaning specifies the lifecycle of meaning instances, as exemplified by recent work on commitments <ref type="bibr">(Chopra &amp; Singh, 2015)</ref>. For example, the Deliver-Payment commitment specification in Use Case 2 specifies the lifecycle of Deliver-Payment commitment instances. Where each of the instances differ would be in their information content, as Use Case 6 illustrates.</p><p>Use Case 6 (Commitment instances) buyer and seller repeatedly engage in purchase (Use Case 1). A distinct instance of the Deliver-Payment commitment (Use Case 2) is created for every Accept. Several commitment instances may exist at any moment.</p><p>The information content of a commitment instance would need to obey certain soundness constraints. Each commitment instance referred to in Use Case 6 would involve a specific item binding and a specific price binding. And in fact, those bindings must be immutable over the entire lifecycle of the instance. In particular, it cannot be that the commitment instance is created with item binding fig and discharged with item binding jam; such an enactment would clearly be unsound. Notably, reasoning about the state of a commitment instance involves reasoning about several correlated messages that satisfy integrity-e.g., a message to create the instance and a message to discharge it.</p><p>Given that meaning-level information is derived from (is a view over) underlying protocol events (Constraint 6), identifiers for commitment instances and the necessary correlation and integrity must already be present in protocol enactments. For each instance of the Deliver-Payment commitment, an instance of Purchase must generate the relevant information in a sound manner: an identifier to identify the commitment instance and the bindings for item and price. This means that a commitment instance created by a particular Accept (belonging to a particular protocol instance) may be discharged only by a properly correlated instance of Payment (belonging to that same protocol instance). And integrity of the protocol instance would ensure that the bindings are immutable over the lifecycle of the commitment instance.</p><p>It was common in early work on commitments to introduce arbitrary (syntactic) identifiers for them disconnected from the underlying information. As <ref type="bibr">Chopra and Singh (2009)</ref> show, such schemes are incompatible with commitment reasoning.</p><p>In a nutshell, the soundness of computations at the commitment level and more generally meaning level imposes requirements relating to protocol instances and their integrity on the protocol language. Scribble, Trace-C, Trace-F, and HAPN at best partially support instances and integrity and therefore fall short on this criterion. BSPL supports both instances and integrity and therefore better supports social meaning. Indeed, <ref type="bibr">Singh (2011a, p. 498)</ref> discusses social meaning and other work has applied BSPL toward commitment consistency in decentralized settings <ref type="bibr">(King, G&#252;nay, Chopra, &amp; Singh, 2017)</ref>. Listing 29 specifies the Deliver-Payment commitment in Cupid <ref type="bibr">(Chopra &amp; Singh, 2015)</ref>. It says that each instance of this specification is from buyer to seller; it is created upon an Accept; detached upon a Deliver that happens within three days of Accept; and discharged upon a Payment that happens within three days of Payment. Notably, the events in the commitment specification refer to observations of messages of BSPL Purchase protocol given in Listing 8. Since BSPL supports protocol instances and their integrity, as a protocol instance progresses, the commitment instance too progresses soundly. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Operational Environment</head><p>How strong are the assumptions that a language makes of the operational environment of a multiagent system? The properties a language requires of a communication infrastructure are assumptions about the agent's operational environment. The stronger the assumptions a language makes, the more restrictive and less practical the language. We split this criterion into two: whether a language can work over asynchronous infrastructures and if so, whether it can work with unordered message delivery.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">Asynchronous Communication</head><p>Assuming synchronous communication would be so strong an assumption as to make the language impractical for MAS. Asynchronous communication, on the other hand, promotes loose coupling between agents and is also practical in that it matches real-world constraints.</p><p>Scribble, Trace, and BSPL accommodate asynchrony but HAPN <ref type="bibr">(Winikoff et al., 2018, p. 61)</ref> does not.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">Unordered Communication</head><p>Asynchronous communication though comes in many flavors. Asynchronous communication with some kind of ordered delivery, for example, pairwise FIFO (simply FIFO, from here on) would be a weaker assumption (and therefore better) than synchrony. FIFO in fact is supported in practical, widely-used infrastructures such as TCP and the Advanced Message Queuing Protocol, better known as AMQP <ref type="bibr">(AMQP, 2014</ref>). An even weaker assumption than ordered delivery would be asynchronous communication without any kind of ordered delivery. Then, protocols in the language could be enacted directly over the Internet and in highly resource-constrained settings such the IoT.</p><p>Relying on any kind of ordered delivery guarantees from the communication infrastructure naturally limits the kinds of infrastructure upon which a protocol may be used to implement a multiagent system. More importantly, as we show below, ordering guarantees are inadequate for ensuring the correct enactment of even simple protocols.</p><p>Prima facie, there appears to be a simple motivation for using FIFO channels between agents, as illustrated by the enactments of Use Case 7.</p><p>Use Case 7 (Want+WillPay) buyer sends Want (some item) and then WillPay (some amount) to seller.</p><p>Figure <ref type="figure">12</ref> shows two possible enactments of Use Case 7. Notice that in Figure <ref type="figure">12b</ref>, the messages are reordered in transit so that WillPay is received by seller before Want.</p><p>Listing 30 gives the protocol in Trace-C and Trace-F and its projections.</p><p>Listing 30: Want+WillPay in Trace-C and Trace-F along with projections.</p><p>// P r o t o c o l Buyer Want ---&#8594; S e l l e r ; Buyer WillPay ----&#8594; S e l l e r // P r o j e c t i o n s Buyer : S e l l e r ! Want ; S e l l e r ! W i l l P a y S e l l e r : Buyer ?Want ; Buyer ? W i l l P a y</p><p>The protocol of Listing 30 cannot handle the enactment of Figure <ref type="figure">12b</ref> because the seller's projection expects to receive Want before WillPay. The enactment of Figure <ref type="figure">12b</ref> though is ruled out if the infrastructure guarantees FIFO delivery; only the enactment of Figure <ref type="figure">12a</ref> is possible under FIFO. That is, in essence, there are two mutually exclusive alternatives: (1) either declare the enactment with the reordered messages to be valid and the protocol to be unrealizable; or, (2) assume FIFO channels between agents and declare the protocol to be realizable. Scribble and Trace-C take the latter alternative. Trace-F also effectively takes the latter alternative: the protocol is unrealizable under unordered asynchrony but is realizable under FIFO (with the SR, SS, and RR interpretations).</p><p>Listing 31 gives a BSPL specification for Use Case 7. The protocol ensures that buyer can send WillPay with some binding for ID only after Want; however, it does not constrain when the messages should be received by seller. Thus, it supports both enactments of Figure <ref type="figure">12</ref>.  Assuming FIFO to help ensure correctness seems innocuous at first glance. However, a FIFO communication infrastructure is infeasible in important application settings. For example, in the Internet of Things (IoT), many of the devices lack a capability for anything beyond packet-based communication and in particular lack the capability for buffering. Buffering is the common way to implement FIFO; another implementation approach would be to drop a message whose sequence number is not the next number to the one most recently received-but that too is not practicable since it would waste resources and exacerbate the latency of communication. In settings that demand fast interactions (e.g., for financial transactions), the additional latency due to FIFO is an avoidable overhead.</p><p>Moreover, and crucially, the FIFO assumption faces a profound semantic problem: FIFO turns out to be inadequate for correctness in settings of more than two parties, as Use Case 8 demonstrates.</p><p>Use Case 8 (Indirect payment) In an indirect-payment purchase protocol, after receiving an Offer, buyer first sends Accept to seller and then sends Instruct (a payment instruction) to bank. Upon receiving Instruct, bank sends a funds Transfer to seller.</p><p>Figure <ref type="figure">13</ref> shows two enactments for Use Case 8. In Figure <ref type="figure">13a</ref>, seller receives Accept before Transfer whereas in Figure <ref type="figure">13b</ref>, seller receives Accept after Transfer. Both enactments satisfy FIFO since at most one message is being sent on any channel. The enactments illustrate that even with FIFO ordering, asynchrony makes ordering indeterminate for protocols involving more than two agents. Figure <ref type="figure">13</ref>: FIFO communication does not guarantee consistent ordering across a multiagent system with three or more agents. Each of these enactments respects FIFO because at most one message occurs on each channel (between each pair of roles). In Figure <ref type="figure">13b</ref>, whereas for buyer, Accept occurs before Instruct, for seller, Accept occurs after Transfer, and therefore, logically, after Instruct.</p><p>Listing 32 is an attempt to capture Use Case 8 in Trace-C. Following the reasoning for Trace-C <ref type="bibr">(Castagna et al., 2012, p. 16</ref>), this protocol is unrealizable. Specifically, the projection for seller expects to receive Accept before Transfer and therefore does not support the enactment in Figure <ref type="figure">13b</ref>, which may arise despite using FIFO channels. In summary, by ruling out the protocol, Trace-C rules out realistic message orders that are simply the result of asynchrony. Listing 32 additionally serves as the specification of the protocol in Trace-F. Under FIFO, no matter what sequence interpretation is chosen, the protocol is unrealizable.</p><p>Listing 32: Indirect payment (Use Case 8) protocol and its projections in Trace-C and Trace-F. FIFO (delivery) though is a stronger assumption than Assumption 1, which requires only noncreativity from the infrastructure. Without FIFO, Trace-C and Trace-F would violate reception correctness (Constraint 2), which states that any reception of a message that is correctly sent is correct. The Trace-C and Trace-F Want+WillPay protocol (Listing 30) illustrates the violation. Even though buyer sends Want before WillPay, as required by the protocol, seller receiving WillPay before Want is an incorrect enactment.</p><p>In fact, even with FIFO, both Trace-C and Trace-F violate reception correctness (Constraint 2). This is illustrated by the Trace-C and Trace-F Indirect Payment protocol (Listing 32). Asynchrony means that Transfer may be received by seller before Accept; however, that order of reception is incorrect according to the protocol. Scribble treats the reception of a message as a logically blocking operation on the channel on which the message is expected: an agent will not receive a message on any other channel until it receives the message it is blocked on. The notion of blocking reception is instrumental to Scribble's ability to handle the arrival of Transfer before the arrival of Accept in the indirect payment protocol. Specifically, seller blocks on the channel from buyer, on which Accept is expected; in the meantime, if Transfer arrives on the channel from the banker, it is ignored and thereby not considered received.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Agent</head><p>In essence, Scribble reorders message arrivals to suit the agent. Such reordering is incompatible with asynchrony; specifically, it is a violation of anytime reception (Constraint 4). Scribble attempts to disguise the violation by treating the reception of a message as the result of an agent's decision to receive the message, distinct from the event of the arrival of the message. Architecturally, the reordering across channels is captured in the channel selector component in Figure <ref type="figure">15</ref> that mediates between the FIFO infrastructure and an agent and hides all channels from the agent except the one on which it is expecting to receive a message.</p><p>If the idea of reordering messages received on different channels were dropped, then even with FIFO, Scribble would violate reception correctness (Constraint 2) (just as Trace-C and Trace-F do). By contrast, Figure <ref type="figure">1</ref> captures the architecture induced by BSPL. A multiagent system based on BSPL satisfies all the constraints given in Section 1. In particular, BSPL works with asynchronous communication but does not require FIFO. Given any safe BSPL protocol, any message sent according to the protocol is also received correctly regardless of when that reception occurs relative to other receptions.</p><p>We omit HAPN from this discussion because HAPN does not specify the communication assumptions under which a protocol could be correctly enacted by agents, making it difficult to imagine it architecturally.</p><p>For completeness, we comment on some recent programming and architectural frameworks for MAS. In JaCaMo <ref type="bibr">(Boissier, Bordini, H&#252;bner, Ricci, &amp; Santi, 2013)</ref>, agents coordinate their computations by shared artifacts-components that provide "functionalities and services" (p. 750) for agents. JaCaMo can be used to realize a MAS that satisfies the canonical architectural style of Figure <ref type="figure">1</ref>-or any of the others for that matter. Specifically, messaging between agents could be realized using artifacts. The infrastructure can avoid centralization by, for example, using a dedicated artifact for each channel and deploying the artifacts across the system. The sender of a message would send it to the channel artifact and the receiver would pick it from that artifact. Indeed Baldoni, Baroglio, Capuzzimati, and Micalizio (2019) implement commitment-based coordination between agent by representing commitments in a shared JaCaMo artifact.</p><p>Jason <ref type="bibr">(Bordini, H&#252;bner, &amp; Wooldridge, 2007)</ref>, the language in which agents are programmed in JaCaMo, supports specifying an agent's reasoning about incoming and outgoing messages. However, Jason's programming model does not include protocols of the sort motivated here.</p><p>ReST <ref type="bibr">(Vinoski, 2008)</ref> is an architectural style for Web applications that has been advocated as a basis for engineering MAS <ref type="bibr">(Ciortea, Mayer, &amp; Michahelles, 2018</ref>). An important ReST constraint is that an application's state is fully captured in the representation of the relevant Web resources (as identified by URIs) on the server. The architectural style that BSPL adopts is analogous to ReST but in a more general peer-peer setting <ref type="bibr">(Singh, 2011b</ref>).</p><p>An agent may want to process a message as soon as the message has arrived. The agent's motivations for doing so need not concern us since the agents are autonomous and may adopt any preferences arbitrarily in light of their autonomy. However, Scribble, Trace-C, and Trace-F, in requiring messages to be received in a certain other relative to other messages, rule out such agents and, therefore, violate Principle 2.</p><p>For example, in Use Case 7, seller may want to process the WillPay message even if Want has not yet been received. In Use Case 8, seller may want to process the Transfer message even if Accept has not been received. The Scribble, Trace-C, and Trace-F protocols rule out this possibility. BSPL, by contrast, satisfies Principle 2: the only constraints it imposes on agents have to do with information causality and information integrity. Indeed, the BSPL protocols for Use Case 7 and Use Case 8 allow seller to process WillPay before Want is received and Transfer before Accept is received, respectively.</p><p>Principle 3 (End-to-end principle for protocols) Correct protocol enactment must not rely on message ordering guarantees from the communication infrastructure since the appropriate constraints are to be implemented and checked in agents.</p><p>Scribble, Trace-C, and Trace-F violate Principle 3 because they require a FIFO communication infrastructure. BSPL satisfies Principle 3 because it requires no ordering guarantees from the infrastructure.</p><p>Principle 3 derives from the end-to-end argument for system design <ref type="bibr">(Saltzer et al., 1984)</ref>, which originated in the early days of computer networking in the 1960s. In its networking form, the end-to-end principle states that functionality that makes sense at a higher ("application") layer should not be replicated at a lower ("infrastructure") layer. The motivation is that if some function of a networked application can be fully and correctly implemented only at the application's end points standing above a communication infrastructure, then supporting that function partially in the infrastructure (1) is not adequate (still requires the application to work to achieve that function); (2) imposes a cost on all internal nodes; and (3) restricts the functioning of application end points that are not concerned with that function. We can think of FIFO as a "function" in this case-notably, Saltzer et al. specifically discuss the disadvantages of adopting a FIFO delivery infrastructure; such an infrastructure is also not assumed in the actor model <ref type="bibr">(Agha, 1986)</ref>.</p><p>A protocol can be fully and correctly implemented only by the agents who instantiate it. Relying on the infrastructure for correctness is of little benefit. For explanation, let us consider emissions and receptions, the two kinds of observations that a protocol may constrain. An agent must ensure the correctness of its emissions because emissions are driven by an agent's internal decision-making. For the correctness of receptions, an agent may rely on ordering guarantees from the infrastructure. However, such guarantees may be insufficient for correctness. For example, as we saw in the modeling of indirect payment (Use Case 8), Scribble, Trace-C, and Trace-F's reliance on FIFO turns out be insufficient for correctness.</p><p>In addition to being insufficient, infrastructure ordering guarantees may be excessive since they constrain even messages that are unrelated in terms of meaning but merely contingently happen to occur together. Listing 35 is illustrative of how infrastructure ordering may be excessive. The listing specifies two protocols Just-Want and Hello-World. Each protocol has a single message from buyer to seller; the two messages do not have any parameters in common, signifying that there is no causal dependency between them. Even so, a FIFO infrastructure will necessarily deliver the messages to seller in the order in which they are sent by buyer.</p><p>Listing 35: BSPL protocols that illustrate that ordering guarantees provided by the infrastructure may be excessive from the point of view of coordination. Although the messages in the two protocols are unrelated, if the infrastructure were FIFO, the messages would necessarily be delivered in the order sent. Finally, consider that ordering guarantees from the infrastructure come with a heavy price: increased complexity and overhead in the architecture, restrictions on the settings in which a multiagent application may be deployed, and interference with higher-level agent reasoning (as we discussed in the context of Principle 2).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8.">Discussion</head><p>Our contribution in this paper is an evaluation of select modern, formal, and prominent languages for specifying protocols. Our evaluation criteria have to do with representations and operational assumptions. Our evaluation is concrete and comparative, driven by the specification of protocols in the selected languages, followed by an analysis of the specifications. The Scribble, Trace-F, and BSPL protocols have been verified in their respective tooling. We understand verification tools for Trace-C and HAPN are not available.</p><p>Table <ref type="table">1</ref> summarizes our findings. For reasons given above, Trace-F stands for Trace-F under FIFO-asynchrony. Our evaluation shows that BSPL is able to model the use cases considered in all their richness despite-or because of-weaker guarantees from the communication infrastructure.</p><p>We discussed how Scribble, Trace-C, and Trace-F violate the canonical MAS architectural style presented in Section 1. Scribble, Trace-C, and Trace-F reorder messages to fit an agent's perspective. BSPL works with unordered asynchrony; the MAS architecture induced by BSPL is compatible with the canonical architectural style.</p><p>Information (as captured by parameter bindings) in BSPL are immutable. For MAS where agents communicate asynchronously, the immutability of information simplifies ensuring correctness even though the participants make observations in different orders-as expressed by <ref type="bibr">Chandy and Lamport (1985)</ref>. The immutability of information, however, calls for a different way of specifying interactions. Specifically, to achieve the effect of updates, a BSPL protocol must incorporate a composite key such that a part of the key reflects the version ID, thereby preventing the versions from interfering with each other. To capture finality, the protocol must incorporate a message that conflicts with (and thus prevents) subsequent versions.</p><p>In this way, there is a tradeoff between (1) adopting a new way of modeling interaction to accommodate realistic communication assumptions (asynchrony), and (2) making unrealistic assumptions (synchrony) to support a familiar programming style (mutability). Immutability in BSPL contrasts most clearly with HAPN, which explicitly supports both bind and unbind operations on parameters and therefore supports rebinding a parameter.</p><p>We set out to evaluate protocol languages from the standpoint of building decentralized multiagent systems. An informally but widely held attitude in the multiagent systems research community (and in related external subcommunities) is that existing approaches are adequate for tackling autonomy and flexibility as needed in decentralized settings. Accordingly, researchers have taken support for decentralization as a done deal and gone on to tackle challenges such as tool support and ease of use-which are no doubt crucial challenges. However, as we have shown in this paper, the more fundamental challenges of decentralization have largely not been overcome by languages of the established paradigms. One language from a new, information-oriented paradigm does tackle those challenges. Whether that or another, as yet unknown, paradigm prevails remains to be seen. But what we can conclude from this exercise is that a new way of thinking is needed to properly accommodate decentralization.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8.1">Other Criteria for Evaluating Protocol Languages</head><p>The criteria by which we study protocol languages in this paper are not exhaustive. <ref type="bibr">Winikoff et al. (2018)</ref> compare several protocol languages, including HAPN and BSPL, for orthogonal criteria such as precision, simplicity, graphical representation, and so on. They note that whereas HAPN supports multiple agents playing a role, BSPL does not (Splee <ref type="bibr">(Chopra et al., 2017)</ref>, an extension of BSPL, though supports this feature). Winikoff et al. also report on their personal experience of encoding protocols in BSPL. They observe that BSPL is "more of a core calculus than a usable notation." Recent work on meaning-based languages that compile into BSPL appears to supports the idea that BSPL represents a core calculus <ref type="bibr">(Singh &amp; Chopra, 2020)</ref>. <ref type="bibr">Winikoff et al.</ref> also report an extensive user study that evaluated HAPN, AUML, and statecharts for ease of reading, understanding, and writing specifications. <ref type="bibr">Ancona, Ferrando, and Mascardi (2018)</ref> include BSPL, HAPN, and trace expressions in an evaluation of MAS approaches for supporting remote patient monitoring. Although their ten criteria are diverse, a predominant thrust is tooling, e.g., IDE support, static and runtime verification, testing, code generation, and so on. In their evaluation, trace expressions offer a clear advantage over both HAPN and BSPL in supporting self-adaptation. A criterion where both trace expressions and HAPN shine over BSPL is that they come with IDE support whereas BSPL does not.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8.2">Directions</head><p>With respect to future evaluations of protocol languages, two directions (with a more contingent flavor) stand out, especially since they are informed by what would be perceived as broad strengths of the languages that BSPL outperformed in the current evaluation. One, perform a comparative study of protocol languages for the kinds of properties that can be verified for both protocols and endpoints. Notably, verification (both static and runtime) has been a primary motivation in the development of Scribble and the trace-based approaches and both benefit from deep connections with programming language theory. Two, perform a comparative study of the programming models supported by the languages in terms of how they make it easier to write correct programs. Scribble, notably, has implementations in several popular languages such as Java and Python.</p><p>A more theoretical direction would be to determine the fragment of a protocol language that can be encoded in another with the purpose of formally establishing their relative expressiveness. We hope that the evaluation presented in this paper, bearing as it does solely on representational issues, will help inform such an effort.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>c 2020 AI Access Foundation. All rights reserved.</p></note>
		</body>
		</text>
</TEI>
