Skip to content

DSL-001: Formal Scenario Specification Language

This Reference preserves the recorded requirement contract. The front matter states its lifecycle status; this editorial notice does not change that status. An ACTIVE contract is not a historical implementation or qualification result. The statement, rationale, identifiers, and traceability below keep their recorded meaning. The original file is available at source revision 6d35d245f11a.

Statement

The platform shall define a formal scenario specification language (DSL) with a documented grammar, parser, and validation that goes beyond Pydantic structural checks to enforce semantic correctness of scenario definitions.

Rationale

Current ad-hoc YAML schema has no grammar, no parser beyond Pydantic, and no semantic validation. Without a formal DSL, every other scenario improvement (parameterization, generation, batch runs, agent-driven execution) is built on a fragile foundation. CACAO v2.0, Attack Flow v3, VSDL, and Yamin & Katt's DSL demonstrate the pattern.

Traceability

  • IMPLEMENTS → GITHUB_ISSUE 239 (DSL-001: Formal Scenario Specification Language)
  • DOCUMENTS → DOCUMENTATION docs/sdl/ (SDL documentation suite (7 files: reference, parser, validation, precedents, limitations, testing))
  • DOCUMENTS → ADR docs/adrs/adr-014-scenario-description-language.md (ADR-014: Scenario Description Language)
  • VERIFIES → CODE_FILE examples/aptl-lab-topology.sdl.yaml (SDL specification of the real APTL lab topology (24 nodes, 4 networks))