Sibling articles under this feature previously restated requirements in inconsistent forms.
Mod host bridge
Platform spec feature
Mod host bridge
Spec standingStandard
-
This feature hub owns normative MUST/SHOULD contract text for Mod host bridge.
Context
Decision
This feature hub owns normative MUST/SHOULD contract text. Sibling articles must not redefine hub requirements and should link here for authority.
Consequences
Contract changes start on the hub or in linked ADRs, then propagate to articles and implementation anchors.
Verification anchors
site/website/src/content/docs/platform-spec/compiler/compiler-mods/mod-host-bridge/index.mdxarticle bundle under the same feature directory.
-
Platform-spec text supersedes informal crate comments for Mod host bridge.
Context
Implementation crates accumulated informal notes that diverged from published contracts.
Decision
Normative platform-spec prose and ADRs under this feature supersede informal comments in implementation crates until explicitly migrated into spec text.
Consequences
Engineers file spec/ADR updates when behavior changes; crate comments are non-authoritative for conformance arguments.
Verification anchors
compiler/crates/beskid_analysis/compiler/crates/beskid_codegen/compiler/crates/beskid_analysis/src/services.rs
-
Mods previously risked manifest attach lists for discovery.
Context
Modpackages must export public Beskid types implementing SDK contracts; host loads AOT artifacts andmod.descriptor.jsonregistrations—not manifest attach metadata.Decision
Contract discovery uses
(contractId, typeId, entrySymbol)tuples; failures emit E1821–E1870 beforemod.collect.Consequences
JIT mod execution is not normative; rebuild uses
beskid mod rebuild.Verification anchors
compiler/crates/beskid_analysis/mod artifact store paths in analysis services.
- Mod host bridge - AOT artifact contract On-disk mod artifact layout, cache keys, export descriptor schema, and load-failure diagnostics.
- mod host bridge - Contracts and edge cases Reference compiler-owned execution, capability policy, and communication with compile-time Beskid modules.
- mod host bridge - Design model Rust-side mod host execution, AOT artifact lifecycle, capability policy, and typed merge.
- mod host bridge - Examples Reference compiler-owned execution, capability policy, and communication with compile-time Beskid modules.
- mod host bridge - FAQ and troubleshooting Reference compiler-owned execution, capability policy, and communication with compile-time Beskid modules.
- mod host bridge - Flow and algorithm Reference compiler-owned execution, capability policy, and communication with compile-time Beskid modules.
- mod host bridge - Verification and traceability Reference compiler-owned execution, capability policy, and communication with compile-time Beskid modules.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
Compile-time mod execution flow
Reference ordering from parse through mod collection, generation, semantic analysis, rewrite, and lowering.
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
This feature hub defines Rust-side mod-host execution: Mod project registration, contract discovery, AOT artifact lifecycle, compilation-event orchestration, and capability policy.
Language alignment
Section titled “Language alignment”Implements language-meta compiler-mod contracts (Collector, Generator, Analyzer, Rewriter, AttributeGenerator) for manifest-driven Mod orchestration.
Implementation anchors
Section titled “Implementation anchors”compiler/crates/beskid_analysis/src/mod_host/— mod discovery, registration validation, contract dispatch throughContractInvoker, typed merge / reparse, analyze / rewrite orchestration.compiler/crates/beskid_analysis/src/mod_host/invoker.rs—ContractInvokertrait withStubContractInvoker/ScriptedContractInvokerfor host bring-up and tests.compiler/crates/beskid_analysis/src/mod_host/validate.rs— pre-mod.collectcross-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 throughEngine::compile_artifact.
Decisions
Section titled “Decisions”No open decisions. Closed choices are normative ADRs under adr/ (D-COMP-MODS-0010 … D-COMP-MODS-0012); use the reader ADRs tab for expandable detail.