Sibling articles under this feature previously restated requirements in inconsistent forms.
Project manifest contract - Contracts and edge cases
Platform spec article
Project manifest contract - Contracts and edge cases
Spec standingStandard
-
This feature hub owns normative MUST/SHOULD contract text for Project manifest 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/resolution-and-projects/project-manifest-contract/index.mdxarticle bundle under the same feature directory.
-
Platform-spec text supersedes informal crate comments for Project manifest 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_analysis/src/projects/manifest_resolve.rscompiler/crates/beskid_analysis/src/projects/graph/compiler/crates/beskid_cli/src/commands/
-
Manifest key tables were duplicated between tooling and compiler specs.
Context
Manifest key tables were duplicated between tooling and compiler specs.
Decision
Author-facing
Project.projkey tables live only under tooling; this compiler feature documents resolution graph behavior and defers schema prose viarelatedTopics.Consequences
Compiler changes manifest parsing only when graph or diagnostic bands change; tooling spec leads schema edits.
Verification anchors
compiler/crates/beskid_analysis/src/projects/manifest_resolve.rstooling project-manifest-contract hub.
- Project manifest contract - Contracts and edge cases Compiler resolution guarantees, graph cycles, and manifest-band diagnostics.
- Project manifest contract - Design model Resolution graph entities for Project.proj ingestion (manifest key prose defers to tooling).
- Project manifest contract - Examples Gives concrete newcomer-friendly scenarios mapped to real compiler paths.
- Project manifest contract - FAQ and troubleshooting Answers common operator and contributor questions with practical next checks.
- Project manifest contract - Flow and algorithm Compiler order of operations for manifest parse, graph insertion, and Mod materialization.
- Project manifest 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).
Compiler resolution contracts
Section titled “Compiler resolution contracts”- Graph before compile — No host
CompilePlanruns until workspace/project DAG validation succeeds. - Mod carriers only in graph — Compiler-mod contracts are reachable only through resolved
type: Modnodes (see tooling for manifest-level rules). - Stable diagnostics — Graph and resolution failures use assigned codes in E1801–E1899; changing codes requires registry and test updates.
- Transitive Mod closure — Host builds must resolve the full transitive Mod set before
mod.load; partial graphs are errors.
Edge cases (resolution)
Section titled “Edge cases (resolution)”- Dependency cycles — Any cycle in the workspace/project graph is a hard error at graph build time.
- Missing materialized package — Unresolved registry or lock roots fail before analysis, with distinct codes from parse errors.
- Lock/workspace drift — Mismatches between lockfile pins and on-disk layout are diagnosed in the workspace feature; see workspace and lock contracts.
Mod-specific manifest shape rules (capabilities, maxGeneratorRounds, host targets on Mod projects) are not duplicated here; see tooling / contracts and edge cases.
Code anchors
Section titled “Code anchors”compiler/crates/beskid_analysis/src/projects/graph/compiler/crates/beskid_tests/src/projects/corelib/mod.rscompiler/crates/beskid_tests/src/projects/corelib/compile.rs