360 Secure SkillHub
360 安全技能中心

a2a-Market-UCP-Broadcast

这是通用商务协议(UCP)的买家意向广播框架,核心功能包括构建标准化意向载荷、消息签名、向合格节点广播并跟踪交付ACK,将响应流导入报价服务;提供构建、签名、广播、收集ACK等MVP核心方法,触发对应事件,含确定性序列化、重试控制等防护规则。适用于搭建UCP发布订阅匹配、报价接收系统,输入意向数据、私钥等,输出签名对象、回执ID、节点ACK状态等,当前优先保障互操作性。

luoqianchenguni-max
luoqianchenguni-max
热度 51.28
最近更新 2026-05-11 17:33:38
分类:开发依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:代码生成 / API 集成 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add a2a-market-ucp-broadcast
Metadata
name
a2a-market-ucp-broadcast
description
Implement UCP broadcast of buyer intents to eligible nodes, including message signing, routing, and ack handling. Use when building universal commerce protocol publish/subscribe behavior for matching and quote intake.

a2a-Market UCP Broadcast

Define the transport and protocol shell for intent broadcast in UCP.

Current status: framework release for registration. Prioritize interoperability contracts over optimization.

Scope

  • Build intent payload schema and canonical signing routine.
  • Broadcast to eligible nodes and track delivery acknowledgements.
  • Feed response stream into quote intake service.

Suggested Project Layout

  • app/protocol/ucp/intent_message.py
  • app/protocol/ucp/signer.py
  • app/application/services/broadcast_service.py
  • app/infrastructure/ws/ucp_gateway.py

Minimum Contracts (MVP P0)

  1. build_intent(payload) normalizes and version-tags message.
  2. sign_intent(intent, private_key) returns detached signature object.
  3. broadcast(intent_id, target_nodes) returns dispatch receipt ids.
  4. collect_acks(intent_id, timeout_ms) returns per-node ack status.

Event Mapping

  • Emit INTENT_CREATED before dispatch.
  • Emit INTENT_BROADCASTED after fan-out completes.
  • Emit NODE_RESPONDED when quote/ack arrives.

Guardrails

  • Keep canonical JSON serialization deterministic for signing.
  • Record per-node retry counters and stop after configured threshold.
  • Attach protocol version in every envelope.

Implementation Backlog

  • Add adaptive node selection based on reputation percentile.
  • Add dead-letter handling for nodes with repeated timeouts.

Runtime Implementation

  • Status: implemented in local runtime package.
  • Primary code paths:
  • runtime/src/protocol/ucp-client.js
  • runtime/src/application/market-agent.js
  • Validation: covered by runtime/tests and npm test in runtime/.