role-model
Reference

Canonical schemas reference

Field-level reference coverage for the canonical role-model schemas.

This page is the compact inventory of the canonical JSON Schemas under protocol/schemas/.

Endpoint and profile schemas

SchemaPurposeKey fields
endpoint-identity.schema.jsonidentifies the concrete routable endpointendpoint_id, endpoint_kind, provider_kind, serving_source, model_id, runtime_version, optional deployment details
declared-capability-profile.schema.jsonprovider-declared compatibility claimscapabilities, modalities, max_context_tokens, tool_calling, supports_embeddings, platform_constraints
observed-performance-profile.schema.jsonmeasured endpoint behaviorsample window, sample size, latency, throughput, failure, cost, freshness, confidence
capability-taxonomy.schema.jsonstable capability vocabularyversion, capabilities[], each with id, family, description

Role and task schemas

SchemaPurposeKey fields
role-definition.schema.jsonexecution persona and operating contractsupported tasks, required/preferred/forbidden capabilities, tool policy, overrides, output contracts
role-binding.schema.jsonendpoint-specific role activationrole_id, endpoint_id, status, policy_overrides, effective_capabilities, effective_task_types
task-definition.schema.jsonunit of work contractrequired inputs, required/preferred capabilities, quality metrics, allowed roles, benchmark suites
task-execution-profile.schema.jsonrole-and-task-specific execution patchtask_type, role_id, required/preferred capabilities, routing_policy_patch

Routing schemas

SchemaPurposeKey fields
routing-policy.schema.jsonrouting constraints and optimization intentstrategy, compute preference, capability/modality requirements, budget, privacy, targets
router-decision.schema.jsonexplainable routing outcomepolicy snapshot, eligibility, scored candidates, chosen endpoint, fallbacks, selection reasons, evidence flags

Observability schemas

SchemaPurposeKey fields
trace-span.schema.jsontimed execution phasestrace IDs, span IDs, span type, start/end timestamps, status, attributes
trace-event.schema.jsonpoint lifecycle eventsevent IDs, routing IDs, event type, payload
usage-event.schema.jsonaccounting and execution outcomerequest, endpoint, provider, tokens, latency, optional cost and error class

Invariants to remember

  • identity anchors profile records
  • observed profiles are endpoint-specific and evidence-bearing
  • policy is an input; decision is an output
  • traces and usage link back to routing via shared IDs
  • schema meaning is canonical even when a specific implementation only uses part of the available surface

On this page