Registry, CLI, and analysis must agree on one package name.
Verification and traceability
Platform spec article
Verification and traceability
Spec standingStandard
-
Published and resolved identity is corelib, not ad-hoc forks.
Context
Decision
Rule Detail Identity Package name corelib; sources underbeskid_corelibLegacy standard_librarypaths may alias; identity remainscorelibConsequences
pckg publish, resolver, and docs use the same identity string.
Verification anchors
resolver.rs;beskid_testscorelib project fixtures. -
Env, repo walk, and bundled CLI materialize the same tree.
Context
Developers run from superrepo, installed CLI, or CI without divergent roots.
Decision
Rule Detail BESKID_CORELIB_ROOTPoints at root containing beskid_corelib/Project.projWalk Ancestor search for compiler/corelib/beskid_corelibBundle beskid_cliensure_corelib_readymaterializes embedded treeConsequences
Missing roots fail fast with resolver diagnostics.
Verification anchors
corelib_runtime.rs;resolver.rstests. -
Pack copies declared readme into README.md for registry docs.
Context
Registry consumers expect root README.md in
.bpkartifacts.Decision
Rule Detail Declare Optional readme = "path.md"in Project.projDefault readme.mdat package root when presentPack beskid pckg packplaces resolved file asREADME.mdConsequences
pckg documentation ingest uses consistent entry filename.
Verification anchors
PackagePublishDocumentation.cs; pack integration tests. -
corelib_console is a workspace member depended on by beskid_corelib.
Context
Console/ANSI must ship with the aggregate package, not as an orphan.
Decision
Rule Detail Workspace compiler/corelib/Workspace.projlistspackages/consoleAggregate beskid_corelibdepends oncorelib_consoleConsequences
Publish CI packs the full workspace graph for registry corelib.
Verification anchors
Workspace.proj; corelib CI publish job.
- Contracts and edge cases Normative guarantees and known edge cases for `Corelib discovery and packaging`.
- Design model Conceptual model for `Corelib discovery and packaging` and its subsystem boundaries.
- Examples Practical examples that demonstrate `Corelib discovery and packaging` behavior.
- FAQ and troubleshooting Common questions and debugging guidance for `Corelib discovery and packaging`.
- Flow and algorithm End-to-end control flow for corelib discovery, materialization, and packaging.
- Verification and traceability How `Corelib discovery and packaging` requirements map to tests and implementation anchors.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
what-this-feature-specifies | yes | yes |
implementation-anchors | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Verification strategy
Section titled “Verification strategy”- Unit-level checks validate local transformations.
- Integration tests validate crate-to-crate contracts.
- End-to-end fixtures validate user-visible behavior.
Traceability map
Section titled “Traceability map”- Spec requirement source:
/platform-spec/core-library/compiler-integration/corelib-discovery-and-packaging/. - Core implementation anchors:
- Canonical package root
compiler/corelib/beskid_corelib - Canonical package identity
corelibincompiler/corelib/beskid_corelib/Project.proj - Corelib path discovery in
compiler/crates/beskid_analysis/src/projects/graph/resolver.rs - CLI embedding/install support in
compiler/crates/beskid_cli/build.rsandcompiler/crates/beskid_cli/src/corelib_runtime.rs
- Canonical package root
- Conformance anchor:
- Integration checks in
compiler/crates/beskid_tests/src/projects/corelib
- Integration checks in
CI anchors:
- Compiler corelib quality gate in
compiler/.github/workflows/ci.yml(corelib-quality). - Corelib publish authority and quality checks in
compiler/corelib/.github/workflows/ci.yml.
Review checklist
Section titled “Review checklist”- Requirement text and test expectation describe the same boundary.
- Crate ownership updates are reflected in spec links.
- Newly introduced edge cases include at least one reproducible fixture.