Skip to content

Goal: Make both zombie-PR hygiene probes three-valued so transport noise can nev - #347

Closed
linhdmn wants to merge 1 commit into
mainfrom
devagent/TASK-mtxyflr1-fq6y
Closed

linhdmn wants to merge 1 commit into
mainfrom
devagent/TASK-mtxyflr1-fq6y

Conversation

@linhdmn

@linhdmn linhdmn commented Sep 12, 2026

Copy link
Copy Markdown
Member

Automated task via devagent task.

Prompt

Goal: Make both zombie-PR hygiene probes three-valued so transport noise can never close a live PR. BaseBranchGone (internal/orchestrator/autopr.go:573) returns gone on any error — it closed fresh PR #346 76s after creation. landingCommitOnMain (pr-hygiene.go:102) returns "" on a failed read, which the triage (pr-hygiene.go:304-328) closes as "not shipped". Prove gone only on a definitive HTTP 404 (gh api -i status line or stderr 404, never GhError.Code — that is the gh exit code); prove alive on a 200 with no citing commit; skip, never close, on indeterminate, with an age floor before any close. Cover 404/200-no-match/200-match/timeout via fake RunGh in pr-hygiene_test.go.

Repo policy: every PR keeps docs/PRD.md current — update the sections this change affects (status claims, architecture notes, roadmap/completion notes) and bump the Last updated footer in the same PR. A PR that changes repo state without reflecting it in docs/PRD.md is incomplete.

PRD state update (repo policy)

  • docs/PRD.md sections touched by this change are updated to the post-PR state
  • the Last updated footer reflects this change

@linhdmn

linhdmn commented Sep 12, 2026

Copy link
Copy Markdown
Member Author

DevAgent zombie-PR sweep: auto-closing this PR.
Base branch main was merged or deleted, so this branch can no longer integrate.
Reopen with a re-targeted base if the work is still needed.

@linhdmn linhdmn closed this Sep 12, 2026
linhdmn added a commit that referenced this pull request Sep 12, 2026
The zombie sweep was still armed when these two pull requests were opened, and
its BaseBranchGone(main) transport-noise bug auto-closed both within minutes —
PR #347 and PR #346 themselves. Both heads already contained origin/main and
carried green evidence, so they land directly instead of through reopened pull
requests, with no re-implementation:

  1f2ef8c  devagent/TASK-mtxyflr1-fq6y  — three-valued pr-hygiene probes plus
                                          an auto-close age floor
                                          (internal/orchestrator, internal/cli)
  635214d  devagent/TASK-mtxwr39q-nva6  — landing-certification merge window
                                          (internal/loopdriver)

Only docs/PRD.* overlapped: the footer stamps are unioned and the direct
landing is recorded as a new stamp. docs/PRD.html regenerated with the
documented pandoc recipe.

Verified on the merged tree: go test ./... green, including
TestAutoMergeTreatsBaseProbeNoiseAsAlive and TestGhNotFoundOnlyForRealGone;
both heads are ancestors of main. Neither pull request was reopened or closed.
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