Clean known rehearsal pages after their tags are removed

This commit is contained in:
2026-12-06 02:59:33 +00:00
parent 75823d6c82
commit 2b5032d8c9
4 changed files with 72 additions and 6 deletions

View File

@@ -78,6 +78,10 @@ tag, and the matching local tag. It records intent before each deletion and
reobserves ambiguous outcomes. A canceled observation does not cancel CI;
cleanup uses an independent bounded context.
A known matching page can be removed when its tag is already confirmed absent.
Adopting a page whose ID was not recorded still requires its tag target to be
verified.
A completed result describes the recorded resources and the CI runs observed
at cleanup time. Later operator-initiated reruns, CI history, notifications, and
webhook effects are outside that result. Records remain available for operator

View File

@@ -230,6 +230,11 @@ the original push error, while uncertain dispatch retains recovery evidence.
## 5. An already-absent tag prevents cleanup of its known hosted page
**Completed:** Cleanup accepts confirmed tag absence for a recorded matching
page, while retaining target verification for page adoption and preserving
conflicting IDs, contents, and live targets. Missing-tag, repeated-cleanup,
conflict, and the full rehearsal suite pass.
**Priority:** P2. **Stages:** 10, 13.
**Relevant code:** [`cleanup`](../../internal/rehearsal/cleanup.go) accepts an