Registry taxonomy.
Contracts and edge cases
Platform spec article
Contracts and edge cases
Spec standingStandard
-
Explicit packageKind
Context
Decision
Explicit packageKind on beskid.package.v1.
Consequences
pckg validators.
Verification anchors
Validator tests.
-
Template UI mode
Context
Registry taxonomy.
Decision
Template pages hide API docs.
Consequences
pckg validators.
Verification anchors
Validator tests.
-
No api.json
Context
Registry taxonomy.
Decision
template kind must not require api.json.
Consequences
pckg validators.
Verification anchors
Validator tests.
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).
Purpose and scope
Section titled “Purpose and scope”Registry validator and UI MUST rules.
Publish validation
Section titled “Publish validation”| ID | Rule |
|---|---|
| PK-T01 | When packageKind is template, validator must not require .beskid/docs/api.json. |
| PK-T02 | Validator must require .beskid/template.json with schema: beskid.template.v1. |
| PK-T03 | Project.proj must be present and should declare type: Template for author packages. |
| PK-T04 | package.json id must match Project.proj name (same rule as libraries). |
| PK-T05 | Versioning, checksum, forbidden paths, and yank semantics must match library packages. |
Registry UI
Section titled “Registry UI”| ID | Rule |
|---|---|
| PK-U01 | Package detail for template must not render API documentation components. |
| PK-U02 | Search and catalog may filter by packageKind. |
| PK-U03 | Dashboard publish flows must allow selecting template projects for pack. |
Edge cases
Section titled “Edge cases”- Upload library
.bpkto template-only route — reject ifpackageKindmismatch when enforced server-side. - Template package with
documentation.apiJsoninpackage.json— strip at publish or reject as invalid for template profile. - Yanked template: catalog shows yank;
beskid newwarns per project templates contracts.