From 7bf03112ccb9f80ed3c7509b34ba6e671cc074f9 Mon Sep 17 00:00:00 2001 From: Greg Soucy Date: Fri, 22 May 2026 12:57:01 -0400 Subject: [PATCH] Add shared Trust trace schema --- schemas/trust/_shared/trace.schema.json | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 schemas/trust/_shared/trace.schema.json diff --git a/schemas/trust/_shared/trace.schema.json b/schemas/trust/_shared/trace.schema.json new file mode 100644 index 0000000..f06314f --- /dev/null +++ b/schemas/trust/_shared/trace.schema.json @@ -0,0 +1,36 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://schemas.commandlayer.org/schemas/v1.0.0/trust/_shared/trace.schema.json", + "title": "CLAS Trace", + "description": "Shared trace envelope for correlating requests and receipts across agents, hops, workflows, solver fills, and spans.", + "type": "object", + "additionalProperties": false, + "required": [ + "trace_id" + ], + "properties": { + "trace_id": { + "type": "string", + "maxLength": 128 + }, + "span_id": { + "type": "string", + "maxLength": 128 + }, + "parent_span_id": { + "type": "string", + "maxLength": 128 + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string", + "maxLength": 512 + } + } + } +}