Skip to content

Queue: file, cancel and unblock a task from Cloudflare with no machine #13490

In progress

Description

@dezren39

Today. The edge files the issue of a prompt, a note or a bug itself, but the queue task that makes the fleet pick it up is a machine's: it is held (prompt.enqueue, triage.enqueue) until a machine reports and files it through the fleet binary. Cancelling and unblocking a task are a machine's too and are refused while none can be reached. So with the laptop away a prompt is filed and nobody works on it.

Why it was left. Filing a task is the fleet binary's: its keys, its de-duplication and its events are not something to copy into SQL at the edge.

What done looks like.

  • A task can be filed, cancelled and unblocked with no machine reporting, by the same rules the fleet binary applies. The route the repository already points at is the fleet's hosted front door (pkgs/fleet/hosted-worker, its queue door; impl(fleet-hosted): service skeleton — Worker route modules, RP-token auth validation, tenancy mapping, health/capabilities #12583 and the issues beside it), which is local-only today; when it is deployed the edge calls it. The alternative is the fleet's rules as a library both use.
  • With no machine reporting, a prompt sent from the app has its queue task within a minute, and Machines, "Waiting for a machine" stays empty for it.
  • task.cancel and task.unblock are done at the edge and say so on the Cloudflare screen.
  • Tests in pm-stack/console/test/edge.test.ts for each, with the machine away.

Design record: doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/.


Generated by Claude Code

Activity

  1. added
    next
    app/pm-stack
    source/agent
    app/fleet
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleetapp/pm-stackkind/enhancementnextsource/agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions