task_decision_invalid: The decision is not usable
The decision does not have the exact dynamo-task-decision-v1 shape, names another task than the route's, or names another delivery than the milestone's claim. Nothing is recorded. A body that is not exactly {decision, signer, signature}, or a decision that does not say the route's own word (accept on the accept route, reject on the reject route), answers 400 invalid_request first.
What to do
- The decision is malformed (dynamo-task-decision-v1: taskId, milestoneId, accept or reject, the delivery's hash, standard, issuedAt) or names another delivery.
On the wire
HTTP 409, error type state_error.
With Dynamo-Error-Detail: 1 (1.8.0 task routes):
{
"error": "state",
"reason": "task_decision_invalid",
"detail": "…",
"errorDetail": {
"type": "state_error",
"code": "task_decision_invalid",
"message": "…",
"param": "task",
"doc_url": "…/errors/task_decision_invalid.md",
"fix": "the decision is malformed (dynamo-task-decision-v1: taskId, milestoneId, accept or reject, the delivery's hash, standard, issuedAt) or names another delivery"
}
}
See the Task Allowance and all error codes.