Sibling articles under this feature previously restated requirements in inconsistent forms.
Workspace and lock contracts - Contracts and edge cases
Platform spec article
Workspace and lock contracts - Contracts and edge cases
Spec standingStandard
-
This feature hub owns normative MUST/SHOULD contract text for Workspace and lock contracts.
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/resolution-and-projects/workspace-and-lock-contracts/index.mdxarticle bundle under the same feature directory.
-
Platform-spec text supersedes informal crate comments for Workspace and lock contracts.
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/src/resolve/mod.rscompiler/crates/beskid_cli/src/commands/compiler/crates/beskid_tests/src/projects/corelib/compile.rs
-
Floating registry versions broke reproducible compiles.
Context
Floating registry versions broke reproducible compiles.
Decision
Workspace resolution must honor lockfile pins from
beskid_analysis::resolvebefore applying CLI overrides.Consequences
Lock update commands are explicit; silent refresh is forbidden in CI modes.
Verification anchors
compiler/crates/beskid_analysis/src/resolve/mod.rscompiler/crates/beskid_cli/src/commands/.
- Workspace and lock contracts - Contracts and edge cases Compiler guarantees for lock-backed graphs and workspace layout invariants.
- Workspace and lock contracts - Design model Compiler entities for workspace roots and lock materialization (workspace key prose defers to tooling).
- Workspace and lock contracts - Examples Gives concrete newcomer-friendly scenarios mapped to real compiler paths.
- Workspace and lock contracts - FAQ and troubleshooting Answers common operator and contributor questions with practical next checks.
- Workspace and lock contracts - Flow and algorithm Compiler order of operations for workspace discovery, lock apply, and graph materialization.
- Workspace and lock contracts - 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).
Compiler contracts
Section titled “Compiler contracts”- Deterministic graph — Given the same lock snapshot and workspace layout, resolution produces the same member DAG.
- Layout invariants — Folder layout under workspace members must match what lock materialization expects; violations fail before semantic analysis.
- No silent lock ignore — When CI or
--lockedpolicy is active, missing or stale locks are errors, not warnings-only, unless tooling explicitly defines a warning mode for that command.
Edge cases (resolution)
Section titled “Edge cases (resolution)”- Stale lock vs registry — Pin resolution failures surface at materialize time with stable diagnostics.
- Partial member checkout — Missing member directories fail graph build with layout-specific codes.
- Cross-feature manifest errors — Invalid
Project.projnodes still fail in the project-manifest resolution path first.
Workspace key forbiddances and reserved names are specified in tooling / design model and are not duplicated here.
Code anchors
Section titled “Code anchors”compiler/crates/beskid_tests/src/projects/corelib/compile.rscompiler/crates/beskid_tests/src/projects/corelib/layout.rscompiler/crates/beskid_cli/src/commands/