Skip to content

fix: unstick cases wrongly waiting on a maintainer, and allow partial fixes - #8

Merged
ascorbic merged 3 commits into
mainfrom
fix/stuck-cases-and-partial-fixes
Nov 7, 2026
Merged

ascorbic merged 3 commits into
mainfrom
fix/stuck-cases-and-partial-fixes

Conversation

@ascorbic

@ascorbic ascorbic commented Nov 7, 2026

Copy link
Copy Markdown
Member

Several production cases showed "Needs a maintainer" or "Changes requested" when nothing a person could do would move them on. This fixes the three causes found, and adds partial-fix pull requests.

Changes

Issue closes after the pull request has closed. A closed issue was ignored whenever the case had a published pull request, on the assumption that the pull request's own close would end the case. On emdash-cms/emdash#4313 the pull request had merged weeks earlier, the case was reopened by relabelling, and the later issue close left it stuck. Now an issue close is ignored only while the pull request is still open. When it has closed, the case ends (and is marked merged if it was).

Check annotations in ci_log. CodeQL and similar checks have no Actions log, so ci_log returned nothing and the author handed off asking a maintainer for the alert (emdash-cms/emdash#3991). It now returns the check run's annotations (file, line, level, message) when there's no log.

New update_from_branch tool. The author's checkout always restores from its own last candidate. Commits others push to the branch were only folded in at publication, so the author couldn't read or build on them (emdash-cms/emdash#4194 handed off for this). The tool merges the pull request's current head into the work, leaving conflict markers to resolve, and the next candidate builds on top. It refuses while an unpublished default-branch merge is pending. The "Branch updated" message now mentions it.

Partial fixes. submit_candidate and review now require resolves: fully or partly (with remaining). Trusted code writes the only issue link (Closes #N or Part of #N) and neutralises closing keywords in author text, so a partial pull request leaves its issue open and says what remains.

Tests. .claude is excluded from the suite, so agent worktrees' copies of the tests don't run against this build.

Testing

  • New worker tests: issue close with the pull request open then merged, annotations returned by ci_log, update_from_branch building on a maintainer's push, plus partial-fix coverage
  • pnpm check and pnpm test pass locally

…and show check annotations in ci_log

An issue close was ignored whenever the case had a published pull request,
so a case reopened after its pull request merged stayed in needs-human
forever. Now the close is ignored only while that pull request is open.

ci_log returned nothing for checks without an Actions log, such as CodeQL,
leaving the author unable to see the alert. It now returns the check run's
annotations instead.
…ssue

Every pull request closed its issue, so the author could not land a coherent
part of a large report. submit_candidate and review now require
resolves: fully or partly, with remaining for partly. There is no default, so
the issue link cannot be left out by omission.

Trusted code writes the only link line (Closes #N, or Part of #N with what
remains) and turns GitHub closing keywords in the title, summary, description
and commit messages into "addresses", so author text never closes an issue.
Reviewers check the declaration as a claim. When a later candidate changes it,
the publisher rewrites the link on the open pull request. When a partial pull
request merges, the issue's comment says what remains and the issue stays
open. Candidates sealed before this still close their issue.
Agent worktrees under .claude/worktrees hold other checkouts' tests, which ran
against this checkout's build and failed, and slowed the real suite enough to
time it out.
@ascorbic
ascorbic enabled auto-merge (squash) November 7, 2026 09:06
@ascorbic
ascorbic merged commit 9a26b50 into main Nov 7, 2026
2 checks passed
@ascorbic
ascorbic deleted the fix/stuck-cases-and-partial-fixes branch November 7, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant