English

Declarative Scenario-based Testing with RoadLogic

Software Engineering 2026-03-31 v2 Artificial Intelligence Logic in Computer Science

Abstract

Scenario-based testing is a key method for cost-effective and safe validation of autonomous vehicles (AVs). Existing approaches rely on imperative scenario definitions, requiring developers to manually enumerate numerous variants to achieve coverage. Declarative languages, such as ASAM OpenSCENARIO DSL (OS2), raise the abstraction level but lack systematic methods for instantiating concrete and specification-compliant scenarios. To our knowledge, currently, no open-source solution provides this capability. We present RoadLogic that bridges declarative OS2 specifications and executable simulations. It uses Answer Set Programming to generate abstract plans satisfying scenario constraints, motion planning to refine the plans into feasible trajectories, and specification-based monitoring to verify correctness. We evaluate RoadLogic on instantiating representative OS2 scenarios executed in the CommonRoad framework. Results show that RoadLogic consistently produces realistic, specification-satisfying simulations within minutes and captures diverse behavioral variants through parameter sampling, thus opening the door to systematic scenario-based testing for autonomous driving systems.

Keywords

Cite

@article{arxiv.2603.09455,
  title  = {Declarative Scenario-based Testing with RoadLogic},
  author = {Ezio Bartocci and Alessio Gambi and Felix Gigler and Cristinel Mateis and Dejan Ničković},
  journal= {arXiv preprint arXiv:2603.09455},
  year   = {2026}
}

Comments

Accepted at the 29th ACM International Conference on Hybrid Systems: Computation and Control (HSCC 2026). The final version will appear in the ACM Digital Library