@@ -2117,6 +2117,57 @@ Rules:
21172117- PI closeout must not imply approval to merge, close PRs, delete branches, or remove deferred work without explicit owner approval.
21182118- If the repository is not on clean, synchronized main, PI closeout status = FAIL.
21192119
2120+ ## GITHUB HYGIENE AUDIT GOVERNANCE
2121+
2122+ GitHub hygiene cleanup must begin with an audit-only pass.
2123+
2124+ Audit targets:
2125+ - open PRs
2126+ - draft PRs
2127+ - merged PR branches
2128+ - stale remote branches
2129+ - stale local branches
2130+
2131+ Recommendation-only first pass values:
2132+ - keep
2133+ - close
2134+ - delete local
2135+ - delete remote
2136+ - defer
2137+
2138+ Rules:
2139+ - Do not delete branches during the audit-only pass.
2140+ - Do not close PRs during the audit-only pass.
2141+ - Do not delete local branches without explicit owner approval.
2142+ - Do not delete remote branches without explicit owner approval.
2143+ - Do not close open or draft PRs without explicit owner approval.
2144+ - Cleanup actions must preserve EOD Workstream Closeout final-state requirements.
2145+
2146+ Command expectations for cleanup audits:
2147+ - report current branch
2148+ - report worktree status
2149+ - report local/origin sync
2150+ - list open PRs
2151+ - list draft PRs
2152+ - list local branches
2153+ - list remote branches
2154+ - identify merged branch candidates
2155+ - identify stale branch candidates
2156+
2157+ Required cleanup audit report fields:
2158+ - audit date
2159+ - repository
2160+ - final main commit, if on main
2161+ - current branch
2162+ - local/origin sync
2163+ - open PR recommendations
2164+ - draft PR recommendations
2165+ - merged PR branch recommendations
2166+ - stale remote branch recommendations
2167+ - stale local branch recommendations
2168+ - deferred cleanup items
2169+ - owner approvals required before action
2170+
21202171## OWNER-CONTROLLED STABLE AND MERGE APPROVAL
21212172
21222173Stable promotion and merge approval are owner-controlled.
0 commit comments