Skip to content

fleet queue: an early heartbeat shortens the current holder’s lease #13553

Done

Description

@dezren39

Part of #13272 workstream A. I am taking this narrow implementation. A packet is deliberately omitted because the change is already owned and this investigation has no authority to mutate production queue rows.

At main cb4f687, the native Turso heartbeat replaces the task and lease deadlines with now + extend_seconds. The hosted queue verb does the same. Given an agent-next four-hour claim and a default heartbeat after five minutes, the new deadline is twenty minutes after claim. This is a source-derived counterexample. No production heartbeat or production incident is claimed. #7617 fixed initial claim duration and lane handling; this concerns subsequent heartbeats.

Acceptance: A heartbeat preserves the later of the current deadline and now plus the requested extension. Task and lease agree when the heartbeat succeeds. A heartbeat for an old holder must not renew a new holder's claim. Exercise early and late renewal, repeated calls and a replaced holder in isolated fixtures. Document the effective guarantee and generation boundary under DOC-01. Keep the claim defaults unchanged.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T18:02:12Z",
    "session_id": "ses_e5df674e79effe2F3DaBNgJH5M",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "bed2e7501577c91d440eedc2fd9a54f1a02a71ec"
    },
    "auth_subject": "code-j",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    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/fleetstatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions