phase39: prepare status-only QA gates

This commit is contained in:
pingqiu committed 2026-06-11 21:37:42 -07:00
1 parent 8c101e7593
commit 7f46e509e0
3 files changed
+121 -18

No files matched your search

+21 -18
View File
@@ -130,11 +130,12 @@ helm template/lint with updated RBAC
kubectl auth can-i boundary sweep: status/events yes, finalizers/spec/workloads no
```
## D4: Delete Block Gate
## D4: Delete-Safety Blocked Status Gate
Goal: prove deletion is held when residue or insufficient evidence exists.
Goal: prove residue or insufficient evidence becomes blocked delete-safety
status with non-mutating next steps.
Status: needs QA update after status-only pivot.
Status: ready for QA after status-only pivot.
Acceptance:
@@ -153,11 +154,12 @@ TestOps/from-bundle delete-residue scenario
live CRD status/event check if lab is available
```
## D5: Delete Release Gate
## D5: Delete-Safety Releasable Status Gate
Goal: prove deletion completes only when cleanup evidence is clean.
Goal: prove clean evidence becomes releasable delete-safety status without
claiming that operator-status removes finalizers or completes deletion.
Status: needs QA update after status-only pivot.
Status: ready for QA after status-only pivot.
Acceptance:
@@ -196,13 +198,14 @@ Acceptance:
Verification:
```text
TestOps multi-volume delete-safety scenario
internal/docs/qa-assignments/phase39-d6-multi-volume-delete-safety-status-isolation-qa.md
```
## D7: Close Gate
Goal: close Phase 39 only after the first mutating operator path is proven
bounded, idempotent, observable, and residue-safe.
Goal: close Phase 39 only after the delete-safety status path is proven
bounded, idempotent, observable, and residue-safe without widening
operator-status mutation power.
Status: pending.
@@ -253,14 +256,15 @@ QA strict rerun from clean lab
- 70%: D5 component gate projected releasable delete-safety status from clean
evidence. The finalizer-release part of the gate is now deferred to a future
lifecycle owner.
- 78%: D4/D5 live QA handoff ready. The QA assignment covers RBAC,
blocked-delete finalizer hold, clean-delete finalizer release, object deletion
completion, final cleanup verification, and the `tp01` lab-health caveat.
- 78%: D4/D5 live QA handoff ready under the original finalizer design. That
assignment is superseded by the status-only assignment after the
lifecycle-owner pivot.
- 80%: D4/D5 live QA found the first bug: the client patched a nonexistent
`/finalizers` URL for CRDs. The fix keeps RBAC scoped to
`swblockvolumes/finalizers` but sends the merge patch to the main
SwBlockVolume resource URL with a body containing only
`metadata.finalizers`. Awaiting QA re-validation.
`metadata.finalizers`. Follow-up QA then exposed the deeper 403 boundary
issue below.
- 80% blocked: QA re-validation of `b371e2e` proved the deeper issue. The
corrected main-object patch is rejected with HTTP 403 because Kubernetes
authorizes it as main `patch swblockvolumes`; the
@@ -305,8 +309,7 @@ Rejected paths:
## Next Step
Ask QA to validate the revised Phase 39 boundary: operator-status writes
delete-safety status/events, has no finalizer/spec/workload mutation RBAC, and
does not attempt finalizer patches during blocked or releasable delete-safety
states. Then update D6 as a multi-volume status-isolation gate, not a finalizer
mutation gate.
Ask QA to validate D4/D5 with
`internal/docs/qa-assignments/phase39-d4-d5-finalizer-delete-safety-qa.md`.
After D4/D5 pass, run D6 with
`internal/docs/qa-assignments/phase39-d6-multi-volume-delete-safety-status-isolation-qa.md`.
@@ -2,6 +2,10 @@
Status: ready for QA after the lifecycle-owner pivot.
Required source floor:
- `1630de2 phase39: keep delete safety status-only`
Live QA on `b371e2e` proved CRD finalizer mutation cannot be bounded by
`swblockvolumes/finalizers` RBAC alone. The chosen product direction is:
operator-status remains status/events-only, while actual finalizer add/remove is
@@ -0,0 +1,96 @@
# Phase 39 D6 QA Assignment: Multi-Volume Delete-Safety Status Isolation
Status: pending; run only after D4/D5 status-boundary validation passes on
`1630de2` or newer.
## Goal
Validate that delete-safety evidence for one volume does not contaminate other
volumes. This is a status/events-only gate. Do not test finalizer add/remove.
The operator-status controller may write only:
```text
SwBlockCluster/status
SwBlockVolume/status
Kubernetes Events
```
It must not patch `SwBlockVolume.metadata.finalizers`, `SwBlockVolume.spec`,
PVCs, PVs, Pods, Deployments, StorageClasses, Secrets, Nodes, iSCSI, multipath,
dmsetup, hostPath data, or Helm resources.
## Preflight
- Use a clean lab.
- Restore `tp01` first if running on the 3-node RF=3 lab.
- Install with `operatorStatus.create=true` and `operatorStatus.dryRun=false`.
- Confirm RBAC:
- `patch swblockclusters/status`: yes
- `patch swblockvolumes/status`: yes
- `create events`: yes
- main `patch swblockvolumes`: no
- `patch swblockvolumes --subresource=finalizers`: no
- pod/PVC/PV/deployment/storageclass mutations: no
## Scenario Shape
Create or replay evidence for three managed volumes:
- Volume A: delete requested + cleanup residue.
- Volume B: healthy and not deleting.
- Volume C: clean delete-safety evidence or healthy, depending on available
fixture.
Minimum expected status:
```text
volume A: deleteSafety.state=blocked, decision=rejected
volume B: status=ready, reasonCode=first_volume_verified
volume C: status remains independent; if clean-delete evidence is used,
deleteSafety.state=releasable, decision=allowed
```
## Pass Criteria
- Volume A has `deleteSafety.state=blocked` and a stable residue reason.
- Volume B keeps its original `volumeID`, `pvcName`, status, reason, and publish
target identity.
- Volume C keeps independent status; if it has clean delete-safety evidence, it
becomes `releasable` without changing A/B.
- `SwBlockCluster.status.volumeCount` and ready/blocked/stale counts match the
three-volume evidence.
- No cross-volume reason-code mix-up appears in CRD status, report,
operator-snapshot, dashboard, or explain output.
- Events, if emitted, reference the correct `SwBlockVolume` object only.
- `operator_status=... finalizer_patches=0`.
- No finalizer-added or finalizer-released Events appear.
- Cleanup verifier ends with `cleanup_status=ok` and all residue counters zero.
## Failure Conditions
- Any volume other than A shows A's residue reason.
- A blocked delete-safety decision prevents B/C status publication.
- Any finalizer patch is attempted.
- Any workload/storage/host mutation occurs from operator-status.
- Any surface claims object deletion completed because of operator-status.
## Report
Write the sign-off to:
```text
internal/docs/qa-assignments/phase39-d6-multi-volume-delete-safety-status-isolation-qa-signoff.md
```
Include:
- source commit,
- lab node health,
- evidence shape used,
- per-volume CRD status,
- cross-surface agreement matrix,
- RBAC boundary result,
- final cleanup audit,
- blocking/non-blocking findings,
- recommendation for Phase 39 close.