Skip to content

Merged dev-agent PRs sometimes leave their originating issue open with stale in-progress labels #402

Closed

Description

@libravault-xyz

What happened

Two confirmed instances, found during a 2026-08-21 triage pass:

Both were flagged live by the pipeline health-check routine at the time (see its comments on #178 and #314, 2026-08-19T10:33 UTC) as 'a new failure mode, doesn't match any of the 5 patterns this routine currently knows' — flagged, not self-healed, and nobody has filed the actual tracking issue for it until now.

Root cause (per the health-check routine's own writeup)

principal-review.yml's auto-merge step runs gh pr merge --squash. GitHub's implicit Closes #N auto-close is supposed to fire off that merge, but apparently doesn't reliably — possibly because the auto-merge step uses a different token/actor than a normal merge, or because the squash commit message doesn't carry the Closes #N line through in a form GitHub's parser recognizes.

Suggested fix

Have principal-review.yml's auto-merge step explicitly close the linked issue (via resolve_linked_issue.sh's same resolution logic) after a successful merge, rather than relying on GitHub's implicit close-on-merge behavior.

Cleanup needed

#178 and #314 should be manually closed now that their work is confirmed merged and complete.

Activity

  1. added
    bug
    on Aug 21, 2026
  2. added
    status:ready-for-dev
    status:in-progress
    on Aug 21, 2026
  3. libravault-xyz commented on Aug 22, 2026

    @libravault-xyz
    CollaboratorAuthor

    Automated pipeline health check: This issue's own status:ready-for-dev/status:in-progress labels are stale — its linked PR, #404, already exists and has advanced to status:needs-info (stale-branch/#254 pattern, sensitive-path, already flagged there for a human).

    Root cause (confirmed by reading .github/workflows/dev-agent.yml): the triage-and-implement step's success path only clears status:in-progress and labels the PR; it never revisits the originating issue's status labels once a PR is opened. So this issue looks permanently "still queued for dev-agent," despite triage having already completed. Same signature confirmed on #401 (→PR #405), #403 (→PR #407), #386 (→PR #387) — 4 fresh instances plus the already-noted #371/#351 cases below (see this issue's own body). Not self-healing (label cleanup on an already-advanced issue isn't in this routine's authorized action set) — flagging as a new pattern worth its own fix alongside the auto-close-on-merge issue this issue already tracks.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstatus:in-progressstatus:ready-for-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions