Verification of Data-Aware
Commitment-Based Multiagent Systems
Marco Montali
KRDB Research Centre for Knowledge and Data
Free University of Bozen-Bolzano
Joint work with Diego Calvanese and Giuseppe De Giacomo
AAMAS 2014
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 1 / 22
Data-Awareness in Dynamic Systems
Traditional approach to model dynamic systems: divide et impera of
• static, data-related aspects
• dynamic, process/interaction-related aspects.
Notable examples:
• In BPM: data and business processes are conceptually isolated from each
other, and only integrated at the implementation level.
• In MAS: a plethora of logics for reasoning about the behavior of agents and
their interaction, but completely neglecting the exchanged information.
No coherent understanding of what the system is doing.
Our ultimate goals
1 Provide formal models that simultaneously account for the system
dynamics and the manipulation of data.
2 Devise logic-based techniques for the verification and monitoring of
such integrated systems.
This combination poses major challenges to verification.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 2 / 22
Social Commitments
Semantics for agent interaction that abstracts away from the internal
agent implementation.
• Seminal work by Castelfranchi: social commitments as a mediation between
the individual and its “normative” relation with other agents.
• Extensive work by Singh et al.: commitments for the flexible specification of
protocols, contracts, interorganizational business processes.
Conditional commitment
cc(d, c, qp, qd)
Debtor agent d commits towards creditor agent c that, whenever condition
qp holds, it will bring about condition qd.
Example (Delivery upon payment)
cc(john, alice, item paid, item owned by alice)
The establishment of (conditional) commitments is typically regulated by a
global contract.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 3 / 22
Social Commitments: Critical Assessment
+ Flexibility
• In terms of events: commitments are about
properties/effects of events, not about events directly.
• In terms of interaction: evolution of commitments
determined by the involved agents, through explicit and
implicit operations (commitment machine). [Singh et al., IEEE Comp. 2009]
– Expressiveness
• Atoms of commitment (pre)conditions are usually propositions.
• No possibility of tracking multiple evolutions of the same type of
commitment between the same pair of agents.
• No distinction between commitments and their instances.
John commits for “delivery upon payment” with Alice, vs.
Alice paid item i1, hence John is committed towards the delivery of i1.
• Cf. work by Ferrario et al. on formal modelling of services and commitments.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 4 / 22
Making Commitment-Based MASs Aware of Data
To solve the expressiveness issues, we propose to make commitment-based
MASs data-aware. This requires:
• To explicitly account for the data maintained by agents, and the
knowledge used to structure it.
• To define how agents query and update such data in response to
events, possibly introducing fresh data into the system.
• To extend messages/events with their data payload.
• To lift contracts, commitments, and commitment machines to
first-order: each component will employ queries over the data.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 5 / 22
The DACMAS Framework
Global TBox
CBox
Contract
Institutional agent
Proprietary ABox
Specification
Event
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 6 / 22
Data Model
We use of a lightweight Description Logic ontology language: DLR-Lite.
Global TBox:
• Provides a common ground for agent interaction
• Models concepts and relations of any arity (shared vocabulary)
• Supports inheritance, disjointness, and key constraints (shared
semantic constraints).
Captures most constructs of conceptual modeling languages (UML).
Local, proprietary ABoxes:
• Each agent maintains and evolves its own ABox (nobody can directly
modify the data of another agent).
• Stored objects are from a countably infinite domain ∆.
• A special institutional agent keeps track of system-related data:
(Variable) set of names of all agents currently part of the system.
Immutable set of agent (behavioral) specifications.
Connection between each agent and its current specification.
Data about the current status of contracts.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 7 / 22
Querying Data
Typical query language for DL ontologies: union of conjunctive queries
(UCQs).
• Correspond to select-project-join queries in SQL.
• Evaluated using the certain answer semantics (agents have
incomplete information).
We consider two extensions:
• ECQ FOL queries whose atoms are UCQs.
• ECQ location argument to disambiguate where the query has to
be posed.
Example
Item@John(i) ∧ Paid@John(i, Alice) ∧ Owns@Alice(i)
Important: ECQ enjoys first-order-rewritability.
• Query answering can be reduced to query evaluation in standard
DBMS technology, by compiling away the TBox.
• All our results hold also in a purely relational database setting with
constraints.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 8 / 22
Agent Specification
Regulate the agent behavior in a data-driven, declarative way.
Proactive behavior: communicative rules
1 Determine which messages with payload can be sent.
2 Choose which to send.
Reactive behavior: update rules
1 Conditionally react to an incoming/outgoing message by invoking an
update action.
2 Apply the update action by modifying the local ABox, possibly
introducing fresh data (taken from ∆).
At each step: infinitely many choices in general!
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 9 / 22
Communicative Rules
Shape
Q(r, x) enables ev(x) to r
Semantics:
• Normal agent: issues a query over its own ABox + that of the
institutional agent.
• Institutional agent: could read all ABoxes.
• Each obtained answer grounds the payload of the message and the
destination agent.
This determines a possible outgoing message.
Example
Customer specification: registration request to a seller.
Spec@inst(sel, seller) enables req reg to sel
Seller specification: item proposal to a customer.
MyCust(m) ∧ Item(i) enables propose(i) to m
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 10 / 22
Update Rules
Shape
• on ev(x) to r if Q(r, x) then α(r, x) (on-send)
• on ev(x) from s if Q(s, x) then α(s, x) (on-receive)
• on ev(x) from s to r if Q(s, r, x) then α(s, r, x) (on-exchange)
Semantics:
• Upon an incoming/outoing message, evaluate whether the payload +
sender/receiver satisfy a condition.
• If so, apply the update action α with paramaters the payload +
sender/receiver.
Example
Seller reaction to “empty cart” request:
on empty cart req from c if MyCust(c) then doEmpty(c)
Seller reaction to the presence of a new item:
on new item(i) from p if MyProv(p) ∧ ¬Item(i) then addItem(i)
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 11 / 22
Update Actions
Shape
α(p) : {e1, . . . , en}. Each update effect e has the form:
[q+
(p, x)] ∧ Q−
(p, x) add A, del D
where:
• A is a set of facts to be added, possibly including Skolem terms.
• D is a set of facts to be deleted.
• Like in STRIPS: add wins over delete.
Semantics:
• Pose all effect queries in parallel.
• For each answer substituting x, ground the facts in A and D.
• Substitute each ground Skolem term in A with an actual value from
∆ agent choice!
• Modify the ABox by deleting and adding the corresponding ground
facts, provided that the resulting ABox is consistent with the TBox.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 12 / 22
Update Actions - Examples
Example (Empty Cart)
on empty cart req from c if MyCust(c) then doEmpty(c)
where: doEmtpy(c) : {[InCart(i, c)] del{InCart(i, c)}}.
Example (Item Addition)
on new item(i) from p if MyProv(p) ∧ ¬Item(i) then addItem(i)
where: addItem(i) : {[true] add{Item(i), Price(i, p(i))}}
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 13 / 22
Contractual Specification
Shape
Set of commitment rules of the form:
on ev(x) from s to r if Qc(s, r, x)
then ccn(s, r, [q+
p (s, r, x, y)]∧Q−
p (s, r, x, y), Qd(s, r, x, y))
Semantics: when ev is sent from a to b with actual payload d. . .
• If the boolean query Qc(a, b, d) is satisfied, an instance of conditional
commitment n is created between a and b, with payload d.
• Instance manipulated through a first-order commitment machine:
Explicit operations: delegation, cancelation, . . .
Implicit operations: handled by the institutional agent when the
precondition and condition becomes true.
Whenever the partially ground precondition is satisfied with substitution
v for y, a base-level instance is created for n with payload d, v.
When the ground condition Qd(a, b, d, v) is brought about, then such
base-level instance is discharged.
Explicit manipulation of base-level instances allowed, leading them to
different states.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 14 / 22
Execution of Commitment Machines
Example (Delivery upon payment)
on accept reg from s to c if MyCust@s(c)
then ccDelivery(s, c, [Item@s(i)∧Paid@s(i, c)], Owns@c(i))
Key Issues
1 How to keep track of commitment instances and their state?
2 How to evolve such information according to the first-order
commitment machine rules?
3 Who is in charge of this?
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 15 / 22
Commitment Box
Special relations obtained from the contractual specification.
For each conditional commitment:
• One relation for its instances, keeping track of debtor/sender,
creditor/receiver, payload.
• One relation for the instances of its base-level version, keeping track
also of the extended payload and the commitment state (active,
satisfied, violated, . . . ).
Extension of relations: managed by the institutional agent, accessible by
everybody.
Example
ccDelivery(s, c, [Item@s(i)∧Paid@s(i, c)], Owns@c(i))
leads to:
• DeliveryCC(debtor, creditor);
• DeliveryC(debtor, creditor, state, item).
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 16 / 22
From Contracts to On-Exchange Rules
Making commitments operational:
• On-exchange rules automatically generated from the contractual
specification and the semantics of commitment machines.
Note: no detach of conditional commitments anymore!
• The institutional agent is responsible for their execution.
Example (Delivery upon payment)
CC creation rule:
on accept reg from s to c if MyCust@s(c)
then create DeliveryCC(s, c)
create DeliveryCC(s, c) : {[true] add{DeliveryCC(s, c)}}
C creation and discharge (triggered for any exchanged event):
createC(d, c) : {[DeliveryCC(d, c) ∧ Item@d(i) ∧ Paid@d(i, c)]
add{DeliveryC(d, c, active, i)}}
dischargeC(d, c) : {[DeliveryC(d, c, active, i)] ∧ Owns@c(i)
add{DeliveryC(d, c, sat, i)}, del{DeliveryC(d, c, active, i)}}
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 17 / 22
Sample System Run
Seller John
Customer Alice
Name
MyCust
Alice
Bob
ID
Item
i1
i2
Item
Paid
Cust
Institutional agent D.
DeliveryCC
C.
DeliveryC
Item
ACCEPT-REG
JohnAlice
Item
Owns
PAY-CC(i1)
Item
Paid
Cust
i1 Alice
D. C. State
D.
DeliveryCC
C.
DeliveryC
Item
JohnAlice
D. C. State
i1JohnAlice active
PAY-BT(Alice, i2)
Item
Paid
Cust
i1 Alice
D.
DeliveryCC
C.
DeliveryC
Item
JohnAlice
D. C. State
i1JohnAlice active
Alice's Bank
i2JohnAlice active
i2 Alice
deliver(i1,...)
Item
Paid
Cust
i1 Alice
D.
DeliveryCC
C.
DeliveryC
Item
JohnAlice
D. C. State
i1JohnAlice sat
Carrier
i2JohnAlice active
i2 Alice
Item
Owns
i1
Item
Owns
Item
Owns
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 18 / 22
Execution Semantics
Infinite-state transition system with states labelled by agent ABoxes.
Loop forever:
1 Pick a sender agent from the table maintained by the institutional agent.
2 Eval all its communicative rules and generate enabled outgoing messages.
3 Pick one of such messages.
4 Manage the synchronous reaction of sender, receiver, and institutional agent,
evaluating their update rules and applying the obtained update actions.
If Skolem terms are involved, pick a value for each of them.
5 If all resulting ABoxes are consistent with the TBox, generate the successor,
otherwise roll-back.
...
. . .
...
. . .
...
. . .
. . .
Three sources of infinity/unboundedness:
• Infinite branching (value choice for Skolem terms).
• Infinite runs (Usage of such values in ABoxes).
• Unbounded ABoxes (accumulation of such values).
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 19 / 22
Verification
Requirements for temporal/dynamic properties:
• to capture data first-order queries;
• to capture dynamics temporal modalities;
• to capture evolution of data quantification across states.
We employ µL
ECQ
p , a first-order variant of µ-calculus:
• to capture data ECQ queries;
• to capture dynamics least and greatest fixpoints.
µ-calculus subsumes LTL, CTL, CTL∗
.
• to capture evolution of data quantification over objects/agents
that persist over time in the active domain.
Example (Delivery commitments are honored for gold customers)
νZ.(∀s, c, i.DeliveryC(s, c, active, i) ∧ MyGoldCust@s(c)
→ µY .(DeliveryC(s, c, sat, i)) ∨ (live(s, c, i) ∧ − Y )) ∧ [−]Z
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 20 / 22
Key Results
Already for a DACMAS with a single agent, it is undecidable to check
propositional reachability properties.
State boundedness
Each state of the system contains only bounded number of objects and agents.
The system has still infinite branches and infinite runs.
• Unboundedly many objects/agents can be encountered along a run,
provided that they are not accumulated in the same state.
Theorem
Verifying state-bounded DACMASs against µL
ECQ
p properties is
decidable and reducible to finite-state model checking.
Proof.
Reduction to Data-Centric Dynamic Systems [PODS2013], compiling away locations
and the global TBox.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 21 / 22
Conclusion and Future Work
DACMAS is a rich framework for modelling data-aware MASs and track
data-aware contracts based on commitments.
• Modelling: paves the way towards a refined theory of commitments
where data are fully taken into account.
• Executability: readily implementable (e.g., in JADE).
Each execution step is in LOGSPACE w.r.t. the agent data.
• Verification: allows in principle to rely on standard model checkers.
Important observations:
• Results immediately extendible to asynchronous lossless
communication with bounded queues/sets.
• State-bounded DACMASs can also be verified against full CTL-FO
with epistemic modalities (cf. [Belardinelli et al., KR 2012]).
Ongoing and next steps:
• Connection with the work on formal ontology for services.
• Fully distributed management of commitments, without relying on the
institutional agent.
• Distributed monitoring and lossy interaction.
Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 22 / 22

More Related Content

PDF
CILC 2014 - Montali - Specification and Verification of Commitment-Regulated ...
PDF
BPM2017 - Integrated Modeling and Verification of Processes and Data Part 1: ...
PDF
Challenge@RuleML2015 Exchanging Data and Ontological Definitions in Multi-Age...
PDF
A frugal-bidding-procedurefor-replicating-www-content
PDF
OBDA for Log Extraction in Process Mining
KEY
Recommendation systems in the scope of opinion formation: a model
PDF
PV 2014 - Montali - Verification of Parameterized Data-Aware Dynamic Systems
PDF
ILIKS2010 - Montali - Monitoring Time-Aware Commitments
CILC 2014 - Montali - Specification and Verification of Commitment-Regulated ...
BPM2017 - Integrated Modeling and Verification of Processes and Data Part 1: ...
Challenge@RuleML2015 Exchanging Data and Ontological Definitions in Multi-Age...
A frugal-bidding-procedurefor-replicating-www-content
OBDA for Log Extraction in Process Mining
Recommendation systems in the scope of opinion formation: a model
PV 2014 - Montali - Verification of Parameterized Data-Aware Dynamic Systems
ILIKS2010 - Montali - Monitoring Time-Aware Commitments

Similar to AAMAS 2014 - Montali - Verification of Data-Aware Multiagent Systems (20)

PDF
Dagstuhl 2013 - Montali - Data-Aware Business Processes - Formalization and R...
PDF
Seminar@UNIVR 31/05/2016 Montali: Data-aware business processes - balancing b...
PDF
ATAED2016 Montali - Marrying data and processes: from model to event data ana...
PPT
Model-Driven Mechanism in Information Systems and Enterprise Engineering
PDF
Montali - DB-Nets: On The Marriage of Colored Petri Nets 
and Relational Data...
PDF
AIxIA2015 - Marco Somalvico Award 2015 - Montali - Data and Processes: a Chal...
PDF
Intro to big data and applications - day 2
PDF
Constraints for Process Framing in Augmented BPM
PDF
MATBASE AUTO FUNCTION NON-RELATIONAL CONSTRAINTS ENFORCEMENT ALGORITHMS
PDF
Matbase auto Function Non-relational Constraints Enforcement Algorithms
PDF
Data Brokers Co-opetition (Yiquan Gu, Leonardo Madio, and Carlo Reggiani)
PPTX
London Financial Modelling Group 2015 04 30 - Model driven solutions to BCBS239
PDF
Model-based programming and AI-assisted software development
PDF
Data-Ed Online: Trends in Data Modeling
PDF
Data-Ed: Trends in Data Modeling
PDF
Securing executive support for data governance - John Morton
PPTX
Lets focus on business value
PPTX
Lets focus on business value
Dagstuhl 2013 - Montali - Data-Aware Business Processes - Formalization and R...
Seminar@UNIVR 31/05/2016 Montali: Data-aware business processes - balancing b...
ATAED2016 Montali - Marrying data and processes: from model to event data ana...
Model-Driven Mechanism in Information Systems and Enterprise Engineering
Montali - DB-Nets: On The Marriage of Colored Petri Nets 
and Relational Data...
AIxIA2015 - Marco Somalvico Award 2015 - Montali - Data and Processes: a Chal...
Intro to big data and applications - day 2
Constraints for Process Framing in Augmented BPM
MATBASE AUTO FUNCTION NON-RELATIONAL CONSTRAINTS ENFORCEMENT ALGORITHMS
Matbase auto Function Non-relational Constraints Enforcement Algorithms
Data Brokers Co-opetition (Yiquan Gu, Leonardo Madio, and Carlo Reggiani)
London Financial Modelling Group 2015 04 30 - Model driven solutions to BCBS239
Model-based programming and AI-assisted software development
Data-Ed Online: Trends in Data Modeling
Data-Ed: Trends in Data Modeling
Securing executive support for data governance - John Morton
Lets focus on business value
Lets focus on business value
Ad

More from Faculty of Computer Science - Free University of Bozen-Bolzano (20)

PDF
From Case-Isolated to Object-Centric Processes - A Tale of two Models
PDF
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
PDF
PDF
Process Reasoning and Mining with Uncertainty
PDF
From Case-Isolated to Object-Centric Processes
PDF
Modeling and Reasoning over Declarative Data-Aware Processes
PDF
Soundness of Data-Aware Processes with Arithmetic Conditions
PDF
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
PDF
Extending Temporal Business Constraints with Uncertainty
PDF
Extending Temporal Business Constraints with Uncertainty
PDF
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
PDF
Enriching Data Models with Behavioral Constraints
PDF
Representing and querying norm states using temporal ontology-based data access
PDF
Compliance monitoring of multi-perspective declarative process models
PDF
Processes and organizations - a look behind the paper wall
PDF
Formal modeling and SMT-based parameterized verification of Data-Aware BPMN
PDF
Modeling and reasoning over declarative data-aware processes with object-cent...
From Case-Isolated to Object-Centric Processes - A Tale of two Models
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
Process Reasoning and Mining with Uncertainty
From Case-Isolated to Object-Centric Processes
Modeling and Reasoning over Declarative Data-Aware Processes
Soundness of Data-Aware Processes with Arithmetic Conditions
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
Extending Temporal Business Constraints with Uncertainty
Extending Temporal Business Constraints with Uncertainty
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
Enriching Data Models with Behavioral Constraints
Representing and querying norm states using temporal ontology-based data access
Compliance monitoring of multi-perspective declarative process models
Processes and organizations - a look behind the paper wall
Formal modeling and SMT-based parameterized verification of Data-Aware BPMN
Modeling and reasoning over declarative data-aware processes with object-cent...
Ad

Recently uploaded (20)

PPTX
Lesson-7-Gas. -Exchange_074636.pptx
DOCX
Action plan to easily understanding okey
PPTX
Knowledge Knockout ( General Knowledge Quiz )
PDF
Presentation on cloud computing and ppt..
PPTX
CAPE CARIBBEAN STUDIES- Integration-1.pptx
PDF
6.-propertise of noble gases, uses and isolation in noble gases
PPTX
INDIGENOUS-LANGUAGES-AND-LITERATURE.pptx
PDF
IKS PPT.....................................
PPTX
FINAL TEST 3C_OCTAVIA RAMADHANI SANTOSO-1.pptx
PPTX
Research Process - Research Methods course
DOCX
CLASS XII bbbbbnjhcvfyfhfyfyhPROJECT.docx
PDF
COLEAD A2F approach and Theory of Change
PDF
5_tips_to_become_a_Presentation_Jedi_@itseugenec.pdf
PPTX
Copy- of-Lesson-6-Digestive-System.pptx
PPTX
2025-08-17 Joseph 03 (shared slides).pptx
PPTX
Unit 8#Concept of teaching and learning.pptx
PPTX
Kompem Part Untuk MK Komunikasi Pembangunan 5.pptx
PPTX
Sustainable Forest Management ..SFM.pptx
PPTX
3RD-Q 2022_EMPLOYEE RELATION - Copy.pptx
PPTX
NORMAN_RESEARCH_PRESENTATION.in education
Lesson-7-Gas. -Exchange_074636.pptx
Action plan to easily understanding okey
Knowledge Knockout ( General Knowledge Quiz )
Presentation on cloud computing and ppt..
CAPE CARIBBEAN STUDIES- Integration-1.pptx
6.-propertise of noble gases, uses and isolation in noble gases
INDIGENOUS-LANGUAGES-AND-LITERATURE.pptx
IKS PPT.....................................
FINAL TEST 3C_OCTAVIA RAMADHANI SANTOSO-1.pptx
Research Process - Research Methods course
CLASS XII bbbbbnjhcvfyfhfyfyhPROJECT.docx
COLEAD A2F approach and Theory of Change
5_tips_to_become_a_Presentation_Jedi_@itseugenec.pdf
Copy- of-Lesson-6-Digestive-System.pptx
2025-08-17 Joseph 03 (shared slides).pptx
Unit 8#Concept of teaching and learning.pptx
Kompem Part Untuk MK Komunikasi Pembangunan 5.pptx
Sustainable Forest Management ..SFM.pptx
3RD-Q 2022_EMPLOYEE RELATION - Copy.pptx
NORMAN_RESEARCH_PRESENTATION.in education

AAMAS 2014 - Montali - Verification of Data-Aware Multiagent Systems

  • 1. Verification of Data-Aware Commitment-Based Multiagent Systems Marco Montali KRDB Research Centre for Knowledge and Data Free University of Bozen-Bolzano Joint work with Diego Calvanese and Giuseppe De Giacomo AAMAS 2014 Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 1 / 22
  • 2. Data-Awareness in Dynamic Systems Traditional approach to model dynamic systems: divide et impera of • static, data-related aspects • dynamic, process/interaction-related aspects. Notable examples: • In BPM: data and business processes are conceptually isolated from each other, and only integrated at the implementation level. • In MAS: a plethora of logics for reasoning about the behavior of agents and their interaction, but completely neglecting the exchanged information. No coherent understanding of what the system is doing. Our ultimate goals 1 Provide formal models that simultaneously account for the system dynamics and the manipulation of data. 2 Devise logic-based techniques for the verification and monitoring of such integrated systems. This combination poses major challenges to verification. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 2 / 22
  • 3. Social Commitments Semantics for agent interaction that abstracts away from the internal agent implementation. • Seminal work by Castelfranchi: social commitments as a mediation between the individual and its “normative” relation with other agents. • Extensive work by Singh et al.: commitments for the flexible specification of protocols, contracts, interorganizational business processes. Conditional commitment cc(d, c, qp, qd) Debtor agent d commits towards creditor agent c that, whenever condition qp holds, it will bring about condition qd. Example (Delivery upon payment) cc(john, alice, item paid, item owned by alice) The establishment of (conditional) commitments is typically regulated by a global contract. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 3 / 22
  • 4. Social Commitments: Critical Assessment + Flexibility • In terms of events: commitments are about properties/effects of events, not about events directly. • In terms of interaction: evolution of commitments determined by the involved agents, through explicit and implicit operations (commitment machine). [Singh et al., IEEE Comp. 2009] – Expressiveness • Atoms of commitment (pre)conditions are usually propositions. • No possibility of tracking multiple evolutions of the same type of commitment between the same pair of agents. • No distinction between commitments and their instances. John commits for “delivery upon payment” with Alice, vs. Alice paid item i1, hence John is committed towards the delivery of i1. • Cf. work by Ferrario et al. on formal modelling of services and commitments. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 4 / 22
  • 5. Making Commitment-Based MASs Aware of Data To solve the expressiveness issues, we propose to make commitment-based MASs data-aware. This requires: • To explicitly account for the data maintained by agents, and the knowledge used to structure it. • To define how agents query and update such data in response to events, possibly introducing fresh data into the system. • To extend messages/events with their data payload. • To lift contracts, commitments, and commitment machines to first-order: each component will employ queries over the data. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 5 / 22
  • 6. The DACMAS Framework Global TBox CBox Contract Institutional agent Proprietary ABox Specification Event Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 6 / 22
  • 7. Data Model We use of a lightweight Description Logic ontology language: DLR-Lite. Global TBox: • Provides a common ground for agent interaction • Models concepts and relations of any arity (shared vocabulary) • Supports inheritance, disjointness, and key constraints (shared semantic constraints). Captures most constructs of conceptual modeling languages (UML). Local, proprietary ABoxes: • Each agent maintains and evolves its own ABox (nobody can directly modify the data of another agent). • Stored objects are from a countably infinite domain ∆. • A special institutional agent keeps track of system-related data: (Variable) set of names of all agents currently part of the system. Immutable set of agent (behavioral) specifications. Connection between each agent and its current specification. Data about the current status of contracts. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 7 / 22
  • 8. Querying Data Typical query language for DL ontologies: union of conjunctive queries (UCQs). • Correspond to select-project-join queries in SQL. • Evaluated using the certain answer semantics (agents have incomplete information). We consider two extensions: • ECQ FOL queries whose atoms are UCQs. • ECQ location argument to disambiguate where the query has to be posed. Example Item@John(i) ∧ Paid@John(i, Alice) ∧ Owns@Alice(i) Important: ECQ enjoys first-order-rewritability. • Query answering can be reduced to query evaluation in standard DBMS technology, by compiling away the TBox. • All our results hold also in a purely relational database setting with constraints. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 8 / 22
  • 9. Agent Specification Regulate the agent behavior in a data-driven, declarative way. Proactive behavior: communicative rules 1 Determine which messages with payload can be sent. 2 Choose which to send. Reactive behavior: update rules 1 Conditionally react to an incoming/outgoing message by invoking an update action. 2 Apply the update action by modifying the local ABox, possibly introducing fresh data (taken from ∆). At each step: infinitely many choices in general! Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 9 / 22
  • 10. Communicative Rules Shape Q(r, x) enables ev(x) to r Semantics: • Normal agent: issues a query over its own ABox + that of the institutional agent. • Institutional agent: could read all ABoxes. • Each obtained answer grounds the payload of the message and the destination agent. This determines a possible outgoing message. Example Customer specification: registration request to a seller. Spec@inst(sel, seller) enables req reg to sel Seller specification: item proposal to a customer. MyCust(m) ∧ Item(i) enables propose(i) to m Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 10 / 22
  • 11. Update Rules Shape • on ev(x) to r if Q(r, x) then α(r, x) (on-send) • on ev(x) from s if Q(s, x) then α(s, x) (on-receive) • on ev(x) from s to r if Q(s, r, x) then α(s, r, x) (on-exchange) Semantics: • Upon an incoming/outoing message, evaluate whether the payload + sender/receiver satisfy a condition. • If so, apply the update action α with paramaters the payload + sender/receiver. Example Seller reaction to “empty cart” request: on empty cart req from c if MyCust(c) then doEmpty(c) Seller reaction to the presence of a new item: on new item(i) from p if MyProv(p) ∧ ¬Item(i) then addItem(i) Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 11 / 22
  • 12. Update Actions Shape α(p) : {e1, . . . , en}. Each update effect e has the form: [q+ (p, x)] ∧ Q− (p, x) add A, del D where: • A is a set of facts to be added, possibly including Skolem terms. • D is a set of facts to be deleted. • Like in STRIPS: add wins over delete. Semantics: • Pose all effect queries in parallel. • For each answer substituting x, ground the facts in A and D. • Substitute each ground Skolem term in A with an actual value from ∆ agent choice! • Modify the ABox by deleting and adding the corresponding ground facts, provided that the resulting ABox is consistent with the TBox. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 12 / 22
  • 13. Update Actions - Examples Example (Empty Cart) on empty cart req from c if MyCust(c) then doEmpty(c) where: doEmtpy(c) : {[InCart(i, c)] del{InCart(i, c)}}. Example (Item Addition) on new item(i) from p if MyProv(p) ∧ ¬Item(i) then addItem(i) where: addItem(i) : {[true] add{Item(i), Price(i, p(i))}} Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 13 / 22
  • 14. Contractual Specification Shape Set of commitment rules of the form: on ev(x) from s to r if Qc(s, r, x) then ccn(s, r, [q+ p (s, r, x, y)]∧Q− p (s, r, x, y), Qd(s, r, x, y)) Semantics: when ev is sent from a to b with actual payload d. . . • If the boolean query Qc(a, b, d) is satisfied, an instance of conditional commitment n is created between a and b, with payload d. • Instance manipulated through a first-order commitment machine: Explicit operations: delegation, cancelation, . . . Implicit operations: handled by the institutional agent when the precondition and condition becomes true. Whenever the partially ground precondition is satisfied with substitution v for y, a base-level instance is created for n with payload d, v. When the ground condition Qd(a, b, d, v) is brought about, then such base-level instance is discharged. Explicit manipulation of base-level instances allowed, leading them to different states. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 14 / 22
  • 15. Execution of Commitment Machines Example (Delivery upon payment) on accept reg from s to c if MyCust@s(c) then ccDelivery(s, c, [Item@s(i)∧Paid@s(i, c)], Owns@c(i)) Key Issues 1 How to keep track of commitment instances and their state? 2 How to evolve such information according to the first-order commitment machine rules? 3 Who is in charge of this? Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 15 / 22
  • 16. Commitment Box Special relations obtained from the contractual specification. For each conditional commitment: • One relation for its instances, keeping track of debtor/sender, creditor/receiver, payload. • One relation for the instances of its base-level version, keeping track also of the extended payload and the commitment state (active, satisfied, violated, . . . ). Extension of relations: managed by the institutional agent, accessible by everybody. Example ccDelivery(s, c, [Item@s(i)∧Paid@s(i, c)], Owns@c(i)) leads to: • DeliveryCC(debtor, creditor); • DeliveryC(debtor, creditor, state, item). Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 16 / 22
  • 17. From Contracts to On-Exchange Rules Making commitments operational: • On-exchange rules automatically generated from the contractual specification and the semantics of commitment machines. Note: no detach of conditional commitments anymore! • The institutional agent is responsible for their execution. Example (Delivery upon payment) CC creation rule: on accept reg from s to c if MyCust@s(c) then create DeliveryCC(s, c) create DeliveryCC(s, c) : {[true] add{DeliveryCC(s, c)}} C creation and discharge (triggered for any exchanged event): createC(d, c) : {[DeliveryCC(d, c) ∧ Item@d(i) ∧ Paid@d(i, c)] add{DeliveryC(d, c, active, i)}} dischargeC(d, c) : {[DeliveryC(d, c, active, i)] ∧ Owns@c(i) add{DeliveryC(d, c, sat, i)}, del{DeliveryC(d, c, active, i)}} Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 17 / 22
  • 18. Sample System Run Seller John Customer Alice Name MyCust Alice Bob ID Item i1 i2 Item Paid Cust Institutional agent D. DeliveryCC C. DeliveryC Item ACCEPT-REG JohnAlice Item Owns PAY-CC(i1) Item Paid Cust i1 Alice D. C. State D. DeliveryCC C. DeliveryC Item JohnAlice D. C. State i1JohnAlice active PAY-BT(Alice, i2) Item Paid Cust i1 Alice D. DeliveryCC C. DeliveryC Item JohnAlice D. C. State i1JohnAlice active Alice's Bank i2JohnAlice active i2 Alice deliver(i1,...) Item Paid Cust i1 Alice D. DeliveryCC C. DeliveryC Item JohnAlice D. C. State i1JohnAlice sat Carrier i2JohnAlice active i2 Alice Item Owns i1 Item Owns Item Owns Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 18 / 22
  • 19. Execution Semantics Infinite-state transition system with states labelled by agent ABoxes. Loop forever: 1 Pick a sender agent from the table maintained by the institutional agent. 2 Eval all its communicative rules and generate enabled outgoing messages. 3 Pick one of such messages. 4 Manage the synchronous reaction of sender, receiver, and institutional agent, evaluating their update rules and applying the obtained update actions. If Skolem terms are involved, pick a value for each of them. 5 If all resulting ABoxes are consistent with the TBox, generate the successor, otherwise roll-back. ... . . . ... . . . ... . . . . . . Three sources of infinity/unboundedness: • Infinite branching (value choice for Skolem terms). • Infinite runs (Usage of such values in ABoxes). • Unbounded ABoxes (accumulation of such values). Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 19 / 22
  • 20. Verification Requirements for temporal/dynamic properties: • to capture data first-order queries; • to capture dynamics temporal modalities; • to capture evolution of data quantification across states. We employ µL ECQ p , a first-order variant of µ-calculus: • to capture data ECQ queries; • to capture dynamics least and greatest fixpoints. µ-calculus subsumes LTL, CTL, CTL∗ . • to capture evolution of data quantification over objects/agents that persist over time in the active domain. Example (Delivery commitments are honored for gold customers) νZ.(∀s, c, i.DeliveryC(s, c, active, i) ∧ MyGoldCust@s(c) → µY .(DeliveryC(s, c, sat, i)) ∨ (live(s, c, i) ∧ − Y )) ∧ [−]Z Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 20 / 22
  • 21. Key Results Already for a DACMAS with a single agent, it is undecidable to check propositional reachability properties. State boundedness Each state of the system contains only bounded number of objects and agents. The system has still infinite branches and infinite runs. • Unboundedly many objects/agents can be encountered along a run, provided that they are not accumulated in the same state. Theorem Verifying state-bounded DACMASs against µL ECQ p properties is decidable and reducible to finite-state model checking. Proof. Reduction to Data-Centric Dynamic Systems [PODS2013], compiling away locations and the global TBox. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 21 / 22
  • 22. Conclusion and Future Work DACMAS is a rich framework for modelling data-aware MASs and track data-aware contracts based on commitments. • Modelling: paves the way towards a refined theory of commitments where data are fully taken into account. • Executability: readily implementable (e.g., in JADE). Each execution step is in LOGSPACE w.r.t. the agent data. • Verification: allows in principle to rely on standard model checkers. Important observations: • Results immediately extendible to asynchronous lossless communication with bounded queues/sets. • State-bounded DACMASs can also be verified against full CTL-FO with epistemic modalities (cf. [Belardinelli et al., KR 2012]). Ongoing and next steps: • Connection with the work on formal ontology for services. • Fully distributed management of commitments, without relying on the institutional agent. • Distributed monitoring and lossy interaction. Marco Montali Data-Aware Commitment-Based MASs AAMAS 2014 22 / 22