Expand description
taskfast settle — poster signs an EIP-712 DistributionApproval and
POSTs it to /tasks/{id}/settle to release escrowed funds.
Pairs with server bead am-iyp6. The signing surface is identical to the
one pinned in taskfast_chains::tempo::sign_distribution. The domain
(chain_id, verifying_contract) prefers the task’s per-task
settlement_domain (venue-scoped — a Tempo Zone escrow for a zone-bound
task; gh#865, ADR 0011 §5) and falls back to the global
GET /agents/me/readiness domain when the task carries none, so the same
binary signs correctly on L1 testnet/mainnet and in a zone without
client-side chain config.
Flow: parse UUID → get_task (pull escrow_id + settlement_deadline +
settlement_domain) → readiness only if no per-task domain → sign →
POST /tasks/{id}/settle. Dry-run skips the final POST but still signs
so the envelope carries a real signature the caller can audit.
Error mapping delegates to the shared map_api_error (401|403→Auth,
409|422→Validation); signing/keystore failures surface as Wallet
(exit 5) via SigningError/KeystoreError → CmdError.