Proceedings

Operationalising Normative Rules in Autonomous Robotic Systems Through Context-Oriented Programming

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. AI and Robotics. Pages 7540-7548.

https://doi.org/10.24963/ijcai.2026/838

Abstract

The increasing sensitivity to human aspects in autonomous systems engineering calls for principled approaches to embed ethical and normative concerns into their behaviour. Indeed, recent research has focused on expressing and validating sets of social, legal, ethical, empathetic, and cultural (SLEEC) concerns as rules. However, existing work is limited to rule specification or verification, leaving the problem of semantic-preserving operationalisation of ethical rules in autonomous systems largely unaddressed. For this purpose, we provide an operational solution for ethical-aware autonomous systems, applied to the realm of multi-service robots.

Specifically, we devise a principled approach, named CO-SLEEC (Context-Oriented SLEEC), connecting the normative setting of SLEEC rules to context-oriented programming (COP). CO-SLEEC enables runtime adaptation while preserving the semantics of SLEEC rules during robot task execution. It features two reusable Python libraries for (i) parsing SLEEC rules into contextual elements for operationalising them, and (ii) connecting the operational model to the Robot Operating System (ROS), respectively.

We evaluate our implementation for correctness, efficiency, and maintainability over multi-service assistive robot scenarios.

  1. [AI HLEG, 2019] AI HLEG. Ethics guidelines for trustwor- thy AI, 2019.
  2. [Anderson and Anderson, 2011] Micheal Anderson and Su- san Leigh Anderson, editors. Machine Ethics. Cambridge University Press, 2011.
  3. [Anderson and Anderson, 2015] Michael Anderson and Su- san Leigh Anderson. Toward ensuring ethical behavior from autonomous systems: a case-supported principle- based paradigm. Ind. Robot, 42(4):324-331, 2015.
  4. [Autili et al., 2026] Marco Autili, Martina De Sanctis, Paola Inverardi, Mashal Afzal Memon, Patrizio Pelliccione, and Sara Pettinari. A reference architecture for ethical-aware autonomous systems. Journal of Systems and Software, 235:112749, 2026.
  5. [Banna et al., 2025] Tahsin Tariq Banna, Sejuti Rahman, and Mohammad Tareq. Beyond words: Integrating personal- ity traits and context-driven gestures in human-robot in- teractions. In Proceedings of the 24th International Con- ference on Autonomous Agents and Multiagent Systems, pages 242-251, 2025.
  6. [Bremner et al., 2019] Paul Bremner, Louise Dennis, Michael Fisher, and Alan Winfield. On proactive, trans- parent, and verifiable ethical reasoning for robots. Proc. IEEE, 107(3):541-561, 2019.
  7. [Brunero, 2022] John Brunero. Reasons and defeasible rea- soning. The Philosophical Quarterly, 72(1):41-64, 2022.
  8. [Casadei et al., 2026a] Roberto Casadei, Martina De Sanc- tis, Gianluca Filippone, Sara Pettinari, Gian Luca Scoccia, and Nicolas Troquard. CO-SLEEC: Replication package, 2026. https://doi.org/10.5281/zenodo.20055346. DOI
  9. [Casadei et al., 2026b] Roberto Casadei, Martina De Sanc- tis, Gianluca Filippone, Sara Pettinari, Gian Luca Scoccia, and Nicolas Troquard. Leveraging context-oriented pro- gramming to implement normative rules in autonomous systems. In Proceedings of the 25th International Con- ference on Autonomous Agents and Multiagent Systems, AAMAS 2026. ACM, 2026.
  10. [Chopra et al., 2018] Amit Chopra, Leendert van der Torre, Harko Verhagen, and Serena Villata, editors. Handbook of Normative Multiagent Systems. College Publications, London, UK, 2018.
  11. [Conover, 1999] William Jay Conover. Practical nonpara- metric statistics. john wiley & sons, 1999.
  12. [Dignum, 2025] Virginia Dignum. Responsible AI and au- tonomous agents: Governance, ethics, and sustainable in- novation. In Proceedings of the 24th International Con- ference on Autonomous Agents and Multiagent Systems, AAMAS 2025, pages 1-2. International Foundation for Au- tonomous Agents and Multiagent Systems / ACM, 2025.
  13. [Elyasaf et al., 2023] Achiya Elyasaf, Nicolás Cardozo, and Arnon Sturm. A framework for analyzing context-oriented programming languages. Journal of Systems and Software, 198:111614, 2023.
  14. [Feng et al., 2024] Nick Feng, Lina Marsso, Sinem Ge- tir Yaman, Yesugen Baatartogtokh, Reem Ayad, Victória Oldemburgo de Mello, Beverley A. Townsend, Isobel Standen, Ioannis Stefanakos, Calum Imrie, Genaína Nunes Rodrigues, Ana Cavalcanti, Radu Cali- nescu, and Marsha Chechik. Analyzing and debugging normative requirements via satisfiability checking. In International Conference on Software Engineering, pages 214:1-214:12. ACM, 2024.
  15. [Gabbay et al., 2013] Dov Gabbay, John Horty, Xavier Par- ent, Ron van der Meyden, and Leendert van der Torre, ed- itors. Handbook of Deontic Logic and Normative Systems. College Publications, London, UK, 2013.
  16. [Getir Yaman et al., 2024] Sinem Getir Yaman, Pedro Ribeiro, Charlie Burholt, Maddie Jones, Ana Cavalcanti, and Radu Calinescu. Toolkit for specification, validation and verification of social, legal, ethical, empathetic and cultural requirements for autonomous agents. Science of Computer Programming, 236:103118, September 2024.
  17. [Horty, 2012] John Horty. Reasons as defaults. Oxford Uni- versity Press, 2012.
  18. [Kamina et al., 2016] Tetsuo Kamina, Tomoyuki Aotani, Hidehiko Masuhara, and Tetsuo Tamai. Context-Oriented Software Development with Generalized Layer Activation Mechanism, page 3-40. Springer International Publishing, 2016.
  19. [Kapitsaki et al., 2009] Georgia Kapitsaki, George Prezer- akos, Nikolaos Tselikas, and Iakovos Venieris. Context- aware service engineering: A survey. Journal of Systems and Software, 82(8):1285-1297, 2009.
  20. [Katis et al., 2025] Andreas Katis, Anastasia Mavridou, Tom Pressburger, Johann Schumann, and Khanh Trinh. FRET: Formal Requirements Elicitation Tool, 2025.
  21. [Macenski et al., 2022] Steven Macenski, Tully Foote, Brian Gerkey, Chris Lalancette, and William Woodall. Robot operating system 2: Design, architecture, and uses in the wild. Science Robotics, 7(66), 2022.
  22. [Meissel and Yao, 2024] Kane Meissel and Esther Yao. Us- ing cliff's delta as a non-parametric effect size measure: an accessible web app and r tutorial. Practical Assessment, Research, and Evaluation, 29(1), 2024.
  23. [Mirani et al., 2026] Mahrokh Mirani, Paola Inverardi, Pa- trizio Pelliccione, Franco Raimondi, and Nicolas Tro- quard. Extending FRET with SLEEC rules: Formaliza- tion, obligation inference, and monitoring. In Tools and Algorithms for the Construction and Analysis of Systems -32nd International Conference, TACAS 2026, Lecture Notes in Computer Science, pages 65-84. Springer, 2026.
  24. [Mittelstadt, 2019] Brent Mittelstadt. Principles alone can- not guarantee ethical AI. Nature machine intelligence, 1(11):501-507, 2019.
  25. [Miyazawa et al., 2019] Alvaro Miyazawa, Pedro Ribeiro, Wei Li, Ana Cavalcanti, Jon Timmis, and Jim Woodcock. Robochart: modelling and verification of the functional behaviour of robotic applications. Software & Systems Modeling, 18(5):3097-3149, 2019.
  26. [Mougouei et al., 2018] Dena Mougouei, Harsha Perera, Wajeeha Hussain, Rukshan Shams, and Jon Whittle. Op- erationalizing human values in software: A research roadmap. In Proceedings of the 26th ACM Joint Meeting on European Software Engineering Conference and Sym- posium on the Foundations of Software Engineering (ES- EC/FSE '18), pages 780-784. ACM, 2018.
  27. [Radanliev, 2025] Petar Radanliev. AI ethics: Integrating transparency, fairness, and privacy in AI development. Ap- plied Artificial Intelligence, 39(1), February 2025.
  28. [Salvaneschi et al., 2012] Guido Salvaneschi, Carlo Ghezzi, and Matteo Pradella. Context-oriented programming: A software engineering perspective. J. Syst. Softw., 85(8):1801-1817, 2012.
  29. [Schubert et al., 2015] Christian Schubert, Michael Per- scheid, and Samuel Longchamps. Contextpy3 (github repository), 2015.
  30. [Solanki et al., 2023] Pravik Solanki, John Grundy, and Waqar Hussain. Operationalising ethics in artificial intel- ligence for healthcare: a framework for AI developers. AI Ethics, 3(1):223-240, 2023.
  31. [Soler Garrido et al., 2024] Josep Soler Garrido, Sarah De Nigris, Elias Bassani, Ignacio Sanchez, Tatjana Evas, Antoine-Alexandre André, and Thierry Boulangé. Harmonised standards for the European AI Act. Technical report, Seville (Spain), 2024.
  32. [Townsend et al., 2022] Beverley Townsend, Colin Paterson, T. T. Arvind, Gabriel Nemirovsky, Radu Calinescu, Ana Cavalcanti, Ibrahim Habli, and Alan Thomas. From plu- ralistic normative principles to autonomous-agent rules. Minds and Machines, 32(4):683-715, 2022.
  33. [Troquard et al., 2024] Nicolas Troquard, Martina De Sanc- tis, Paola Inverardi, Patrizio Pelliccione, and Gian Luca Scoccia. Social, legal, ethical, empathetic, and cul- tural rules: Compilation and reasoning. Proceed- ings of the AAAI Conference on Artificial Intelligence, 38(20):22385-22392, March 2024.
  34. [UNESCO, 2022] UNESCO. Recommendation on the ethics of artificial intelligence, 2022. [Vanderelst and Winfield, 2018] Dieter Vanderelst and Alan Winfield. An architecture for ethical robots inspired by the simulation theory of cognition. Cognitive Systems Re- search, 48:56-66, 2018.
  35. [Yaman et al., 2023] Sinem Getir Yaman, Charlie Burholt, Maddie Jones, Radu Calinescu, and Ana Cavalcanti. Spec- ification and validation of normative rules for autonomous agents. In International Conference on Fundamental Approaches to Software Engineering, pages 241-248. Springer Nature Switzerland Cham, 2023.
  36. [Yaman et al., 2025] Sinem Yaman, Pedro Ribeiro, Ana Cavalcanti, Radu Calinescu, Colin Paterson, and Bever- ley Townsend. Specification, validation and verification of social, legal, ethical, empathetic and cultural requirements for autonomous agents. Journal of Systems and Software, 220:112229, February 2025.
  37. [Zeng et al., 2018] Zhiwei Zeng, Xiuyi Fan, Chunyan Miao, Cyril Leung, Jing Jih Chin, and Yew-Soon Ong. Context- based and explainable decision making with argumenta- tion. In Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, AAMAS 2018, pages 1114-1122, Richland, SC, 2018. International Foundation for Autonomous Agents and Multiagent Sys- tems / ACM.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards