standard-model-header schema (v0.2)
The 0.2.0 file is validated by the normative JSON Schema published at its canonical URL:
- $id: https://contextbrew.dev/schemas/standard-model-header/v0.2/schema.json
- Format version:
0.2.0 - Schema dialect: draft-07
- Validate with:
ctx schema standard-model-headeror any JSON Schema validator (ajv, VS Code, …)
Root object: AnyModelDocumentHeader
Section titled “Root object: AnyModelDocumentHeader”Closed (non-generic) header shape — the schema root for the committed standard-model-header JSON Schema and the type plain-JSON consumers read. The generic ModelDocumentHeader stays the authoring surface.
| Property | Type | Required | Description |
|---|
Definitions
Section titled “Definitions”AdapterRef
Section titled “AdapterRef”Parser/exporter adapter identity — distinct from standard and schema versions.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
version | string | yes |
AuthoredAuthority
Section titled “AuthoredAuthority”| Property | Type | Required | Description |
|---|---|---|---|
mode | "authored" | yes | |
adoptedFrom | SourceBinding | no |
Authority
Section titled “Authority”Type: AuthoredAuthority | ReferenceAuthority | ProjectionAuthority
JsonPrimitive
Section titled “JsonPrimitive”Type: string
JsonValue
Section titled “JsonValue”Type: JsonPrimitive | JsonValue[] | Record<string, unknown>
LegacyOwnerModelId
Section titled “LegacyOwnerModelId”Type: "ddd" | "dsm" | "c4" | "context-map" | "state-lens"
ModelArtifactRef
Section titled “ModelArtifactRef”| Property | Type | Required | Description |
|---|---|---|---|
projectId | string | yes | |
family | OwnerFamilyId | yes | A standard family, or one of the existing models that remain semantic owners (plan README §4 decision 6) so a projection can name its owner. |
artifactId | string | yes | Opaque UUID — never a filename or display name. |
revision | RevisionPolicy | yes |
ModelDocumentHeader<StandardModelFamilyId,Authority>
Section titled “ModelDocumentHeader<StandardModelFamilyId,Authority>”| Property | Type | Required | Description |
|---|---|---|---|
kind | "standard-model-document" | yes | |
schemaVersion | string | yes | Native envelope schema version — see STANDARD_MODEL_ENVELOPE_SCHEMA_VERSION . |
family | StandardModelFamilyId | yes | |
artifactId | string | yes | Opaque UUID — never a filename or display name. |
title | string | yes | |
profile | ProfileRef | yes | |
standard | StandardRef | no | |
authority | Authority | yes | |
description | string | no | |
origin | OriginRecord | yes | |
owner | string | no | 0.2.0 — owner subject (ai-registry "who owns it"), the recipe-manifest field's twin (RecipeManifest.owner). PROVISIONAL vocabulary pending the first real family body. Content: covered by documentHash — an ownership change moves the content address. |
status | RecipeLifecycleStatus | no | 0.2.0 — publication lifecycle status, the recipe-manifest field's twin (RecipeLifecycleStatus). PROVISIONAL pending a real family body — revisit against AuthorityClass (context/canister.ts) when families land. EXCLUDED from documentHash (digest.ts): a status transition must not move the content address (the recipe digest-split lesson). No serving gate reads it yet — no standard-model serving path exists. |
OriginKind
Section titled “OriginKind”Type: "created" | "imported" | "adopted" | "migrated" | "projected"
OriginRecord
Section titled “OriginRecord”| Property | Type | Required | Description |
|---|---|---|---|
kind | OriginKind | yes | |
at | string | yes | ISO-8601 timestamp. |
by | string | no | Principal identifier. Display names are not identity. |
tool | object | no | |
sourceResourceId | string | no | |
migrationId | string | no | |
note | string | no |
OwnerFamilyId
Section titled “OwnerFamilyId”Type: StandardModelFamilyId | LegacyOwnerModelId
ProfileRef
Section titled “ProfileRef”ContextBrew profile identity — narrows a family’s semantics.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
version | string | yes |
ProjectionAuthority
Section titled “ProjectionAuthority”| Property | Type | Required | Description |
|---|---|---|---|
mode | "projection" | yes | |
owner | ModelArtifactRef | yes | |
transform | TransformRef | yes |
RecipeLifecycleStatus
Section titled “RecipeLifecycleStatus”0.6.0 — recipe publication lifecycle, borrowing ai-registry’s versions.json status vocabulary verbatim (draft, pending_review, active, blocked, deprecated, archived) so a later registry export maps 1:1 (see docs/research/2026-11-05-ai-registry-spec-tracking.md). yanked is deliberately NOT borrowed — a release/marketplace concept, already carried by ctxbazaar’s yanked_at/yank_reason. Distinct layers on purpose: FACET_STATUSES (facets/types.ts) is the facet lifecycle, RecipeStatus (recipes/execution.ts) is execution state, and review workflows (recipe_server Owners, rdos reviewer verdicts) may drive transitions in follow-ups — nothing enforces this field yet.
Type: "draft" | "pending_review" | "active" | "blocked" | "deprecated" | "archived"
ReferenceAuthority
Section titled “ReferenceAuthority”| Property | Type | Required | Description |
|---|---|---|---|
mode | "reference" | yes | |
source | SourceBinding | yes |
RevisionPolicy
Section titled “RevisionPolicy”Revision policy of a reference (technical contracts §2.3). pinned carries the revision and optionally the content hash it was pinned against.
Type: object
SourceBinding
Section titled “SourceBinding”Binding of a document to an immutable source resource (SM-DATA-01). The sha256 is always the digest of the exact imported bytes (SM-DATA-08).
| Property | Type | Required | Description |
|---|---|---|---|
resourceId | string | yes | |
sha256 | string | yes | |
mediaType | string | yes | |
originalFilename | string | no | |
adapter | AdapterRef | yes | Adapter that produced the current interpretation of the bytes. |
interpretationRevision | string | yes | Revision of the parsed interpretation — rebuildable, never hand-edited. |
standard | StandardRef | no |
StandardModelFamilyId
Section titled “StandardModelFamilyId”Type: "bpmn" | "seq" | "uml-class" | "er" | "stm" | "dmn" | "use-case" | "activity" | "dfd" | "uml-component" | "deployment" | "archimate" | "sysml" | "cmmn" | "timing" | "petri" | "api-contracts"
StandardRef
Section titled “StandardRef”External standard identity, e.g. \{ name: "BPMN", version: "2.0.2" \}.
| Property | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
version | string | yes | |
namespace | string | no |
TransformRef
Section titled “TransformRef”| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
version | string | yes | |
settings | Record<string, JsonValue> | no |
See the schemas overview for the versioning policy and how these files are generated and kept in sync.
