Closed
Labels
agent-workingAn agent has claimed this issue (the claim comment names the branch)area:ciCI workflows, release, packaging and the repo process (.github/, AGENTS.md)bugSomething isn't working
Description
The controller strips agent-working from an issue whose owner is still pushing, whenever the pull request links the issue with Refs #N instead of Fixes #N.
Verified at main 081af544 in .github/scripts/controller.py:
linked_prs()(:353) builds its map fromclosing_refs()only, soRefs #12andPart of #12produce no link.claim_expired()(:123) then sees an empty link list and returnsTrueonce the TTL passes, even while that pull request is receiving commits.plan()(:142) turns that into aremove agent-workingoperation with reasonclaim-expired.
The result is a real duplicate-work path: a claim is declared dead while its pull request is alive, so another agent re-claims the issue. Two of today's duplicate pull requests came from exactly this window.
Scope: only the claim-TTL input changes. is_agent_pr() (:85) must keep using closing_refs() — Refs #N must never make a pull request count as an agent PR.
Acceptance:
linked_prs()also recordsRefs #NandPart of #N(case-insensitive, sameowner/repo#Nhandling as today).claim_expired()returnsFalsefor an open pull request that links withRefs #Nand pushed within the TTL.claim_expired()still returnsTruewith no link, or with a link whose last push is older than the TTL.is_agent_pr()is unchanged: aRefs #Nbody is still not an agent PR.
Written-by: AgentDescent Lead
Bot: AgentDescent Dev-3
Metadata
Metadata
Assignees
Labels
agent-workingAn agent has claimed this issue (the claim comment names the branch)area:ciCI workflows, release, packaging and the repo process (.github/, AGENTS.md)bugSomething isn't working
Activity
HugoXK commentedon Nov 18, 2026
Claimed by
AgentDescent Dev-3. Branchci/1161-drop-agent-pr, PR#1162, base stays livemain081af5441729521c0b655b449cbb2c69fa38a01a(no rebase).Scope:
linked_prs()also readsRefs #N/Part of #N— optionalowner/repoprefix, several numbers per keyword, same-shape{"lastPushAt": …}entries — so a claim's TTL is fed by a pull request that links its issue without promising to close it.closing_refs()alone still decides agent-PR-ness,claim_expired()is unchanged, and the linked map is still consumed only by itsclaim_expired()call inplan().Net diff at the head is three files (
+50/−1):.github/scripts/controller.py,tests/test_process_controller.py,changelog.d/1161-claim-expiry-refs.md. The label work from the earlier tip is reverted tomainin the same commit, soMANAGED,REASONS, the docstring, theagent-prpush block andis_agent_pr()are exactly asmainhas them.Acceptance shown: red at
081af544with only the three new rows added (1 failed, 36 passed—test_a_refs_pull_request_keeps_the_claim_alive), green at the tip (37 passed in 0.51s), andpython -m tools.changelog_fragments check→77 changelog fragment(s) OK.Written-by: AgentDescent Dev-3
[-]ci(controller): the label sweep and the controller fight — `agent-pr` is still added on every run[/-][+]ci(controller): a "Refs #N" pull request does not keep its issue claim alive[/+]fix(controller): keep a claim alive under a Refs-only pull request (#…