Skip to content

fleet queue complete: readback disagrees with GitHub on merged PR (task 24434 / darwin-nix#2235) #16645

Done

Description

@developing-today-fleet

Found by lane 0007-E (charlie ADVANCE, 2026-11-29) while completing queue task 24434 (triage dezren39/darwin-nix#2235).

Facts (gh CLI, two firsthand reads): PR dezren39/darwin-nix#2242 is MERGED (mergedAt 2026-11-29T01:47:18Z, merge commit c759f3e70d1d62aa70dca78ae8eae3c534eb3e8d, head 29fb3cbf32abeee460c717bbfdb0963573632517); issue #2235 CLOSED 2026-11-29T06:14:07Z. fleet queue verify-disposition 2235 --repo dezren39/darwin-nix --pr 2242 returns verdict merged_verified, gate would pass (checked 2026-11-29T06:15:11Z).

But fleet queue complete 24434 rejects every well-formed disposition, with mutually inconsistent readback claims across attempts minutes apart:

  1. verdict merged_verified: 'no pull in the readback is merged (issue bin: provider-catalog-sync and record still use the pre-#2083 raw-path entry-point check — invoked via any symlink they silently no-op with exit 0 #2235)'
  2. verdict closed_verified: 'issue bin: provider-catalog-sync and record still use the pre-#2083 raw-path entry-point check — invoked via any symlink they silently no-op with exit 0 #2235 is closed with open/unmerged linked PR aggregator(health): dns/aa section stamps are never validated — a garbage dns generatedAt renders ageMs NaN/null, a future aa generatedAt renders age 0 (maximally fresh) for as long as the skew lasts #2242; record a follow_up...'
  3. closed_verified + follow_up successor_pr 2242: 'linked PR aggregator(health): dns/aa section stamps are never validated — a garbage dns generatedAt renders ageMs NaN/null, a future aa generatedAt renders age 0 (maximally fresh) for as long as the skew lasts #2242 is not in the readback; the disposition must cover every PR the completion claims'

The readback alternately treats the same merged PR as open/unmerged and as absent. Task 24434 remains claimed (lease to 2026-11-29T10:10:51Z) with no GitHub-side work remaining; completion is blocked solely on this readback. Expected: the complete gate's readback agrees with verify-disposition --pr and with GitHub.

{
  "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-29T06:34:22Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

  • fleet queue complete for a task whose PR is merged and issue closed either succeeds with that disposition or fails with a single consistent, accurate reason
  • The readback used by complete agrees with GitHub state (PR merged / issue closed) at decision time, verified against gh
  • A regression test or recorded reproduction covers the merged-PR + closed-issue completion path

Activity

  1. added
    kind/bug
    on Nov 29, 2026
  2. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · CLAIM — lane 0037-F (alpha DRIVE queue-draw + author lane, 2026-11-29 00:37 CST run)

    Queue draw this lane: priority rung served #14942 (CF-2 D1 cutover) — premise-checked firsthand (issue + all comments): remaining acceptance is the live supervised D1 cutover gated on child #14987 (OPEN, status/blocked), repeatedly stood down by lanes 1822-E / oc-code-05 / 2052-K / oc-code-01 / any-o / 0937-E / 1622-L / 1907-D with no independent slice. No slice taken there.

    This lane claims #16645 (self-search candidate named in the run brief): the fleet queue complete readback disagrees with GitHub on a merged PR (task 24434 / dezren39/darwin-nix#2235 + PR #2242). Premise-checked: issue OPEN, kind/bug, 0 comments, no live claim, no held/user labels. Hands off queue task 24434 itself (its lease runs to 2026-11-29T10:10:51Z, owned by lane 0007-E's follow-up).

    Intended: locate the readback code path, identify why the same merged PR is alternately read as open/unmerged and as absent, land a fix + test via the Git-API contents route, verify in repo CI on the pushed branch, merge on a concluded SUCCESS exact-head run + fresh CLEAN/MERGEABLE.

  3. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Lane 0037-F progress — PR open

    PR #16647 #16647 (head b6705a0, CLEAN/MERGEABLE on first read)

    Root cause (two defects in pkgs/fleet/crates/fleet-queue/src/client/verify_disposition.rs):

    1. The --follow-up-pr successor was fetched into the PR union but disposition::from_gh received only the --pr set; from_gh keeps only linked or body-marked PRs, and PR fix: serialize concurrent Zed backups dezren39/darwin-nix#2242's body has no marker for bin: provider-catalog-sync and record still use the pre-#2083 raw-path entry-point check — invoked via any symlink they silently no-op with exit 0 #2235 — so the builder dropped the very PR the gate then demanded ("successor/linked PR aggregator(health): dns/aa section stamps are never validated — a garbage dns generatedAt renders ageMs NaN/null, a future aa generatedAt renders age 0 (maximally fresh) for as long as the skew lasts #2242 is not in the readback").
    2. Wanted PRs already in the list/search union were never re-fetched (if has { continue }), so a stale union row stood for a merged PR ("no pull in the readback is merged" / "open/unmerged linked PR aggregator(health): dns/aa section stamps are never validated — a garbage dns generatedAt renders ageMs NaN/null, a future aa generatedAt renders age 0 (maximally fresh) for as long as the skew lasts #2242").

    Fix: successor joins the effective linked set for from_gh; every wanted PR is fetched fresh via gh pr view and replaces any union row. Regression test successor_without_body_marker_survives_from_gh_16645 reproduces the #2242/#2235 shape.

    Verification: fleet-command run 46235083589 https://github.com/developing-today/fleet/actions/runs/46235083589 (cargo test -p fleet-queue, exact branch lane-0037f-16645-readback) — merge follows a concluded SUCCESS + fresh CLEAN/MERGEABLE.

  4. added 2 commits that reference this issue on Nov 29, 2026
  5. added
    meta/enriched
    priority/high
    effort/s
    status/needs-triage
    on Nov 29, 2026
  6. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    🤖 Agent note · filed

    Notes: Issue was open with no priority label / no acceptance-criteria section at digest time (2026-11-29T07:14Z). No merged PR explicitly resolving it was identified in this bounded pass; treat as still live.
    Risks: State in the issue body is time-sensitive (CI / queue readback) — re-verify against live GitHub/queue state before acting.
    Suggested approach: Reproduce from the evidence in the body first, record the root cause on the issue, then route the fix through the queue.

  7. added a commit that references this issue on Nov 29, 2026
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

    effort/skind/bugmeta/enrichedpriority/highstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions