Skip to content
This repository was archived by the owner on Nov 25, 2026. It is now read-only.

fix: release in-progress when the roadmap run ends without a PR - #22

Merged
t11z merged 1 commit into
mainfrom
fix/stale-in-progress
Nov 24, 2026
Merged

t11z merged 1 commit into
mainfrom
fix/stale-in-progress

Conversation

@t11z

@t11z t11z commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Closes #18

  • housekeeping.yml, roadmap model task: two final if: always() steps. The first mints a fresh app token (installation tokens expire after an hour, the job may run 90 minutes). The second runs housekeeping.py roadmap-finish --issue N --run-url URL.
  • roadmap-finish: if the issue is open, still in-progress, and no open or merged PR references it (closing keyword in title or body, or the implementer branch claude/<n>-), it comments the run URL with a marker, removes in-progress, and adds blocked on the second failed attempt. Attempts count only the bot's marker comments since blocked was last removed, so removing blocked allows two more attempts. Merged PRs count because closing keywords do not close issues from PRs into next.
  • The Claude step gets timeout-minutes: 80 (job: 90), so the finish steps run even when the model is cut off.
  • prompts/digest.md: in-progress issues older than 24 hours without a PR. The routine holds a copy of the prompt, so the owner pastes it again (noted in MANUAL-STEPS).
  • Tests: tests/test_housekeeping.py (PR matching, attempt counting, first and second failure with mocked gh), and a consistency test for the workflow wiring.

check_roadmap labels the picked issue in-progress before the model runs and
skips issues with that label, but nothing removed it. A run that timed out,
hit the turn cap, stopped on a usage limit or on the WIP limit left the
issue skipped forever.

A final always() step of the roadmap task now runs housekeeping.py
roadmap-finish with a fresh app token (the first one may have expired). If
no open or merged PR references the issue, it removes in-progress, comments
the run URL and, on the second failed attempt, adds blocked. The Claude step
gets its own timeout below the job timeout so the finish step still runs.
The digest lists in-progress issues older than 24 hours without a PR.

Closes #18
@t11z
t11z merged commit b60bb8c into main Nov 24, 2026
1 check passed
@t11z
t11z deleted the fix/stale-in-progress branch November 24, 2026 06:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: release in-progress when the roadmap run ends without a PR

1 participant