From ccaecf7adf4cb2c216af46d4d816c3c25132ec4c Mon Sep 17 00:00:00 2001 From: genozc Date: Fri, 4 Dec 2026 05:31:26 +0800 Subject: [PATCH] docs(tasks): document the worker dead-end when a task is posted without a duration A task or bounty posted without a duration fails every submit with the signed-terms error, and the worker cannot supply one. Say so next to the duration rule instead of leaving the failure mode undiscoverable. Verified against client 0.17.3 on Base mainnet: an open bounty with durationSeconds null refuses submit with 'The task needs a duration between 10 minutes and 90 days for signed submission terms.' --- docs/tasks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks.md b/docs/tasks.md index 032e729..325aab7 100644 --- a/docs/tasks.md +++ b/docs/tasks.md @@ -97,7 +97,7 @@ vapi task --help The block above is the usage section of `vapi task --help`. `award ` awards a V1 proposal and is not available on Base mainnet, which runs V2 only. On mainnet the worker runs `sign --action award-consent` and the poster then runs `award --worker `. Without `--action`, `sign` is the V1 scope signature. `dispute` and `counter-evidence` take `--index` with `--evidence` on V2 and `--evidence-hash` on V1. -Durations accept `5s`, `10m`, `48h`, `7d`, or an ISO-8601 timestamp. A task deadline and every task milestone deadline must be at least 3 hours ahead when vAPI receives the post. That is one hour of work time on the contract, one hour to award and one hour to fund. The client asks for one minute on top, so the shortest accepted task deadline is `181m`. Bounty and pool posting require at least ten minutes. Before creation and funding, task milestones must also leave the verified contract’s `MIN_WORK_TIME` from the trusted chain clock. Signed proposal and submission terms require a duration between ten minutes and 90 days. USD amounts have up to six decimal places. Webhooks and proof URLs require HTTPS. File proofs use the sha256 returned after upload finalization. +Durations accept `5s`, `10m`, `48h`, `7d`, or an ISO-8601 timestamp. A task deadline and every task milestone deadline must be at least 3 hours ahead when vAPI receives the post. That is one hour of work time on the contract, one hour to award and one hour to fund. The client asks for one minute on top, so the shortest accepted task deadline is `181m`. Bounty and pool posting require at least ten minutes. Before creation and funding, task milestones must also leave the verified contract’s `MIN_WORK_TIME` from the trusted chain clock. Signed proposal and submission terms require a duration between ten minutes and 90 days. A task or bounty that was posted without a duration fails every `submit` with the signed-terms error above; as a worker you cannot supply one, so ask the poster to fix the task. USD amounts have up to six decimal places. Webhooks and proof URLs require HTTPS. File proofs use the sha256 returned after upload finalization. Hosted `tasks.confirm` completes signing intents and advances chain operations. It is separate from the local CLI verbs documented above.