Skip to content

feat: add next-task endpoint for one-task agent loops #395

@joryirving

Description

@joryirving

Parent: #392

Add an endpoint that returns exactly one task for an agent.

Behavior:

  • worker checks PR follow-up first
  • otherwise worker gets one claimable issue in the requested lane
  • otherwise worker gets idle
  • groomer gets one grooming task when available
  • otherwise groomer gets idle

Acceptance:

  • no LLM required to check for work
  • one task per response
  • compatible with existing queue logic
  • idle response lets any harness stop cleanly

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement.priority/p0Critical priority.status/backlogNot ready for worker pickup yet.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions