Skip to content

DSL-005: Pre/Post-Conditions and Assertions in Scenarios

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 scenario DSL shall support pre-conditions ("this step requires root access on host X"), post-conditions ("after this step, a reverse shell should be active"), and assertions that can be evaluated during or after execution.

Rationale

DEPRECATED 2026-10-09: ADR-035 deprecates DSL-002 to DSL-009. #434 delivered part of the LilRAE side: the manifest declares propositions and assertions, and _raes_proposition_truth.py projects truth from real evidence (#911, #1020). The maintainer closed the remaining paper-scenario target. See GitHub issue #434. --- Original rationale: SCN-009 validates only container/profile presence. Semantic pre/post-conditions enable the engine to skip inapplicable steps, verify expected state, and provide meaningful error messages when scenarios fail mid-execution.

Traceability

  • DOCUMENTS → GITHUB_ISSUE #434 (DSL-005: Pre/Post-Conditions and Assertions in Scenarios)