Sibling articles under this feature previously restated requirements in inconsistent forms.
Extern import extraction contract - Verification and traceability
Platform spec article
Extern import extraction contract - Verification and traceability
Spec standingStandard
-
This feature hub owns normative MUST/SHOULD contract text for Extern import extraction contract.
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/codegen-and-ir/extern-import-extraction-contract/index.mdxarticle bundle under the same feature directory.
-
Platform-spec text supersedes informal crate comments for Extern import extraction contract.
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_abi/src/builtins.rscompiler/crates/beskid_runtime/src/builtins/mod.rscompiler/crates/beskid_e2e_tests/src/tests/runtime_cases.rs
-
FFI symbols were discovered late in the engine.
Context
FFI symbols were discovered late in the engine.
Decision
Extern imports are collected during lowering (
ExternImportin codegen context) with ABI names frombeskid_abi—not ad hoc engine scans.Consequences
Link-time binding stays aligned with language-meta C ABI profile.
Verification anchors
compiler/crates/beskid_codegen/src/lowering/compiler/crates/beskid_abi/src/symbols.rs.
- Extern import extraction contract - Contracts and edge cases States the normative guarantees and what happens at boundaries or failure edges.
- Extern import extraction contract - Design model Explains the persistent concepts, entities, and boundaries this feature relies on.
- Extern import extraction contract - Examples Gives concrete newcomer-friendly scenarios mapped to real compiler paths.
- Extern import extraction contract - FAQ and troubleshooting Answers common operator and contributor questions with practical next checks.
- Extern import extraction contract - Flow and algorithm Walks through runtime/order-of-operations behavior in the implementation.
- Extern import extraction contract - Verification and traceability Shows how the team proves this feature works and where evidence lives.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
This article documents verification and traceability for extern import extraction contract in the reference compiler.
What this covers
Section titled “What this covers”For newcomers, this page explains where the contract shows up in day-to-day compiler work and which code paths are most useful first reads.
Anchored code paths
Section titled “Anchored code paths”compiler/crates/beskid_abi/src/builtins.rsandsymbols.rsdefine import-facing ABI names.compiler/crates/beskid_runtime/src/builtins/mod.rsprovides runtime implementations for extracted imports.compiler/crates/beskid_e2e_tests/src/tests/runtime_cases.rsverifies extern calls end-to-end.
Practical notes
Section titled “Practical notes”- Prefer tracing from CLI/test entry points into analysis/codegen crates before changing internals.
- Treat diagnostics and tests as part of the contract, not optional implementation details.
- If behavior changes, update this article and add/adjust tests in
compiler/crates/beskid_testsorcompiler/crates/beskid_e2e_tests.