π¦ ClawHub
a2a-Market-Stake-Freeze
by @luoqianchenguni-max
Provide stake freeze and release rules for participants during negotiation and order execution. Use when implementing stake locking policy, slashing triggers...
TERMINAL
clawhub install a2a-market-stake-freezeπ About This Skill
name: a2a-market-stake-freeze description: Provide stake freeze and release rules for participants during negotiation and order execution. Use when implementing stake locking policy, slashing triggers, and stake lifecycle integration with orders.
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
Suggested Project Layout
app/domain/rules/stake_rules.pyapp/application/services/stake_service.pyapp/infrastructure/db/stake_repository.pyapp/infrastructure/tasks/stake_timeout_worker.pyMinimum 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
Events
NEGOTIATION_STARTED when stake lock is confirmed.Implementation Backlog
Runtime Implementation
runtime/src/domain/stake-policy.jsruntime/tests and npm test in runtime/.