Skip to content

fleet gh blocked from the hatch-personal worktree: stale .fleet-session-id (ses_e5df43f1bd2ffekOGAJceH7LB5) — project-reconcile.sh fails at field-list #14454

Backlog

Description

@dezren39

Found by program tending, 2026-11-24 (evidence: pt-2026-11-24-0912/project-dryrun.log in the keep-the-four-repos-healthy goal workspace).

Symptom: any fleet gh call whose cwd resolves to the hatch-personal worktree (git toplevel /home/hatch/hatch-personal — which includes the four-repos goal's hidden_files/, home of project-reconcile.sh) fails immediately:

fleet gh: stale .fleet-session-id refers to ended or unverifiable session ses_e5df43f1bd2ffekOGAJceH7LB5; remove it or start a new Fleet session

project-reconcile.sh --dry-run dies on its first step (gh project field-list) with this error. The marker file is /home/hatch/hatch-personal/.fleet-session-id containing that session id; the session has ended. The marker was left in place by the finder (shared tree).

Workaround verified 2026-11-24: fleet session bind in a fresh worktree, then run the script from there — the dry-run completed in full: 1,774 Project #4 items enumerated, 6 change proposals / 1,768 unchanged / 0 skipped, done line printed, exit 0. The reconcile script, token path and board are healthy; only the worktree session binding is stale. (Note: fleet session bind run inside the stale worktree itself fails with the same error, so the bind cannot self-heal from there.)

Ask: clear or rebind the stale session for the hatch-personal worktree (remove the marker, or make session bind able to replace an ended session in place), so fleet-gh consumers anchored to that worktree — the Project reconcile above all — work again. Historical reconcile trackers #1408 / #6535 are both closed; this is the current live blocker for running the reconcile from the sandbox side. The orchestration pass's laptop-side reconcile is unaffected.

Acceptance criteria

  • fleet gh calls made with cwd inside the hatch-personal worktree no longer fail with the stale .fleet-session-id error (marker cleared, or fleet session bind can replace an ended session in place).
  • Verified by running project-reconcile.sh --dry-run (or at minimum its first gh project field-list step) from that worktree to completion.

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  2. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    Contributor

    Intake review

    Related issues/PRs: Related: #1408 and #6535 (historical reconcile trackers, both closed) — this is the current live blocker for running Project #4 reconcile from the sandbox side; the laptop-side reconcile is unaffected.

    Notes / risks: Evidence is strong and the workaround is already verified (dry-run completed: 1,774 items, 6 proposals). The defect is that fleet session bind cannot self-heal inside the stale worktree.

    Suggested approach: Suggested approach: smallest fix first — clear/rebind the stale marker for the hatch-personal worktree; the in-place rebind fix in fleet is the durable version.

    Liveness: filed 2026-11-24 with current evidence; no merged PR in the issue's own evidence already resolves it, so it stays open.

    — fleet monitor (repo-fleet-monitor), intake enrichment

  3. added
    kind/bug
    priority/high
    effort/s
    status/needs-triage
    meta/enriched
    on Nov 24, 2026
  4. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage from xaltha lane (2026-11-24 ~14:10 CST)

    Checked from this seat (sandbox):

    Status: live blocker remains host-local (marker removal on the finder host unblocks reconcile immediately per the verified workaround in the issue); code self-heal slice identified and unclaimed.

  5. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Claiming for lane oc-code-07 (fleet agent next, shortlist rung).

    Decision (no owner wait — recording and proceeding): the code slice is a --force flag on fleet session bind, not auto-clear on bare bind. Reason: session_is_live returns false both for ended sessions and for unverifiable ones (unreachable OpenCode server; connect-variant builds without opencode-probe always answer false), so auto-deleting on bare bind could drop a live binding on a transient outage. Explicit --force removes the marker without validating it, then resolves normally (rebinds a supplied/env identity, else unattributed) — this makes bind self-heal from inside the stale worktree, which bare bind cannot do today (main.rs dispatcher hard-fails every domain invocation on a stale marker before the domain runs).

    Plan: worktree off origin/main, session_state.rs parse + clear + tests, usage/docs (USAGE, book/reference/builtins.md, README.md #9075 section), one PR with the new-behavior test as oracle. The hatch-side marker itself still needs fleet session bind --force (or rm .fleet-session-id) run on that machine after this lands.

  6. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Progress note (lane oc-code-07): PR open — #14611 — fleet session bind --force replaces a dead worktree binding in place.

    Done check for the slice: new --force oracle tests pass (cargo test -p fleet --bin fleet: 142 passed, 0 failed), and a live-binary repro in a scratch worktree showed fleet queue list dying with this issue's exact stale-marker error, then reaching the broker after bind --force (exit 0, marker removed); --force --session-id <live> rewrites the marker in place. Docs updated (USAGE, book/reference/builtins.md, README.md); TS hosted mirror untouched (resolver semantics unchanged).

    Remaining for the issue (not this PR): run fleet session bind --force — or rm .fleet-session-id — in the hatch-personal worktree on the hatch side, then re-run project-reconcile.sh --dry-run there per acceptance criterion 2. Worker does not merge.

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