示例

示例

此处说明当前公开记录、证据路径和支持边界。

  • 记录 UAIX-EXAM-0052
  • 小路 /zh-cn/examples/
  • 使用 规范公共记录

文件状态

公共标准页面 作为当前公共标准记录的一部分在 UAIX 上发布
代码
UAIX-EXAM-0052
表面
示例
使用权
公开且可链接

如何使用本页

使用此页面作为示例消息,您可以将其与您自己的实现和验证器结果进行比较。

为什么例子很重要

示例将 UAI-1 从书面规范转变为团队可以与运行代码进行比较的内容。它们展示了配置文件声明、出处、有效负载结构和预期结果如何在真实交换中出现。

灯具如何连接到标准记录

  • 每个示例都应该映射回相关的 UAI-1 行为。
  • 每个灯具应与已发布的 模式
  • 每个示例都应该指向匹配的 注册表 标识符,以便读者知道它所执行的配置文件。
  • 验证器应该能够使用相同的装置作为回归基线。

实施者应如何使用示例

  1. 将您的候选人消息与最近发布的赛程进行比较。
  2. 在审核期间保持可读的键控JSON,并仅将优化的传输表格用作传输选择。
  3. 使用示例向下游团队解释预期的成功和失败模式。

目前的固定角色

  • uai.intent.request.v1 显示在任何响应或运行时映射发生之前声明的请求的样子。
  • uai.intent.response.v1 显示附加到先前请求的成功或信息丰富的结果的预期公开形式。
  • uai.capability.statement.v1 显示面向发现的功能元数据如何声明支持的配置文件和操作。
  • uai.error.v1 显示了当验证或执行无法顺利进行时读者应该预期的稳定的公共故障形状。
  • uai.conformance.result.v1 显示验证器生成的证据记录,可以进入 CI 日志、审查数据包和发行说明。

赛程如何成为公开发布的证据

  • 通过运行匹配的夹具 验证器 在调用实现一致性之前。
  • 将所得证据带入相关部门 实施轨道 跟踪,以便读者可以看到实际发生了什么。
  • 使用 变更日志新闻 当装置更新改变集成期望时。
  • 使用 参考资料与贡献者 当您需要围绕已发布的测试样例稳定的发现和引用链接时。

已发布的示例目录

下面的示例是验证器和公共注册表记录使用的版本控制装置。

示例与夹具

已发布的 UAI-1 消息示例

这些示例是带版本控制的夹具,用于入门、互操作性检查和验证器回归测试。每条有键 JSON 记录都与其所演练的配置文件相配对。

UAI-REGI-0001

UAI 意图请求 v1

使用完整的 UAI-1 信封、信任元数据和可审查的交付控制,针对已声明主题请求一个明确结果或异步任务。

配置文件
uai.intent.request.v1
结果
通过
REST 路由
/wp-json/uaix/v1/examples/uai.intent.request.v1
可读夹具 有键 JSON uai.intent.request.v1-keyed.json
{
    "uai_version": "1.0",
    "profile": "uai.intent.request.v1",
    "message_id": "msg-2026-04-22-0001",
    "source": {
        "type": "agent",
        "id": "agent.alpha",
        "label": "Agent Alpha",
        "uri": "https://agents.alpha.example/runtime",
        "did": "did:web:agents.alpha.example",
        "role": "requesting-agent",
        "implementation": "alpha-runtime-2.4.1"
    },
    "target": {
        "type": "service",
        "id": "uaix.gateway",
        "label": "UAIX 闸门way",
        "uri": "https://uaix.org/wp-json/uaix/v1/discovery",
        "did": "did:web:uaix.org",
        "role": "public-record-gateway",
        "implementation": "uaix-core-0.4.0"
    },
    "conversation": {
        "conversation_id": "conv-2026-04-22-uaix-001",
        "turn_id": "turn-001",
        "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
        "sequence": 1
    },
    "delivery": {
        "mode": "async",
        "priority": "interactive",
        "expires_at": "2026-04-22T16:05:00Z",
        "reply_requested": true,
        "ack_required": true
    },
    "trust": {
        "channel": "credentialed",
        "auth_scheme": "did+vc",
        "principal": "did:web:agents.alpha.example",
        "credential_ref": "https://agents.alpha.example/credentials/uai-interop.json",
        "signature_ref": "https://agents.alpha.example/signatures/msg-2026-04-22-0001.jws",
        "replay_window_id": "rw-2026-04-22-0001"
    },
    "body": {
        "intent": "resolve-profile",
        "subject": "uai.task.status.v1",
        "requested_profile": "uai.task.status.v1",
        "parameters": {
            "include_schema": true,
            "include_example": true,
            "include_field_registry": true
        },
        "constraints": [
            "public-record-only",
            "trace-linked",
            "validator-ready"
        ],
        "response_profile": "uai.intent.response.v1"
    },
    "provenance": {
        "trace_id": "trace-7f3a2d",
        "parent_trace_id": "trace-root-uaix-2026",
        "issued_at": "2026-04-22T16:00:00Z",
        "log_ref": "urn:uaix:log:2026:0001",
        "agent_id": "agent.alpha",
        "model_id": "model.alpha.reasoner-2",
        "confidence": 0.98,
        "lineage": [
            {
                "stage": "request-composition",
                "actor_id": "agent.alpha",
                "model_id": "model.alpha.reasoner-2",
                "note": "Requested the async task-status profile and matching field registry."
            }
        ]
    },
    "integrity": {
        "version": 2,
        "algorithm": "sha256",
        "canonicalization": "jcs",
        "checksum": "sha256:dd8a9d16c9226cc9d1f4888a4d2bbcbf06b5b4b8"
    },
    "extensions": [
        {
            "namespace": "urn:uaix:ext:delivery",
            "purpose": "Explicit async request handling and expiry semantics.",
            "critical": false
        }
    ]
}
传输格式 优化版(无键)JSON uai.intent.request.v1-keyless.json
[
    "1.0",
    "uai.intent.request.v1",
    "msg-2026-04-22-0001",
    [
        "agent",
        "agent.alpha",
        "Agent Alpha",
        "https://agents.alpha.example/runtime",
        "did:web:agents.alpha.example",
        "requesting-agent",
        "alpha-runtime-2.4.1"
    ],
    [
        "service",
        "uaix.gateway",
        "UAIX 闸门way",
        "https://uaix.org/wp-json/uaix/v1/discovery",
        "did:web:uaix.org",
        "public-record-gateway",
        "uaix-core-0.4.0"
    ],
    [
        "conv-2026-04-22-uaix-001",
        "turn-001",
        null,
        "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
        1
    ],
    [
        "async",
        "interactive",
        "2026-04-22T16:05:00Z",
        true,
        true
    ],
    [
        "credentialed",
        "did+vc",
        "did:web:agents.alpha.example",
        "https://agents.alpha.example/credentials/uai-interop.json",
        "https://agents.alpha.example/signatures/msg-2026-04-22-0001.jws",
        "rw-2026-04-22-0001"
    ],
    [
        "resolve-profile",
        "uai.task.status.v1",
        "uai.task.status.v1",
        {
            "include_schema": true,
            "include_example": true,
            "include_field_registry": true
        },
        [
            "public-record-only",
            "trace-linked",
            "validator-ready"
        ],
        "uai.intent.response.v1"
    ],
    [
        "trace-7f3a2d",
        "trace-root-uaix-2026",
        "2026-04-22T16:00:00Z",
        "urn:uaix:log:2026:0001",
        "agent.alpha",
        "model.alpha.reasoner-2",
        0.98,
        [
            [
                "request-composition",
                "agent.alpha",
                "model.alpha.reasoner-2",
                "Requested the async task-status profile and matching field registry."
            ]
        ]
    ],
    [
        2,
        "sha256",
        "jcs",
        "sha256:dd8a9d16c9226cc9d1f4888a4d2bbcbf06b5b4b8"
    ],
    [
        [
            "urn:uaix:ext:delivery",
            "Explicit async request handling and expiry semantics.",
            false
        ]
    ]
]

字段顺序遵循有键 JSON 示例、已发布的模式顺序以及公共字段注册表。

UAI-REGI-0002

UAI 意图响应 v1

在保持会话连续性、信任元数据和可发布证据的同时,为已声明请求返回直接结果或已接受任务的交接。

配置文件
uai.intent.response.v1
结果
通过
REST 路由
/wp-json/uaix/v1/examples/uai.intent.response.v1
可读夹具 有键 JSON uai.intent.response.v1-keyed.json
{
    "uai_version": "1.0",
    "profile": "uai.intent.response.v1",
    "message_id": "msg-2026-04-22-0002",
    "source": {
        "type": "service",
        "id": "uaix.gateway",
        "label": "UAIX 闸门way",
        "uri": "https://uaix.org/wp-json/uaix/v1/discovery",
        "did": "did:web:uaix.org",
        "role": "public-record-gateway",
        "implementation": "uaix-core-0.4.0"
    },
    "target": {
        "type": "agent",
        "id": "agent.alpha",
        "label": "Agent Alpha",
        "uri": "https://agents.alpha.example/runtime",
        "did": "did:web:agents.alpha.example",
        "role": "requesting-agent",
        "implementation": "alpha-runtime-2.4.1"
    },
    "conversation": {
        "conversation_id": "conv-2026-04-22-uaix-001",
        "turn_id": "turn-002",
        "parent_message_id": "msg-2026-04-22-0001",
        "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-3e5f4f6f98c36d91-01",
        "sequence": 2
    },
    "delivery": {
        "mode": "async",
        "priority": "interactive",
        "expires_at": "2026-04-22T16:05:00Z",
        "reply_requested": false,
        "ack_required": true,
        "task_ref": "task-2026-04-22-0001"
    },
    "trust": {
        "channel": "signed-envelope",
        "auth_scheme": "jws",
        "principal": "did:web:uaix.org",
        "credential_ref": "https://uaix.org/.well-known/uai.json",
        "signature_ref": "https://uaix.org/signatures/msg-2026-04-22-0002.jws",
        "replay_window_id": "rw-2026-04-22-0002"
    },
    "body": {
        "status": "accepted",
        "subject": "uai.task.status.v1",
        "request_message_id": "msg-2026-04-22-0001",
        "result": {
            "task_id": "task-2026-04-22-0001",
            "status_profile": "uai.task.status.v1",
            "status_url": "https://uaix.org/wp-json/uaix/v1/examples/uai.task.status.v1",
            "field_registry_url": "https://uaix.org/wp-json/uaix/v1/field-registry"
        },
        "notices": [
            "async-task-started",
            "follow-status-profile"
        ],
        "task_ref": "task-2026-04-22-0001"
    },
    "provenance": {
        "trace_id": "trace-7f3a2d",
        "parent_trace_id": "trace-root-uaix-2026",
        "issued_at": "2026-04-22T16:00:03Z",
        "log_ref": "urn:uaix:log:2026:0002",
        "agent_id": "uaix.gateway",
        "model_id": "model.uaix.dispatch-1",
        "confidence": 0.99,
        "lineage": [
            {
                "stage": "request-routing",
                "actor_id": "uaix.gateway",
                "model_id": "model.uaix.dispatch-1",
                "note": "Accepted the request and created an async status record."
            }
        ]
    },
    "integrity": {
        "version": 2,
        "algorithm": "sha256",
        "canonicalization": "jcs",
        "checksum": "sha256:45eaaf9d6225e9ba3ac7d45d742ac1f6f7cf6dfc"
    },
    "extensions": [
        {
            "namespace": "urn:uaix:ext:delivery",
            "purpose": "Async handoff and task reference support.",
            "critical": false
        }
    ]
}
传输格式 优化版(无键)JSON uai.intent.response.v1-keyless.json
[
    "1.0",
    "uai.intent.response.v1",
    "msg-2026-04-22-0002",
    [
        "service",
        "uaix.gateway",
        "UAIX 闸门way",
        "https://uaix.org/wp-json/uaix/v1/discovery",
        "did:web:uaix.org",
        "public-record-gateway",
        "uaix-core-0.4.0"
    ],
    [
        "agent",
        "agent.alpha",
        "Agent Alpha",
        "https://agents.alpha.example/runtime",
        "did:web:agents.alpha.example",
        "requesting-agent",
        "alpha-runtime-2.4.1"
    ],
    [
        "conv-2026-04-22-uaix-001",
        "turn-002",
        "msg-2026-04-22-0001",
        "00-4bf92f3577b34da6a3ce929d0e0e4736-3e5f4f6f98c36d91-01",
        2
    ],
    [
        "async",
        "interactive",
        "2026-04-22T16:05:00Z",
        false,
        true,
        "task-2026-04-22-0001"
    ],
    [
        "signed-envelope",
        "jws",
        "did:web:uaix.org",
        "https://uaix.org/.well-known/uai.json",
        "https://uaix.org/signatures/msg-2026-04-22-0002.jws",
        "rw-2026-04-22-0002"
    ],
    [
        "accepted",
        "uai.task.status.v1",
        "msg-2026-04-22-0001",
        {
            "task_id": "task-2026-04-22-0001",
            "status_profile": "uai.task.status.v1",
            "status_url": "https://uaix.org/wp-json/uaix/v1/examples/uai.task.status.v1",
            "field_registry_url": "https://uaix.org/wp-json/uaix/v1/field-registry"
        },
        [
            "async-task-started",
            "follow-status-profile"
        ],
        "task-2026-04-22-0001"
    ],
    [
        "trace-7f3a2d",
        "trace-root-uaix-2026",
        "2026-04-22T16:00:03Z",
        "urn:uaix:log:2026:0002",
        "uaix.gateway",
        "model.uaix.dispatch-1",
        0.99,
        [
            [
                "request-routing",
                "uaix.gateway",
                "model.uaix.dispatch-1",
                "Accepted the request and created an async status record."
            ]
        ]
    ],
    [
        2,
        "sha256",
        "jcs",
        "sha256:45eaaf9d6225e9ba3ac7d45d742ac1f6f7cf6dfc"
    ],
    [
        [
            "urn:uaix:ext:delivery",
            "Async handoff and task reference support.",
            false
        ]
    ]
]

字段顺序遵循有键 JSON 示例、已发布的模式顺序以及公共字段注册表。

UAI-REGI-0003

UAI 能力声明 v1

发布能力、端点、安全性、异步工作流和扩展支持元数据,使相邻系统能够解析某个实现究竟支持什么。

配置文件
uai.capability.statement.v1
结果
通过
REST 路由
/wp-json/uaix/v1/examples/uai.capability.statement.v1
可读夹具 有键 JSON uai.capability.statement.v1-keyed.json
{
    "uai_version": "1.0",
    "profile": "uai.capability.statement.v1",
    "message_id": "msg-2026-04-22-0003",
    "source": {
        "type": "service",
        "id": "uaix.gateway",
        "label": "UAIX 闸门way",
        "uri": "https://uaix.org/wp-json/uaix/v1/discovery",
        "did": "did:web:uaix.org",
        "role": "capability-publisher",
        "implementation": "uaix-core-0.4.0"
    },
    "target": {
        "type": "public-record",
        "id": "uaix.registry",
        "label": "UAIX 注册表",
        "uri": "https://uaix.org/en-us/registry/",
        "did": "did:web:uaix.org",
        "role": "public-standards-record",
        "implementation": "uaix-authority-theme-2.1.0"
    },
    "conversation": {
        "conversation_id": "conv-2026-04-22-uaix-capability-001",
        "turn_id": "turn-001",
        "sequence": 1
    },
    "delivery": {
        "mode": "event",
        "priority": "routine",
        "expires_at": "2026-05-22T00:00:00Z",
        "reply_requested": false,
        "ack_required": false
    },
    "trust": {
        "channel": "signed-envelope",
        "auth_scheme": "jws",
        "principal": "did:web:uaix.org",
        "credential_ref": "https://uaix.org/.well-known/uai.json",
        "signature_ref": "https://uaix.org/signatures/msg-2026-04-22-0003.jws",
        "replay_window_id": "rw-2026-04-22-0003"
    },
    "body": {
        "capability_id": "uaix.gateway.discovery",
        "version": "1.1.0",
        "operations": [
            "resolve-profile",
            "publish-capability",
            "validate-message"
        ],
        "input_profiles": [
            "uai.intent.request.v1",
            "uai.capability.statement.v1"
        ],
        "output_profiles": [
            "uai.intent.response.v1",
            "uai.error.v1",
            "uai.conformance.result.v1"
        ],
        "async_profiles": [
            "uai.task.status.v1"
        ],
        "security_schemes": [
            {
                "id": "did-vc",
                "type": "credentialed",
                "binding": "did+vc over HTTPS"
            },
            {
                "id": "jws-envelope",
                "type": "signed-envelope",
                "binding": "detached JWS reference"
            }
        ],
        "transport_bindings": [
            "https-json-envelope.v1",
            "https-json-keyless.v1"
        ],
        "conformance_levels": [
            "L1-core-envelope",
            "L2-exchange-participant",
            "L3-async-workflow",
            "L4-public-record-publisher"
        ],
        "error_codes": [
            "invalid_message",
            "unknown_profile",
            "auth_required",
            "task_not_found",
            "conformance_failed"
        ],
        "endpoints": [
            {
                "kind": "discovery",
                "url": "https://uaix.org/wp-json/uaix/v1/discovery",
                "method": "GET"
            },
            {
                "kind": "validate",
                "url": "https://uaix.org/wp-json/uaix/v1/validate",
                "method": "POST"
            },
            {
                "kind": "field-registry",
                "url": "https://uaix.org/wp-json/uaix/v1/field-registry",
                "method": "GET"
            },
            {
                "kind": "transport-bindings",
                "url": "https://uaix.org/wp-json/uaix/v1/transport-bindings",
                "method": "GET"
            },
            {
                "kind": "trust-channels",
                "url": "https://uaix.org/wp-json/uaix/v1/trust-channels",
                "method": "GET"
            },
            {
                "kind": "conformance-levels",
                "url": "https://uaix.org/wp-json/uaix/v1/conformance-levels",
                "method": "GET"
            },
            {
                "kind": "error-registry",
                "url": "https://uaix.org/wp-json/uaix/v1/error-registry",
                "method": "GET"
            }
        ],
        "extension_namespaces": [
            "urn:uaix:ext:delivery",
            "urn:uaix:ext:evidence"
        ],
        "implementation_tracks": [
            "WordPress Publication Track",
            ".NET Bridge Track"
        ]
    },
    "provenance": {
        "trace_id": "trace-7f3a2d",
        "issued_at": "2026-04-22T16:00:07Z",
        "log_ref": "urn:uaix:log:2026:0003",
        "agent_id": "uaix.gateway",
        "model_id": "model.uaix.discovery-1",
        "confidence": 1,
        "lineage": [
            {
                "stage": "capability-publication",
                "actor_id": "uaix.gateway",
                "model_id": "model.uaix.discovery-1",
                "note": "Published current discovery, validation, transport, trust, conformance, and field-registry surfaces."
            }
        ]
    },
    "integrity": {
        "version": 2,
        "algorithm": "sha256",
        "canonicalization": "jcs",
        "checksum": "sha256:72bb178efc2221fb5c9d50bcb1fdab37d4ca2f4d"
    },
    "extensions": [
        {
            "namespace": "urn:uaix:ext:evidence",
            "purpose": "Links machine-readable capability claims to public implementation evidence.",
            "critical": false
        }
    ]
}
传输格式 优化版(无键)JSON uai.capability.statement.v1-keyless.json
[
    "1.0",
    "uai.capability.statement.v1",
    "msg-2026-04-22-0003",
    [
        "service",
        "uaix.gateway",
        "UAIX 闸门way",
        "https://uaix.org/wp-json/uaix/v1/discovery",
        "did:web:uaix.org",
        "capability-publisher",
        "uaix-core-0.4.0"
    ],
    [
        "public-record",
        "uaix.registry",
        "UAIX 注册表",
        "https://uaix.org/en-us/registry/",
        "did:web:uaix.org",
        "public-standards-record",
        "uaix-authority-theme-2.1.0"
    ],
    [
        "conv-2026-04-22-uaix-capability-001",
        "turn-001",
        null,
        null,
        1
    ],
    [
        "event",
        "routine",
        "2026-05-22T00:00:00Z",
        false,
        false
    ],
    [
        "signed-envelope",
        "jws",
        "did:web:uaix.org",
        "https://uaix.org/.well-known/uai.json",
        "https://uaix.org/signatures/msg-2026-04-22-0003.jws",
        "rw-2026-04-22-0003"
    ],
    [
        "uaix.gateway.discovery",
        "1.1.0",
        [
            "resolve-profile",
            "publish-capability",
            "validate-message"
        ],
        [
            "uai.intent.request.v1",
            "uai.capability.statement.v1"
        ],
        [
            "uai.intent.response.v1",
            "uai.error.v1",
            "uai.conformance.result.v1"
        ],
        [
            "uai.task.status.v1"
        ],
        [
            {
                "id": "did-vc",
                "type": "credentialed",
                "binding": "did+vc over HTTPS"
            },
            {
                "id": "jws-envelope",
                "type": "signed-envelope",
                "binding": "detached JWS reference"
            }
        ],
        [
            "https-json-envelope.v1",
            "https-json-keyless.v1"
        ],
        [
            "L1-core-envelope",
            "L2-exchange-participant",
            "L3-async-workflow",
            "L4-public-record-publisher"
        ],
        [
            "invalid_message",
            "unknown_profile",
            "auth_required",
            "task_not_found",
            "conformance_failed"
        ],
        [
            {
                "kind": "discovery",
                "url": "https://uaix.org/wp-json/uaix/v1/discovery",
                "method": "GET"
            },
            {
                "kind": "validate",
                "url": "https://uaix.org/wp-json/uaix/v1/validate",
                "method": "POST"
            },
            {
                "kind": "field-registry",
                "url": "https://uaix.org/wp-json/uaix/v1/field-registry",
                "method": "GET"
            },
            {
                "kind": "transport-bindings",
                "url": "https://uaix.org/wp-json/uaix/v1/transport-bindings",
                "method": "GET"
            },
            {
                "kind": "trust-channels",
                "url": "https://uaix.org/wp-json/uaix/v1/trust-channels",
                "method": "GET"
            },
            {
                "kind": "conformance-levels",
                "url": "https://uaix.org/wp-json/uaix/v1/conformance-levels",
                "method": "GET"
            },
            {
                "kind": "error-registry",
                "url": "https://uaix.org/wp-json/uaix/v1/error-registry",
                "method": "GET"
            }
        ],
        [
            "urn:uaix:ext:delivery",
            "urn:uaix:ext:evidence"
        ],
        [
            "WordPress Publication Track",
            ".NET Bridge Track"
        ]
    ],
    [
        "trace-7f3a2d",
        null,
        "2026-04-22T16:00:07Z",
        "urn:uaix:log:2026:0003",
        "uaix.gateway",
        "model.uaix.discovery-1",
        1,
        [
            [
                "capability-publication",
                "uaix.gateway",
                "model.uaix.discovery-1",
                "Published current discovery, validation, transport, trust, conformance, and field-registry surfaces."
            ]
        ]
    ],
    [
        2,
        "sha256",
        "jcs",
        "sha256:72bb178efc2221fb5c9d50bcb1fdab37d4ca2f4d"
    ],
    [
        [
            "urn:uaix:ext:evidence",
            "Links machine-readable capability claims to public implementation evidence.",
            false
        ]
    ]
]

字段顺序遵循有键 JSON 示例、已发布的模式顺序以及公共字段注册表。

UAI-REGI-0004

UAI 错误 v1

使用带类型、具备重试信息和路径级细节的 problem-details 风格信封来报告验证、传输、授权或执行失败。

配置文件
uai.error.v1
结果
通过
REST 路由
/wp-json/uaix/v1/examples/uai.error.v1
可读夹具 有键 JSON uai.error_.v1-keyed.json
{
    "uai_version": "1.0",
    "profile": "uai.error.v1",
    "message_id": "msg-2026-04-22-0004",
    "source": {
        "type": "service",
        "id": "uaix.validator",
        "label": "UAIX 验证器",
        "uri": "https://uaix.org/en-us/tools/validator/",
        "did": "did:web:uaix.org",
        "role": "conformance-checker",
        "implementation": "uaix-core-0.4.0"
    },
    "target": {
        "type": "agent",
        "id": "agent.alpha",
        "label": "Agent Alpha",
        "uri": "https://agents.alpha.example/runtime",
        "did": "did:web:agents.alpha.example",
        "role": "requesting-agent",
        "implementation": "alpha-runtime-2.4.1"
    },
    "conversation": {
        "conversation_id": "conv-2026-04-22-uaix-001",
        "turn_id": "turn-003",
        "parent_message_id": "msg-2026-04-22-0001",
        "sequence": 3
    },
    "delivery": {
        "mode": "sync",
        "priority": "interactive",
        "expires_at": "2026-04-22T16:05:00Z",
        "reply_requested": false,
        "ack_required": false
    },
    "trust": {
        "channel": "signed-envelope",
        "auth_scheme": "jws",
        "principal": "did:web:uaix.org",
        "credential_ref": "https://uaix.org/.well-known/uai.json",
        "signature_ref": "https://uaix.org/signatures/msg-2026-04-22-0004.jws",
        "replay_window_id": "rw-2026-04-22-0004"
    },
    "body": {
        "type": "https://uaix.org/problems/unknown-profile",
        "title": "Unknown public profile",
        "detail": "The declared profile is not present in the published UAI-1 registry.",
        "status": 404,
        "code": "unknown_profile",
        "retryable": false,
        "instance": "https://uaix.org/errors/msg-2026-04-22-0004",
        "errors": [
            {
                "path": "$.profile",
                "code": "unknown_profile",
                "message": "Use a published UAI-1 profile from the registry."
            }
        ],
        "next_step": "解析 the current registry entry before retrying validation."
    },
    "provenance": {
        "trace_id": "trace-7f3a2d",
        "parent_trace_id": "trace-root-uaix-2026",
        "issued_at": "2026-04-22T16:00:11Z",
        "log_ref": "urn:uaix:log:2026:0004",
        "agent_id": "uaix.validator",
        "model_id": "model.uaix.validator-1",
        "confidence": 1,
        "lineage": [
            {
                "stage": "validation-failure",
                "actor_id": "uaix.validator",
                "model_id": "model.uaix.validator-1",
                "note": "Rejected an unpublished profile identifier."
            }
        ]
    },
    "integrity": {
        "version": 2,
        "algorithm": "sha256",
        "canonicalization": "jcs",
        "checksum": "sha256:3f9a1f0c7a23a4921af647e7dbf52aeed8f2f11f"
    },
    "extensions": []
}
传输格式 优化版(无键)JSON uai.error_.v1-keyless.json
[
    "1.0",
    "uai.error.v1",
    "msg-2026-04-22-0004",
    [
        "service",
        "uaix.validator",
        "UAIX 验证器",
        "https://uaix.org/en-us/tools/validator/",
        "did:web:uaix.org",
        "conformance-checker",
        "uaix-core-0.4.0"
    ],
    [
        "agent",
        "agent.alpha",
        "Agent Alpha",
        "https://agents.alpha.example/runtime",
        "did:web:agents.alpha.example",
        "requesting-agent",
        "alpha-runtime-2.4.1"
    ],
    [
        "conv-2026-04-22-uaix-001",
        "turn-003",
        "msg-2026-04-22-0001",
        null,
        3
    ],
    [
        "sync",
        "interactive",
        "2026-04-22T16:05:00Z",
        false,
        false
    ],
    [
        "signed-envelope",
        "jws",
        "did:web:uaix.org",
        "https://uaix.org/.well-known/uai.json",
        "https://uaix.org/signatures/msg-2026-04-22-0004.jws",
        "rw-2026-04-22-0004"
    ],
    [
        "https://uaix.org/problems/unknown-profile",
        "Unknown public profile",
        "The declared profile is not present in the published UAI-1 registry.",
        404,
        "unknown_profile",
        false,
        "https://uaix.org/errors/msg-2026-04-22-0004",
        [
            [
                "$.profile",
                "unknown_profile",
                "Use a published UAI-1 profile from the registry."
            ]
        ],
        "解析 the current registry entry before retrying validation."
    ],
    [
        "trace-7f3a2d",
        "trace-root-uaix-2026",
        "2026-04-22T16:00:11Z",
        "urn:uaix:log:2026:0004",
        "uaix.validator",
        "model.uaix.validator-1",
        1,
        [
            [
                "validation-failure",
                "uaix.validator",
                "model.uaix.validator-1",
                "Rejected an unpublished profile identifier."
            ]
        ]
    ],
    [
        2,
        "sha256",
        "jcs",
        "sha256:3f9a1f0c7a23a4921af647e7dbf52aeed8f2f11f"
    ],
    []
]

字段顺序遵循有键 JSON 示例、已发布的模式顺序以及公共字段注册表。

UAI-REGI-0005

UAI 一致性结果 v1

在同一公共消息族中记录验证器输出、制品引用和问题摘要,使证据能够与发布记录一同传递。

配置文件
uai.conformance.result.v1
结果
通过
REST 路由
/wp-json/uaix/v1/examples/uai.conformance.result.v1
可读夹具 有键 JSON uai.conformance.result.v1-keyed.json
{
    "uai_version": "1.0",
    "profile": "uai.conformance.result.v1",
    "message_id": "msg-2026-04-22-0005",
    "source": {
        "type": "service",
        "id": "uaix.validator",
        "label": "UAIX 验证器",
        "uri": "https://uaix.org/en-us/tools/validator/",
        "did": "did:web:uaix.org",
        "role": "conformance-checker",
        "implementation": "uaix-core-0.4.0"
    },
    "target": {
        "type": "message",
        "id": "msg-2026-04-22-0001",
        "label": "UAI 意图请求 v1",
        "uri": "https://uaix.org/wp-json/uaix/v1/examples/uai.intent.request.v1",
        "did": "did:web:uaix.org",
        "role": "checked-record",
        "implementation": "uai.intent.request.v1"
    },
    "conversation": {
        "conversation_id": "conv-2026-04-22-uaix-validator-001",
        "turn_id": "turn-001",
        "parent_message_id": "msg-2026-04-22-0001",
        "sequence": 1
    },
    "delivery": {
        "mode": "sync",
        "priority": "routine",
        "expires_at": "2026-04-29T16:00:15Z",
        "reply_requested": false,
        "ack_required": false
    },
    "trust": {
        "channel": "signed-envelope",
        "auth_scheme": "jws",
        "principal": "did:web:uaix.org",
        "credential_ref": "https://uaix.org/.well-known/uai.json",
        "signature_ref": "https://uaix.org/signatures/msg-2026-04-22-0005.jws",
        "replay_window_id": "rw-2026-04-22-0005"
    },
    "body": {
        "status": "pass",
        "checked_profile": "uai.intent.request.v1",
        "issues": [],
        "summary": {
            "error_count": 0,
            "warning_count": 0,
            "checked_at": "2026-04-22T16:00:15Z"
        },
        "artifacts": {
            "catalog_url": "https://uaix.org/wp-json/uaix/v1/catalog",
            "schema_url": "https://uaix.org/wp-json/uaix/v1/schemas/uai.intent.request.v1",
            "registry_url": "https://uaix.org/wp-json/uaix/v1/registry/uai.intent.request.v1",
            "example_url": "https://uaix.org/wp-json/uaix/v1/examples/uai.intent.request.v1",
            "field_registry_url": "https://uaix.org/wp-json/uaix/v1/field-registry",
            "transport_bindings_url": "https://uaix.org/wp-json/uaix/v1/transport-bindings",
            "trust_channels_url": "https://uaix.org/wp-json/uaix/v1/trust-channels",
            "conformance_levels_url": "https://uaix.org/wp-json/uaix/v1/conformance-levels",
            "error_registry_url": "https://uaix.org/wp-json/uaix/v1/error-registry",
            "validate_url": "https://uaix.org/wp-json/uaix/v1/validate"
        },
        "target_message_ref": "msg-2026-04-22-0001"
    },
    "provenance": {
        "trace_id": "trace-7f3a2d",
        "parent_trace_id": "trace-root-uaix-2026",
        "issued_at": "2026-04-22T16:00:15Z",
        "log_ref": "urn:uaix:log:2026:0005",
        "agent_id": "uaix.validator",
        "model_id": "model.uaix.validator-1",
        "confidence": 1,
        "lineage": [
            {
                "stage": "conformance-export",
                "actor_id": "uaix.validator",
                "model_id": "model.uaix.validator-1",
                "note": "生成了一份可移植的一致性记录,其中包含本次检查使用的确切传输、信任、错误和一致性引用。"
            }
        ]
    },
    "integrity": {
        "version": 2,
        "algorithm": "sha256",
        "canonicalization": "jcs",
        "checksum": "sha256:8e0a46018d6f1cfaef0b7ab9de52e8503b119a91"
    },
    "extensions": [
        {
            "namespace": "urn:uaix:ext:evidence",
            "purpose": "将一致性记录链接到精确的目录工件。",
            "critical": false
        }
    ]
}
传输格式 优化版(无键)JSON uai.conformance.result.v1-keyless.json
[
    "1.0",
    "uai.conformance.result.v1",
    "msg-2026-04-22-0005",
    [
        "service",
        "uaix.validator",
        "UAIX 验证器",
        "https://uaix.org/en-us/tools/validator/",
        "did:web:uaix.org",
        "conformance-checker",
        "uaix-core-0.4.0"
    ],
    [
        "message",
        "msg-2026-04-22-0001",
        "UAI 意图请求 v1",
        "https://uaix.org/wp-json/uaix/v1/examples/uai.intent.request.v1",
        "did:web:uaix.org",
        "checked-record",
        "uai.intent.request.v1"
    ],
    [
        "conv-2026-04-22-uaix-validator-001",
        "turn-001",
        "msg-2026-04-22-0001",
        null,
        1
    ],
    [
        "sync",
        "routine",
        "2026-04-29T16:00:15Z",
        false,
        false
    ],
    [
        "signed-envelope",
        "jws",
        "did:web:uaix.org",
        "https://uaix.org/.well-known/uai.json",
        "https://uaix.org/signatures/msg-2026-04-22-0005.jws",
        "rw-2026-04-22-0005"
    ],
    [
        "pass",
        "uai.intent.request.v1",
        [],
        {
            "error_count": 0,
            "warning_count": 0,
            "checked_at": "2026-04-22T16:00:15Z"
        },
        {
            "catalog_url": "https://uaix.org/wp-json/uaix/v1/catalog",
            "schema_url": "https://uaix.org/wp-json/uaix/v1/schemas/uai.intent.request.v1",
            "registry_url": "https://uaix.org/wp-json/uaix/v1/registry/uai.intent.request.v1",
            "example_url": "https://uaix.org/wp-json/uaix/v1/examples/uai.intent.request.v1",
            "field_registry_url": "https://uaix.org/wp-json/uaix/v1/field-registry",
            "transport_bindings_url": "https://uaix.org/wp-json/uaix/v1/transport-bindings",
            "trust_channels_url": "https://uaix.org/wp-json/uaix/v1/trust-channels",
            "conformance_levels_url": "https://uaix.org/wp-json/uaix/v1/conformance-levels",
            "error_registry_url": "https://uaix.org/wp-json/uaix/v1/error-registry",
            "validate_url": "https://uaix.org/wp-json/uaix/v1/validate"
        },
        "msg-2026-04-22-0001"
    ],
    [
        "trace-7f3a2d",
        "trace-root-uaix-2026",
        "2026-04-22T16:00:15Z",
        "urn:uaix:log:2026:0005",
        "uaix.validator",
        "model.uaix.validator-1",
        1,
        [
            [
                "conformance-export",
                "uaix.validator",
                "model.uaix.validator-1",
                "生成了一份可移植的一致性记录,其中包含本次检查使用的确切传输、信任、错误和一致性引用。"
            ]
        ]
    ],
    [
        2,
        "sha256",
        "jcs",
        "sha256:8e0a46018d6f1cfaef0b7ab9de52e8503b119a91"
    ],
    [
        [
            "urn:uaix:ext:evidence",
            "将一致性记录链接到精确的目录工件。",
            false
        ]
    ]
]

字段顺序遵循有键 JSON 示例、已发布的模式顺序以及公共字段注册表。

UAI-REGI-0006

UAI 任务状态 v1

发布长时任务状态、进度、阻塞因素和结果引用,使异步代理工作保持可审计,而不是消失在私有工作流状态中。

配置文件
uai.task.status.v1
结果
通过
REST 路由
/wp-json/uaix/v1/examples/uai.task.status.v1
可读夹具 有键 JSON uai.task_.status.v1-keyed.json
{
    "uai_version": "1.0",
    "profile": "uai.task.status.v1",
    "message_id": "msg-2026-04-22-0006",
    "source": {
        "type": "service",
        "id": "uaix.gateway",
        "label": "UAIX 闸门way",
        "uri": "https://uaix.org/wp-json/uaix/v1/discovery",
        "did": "did:web:uaix.org",
        "role": "task-publisher",
        "implementation": "uaix-core-0.4.0"
    },
    "target": {
        "type": "agent",
        "id": "agent.alpha",
        "label": "Agent Alpha",
        "uri": "https://agents.alpha.example/runtime",
        "did": "did:web:agents.alpha.example",
        "role": "requesting-agent",
        "implementation": "alpha-runtime-2.4.1"
    },
    "conversation": {
        "conversation_id": "conv-2026-04-22-uaix-001",
        "turn_id": "turn-004",
        "parent_message_id": "msg-2026-04-22-0002",
        "sequence": 4
    },
    "delivery": {
        "mode": "event",
        "priority": "interactive",
        "expires_at": "2026-04-22T16:20:00Z",
        "reply_requested": false,
        "ack_required": false,
        "task_ref": "task-2026-04-22-0001"
    },
    "trust": {
        "channel": "signed-envelope",
        "auth_scheme": "jws",
        "principal": "did:web:uaix.org",
        "credential_ref": "https://uaix.org/.well-known/uai.json",
        "signature_ref": "https://uaix.org/signatures/msg-2026-04-22-0006.jws",
        "replay_window_id": "rw-2026-04-22-0006"
    },
    "body": {
        "task_id": "task-2026-04-22-0001",
        "state": "working",
        "subject": "uai.task.status.v1",
        "progress": 60,
        "status_message": "字段注册表已解析,模式资料包已组装,正在准备发布证据。",
        "result_profile": "uai.intent.response.v1",
        "result_ref": "https://uaix.org/wp-json/uaix/v1/examples/uai.intent.response.v1",
        "blocking_reasons": [],
        "updated_fields": [
            "body.progress",
            "body.status_message",
            "body.result_ref"
        ]
    },
    "provenance": {
        "trace_id": "trace-7f3a2d",
        "parent_trace_id": "trace-root-uaix-2026",
        "issued_at": "2026-04-22T16:00:20Z",
        "log_ref": "urn:uaix:log:2026:0006",
        "agent_id": "uaix.gateway",
        "model_id": "model.uaix.dispatch-1",
        "confidence": 0.97,
        "lineage": [
            {
                "stage": "task-status-update",
                "actor_id": "uaix.gateway",
                "model_id": "model.uaix.dispatch-1",
                "note": "为异步请求发布了一条执行中的状态更新。"
            }
        ]
    },
    "integrity": {
        "version": 2,
        "algorithm": "sha256",
        "canonicalization": "jcs",
        "checksum": "sha256:14a53b2b665690ad9ac1b85793a6335cb55bb67e"
    },
    "extensions": [
        {
            "namespace": "urn:uaix:ext:delivery",
            "purpose": "显式的异步任务更新路由。",
            "critical": false
        }
    ]
}
传输格式 优化版(无键)JSON uai.task_.status.v1-keyless.json
[
    "1.0",
    "uai.task.status.v1",
    "msg-2026-04-22-0006",
    [
        "service",
        "uaix.gateway",
        "UAIX 闸门way",
        "https://uaix.org/wp-json/uaix/v1/discovery",
        "did:web:uaix.org",
        "task-publisher",
        "uaix-core-0.4.0"
    ],
    [
        "agent",
        "agent.alpha",
        "Agent Alpha",
        "https://agents.alpha.example/runtime",
        "did:web:agents.alpha.example",
        "requesting-agent",
        "alpha-runtime-2.4.1"
    ],
    [
        "conv-2026-04-22-uaix-001",
        "turn-004",
        "msg-2026-04-22-0002",
        null,
        4
    ],
    [
        "event",
        "interactive",
        "2026-04-22T16:20:00Z",
        false,
        false,
        "task-2026-04-22-0001"
    ],
    [
        "signed-envelope",
        "jws",
        "did:web:uaix.org",
        "https://uaix.org/.well-known/uai.json",
        "https://uaix.org/signatures/msg-2026-04-22-0006.jws",
        "rw-2026-04-22-0006"
    ],
    [
        "task-2026-04-22-0001",
        "working",
        "uai.task.status.v1",
        60,
        "字段注册表已解析,模式资料包已组装,正在准备发布证据。",
        "uai.intent.response.v1",
        "https://uaix.org/wp-json/uaix/v1/examples/uai.intent.response.v1",
        [],
        [
            "body.progress",
            "body.status_message",
            "body.result_ref"
        ]
    ],
    [
        "trace-7f3a2d",
        "trace-root-uaix-2026",
        "2026-04-22T16:00:20Z",
        "urn:uaix:log:2026:0006",
        "uaix.gateway",
        "model.uaix.dispatch-1",
        0.97,
        [
            [
                "task-status-update",
                "uaix.gateway",
                "model.uaix.dispatch-1",
                "为异步请求发布了一条执行中的状态更新。"
            ]
        ]
    ],
    [
        2,
        "sha256",
        "jcs",
        "sha256:14a53b2b665690ad9ac1b85793a6335cb55bb67e"
    ],
    [
        [
            "urn:uaix:ext:delivery",
            "显式的异步任务更新路由。",
            false
        ]
    ]
]

字段顺序遵循有键 JSON 示例、已发布的模式顺序以及公共字段注册表。

下一步

继续前往 验证器 将这些示例支持的期望转化为可重复的验证证据,然后将结果记录带入 实施轨道