aiworkhub_task_amend_pending
Amend a pending, never-launched task card to widen scope or fix validation before first launch, avoiding archive-and-recreate.
Instructions
MANAGER WRITE: amend a pending card that no request was ever launched for.
Use this to widen a card's scope or fix its validation before its first
launch, instead of archiving and re-creating it. allowed_writes and
read_first are ADD-ONLY (deduplicated; the existing entries stay);
validation REPLACES the whole list, with validation_roles aligned
one-to-one (omitted roles default to generic, which a bugfix/refactor/...
card's work_kind role gate refuses exactly as aiworkhub_task_create does). Paths and
commands obey the same rules as aiworkhub_task_create and
aiworkhub_task_reject_review's amendments, with the same refusal codes.
Only a never-launched pending card qualifies: a launched, claimed,
archived or non-pending card is refused with
task_amend_pending_refused:<card_already_launched|card_claimed| card_archived|card_not_pending:<state>|task_not_found>. The amendment is
recorded as a card_amended_pending event in the card history (the card
stays launchable) and the reply carries the new card_sha256.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>"
},
"name": "aiworkhub_task_amend_pending"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runner | No | Replacement runner (folded like task_create); refused as runner_reserved:<r> for the manager identity or runner_route_absent:<r> without a workforce route. Reply carries runner_before/runner_after. | |
| task_id | Yes | Id of the pending, never-launched card to amend. | |
| read_first | No | Existing repo files (optional :N or :N-M suffix) to ADD to read_first; omit to leave them. | |
| validation | No | Shell-free commands that REPLACE the card's validation list; omit to keep it. | |
| allowed_writes | No | Repo-relative paths or globs to ADD to allowed_writes; omit to leave them. | |
| validation_roles | No | One role per validation command; only with validation. Omit for generic roles. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||