Skip to content

Runtime Control Profiles

Runtime control profiles are standard NNRP profiles. They define compact control-plane frames and runtime-object references for cancellation, priority, deadlines, partial results, backpressure, cache references, route hints, and trace context without wrapping those signals in JSON or another application protocol.

These profiles are part of the standard profile registry, alongside tensor and token. Implementations must not treat them as private extension names.

Reading Path

  1. Start with Value Registries for frozen codes, roles, object kinds, cache scopes, and flag masks.
  2. Continue with Control Frame Metadata for cancellation, scheduling, backpressure, route hints, trace context, and drop reasons.
  3. Finish with Object and Cache Metadata for runtime object declarations, object references, object deltas, releases, and cache references.

Profile Registry

profile_idProfileScope
0x0100runtime.controlOperation control frames, scheduling updates, pressure signals, route hints, trace context, and drop reasons.
0x0101runtime.objectRuntime object declaration, object references, object deltas, release semantics, cost metadata, and ownership metadata.
0x0102cache.referenceCache references, cache misses, invalidation, lease anchors, reuse scope, and miss diagnostics.
0x0103coding.agentSubagent dispatch hints, tool artifact routing, task cancellation, and execution preferences.
0x0104multimodal.artifactTyped image, audio, video, document, and tool artifacts with partial result streams.
0x0105render.runtimeFrame deadlines, partial region results, supersession, render-stage trace context, and drop reasons.

Frame Type Registry

Preview4 control and object frames extend the NNRP/1 message type registry. The common header stays the same 40-byte header; each frame below defines its own fixed metadata layout.

CodeFrameDirectionProfileFixed metadata
0x30CANCELC -> S or S -> Cruntime.controlControl Request Metadata
0x31ABORTC -> S or S -> Cruntime.controlControl Request Metadata
0x32PRIORITY_UPDATEC -> S or S -> Cruntime.controlScheduling Metadata
0x33DEADLINEC -> S or S -> Cruntime.controlScheduling Metadata
0x34EXPIRE_ATC -> S or S -> Cruntime.controlScheduling Metadata
0x35SUPERSEDEC -> S or S -> Cruntime.controlSupersede Metadata
0x36BUDGET_UPDATEC -> S or S -> Cruntime.controlBudget Metadata
0x37PROGRESSS -> C or C -> Sruntime.controlProgress Metadata
0x38PARTIAL_RESULTS -> C or C -> Sruntime.controlPartial Result Metadata
0x39BACKPRESSUREC -> S or S -> Cruntime.controlPressure Metadata
0x3ACREDIT_UPDATEC -> S or S -> Cruntime.controlPressure Metadata
0x3BCAPABILITY_NEGOTIATIONC -> S or S -> Cruntime.controlCapability Metadata
0x3CDEGRADE_PROFILEC -> S or S -> Cruntime.controlCapability Metadata
0x3DROUTE_HINTC -> S or S -> Cruntime.controlRoute Hint Metadata
0x3EEXECUTION_HINTC -> S or S -> Cruntime.controlRoute Hint Metadata
0x3FTRACE_CONTEXTC -> S or S -> Cruntime.controlTrace Context Metadata
0x40RESULT_DROP_REASONC -> S or S -> Cruntime.controlResult Drop Metadata
0x41OBJECT_DECLAREC -> S or S -> Cruntime.objectObject Descriptor Metadata
0x42OBJECT_REFC -> S or S -> Cruntime.objectObject Reference Metadata
0x43OBJECT_RELEASEC -> S or S -> Cruntime.objectObject Release Metadata
0x44OBJECT_PATCHC -> S or S -> Cruntime.objectObject Delta Metadata
0x45OBJECT_DELTAC -> S or S -> Cruntime.objectObject Delta Metadata
0x46CACHE_REFERENCEC -> S or S -> Ccache.referenceCache Reference Metadata
0x47CACHE_MISSC -> S or S -> Ccache.referenceCache Miss Metadata
0x48ERROR_RECOVERABLEC -> S or S -> Cruntime.controlRecoverable Error Metadata
0x49RETRY_AFTERC -> S or S -> Cruntime.controlRetry After Metadata

CACHE_INVALIDATE keeps its existing NNRP/1 message type and gains the cache.reference capability requirement when used as part of this profile.

Capability Tokens

Capability tokenFrames
control.cancel_abortCANCEL, ABORT
control.supersedeSUPERSEDE
control.priority_updatePRIORITY_UPDATE
control.deadline_expireDEADLINE, EXPIRE_AT
control.progress_partialPROGRESS, PARTIAL_RESULT
control.credit_backpressureBACKPRESSURE, CREDIT_UPDATE
control.capability_costsCAPABILITY_NEGOTIATION, DEGRADE_PROFILE
control.route_execution_hintROUTE_HINT, EXECUTION_HINT
control.trace_contextTRACE_CONTEXT
control.result_drop_reasonRESULT_DROP_REASON
control.recoverable_errorERROR_RECOVERABLE, RETRY_AFTER
object.lifecycleOBJECT_DECLARE, OBJECT_REF, OBJECT_RELEASE
object.deltaOBJECT_PATCH, OBJECT_DELTA
object.costObject descriptor cost fields
object.ownershipObject descriptor ownership fields
cache.referenceCACHE_REFERENCE, CACHE_MISS, CACHE_INVALIDATE

NNRP Documentation