Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Stage ordering and lowering - Verification and traceability

Platform spec article

Stage ordering and lowering - Verification and traceability

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Implementation anchors:

  • compiler/crates/beskid_analysis/src/projects/assembly/
  • compiler/crates/beskid_analysis/src/services/front_end.rs
  • compiler/crates/beskid_codegen/src/services.rs
  • compiler/crates/beskid_analysis/src/services.rs
  • compiler/crates/beskid_cli/src/commands/build.rs
  • compiler/crates/beskid_engine/src/services.rs
  • compiler/crates/beskid_tests/src/projects/assembly.rs

Traceability should include tests that assert semantic failures stop before backend stages.

When the mod host ships, add integration tests under compiler/crates/beskid_tests/ that:

  1. Install a test PipelineObserver collecting PhaseStart / PhaseEnd ids.
  2. Assert the substring parsemod.loadmod.collectmod.generatesemanticmod.analyzelower.readylower appears in order for a workspace fixture with a transitive Mod dependency (see Project manifest contract / verification for manifest fixture layout).

Any change to FULL_BUILD_PHASE_ORDER or mod insertion rules must update these expectations in the same commit.