fix: stop pm tick from re-surfacing finalized issues #15
No reviewers
Labels
No labels
agent
build
agent
dev
agent
new
agent
release
agent
review
agent
test
agent
working
priority
high
priority
low
priority
medium
risk
high
risk
low
risk
medium
type
bug
type
chore
type
feature
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tfks/fjx!15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pm-close-no-resurface"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Bug:
fjx pm closefinalized a closed issue, but the nextpm tickre-listed it as aclosed_candidate. Root cause is the "closed but not yet finalized" window — PR merges auto-closed the issue while the PM ledger still saidStatus: watching.Fix follows Option 1 from the issue body:
Closes #<N>toRefs #<N>so PR merges no longer auto-close issues.fjx pm closenow closes the issue itself (PATCH state=closed, idempotent) after writing the closed ledger. It is the single canonical close path.linkedIssueFromBody/closesPatternacceptRefsin addition toCloses/Fixes/Resolves— legacy PRs and external contributions still link correctly.Status: closed, so finalized issues cannot re-surface even if someone closes manually.Test plan
just validateclean (92 tests pass)linkedIssueFromBodytest extended to assertRefs #Nmatches and that bare#Nstill doesn'tStatus: closedledger are filteredfjx pm close <N>end-to-end, confirm subsequentfjx pm tickno longer surfaces itRefs #5