Objective
Add cleanup and validation for orphaned wiki and reports previews left behind after pull requests are closed, merged, or workflow cleanup fails.
Current Limitation
The wiki and reports workflows create PR-scoped preview state. Wiki previews use pr-* branches in the wiki repository, and reports previews use PR-scoped Pages/preview output. If a cleanup step fails or a workflow is interrupted, orphaned previews can remain indefinitely.
Proposed Work
Add an automated validation and cleanup path that detects preview artifacts for closed pull requests and removes or reports orphaned state.
Scope
- Detect wiki preview branches named
pr-<number> whose pull request is closed.
- Detect reports preview directories/environments/artifacts that correspond to closed pull requests where technically possible.
- Provide a cleanup workflow or command that can run manually and on a schedule.
- Report what was deleted and what could not be safely deleted.
- Keep cleanup conservative for active/open pull requests.
Non-goals
- Deleting canonical wiki
master content.
- Deleting canonical GitHub Pages production content.
- Changing how previews are generated.
- Deleting unsupported resources without clear ownership proof.
Acceptance Criteria
Delivery Criteria
Architectural / Isolation Criteria
Objective
Add cleanup and validation for orphaned wiki and reports previews left behind after pull requests are closed, merged, or workflow cleanup fails.
Current Limitation
The wiki and reports workflows create PR-scoped preview state. Wiki previews use
pr-*branches in the wiki repository, and reports previews use PR-scoped Pages/preview output. If a cleanup step fails or a workflow is interrupted, orphaned previews can remain indefinitely.Proposed Work
Add an automated validation and cleanup path that detects preview artifacts for closed pull requests and removes or reports orphaned state.
Scope
pr-<number>whose pull request is closed.Non-goals
mastercontent.Acceptance Criteria
Delivery Criteria
Architectural / Isolation Criteria