context-item-index schema (v0.1)
The context-item-index file is validated by the normative JSON Schema published at its canonical URL:
- $id: https://contextbrew.dev/schemas/context-item-index/v0.1/schema.json
- Format version:
0.1.0 - Schema dialect: draft-07
- Validate with:
ctx schema context-item-indexor any JSON Schema validator (ajv, VS Code, …)
Root object: ContextItemIndex
Section titled “Root object: ContextItemIndex”| Property | Type | Required | Description |
|---|---|---|---|
format | "cb.context-item-index/v1" | yes | |
schemaVersion | "0.1.0" | yes | |
deliveryId | string | yes | |
pinDigest | Digest | yes | |
entries | ItemIndexEntry[] | yes | Bound by its own envelope digest — see itemIndexEnvelopeDigest(). |
Definitions
Section titled “Definitions”ArtifactRevisionRef
Section titled “ArtifactRevisionRef”Native artifact/Batch/lineage identity (WIRE-14 source identity kinds).
| Property | Type | Required | Description |
|---|---|---|---|
refType | "artifact-revision" | yes | |
artifactId | string | yes | |
revision | Digest | yes |
Digest
Section titled “Digest”Tagged sha256 digest, sha256: + 64 lowercase hex — the frozen profile.
Type: string
FacetCoverage
Section titled “FacetCoverage”Type: "complete" | "partial" | "unknown" | "unavailable"
ItemIndexEntry
Section titled “ItemIndexEntry”| Property | Type | Required | Description |
|---|---|---|---|
deliveryId | string | yes | |
itemId | string | yes | |
citationAlias | string | yes | Compact alias unique INSIDE this delivery — never a global ID. |
canonicalPieceRef | ItemSourceRef | UnmanagedSourceRef | yes | Enrolled identity, explicit exact-source locator, or honest unknown. |
sourceRefs | array | yes | |
contentDigest | Digest | yes | |
representation | string | yes | |
transformRef | string | yes | |
facetRefs | | yes | |
facetAssociationSnapshotRef | Digest | null | yes | |
facetCoverage | FacetCoverage | yes | |
selectionRef | Digest | null | yes | |
serveReceiptRef | Digest | null | yes | |
operationIds | | yes | |
coverage | "full" | "partial" | yes | |
omissions | | yes | |
sourceSpan | object | null | yes |
ItemSourceRef
Section titled “ItemSourceRef”Type: PieceRef | ArtifactRevisionRef
ObjectRevisionRef
Section titled “ObjectRevisionRef”Enrolled object revision reference — the preferred exact reference.
| Property | Type | Required | Description |
|---|---|---|---|
refType | "object-revision" | yes | |
objectId | string | yes | |
revisionHash | Digest | yes | |
rootClosureDigest | Digest | null | yes | |
kind | PieceKind | yes |
PieceKind
Section titled “PieceKind”Type: "cbrl.requirement" | "cbrl.acceptance-criteria" | "cbrl.test-case" | "ddd.aggregate" | "ddd.invariant"
PieceRef
Section titled “PieceRef”Type: ObjectRevisionRef | SourceElementRef
SourceElementRef
Section titled “SourceElementRef”Legacy exact-source locator (ROP-11 bridge). Proves identity in the pinned snapshot only — NO cross-rename continuity, no fabricated object IDs.
| Property | Type | Required | Description |
|---|---|---|---|
refType | "source-element" | yes | |
authority | string | yes | |
repoScope | string | yes | |
model | string | yes | |
sourceCommit | Digest | yes | |
sourceBytesDigest | Digest | yes | |
codecVersion | string | yes | |
elementKind | PieceKind | yes | |
nativeSelector | string | yes | Uniquely resolved native key/owner selector — label alone is invalid. |
nativeCriterionId | string | yes | |
selectedPayloadDigest | Digest | null | yes |
UnmanagedSourceRef
Section titled “UnmanagedSourceRef”Honest unknown origin for unmanaged external items (WIRE-14).
| Property | Type | Required | Description |
|---|---|---|---|
refType | "unmanaged" | yes | |
origin | "unknown" | yes |
See the schemas overview for the versioning policy and how these files are generated and kept in sync.
