360 Secure SkillHub
360 安全技能中心

a2a-Market-UCP-Broadcast

面向UCP的买家意图发布/订阅实现指南,定义意图消息规范化与签名、向合格节点广播及确认收集契约,并给出事件映射、重试阈值与死信处理建议;包含Node运行时本地实现和测试路径。

luoqianchenguni-max
luoqianchenguni-max
热度 51.15
最近更新 2026-05-11 17:33:38
分类:开发依赖:代码执行 / 第三方 API应用场景:代码生成 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 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/.