Expand description
消费意图(SpendIntent):agent 发起的一笔待判定消费。
这是闸的输入。闸只看意图,不看 agent 内部怎么想的——决策循环(GLM/脚本) 负责产出意图,闸负责判定与扣减。
语义对齐 mist-core 的 SpendIntent(delegation_hash/recipient/amount/category/
spend_nonce),差异点:
- Wanning 用人类可读的
delegation_id/merchant_id/category字符串, 不做哈希(链下审计要人能读懂;Mist 哈希是为了进电路)。 nonce防重放(同一 nonce_scope 内只许成功消费一次),Mist 侧同名同义。