Skip to content

implementation-work schema (v0.1)

The implementation-work file is validated by the normative JSON Schema published at its canonical URL:

Immutable authored intention (WIRE-03 required fields).

PropertyTypeRequiredDescription
format"cb.implementation-work/v1"yes
schemaVersion"0.1.0"yes
definitionIdstringyes
revisionDigestDigestyesImmutable content digest — excludes itself and transport receipts.
parentRevisionDigestsDigest[]yes
scopeRefScopeRefyes
recipeRefobject | nullyesCanonical recipe identity + exact revision; null ONLY for task-only definitions.
sourcePinobjectyesExact closure ref, or immutable release artifact set + digest; mode explicit.
operationsWorkOperation[]yes
createdFromobjectyes

Allowed artifact/resource scope for an operation.

PropertyTypeRequiredDescription
pathPrefixesRepoRelativePath[]yes
resourceBindingIdsstring[]yes
artifactKindsstring[]yes

Tagged sha256 digest, sha256: + 64 lowercase hex — the frozen profile.

Type: string

Enrolled object revision reference — the preferred exact reference.

PropertyTypeRequiredDescription
refType"object-revision"yes
objectIdstringyes
revisionHashDigestyes
rootClosureDigestDigest | nullyes
kindPieceKindyes

Type: "cbrl.requirement" | "cbrl.acceptance-criteria" | "cbrl.test-case" | "ddd.aggregate" | "ddd.invariant"

Type: ObjectRevisionRef | SourceElementRef

Normalized repository-relative POSIX path (no leading /, no ..).

Type: string

Authorized scope mapping (WIRE-03 scopeRef).

PropertyTypeRequiredDescription
authoritystringyes
orgIdstringyes
projectIdstringyes
repoScopeIdstringyes
mappingRevisionDigestyesRevision of the project↔repo mapping this scope was resolved against.

Legacy exact-source locator (ROP-11 bridge). Proves identity in the pinned snapshot only — NO cross-rename continuity, no fabricated object IDs.

PropertyTypeRequiredDescription
refType"source-element"yes
authoritystringyes
repoScopestringyes
modelstringyes
sourceCommitDigestyes
sourceBytesDigestDigestyes
codecVersionstringyes
elementKindPieceKindyes
nativeSelectorstringyesUniquely resolved native key/owner selector — label alone is invalid.
nativeCriterionIdstringyes
selectedPayloadDigestDigest | nullyes

Explicit target selector inside an operation.

PropertyTypeRequiredDescription
targetIdstringyes
componentPathRepoRelativePath | nullyes

Type: "create" | "update" | "remove" | "use" | "preserve" | "verify" | "refactor" | "migrate"

A single closed operation record (ROP-07 intent shape).

PropertyTypeRequiredDescription
operationIdstringyes
actionWorkActionyes
pieceRefsPieceRef[]yes
intentstringyes
expectedOutcomestringyes
requiredCriteriastring[]yesVersioned registered criteria this operation is accountable for.
requiredChecksstring[]yesVersioned registered checks; command text is advisory, never authority.
preservestring[]yesPreservation obligations spanning this operation (may span several).
dependsOnstring[]yes
targetSelectorTargetSelectoryes
allowedScopeAllowedScopeyes
adapterRequirementstringyesRegistered specialization/adapter requirement (refactor/migrate).
predecessorRefPieceRef | nullyesPredecessor piece/revision retained for remove (ROP-07).
retirementScopeobject | nullyesExplicit retirement scope — REQUIRED for remove (affected consumers + data policy).

See the schemas overview for the versioning policy and how these files are generated and kept in sync.