Universität zu LübeckThesis System

Synthesis of Runtime Monitors for Normative Systems from C-O-Diagrams

This thesis is to be carried out in cooperation with Gerardo Schneider from the University of Gothenburg.

Motivation and Importance
Normative systems—systems governed by rules such as obligations, permissions, and prohibitions—are central to many modern domains, including autonomous systems, multi-agent coordination, legal-tech, and business process compliance. As software increasingly operates in open, dynamic environments, ensuring that behavior adheres to specified norms becomes critical. Violations can lead not only to system failures but also to legal, ethical, or financial consequences. Runtime monitoring provides a practical solution by observing executions and detecting (or anticipating) deviations from prescribed norms.

Background: C-O Diagrams
C-O Diagrams (Contract-Oriented Diagrams), introduced by Gerardo Schneider and collaborators, are a visual formalism for specifying normative systems. They provide a structured way to represent:

  • Obligations (O): actions that must be performed,
  • Prohibitions (F): actions that must not be performed,
  • Permissions (P): actions that are allowed,

along with timing constraints, reparations (what should happen if a norm is violated), and hierarchical compositions of norms.

These diagrams combine an intuitive graphical notation with a formal semantics, making them suitable for both human understanding and automated analysis. Their semantics can typically be mapped to formal models such as timed automata or transition systems.

Research Objective
The goal of this thesis is to develop a method for automatically synthesizing runtime monitors from C-O Diagrams. These monitors should observe execution traces and determine compliance or violations of the specified norms, ideally in real time.

Key Tasks and Methodology

  1. Formalization of Semantics
    • Precisely define (or adopt existing) formal semantics for C-O Diagrams.
    • Ensure that obligations, prohibitions, permissions, timing constraints, and reparations are unambiguously captured.
  2. Mapping to Monitorable Models
    • Translate C-O Diagrams into an intermediate formal representation suitable for monitoring, such as finite-state machines, timed automata, or stream-based formalisms.
    • Address how to encode deadlines, conditional norms, and reparations.
  3. Monitor Synthesis
    • Design algorithms that generate executable monitors from the formal representation.
    • Ensure that monitors can:
      • Detect violations and satisfactions of norms,
      • Handle partial observability (if relevant),
      • Manage temporal constraints efficiently.
  4. Correctness and Properties
    • Prove that the synthesized monitors are sound (no false positives) and complete (no missed violations) with respect to the formal semantics.
    • Analyze properties such as determinism, minimality, and runtime efficiency of the monitors.
  5. Implementation and Evaluation
    • Develop a prototype tool that takes C-O Diagrams as input and produces monitors.
    • Evaluate on case studies (e.g., service-level agreements, autonomous agent protocols).
    • Compare with existing monitoring approaches if applicable.
  6. Extensions (Optional)
    • Support for probabilistic or uncertain environments,
    • Integration with enforcement mechanisms (not just detection),
    • User-friendly feedback or visualization of violations.

Expected Contributions

  • A systematic approach for translating C-O Diagrams into runtime monitors,
  • Formal guarantees about the correctness of the monitors,
  • A prototype implementation and evaluation demonstrating applicability in realistic scenarios.

This thesis connects high-level normative specifications with runtime verification techniques, contributing to the development of more reliable and trustworthy rule-governed systems.

Literature

  • Camilleri, J. J., Paganelli, G., Schneider, G. A CNL for Contract-Oriented Diagrams. (CNL 2014)
  • Díaz, G., Cambronero, M. E., Martínez, E., Schneider, G. Specification and Verification of Normative Texts using C-O Diagrams. (IEEE TSE, 2014)

Related Thesis Topics

Mapping the European AI HLEG Trustworthiness Framework to Formal Methods

AI‑Enhanced Formal‑Methods‑as‑a‑Service: Designing, Implementing, and Evaluating an MCP‑Based Backend that Powers a VS Code Copilot Extension for Automated Program Analysis and Verification.

Redirecting Clang’s MCDC Coverage Instrumentation to ARM CoreSight: A High‑Performance, Hardware‑Backed Coverage Collection Framework

FPGA‑Based Quantum‑Computer Simulator with a Web‑Based Design‑Run‑Analyse Front‑End

Inductive Logic Programming (ILP) is a form of symbolic machine learning, where logic programs (e.g., Prolog or ASP) are synthesized from input/output examples. These synthesis tasks are notorious for their large search space. Modern approaches use a conflict-driven search to constrain this search iteratively. This procedure is usually implemented using constraint programming solvers operating on […]

In Kooperation mit Coherent in Lübeck Warum das spannend ist Kontext & Ziel Heute wird Qualitätsprüfung bei Coherent in Lübeck noch manuell erledigt. Kommerzielle Tools gibt’s, aber ein erklärbarer In‑house‑Prototyp ermöglicht schnelleres Lernen, Kostenkontrolle und höhere Akzeptanz bei den Nutzer*innen. Ziel der Arbeit ist ein produktnaher Prototyp, der robust, nachvollziehbar und betreibbar ist. Leitfragen Datensatz […]