Introduction
Modern system engineering is currently caught in a fundamental tug-of-war between power and transparency. On one side, Artificial Intelligence (AI) techniques like deep learning excel at high-dimensional, "fuzzy" tasks such as computer vision or complex navigation. However, these "black-box" models are notoriously difficult to verify and explain. On the other side, Executable Specifications (ES)—including Statecharts and scenario-based programming—provide "white-box" clarity, allowing for incremental development and formal verification, yet they often struggle with the sheer complexity of real-world sensory data.
This paper proposes a "Blue Sky Idea": a hybrid framework that allows AI and ES to coexist as modular components. By treating these technologies as complementary tools to fill specific functional "gaps," developers can build complex systems that are both powerful and safely verifiable.
A New Architectural Approach
The proposed framework is built upon five core principles designed to move away from monolithic, brittle architectures toward fluid, evolving systems:
- Automated Goal Recognition: The system's mission is defined by explicit goals that can be automatically monitored to verify success.
- Gap Identification: When a system fails, developers identify the specific "gap"—the delta between actual and desired behavior—rather than simply patching code.
- Dedicated Component Addition: New, independent components (AI or ES) are added specifically to address identified gaps without complicating existing logic.
- Transparent Composition: Using Scenario-Based Programming (SBP) as the architectural "glue," modules run in parallel. SBP allows modules to request, wait for, or block events, enabling a safety module to override a dangerous AI proposal without the AI needing to be aware of the safety rule.
- The "Movable Wall": As understanding of a problem matures, developers transition parts of the AI-based components into explicit ES rules, moving the "wall" from learned intuition toward formal logic.
Key Insights: The Power of Blocking and Mining
A central technical insight of this approach is the use of "forbidden events" within SBP. This provides a hard safety rail; for instance, an ES module can declare a specific collision-course action as "blocked," effectively constraining a non-deterministic AI component.
Furthermore, the framework views AI as a "bridge." AI acts as a placeholder for complex sub-problems that are initially too difficult to formalize. Over time, these AI components can be "mined" for explicit rules. As shown in the transition to Phase m+2 in the figure above, a neural network (AI2: NN) can eventually be decomposed into a mix of more specific AI algorithms (like A* search) and explicit ES rules (like Rule Engines or Scenarios).
Challenges and Future Directions
While conceptually robust, several hurdles remain for full implementation:
- Formalizing Gaps: Translating a "bad run" into a generalized, formal description of a functional gap requires new descriptive languages.
- Specification Mining: Automated tools are needed to observe AI behavior and infer underlying rules to facilitate the transition from AI to ES.
- Managing Complexity: While the framework promotes modularity, managing a vast library of independent, interacting scenarios could lead to new forms of emergent complexity.
By treating the boundary between AI and formal specifications as a "movable wall," this framework offers a roadmap for developing autonomous systems that are incrementally improvable, explainable, and inherently safer.
Summary updated