Skip to content

Add a smoke check to docs/smoke-checklist.md that exercises the next-task end-to-end happy path and an idle path (mirror #422

@itsmiso-ai

Description

@itsmiso-ai

Parent umbrella issue: #408
Source audit: Weekly tech debt audit: dispatch - 2026-06-17
Source audit date: 2026-06-17

Original recommendation

P3 — Add a smoke check to docs/smoke-checklist.md that exercises the next-task end-to-end happy path and an idle path (mirroring the existing health/automation/sync checks).

Matched top finding

The new next-task test file has 9 cases focused on happy-path task shaping, but no contract test for:

  • the idle task shape returned when neither queue nor PR-fix has work
  • the mode=groom groom-task-shape
  • the ?includeClaimed=true / ?includeRenovate=true query parameter handling

The tasks/report test file is similarly happy-path only (12 cases, no auth, no persistence).

Evidence:

  • wc -l src/app/api/agents/[agentName]/next-task/route.test.ts → not super high; count of it( cases: 9.
  • wc -l src/app/api/agents/[agentName]/tasks/report/route.test.ts → 12 cases, all validation only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditAudit, review, or investigation work.priority/p3Low 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