Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Mod host bridge

Platform spec feature

Mod host bridge

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

This feature hub defines Rust-side mod-host execution: Mod project registration, contract discovery, AOT artifact lifecycle, compilation-event orchestration, and capability policy.

Implements language-meta compiler-mod contracts (Collector, Generator, Analyzer, Rewriter, AttributeGenerator) for manifest-driven Mod orchestration.

  • compiler/crates/beskid_analysis/src/mod_host/ — mod discovery, registration validation, contract dispatch through ContractInvoker, typed merge / reparse, analyze / rewrite orchestration.
  • compiler/crates/beskid_analysis/src/mod_host/invoker.rsContractInvoker trait with StubContractInvoker / ScriptedContractInvoker for host bring-up and tests.
  • compiler/crates/beskid_analysis/src/mod_host/validate.rs — pre-mod.collect cross-artifact validation that short-circuits scheduling on E1828, E1829, E1851, E1852, E1853, E1854, E1855.
  • compiler/crates/beskid_codegen/src/services.rs — lowering boundaries after typed mod contributions.
  • compiler/crates/beskid_engine/tests/mod_host.rs — engine integration test driving the full pipeline through Engine::compile_artifact.

No open decisions. Closed choices are normative ADRs under adr/ (D-COMP-MODS-0010D-COMP-MODS-0012); use the reader ADRs tab for expandable detail.