implementation-report schema (v0.1)
The implementation-report file is validated by the normative JSON Schema published at its canonical URL:
- $id: https://contextbrew.dev/schemas/implementation-report/v0.1/schema.json
- Format version:
0.1.0 - Schema dialect: draft-07
- Validate with:
ctx schema implementation-reportor any JSON Schema validator (ajv, VS Code, …)
Root object: ReportEvent
Section titled “Root object: ReportEvent”Report envelope — every field required by WIRE-06.
| Property | Type | Required | Description |
|---|---|---|---|
format | "cb.implementation-report/v1" | yes | |
schemaVersion | "0.1.0" | yes | |
eventId | Uuid | yes | |
eventType | ReportEventType | yes | |
scopeRef | ScopeRef | yes | |
changeId | string | yes | |
runId | Uuid | yes | |
attemptId | Uuid | yes | |
sequence | number | yes | Contiguous attempt stream; starts at 1 with null predecessor. |
previousEventDigest | Digest | null | yes | |
definitionRevisionDigest | Digest | yes | |
sourcePinDigest | Digest | yes | |
targetId | string | yes | |
assignmentRef | NativeRef | null | yes | |
sessionRef | NativeRef | null | yes | |
expectedAttemptVersion | number | yes | |
fenceEpoch | number | yes | |
occurredAt | UtcIso | yes | |
producer | object | yes | |
snapshotRef | Digest | null | yes | |
payload | ReportEventPayload | yes |
Definitions
Section titled “Definitions”CheckObservation
Section titled “CheckObservation”| Property | Type | Required | Description |
|---|---|---|---|
checkId | string | yes | |
criterionId | string | yes | |
operationId | string | yes | |
snapshotRef | Digest | null | yes | |
producerVersion | string | yes | |
runnerVersion | string | yes | |
outcome | CheckOutcome | yes | |
startedAt | UtcIso | null | yes | |
endedAt | UtcIso | null | yes | |
durationMs | number | yes | |
executedCount | number | yes | |
skippedCount | number | yes | |
environmentFingerprint | string | yes | |
artifactRefs | | yes | |
observationDigest | Digest | null | yes |
CheckOutcome
Section titled “CheckOutcome”Type: "pass" | "fail" | "skipped" | "error" | "unknown"
ClaimedOutcome
Section titled “ClaimedOutcome”Type: "satisfied" | "partial" | "unchanged" | "failed" | "unsupported"
ClientEventType
Section titled “ClientEventType”Type: "work.started" | "mapping.recorded" | "work.checkpoint" | "work.blocked" | "check.observed" | "work.submitted" | "work.cancelled" | "contact.heartbeat" | "git.observed" | "context.upgrade-requested" | "context.load-observed" | "context.use-claimed" | "handover.prepared" | "code.assessment-requested"
Digest
Section titled “Digest”Tagged sha256 digest, sha256: + 64 lowercase hex — the frozen profile.
Type: string
GitObjectId
Section titled “GitObjectId”Git object id — algorithm-tagged, never a fixed-width SHA-1 string.
| Property | Type | Required | Description |
|---|---|---|---|
algorithm | "sha1" | "sha256" | yes | |
value | string | yes |
LinkExistenceStatus
Section titled “LinkExistenceStatus”Type: "resolved" | "missing" | "ambiguous" | "unavailable"
LinkLocation
Section titled “LinkLocation”Type: object
LinkProvenance
Section titled “LinkProvenance”Type: "agent-declared" | "runner-observed" | "independently-confirmed"
LinkRelationship
Section titled “LinkRelationship”Type: "implements" | "represents" | "enforces" | "verifies" | "stores" | "consulted" | "preserves"
NativeRef
Section titled “NativeRef”Typed native reference — authority/kind/id/version, never a bare string.
| Property | Type | Required | Description |
|---|---|---|---|
authority | "substrate" | "rdos" | yes | |
kind | "session" | "assignment" | "task" | "claim" | yes | |
id | string | yes | |
version | number | yes |
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 |
OperationStatusReport
Section titled “OperationStatusReport”Work-state report for one operation (checkpoint/submission payloads).
| Property | Type | Required | Description |
|---|---|---|---|
operationId | string | yes | |
workState | WorkItemState | yes | |
claimedOutcome | ClaimedOutcome | null | yes | Unknown outcome is null — never a success default (WIRE-06). |
criterionOutcomes | | yes | |
linkedArtifactIds | | yes | |
linkedCheckIds | | yes | |
remainingWork | string | yes | |
blockers | | 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
ProvenanceMode
Section titled “ProvenanceMode”Provenance of an observed/declared fact (WIRE-08, WIRE-13).
Type: "produced-with" | "assessed-against" | "unknown"
RepoRelativePath
Section titled “RepoRelativePath”Normalized repository-relative POSIX path (no leading /, no ..).
Type: string
ReportEventPayload
Section titled “ReportEventPayload”Discriminated event-specific payloads (WIRE-06 payload rules).
Type: object
ReportEventType
Section titled “ReportEventType”Type: ClientEventType | ServerEventType
ReportLink
Section titled “ReportLink”| Property | Type | Required | Description |
|---|---|---|---|
linkId | string | yes | |
operationId | string | yes | |
pieceRef | PieceRef | yes | |
criterionId | string | yes | |
relationship | LinkRelationship | yes | |
snapshotRef | Digest | null | yes | |
location | LinkLocation | yes | |
provenance | LinkProvenance | yes | |
supersedesLinkId | string | yes |
ScopeRef
Section titled “ScopeRef”Authorized scope mapping (WIRE-03 scopeRef).
| Property | Type | Required | Description |
|---|---|---|---|
authority | string | yes | |
orgId | string | yes | |
projectId | string | yes | |
repoScopeId | string | yes | |
mappingRevision | Digest | yes | Revision of the project↔repo mapping this scope was resolved against. |
ServerEventType
Section titled “ServerEventType”Type: "verification.recorded" | "adoption.linked" | "attempt.superseded" | "projection.invalidated" | "context.available" | "context.selected" | "context.served"
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 |
UtcIso
Section titled “UtcIso”UTC ISO-8601 timestamp string (YYYY-MM-DDTHH:MM:SS.sssZ).
Type: string
Opaque UUID (v4 or v7) assigned by the owning server.
Type: string
WorkItemState
Section titled “WorkItemState”Type: "planned" | "active" | "blocked" | "submitted" | "cancelled"
See the schemas overview for the versioning policy and how these files are generated and kept in sync.
