Skip to main content

yc-bench task-assign

Assign an available employee to a planned task. The employee must meet the task’s tier requirements and must not be currently assigned to another task.

Usage

yc-bench task-assign <task-id> <employee-id>

Parameters

task-id
string
required
The ID of the task to assign (must be in “planned” status)
employee-id
string
required
The ID of the employee to assign to the task

Response

Returns the updated task with assignment details:
taskId
string
Task identifier
employeeId
string
Assigned employee identifier
employeeName
string
Name of assigned employee
employeeTier
string
Employee’s skill tier
status
string
Updated task status (remains “planned” until dispatched)
estimatedCompletion
string
Estimated completion date based on employee productivity (ISO 8601 format)
message
string
Confirmation message

Example

# Assign employee to task
yc-bench task-assign task_123 emp_002
Example Output
{
  "taskId": "task_123",
  "employeeId": "emp_002",
  "employeeName": "Bob Smith",
  "employeeTier": "mid",
  "status": "planned",
  "estimatedCompletion": "2024-02-10T00:00:00.000Z",
  "message": "Bob Smith assigned to task. Use 'task-dispatch' to start work."
}

Validation Rules

  • Task must be in “planned” status (not in_progress or completed)
  • Employee must not be currently assigned to another task
  • Employee tier must meet or exceed task’s required tier
  • Both task and employee must exist

Error Cases

  • Task not found - Invalid task ID
  • Employee not found - Invalid employee ID
  • Employee busy - Employee already assigned to another task
  • Insufficient tier - Employee tier below task requirement
  • Invalid status - Task not in “planned” status

Build docs developers (and LLMs) love