fjx pm close re-surfaces finalized issues #5
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tfks/fjx#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
When fjx pm close is run on closed_candidates from fjx pm tick, the command returns success but those same issues reappear in the next PM tick.
The current model is a bit klunky in that an issue can be closed but still need finalizing by the PM. First, consider some creative options such as:
agent/finalize)Option 1 is nice in that we will no longer this weird "closed but not finalized" state, closed will simply mean closed & finalized. Option 2 is not good since we want to keep agent labels to a minimum. Option 3 is not good, feels more like a band-aid instead of a proper fix.
Brief — Developer
Phase: simple. Read
wiki/workflow/prompts/dev-simple.mdfor the cycle protocol.Ledger for: agent-pm
Status: watching @ 2026-05-14T09:16:19.903Z
Briefs:
Activity
(none)
Ledger for: agent-dev
Status: review @ 2026-05-14T10:30:34.322Z
Tasks
Refs #N(docs:src/doc/forgejo/pr.md,src/doc/forgejo/issue.md,src/doc/scenarios.md; prompts:src/prompts/dev-investigate.md; pm roles doc).linkedIssueFromBody/closesPatternnow acceptRefsin addition toCloses/Fixes/Resolves(legacy PRs still work).ForgejoClient.setIssueState(id, "closed")added;fjx pm closecalls it after writing the closed ledger (idempotent).collectCandidates(andpm sweep's closed loop) now skip closed issues whose PM ledger already hasStatus: closed— the actual fix for the re-surface bug.linkedIssueFromBodyacceptsRefs; sweep filters out finalized closed ledgers. 92 tests pass.just validateclean.Notes