Emilio Tuosto, Roberto Zunino and myself have developed a theory of contracting systems, where behavioural contracts may be violated by dishonest participants after they have been agreed upon – unlike in traditional approaches based on behavioural types.
We have considered the contracts of Castagna-Gesbert-Padovani, and we have embedded them in a calculus that allows distributed participants to advertise contracts, reach agreements, query the fulfilment of contracts, and realise them (or choose not to).
Our contract theory makes explicit who is culpable at each step of a computation. A participant is honest in a given context S when she is not culpable in each possible interaction with S. Our main result is a sufficient criterion for classifying a participant as honest in all possible contexts.
Massimo Bartoletti, Emilio Tuosto and Roberto Zunino. On the realizability of contracts in dishonest systems. To appear in Proc. COORDINATION, 2012