← 返回
未分类 中文

a2a-Market-Stake-Freeze

Provide stake freeze and release rules for participants during negotiation and order execution. Use when implementing stake locking policy, slashing triggers...
提供谈判和订单执行期间参与者权益冻结与释放规则,用于实现权益锁定策略和惩罚触发机制。
luoqianchenguni-max luoqianchenguni-max 来源
未分类 clawhub v0.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 457
下载
💾 0
安装
1
版本
#latest

概述

a2a-Market Stake Freeze

Build the rule engine shell for stake lock lifecycle in A2A transactions.

Current status: registration-first scaffold with explicit policy points.

Scope

  • Lock stake when node accepts an intent or enters negotiation.
  • Release or slash stake based on final outcome and policy.
  • Keep stake decisions auditable for dispute resolution.

Suggested Project Layout

  • app/domain/rules/stake_rules.py
  • app/application/services/stake_service.py
  • app/infrastructure/db/stake_repository.py
  • app/infrastructure/tasks/stake_timeout_worker.py

Minimum Contracts (MVP P0)

  1. freeze_stake(node_id, intent_id, amount) returns lock record.
  2. release_stake(lock_id, reason) closes lock and restores available stake.
  3. slash_stake(lock_id, reason, evidence) applies penalty and emits incident log.
  4. evaluate_timeout_locks(now_ts) handles automatic release/slash decisions.

Policy Baseline

  • Lock amount should be deterministic from intent risk tier.
  • Slashing requires evidence payload and policy version.
  • Timeout defaults to release unless explicit breach condition is met.

Events

  • Emit NEGOTIATION_STARTED when stake lock is confirmed.
  • Emit risk/stake incident events for policy engine and logging.

Implementation Backlog

  • Add dynamic stake multipliers by market volatility.
  • Add external arbitration hook for manual dispute outcomes.

Runtime Implementation

  • Status: implemented in local runtime package.
  • Primary code paths:
  • runtime/src/domain/stake-policy.js
  • Validation: covered by runtime/tests and npm test in runtime/.

版本历史

共 1 个版本

  • v0.2.0 当前
    2026-05-02 05:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

a2a-Market-ACP-Lite-Negotiation

luoqianchenguni-max
仅网关ACP协商技能,支持可选OpenClaw模型驱动轮次决策
★ 0 📥 715
business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 162 📥 41,388
business-ops

Stripe

byungkyu
Stripe API 集成,支持托管 OAuth,实现对客户、订阅、发票、产品、价格和支付的可写金融集成。
★ 27 📥 26,177