{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:saddle:context-record:1",
"title": "Saddle schema1 context record",
"type": "object",
"additionalProperties": true,
"properties": {
"recordSchema": {
"type": "string",
"description": "Observability ContextRecord",
"x-saddle-source": "Observability ContextRecord",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required",
"const": "1.0"
},
"timestamp": {
"type": "integer",
"description": "Observability event Unix milliseconds",
"x-saddle-source": "Observability event Unix milliseconds",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
},
"level": {
"type": "string",
"description": "Observability ContextRecord",
"x-saddle-source": "Observability ContextRecord",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
},
"event": {
"type": "string",
"description": "Observability ContextRecord",
"x-saddle-source": "Observability ContextRecord",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
},
"payload": {
"description": "typed event payload",
"x-saddle-source": "typed event payload",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
},
"context": {
"type": "object",
"additionalProperties": true,
"properties": {
"schemaVersion": {
"type": "string",
"description": "Core schema1 projection",
"x-saddle-source": "Core schema1 projection",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required",
"const": "1.0"
},
"applicationInfo": {
"type": "object",
"additionalProperties": true,
"properties": {
"application": {
"type": "string",
"description": "immutable Runtime root application",
"x-saddle-source": "immutable Runtime root application",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
}
},
"required": [
"application"
]
},
"traceInfo": {
"type": "object",
"description": "original ingress traceInfo plus checked identity",
"x-saddle-source": "original ingress traceInfo plus checked identity",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence",
"additionalProperties": true,
"properties": {
"traceId": {
"type": "string",
"description": "validated identity; actual child rpcId for child",
"x-saddle-source": "validated identity; actual child rpcId for child",
"x-saddle-phase": "identity established",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"rpcId": {
"type": "string",
"description": "validated identity; actual child rpcId for child",
"x-saddle-source": "validated identity; actual child rpcId for child",
"x-saddle-phase": "identity established",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
}
}
},
"requestInfo": {
"type": "object",
"additionalProperties": true,
"properties": {
"localRequestId": {
"type": "string",
"description": "immutable Core local root id",
"x-saddle-source": "immutable Core local root id",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
},
"requestId": {
"type": "string",
"description": "validated ingress request id",
"x-saddle-source": "validated ingress request id",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"callId": {
"type": "string",
"description": "original ingress call id",
"x-saddle-source": "original ingress call id",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"deadlineUnixMs": {
"type": "integer",
"description": "original ingress deadline",
"x-saddle-source": "original ingress deadline",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
}
},
"required": [
"localRequestId"
]
},
"interfaceInfo": {
"type": "object",
"additionalProperties": true,
"properties": {
"entry": {
"type": "string",
"description": "fixed profusegw ingress",
"x-saddle-source": "fixed profusegw ingress",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
},
"interfaceId": {
"type": "string",
"description": "validated target.interfaceId",
"x-saddle-source": "validated target.interfaceId",
"x-saddle-phase": "identity established",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"module": {
"type": "string",
"description": "not applicable to root profusegw entry",
"x-saddle-source": "not applicable to root profusegw entry",
"x-saddle-phase": "not_applicable",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"service": {
"type": "string",
"description": "not applicable to root profusegw entry",
"x-saddle-source": "not applicable to root profusegw entry",
"x-saddle-phase": "not_applicable",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"operation": {
"type": "string",
"description": "not applicable to root profusegw entry",
"x-saddle-source": "not applicable to root profusegw entry",
"x-saddle-phase": "not_applicable",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
}
},
"required": [
"entry"
]
},
"inputInfo": {
"type": "object",
"additionalProperties": true,
"properties": {
"requestData": {
"description": "managed original ingress JSON before DTO conversion",
"x-saddle-source": "managed original ingress JSON before DTO conversion",
"x-saddle-phase": "valid input document",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "caller supplied input",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
}
}
},
"ldcInfo": {
"description": "original ingress ldcInfo",
"x-saddle-source": "original ingress ldcInfo",
"x-saddle-phase": "valid input document",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "caller supplied context",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"profuseContext": {
"description": "original ingress profuseContext",
"x-saddle-source": "original ingress profuseContext",
"x-saddle-phase": "valid input document",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "caller supplied context",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"business": {
"anyOf": [
{
"type": "object"
},
{
"const": "<redacted>"
}
],
"description": "immutable local business revision",
"x-saddle-source": "immutable local business revision",
"x-saddle-phase": "all",
"x-saddle-writable": "business scope API",
"x-saddle-sensitivity": "explicit secret paths redacted including descendants",
"x-saddle-missing": "required; empty object before business update"
},
"callInfo": {
"type": "object",
"additionalProperties": true,
"properties": {
"spanId": {
"type": "string",
"description": "actual child span hex",
"x-saddle-source": "actual child span hex",
"x-saddle-phase": "actual child",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"attempt": {
"type": "integer",
"description": "actual child attempt",
"x-saddle-source": "actual child attempt",
"x-saddle-phase": "actual child",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"service": {
"type": "string",
"description": "actual child CallContext service",
"x-saddle-source": "actual child CallContext service",
"x-saddle-phase": "actual child",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"method": {
"type": "string",
"description": "actual child CallContext operation",
"x-saddle-source": "actual child CallContext operation",
"x-saddle-phase": "actual child",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"callId": {
"type": "string",
"description": "not currently bound; unavailable for child",
"x-saddle-source": "not currently bound; unavailable for child",
"x-saddle-phase": "reserved; currently unavailable",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"parentCallId": {
"type": "string",
"description": "not currently bound; unavailable for child",
"x-saddle-source": "not currently bound; unavailable for child",
"x-saddle-phase": "reserved; currently unavailable",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"kind": {
"type": "string",
"description": "not currently bound; unavailable for child",
"x-saddle-source": "not currently bound; unavailable for child",
"x-saddle-phase": "reserved; currently unavailable",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"dependencyAlias": {
"type": "string",
"description": "not currently bound; unavailable for child",
"x-saddle-source": "not currently bound; unavailable for child",
"x-saddle-phase": "reserved; currently unavailable",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"contractSha256": {
"type": "string",
"description": "not currently bound; unavailable for child",
"x-saddle-source": "not currently bound; unavailable for child",
"x-saddle-phase": "reserved; currently unavailable",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
}
}
},
"executionInfo": {
"type": "object",
"additionalProperties": true,
"properties": {
"taskId": {
"type": "string",
"description": "actual Tokio task id",
"x-saddle-source": "actual Tokio task id",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"scopeId": {
"type": "string",
"description": "actual checked DB scope id",
"x-saddle-source": "actual checked DB scope id",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
},
"phase": {
"type": "string",
"description": "actual request phase",
"x-saddle-source": "actual request phase",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
},
"dbOperation": {
"type": "string",
"description": "registered actual DB operation",
"x-saddle-source": "registered actual DB operation",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
}
},
"required": [
"phase"
]
},
"authInfo": {
"type": "object",
"additionalProperties": true,
"properties": {
"state": {
"type": "string",
"description": "unavailable; framework does not establish business user authentication",
"x-saddle-source": "unavailable; framework does not establish business user authentication",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
},
"subjectId": {
"description": "original profuseGwContext.userInfo.userId",
"x-saddle-source": "original profuseGwContext.userInfo.userId",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "subject identifier",
"x-saddle-missing": "omit; _meta.fieldStates records absence"
}
},
"required": [
"state"
]
},
"_meta": {
"type": "object",
"additionalProperties": true,
"properties": {
"revision": {
"type": "string",
"description": "current immutable view revision",
"x-saddle-source": "current immutable view revision",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required"
},
"scopeId": {
"type": "string",
"description": "current immutable view scopeId",
"x-saddle-source": "current immutable view scopeId",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "omit"
},
"fieldStates": {
"type": "object",
"description": "same borrowed selector; not_established/not_applicable/unavailable",
"x-saddle-source": "same borrowed selector; not_established/not_applicable/unavailable",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required",
"additionalProperties": true
},
"redactions": {
"type": "object",
"description": "explicit business secret path metadata",
"x-saddle-source": "explicit business secret path metadata",
"x-saddle-phase": "all",
"x-saddle-writable": "framework",
"x-saddle-sensitivity": "ordinary",
"x-saddle-missing": "required",
"additionalProperties": true
}
},
"required": [
"revision",
"fieldStates",
"redactions"
]
}
},
"required": [
"schemaVersion",
"business",
"applicationInfo",
"traceInfo",
"requestInfo",
"interfaceInfo",
"inputInfo",
"callInfo",
"executionInfo",
"authInfo",
"_meta"
]
}
},
"required": [
"recordSchema",
"timestamp",
"level",
"event",
"context",
"payload"
]
}