[Paper Review] Retractability, games and orchestrators for session contracts
This paper introduces affectible session contracts that model interactions dependent on third-party approval or mutual agreement, extending session types to support compliance in dynamic, failure-prone, or mediated environments. It establishes a game-theoretic foundation for compliance, proving equivalence between winning strategies in a three-party game and orchestrator-based interaction compliance, with a one-to-one correspondence between winning strategies and orchestrators.
Session contracts is a formalism enabling to investigate client/server interaction protocols and to interpret session types. We extend session contracts in order to represent outputs whose actual sending in an interaction depends on a third party or on a mutual agreement between the partners. Such contracts are hence adaptable, or as we say affectible. In client/server systems, in general, compliance stands for the satisfaction of all client's requests by the server. We define an abstract notion of compliance and show it to have a precise three-party game-theoretic interpretation. This in turn is shown to be equivalent to a compliance based on interactions that can undergo a sequence of failures and rollbacks, as well as to a compliance based on interactions which can be mediated by an orchestrator. Besides, there is a one-to-one effective correspondence between winning strategies and orchestrators. The relation of subcontract for affectible contracts is also investigated.
Motivation & Objective
- To extend session contracts to model interactions dependent on third-party approval or mutual agreement.
- To formalize compliance in client/server systems under dynamic, failure-prone, or mediated interaction scenarios.
- To establish a three-party game-theoretic interpretation of compliance for affectible contracts.
- To demonstrate equivalence between game-theoretic compliance, interaction-based compliance with rollbacks, and orchestrator-mediated compliance.
- To investigate the subcontract relation for affectible contracts.
Proposed method
- Extends session contracts to include affectible outputs, where message sending depends on external conditions or mutual agreement.
- Defines an abstract notion of compliance based on a three-party game involving client, server, and a third party (e.g., mediator or environment).
- Models compliance as a winning strategy in a game where the client and server interact under constraints imposed by the third party.
- Establishes equivalence between winning strategies in the game and orchestrator-based interaction patterns.
- Uses game-theoretic semantics to characterize compliance under failures and rollbacks.
- Proves a one-to-one effective correspondence between winning strategies and orchestrators, enabling systematic construction of orchestrators from strategies.
Experimental results
Research questions
- RQ1How can session contracts be extended to model outputs whose sending depends on third-party approval or mutual agreement?
- RQ2What is the game-theoretic interpretation of compliance in affectible contracts?
- RQ3How does compliance based on three-party games relate to compliance under interaction failures and rollbacks?
- RQ4How does compliance based on three-party games compare to compliance mediated by an orchestrator?
- RQ5What is the nature of the subcontract relation in the context of affectible contracts?
Key findings
- Affectible session contracts generalize session types to model interactions contingent on external conditions or mutual agreement.
- Compliance in affectible contracts is formally interpreted as a winning strategy in a three-party game involving client, server, and a third party.
- Compliance based on game-theoretic winning strategies is equivalent to compliance in systems with interaction failures and rollbacks.
- Compliance based on game-theoretic strategies is also equivalent to compliance in systems mediated by an orchestrator.
- There exists a one-to-one effective correspondence between winning strategies in the game and orchestrators, enabling strategy-driven construction of orchestrators.
- The subcontract relation for affectible contracts is formally investigated, extending the notion of subtyping to affectible contexts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.