Skip to content

pm-console edge: do what is held for a machine itself, once it can #13831

Backlog

Description

@dezren39

Today. When the edge is turned away while doing something the owner asked (GitHub's allowance used up, or its token refused for that kind of action), the action is handed to a machine: done at once if one is reporting, otherwise kept in the held list until one is. Held items are only ever done by a machine. With no machine, they wait, and after a day they are dropped and said to have been.

Since #13570 the edge keeps to the time GitHub gives for asking again, which can be most of an hour. So with the laptop away and the hour's allowance spent, a rank, a comment or a reply the owner makes is kept "for a machine" although the edge itself could do it a few minutes later.

What done looks like.

  • When the edge can act again (GitHub's time has come, or the kind is no longer refused) it does what it holds that it could do itself, oldest first and in order by what each is about, with no machine involved. The owner sees the same outcome in "What you did" as for anything done late.
  • Nothing is done twice. This is the hard part, and the rule already in force is that a name keeps to the side that first took it:
    • an item a machine may already have been handed (it was in a sync answer the machine has not reported back on) is not the edge's to do;
    • the edge takes an item out of the held list, and marks its name as its own, before it starts, so a machine that reports in the meantime is not handed it;
    • if the edge is turned away again, the item goes back as it was.
  • Tests at the edge for each of those, including a machine reporting half-way through, and one in the real Worker runtime (scripts/edge-smoke.ts) with the stand-in GitHub turning calls away and then answering.

Where. pm-stack/console/edge/src/edge.ts: the held list (keep, heldList), once() and the a:<id> records (running, done, given), and the alarm. Related: #13398 (order between a held item and a newer one the edge does itself).

Design record: doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/ (sections of 2026-11-23T18:10Z and 22:40Z).


Generated by Claude Code

Activity

  1. added
    kind/feature
    app/pm-stack
    source/agent
    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/pm-stackkind/featuresource/agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions