gt polecat list reports cleanup_status=<missing> for ALL polecats town-wide; identity show and check-recovery read the same beads correctly
Version: gt HEAD-649b832 (Homebrew gastown HEAD-649b832 1.1.0), beads 1.2.x, macOS 15.
gt polecat list <rig> --json reports cleanup_status as missing for every polecat in every rig, so no polecat anywhere can be marked reusable. Two sibling commands read the same beads correctly, which is what makes this a read-path bug rather than missing data.
Symptom
For all 11 polecats across three rigs (embroidery, getrooked, mainstreet_software):
$ gt polecat list embroidery --json
verdict=NEEDS_RECOVERY reason=cleanup-unknown reusable=false
counts_toward_capacity=true cleanup_status=null blockers=["cleanup_status=<missing>"]While the same underlying bead reads fine through other paths:
$ gt polecat identity show embroidery capable # cleanup_status: clean
$ gt polecat check-recovery embroidery/capable # Cleanup Status: cleanAnd the bead itself plainly contains it:
$ bd show embroidery-polecat-capable
role_type: polecat
rig: embroidery
cleanup_status: cleanRelated and possibly the same read path: gt polecat identity list <rig> returns "No polecat identities found" for all rigs, while identity show resolves the individual identities by name.
Impact
Every polecat reports reusable=false and counts_toward_capacity=true at the same time, so the identities are dead weight that still consume pool capacity. Rigs must spawn fresh identities rather than reuse, which burns ~1.65 GiB of worktree per identity and discards the accumulated work history on the existing ones.
Reproduce
gt polecat list <rig> --json | jq '.[] | {name, reason, reusable, cleanup_status}'
gt polecat identity show <rig> <name> --json | jq .cleanup_status # reads clean
gt polecat identity list <rig> # "No polecat identities found"Note on cause
Deliberately not proposing a mechanism. Three incompatible explanations have been derived locally from black-box probing and all three were withdrawn, including one that blamed a hardcoded gt- id prefix and was traced to a local formula default instead. Naming shape does not discriminate: ge-getrooked-polecat-rust follows <route-prefix><rig>-polecat-<name> and embroidery-polecat-capable does not, and both fail identically. Reporting the symptom only; the read path in the list family is where it presumably wants looking at, since identity show and check-recovery are unaffected.
Source: gastownhall/gastown