phase41: prepare qa close handoff

This commit is contained in:
pingqiu committed 2026-06-14 10:43:52 -07:00
1 parent 1ff6fe5c6f
commit ff151735e6
3 files changed
+60 -32

No files matched your search

+27 -16
View File
@@ -1,6 +1,7 @@
# Current Plan: Phase 41 - Lifecycle Owner Foundation
Status: open, 0% complete. Started on 2026-06-14.
Status: dev-complete, 90% complete, awaiting QA/review. Started on
2026-06-14.
Branch: `phase41-lifecycle-owner-foundation`
@@ -90,8 +91,9 @@ no code changes that broaden RBAC before this contract is accepted
Goal: stop live-only schema/RBAC bugs before QA.
Status: in progress. The schema-aware boundary gate is dev-complete; a real
live-apiserver/envtest path remains open.
Status: dev-complete for the non-mutating Phase 41 path. The schema-aware
boundary gate is in place; a real live-apiserver/envtest path remains a required
carry-forward before any finalizer mutation ships.
Acceptance:
@@ -104,7 +106,8 @@ Acceptance:
main-object patch
[x] wrong status casing, enum drift, endpoint drift, RBAC broadening, spec
patch, unrelated metadata patch, and fake `/finalizers` endpoint fail
[ ] run the same boundary against a real Kubernetes API or envtest apiserver
[x] record that a live-apiserver/envtest version is still required before any
finalizer mutation ships
```
Verification:
@@ -235,12 +238,14 @@ build future features on.
Acceptance:
```text
[ ] D1-D6 pass or a documented D4 design block is accepted
[ ] operator-status remains status/events-only
[ ] lifecycle-owner permissions are minimal and tested against real API/RBAC
[ ] first mutation path is either gated and QA-proven or explicitly deferred
[ ] user-facing docs state what deletion/finalizer behavior is and is not
[ ] roadmap is updated for Phase 42
[x] D1-D6 pass or a documented D4 design block is accepted
[x] operator-status remains status/events-only
[x] lifecycle-owner permissions are minimal and tested for the non-mutating
status/dry-run path
[x] first mutation path is either gated and QA-proven or explicitly deferred
[x] user-facing docs state what deletion/finalizer behavior is and is not
[x] roadmap is updated for Phase 42
[ ] QA sign-off is received
```
Verification:
@@ -296,6 +301,11 @@ git diff --check
delete-safety decisions in one reconcile. Each volume keeps its own
`deleteSafety` and dry-run lifecycle-owner action decision, with no finalizer
mutation Events and no cross-volume contamination.
- 90%: D7 local close criteria are satisfied for the non-mutating slice. Phase
41 intentionally closes as lifecycle-owner boundary + dry-run/status decision
work, not as finalizer execution. The live-apiserver/envtest admission/RBAC
proof remains a required carry-forward before any future lifecycle-owner
component can receive main-object `patch swblockvolumes`.
## Prerequisites / Risks
@@ -305,14 +315,15 @@ git diff --check
observer and must stay that way.
- A finalizer controller for CRDs needs main-object patch permission. Treat this
as a lifecycle-owner design decision, not a small RBAC tweak.
- Mock-only tests are insufficient for CRD/RBAC writers. D2 must use real CRD
schemas and real or equivalent RBAC.
- Mock-only tests are insufficient for shipping future CRD/RBAC writers. Phase
41 uses schema-aware equivalent RBAC for the non-mutating boundary; a real
live-apiserver/envtest proof is required before finalizer mutation.
- If D4 cannot prove a safe mutation boundary, Phase 41 should close with a
documented defer decision rather than shipping a weak mutating controller.
## Next Step
Start D1 by writing the lifecycle-owner contract and aligning it with the
existing standard model: fact owners publish evidence, the observer writes
status, the lifecycle owner owns CR lifecycle mutation, and executors remain
separate until explicitly introduced.
Send Phase 41 to QA using
`internal/docs/qa-assignments/phase41-lifecycle-owner-foundation-qa.md`. If QA
passes, write the finished plan. If QA finds a live boundary gap, fix that
before closing.
+31 -16
View File
@@ -501,10 +501,11 @@ Still incomplete:
node/image/CSI-driver state.
- Some volume-side fault reasons still need stronger end-to-end propagation to
user-visible surfaces.
- Mutating lifecycle actions are not yet modeled as
action + precondition + invariant + executor + evidence.
- Mutating lifecycle actions now have a non-mutating lifecycle-owner contract
shape: action + precondition + invariant + executor + evidence.
- PVC lifecycle, blockvolume lifecycle, and Kubernetes attach lifecycle still
need sharper ownership boundaries before the operator mutates anything.
need a real lifecycle-owner component and API/admission proof before anything
mutates Kubernetes lifecycle objects.
### Product Priority From Here
@@ -520,18 +521,28 @@ product risk. The recommended order is:
Future actions now have facts, preconditions, invariants, allowed executor,
policy gate, evidence, and allow/reject decisions. It includes both a dry-run
action gate and a rejected-action gate.
3. **Phase 39: Delete-safety status boundary.** Active.
3. **Phase 39: Delete-safety status boundary.** Closed.
Live QA proved the original RBAC-only finalizer boundary is not viable for
CRD finalizers: CRDs have no usable HTTP `/finalizers` endpoint, so
`metadata.finalizers` changes require main `patch swblockvolumes`
authorization. The chosen path is to keep operator-status status/events-only
and defer finalizer add/remove to a future lifecycle owner.
4. **Upgrade/rollback drift status.**
Report desired/current image/chart/controller drift before executing
upgrades.
5. **Returned-replica rebuild/failback.**
4. **Phase 40: Operator production hardening.** Closed.
The v0.4 beta foundation released Helm + PVC + status/events-only
operator-status, install drift visibility, delete-safety visibility, and
schema/RBAC conformance gates.
5. **Phase 41: Lifecycle owner foundation.** Active.
Defines observer/lifecycle-owner/executor boundaries, keeps operator-status
status/events-only, defers finalizer mutation, and exposes dry-run
lifecycle-owner decisions for delete-safety. It does not ship deletion
protection.
6. **Phase 42 candidate: real lifecycle-owner API/admission gate.**
Before any finalizer add/remove, prove main-object patch confinement against
a real Kubernetes API with admission/RBAC. Only then consider a first
bounded mutation.
7. **Returned-replica rebuild/failback.**
High product value, but it depends on the action model and status trust.
6. **Backup/snapshot/restore and NVMe ANA parity.**
8. **Backup/snapshot/restore and NVMe ANA parity.**
Important, but they should reuse the status/action model rather than create
another isolated control plane.
@@ -543,10 +554,11 @@ Approximate engineering effort if scope remains tight:
projection tests, and live TestOps gates. Low mutation risk.
- Lifecycle action model review: medium. Mostly design and tests, but it should
block later mutating work from scattering logic across listeners/scripts.
- Delete-safety status: medium. Keeps delete safety visible without widening
- Delete-safety status: closed. Keeps delete safety visible without widening
operator-status mutation rights.
- Lifecycle-owner finalizers: medium/high. Cleaner than operator-status main
patch, but requires stronger `SwBlockVolume` object ownership first.
patch, but requires a separate lifecycle-owner component plus real
API/admission proof that only finalizers can be patched.
- Rebuild/failback: high. Requires storage semantics, authority/fencing,
returned-replica state, and long-running failure gates.
- Backup/snapshot/restore: high. Requires durable data semantics and user-facing
@@ -574,12 +586,15 @@ Approximate engineering effort if scope remains tight:
negative node evidence remains Phase 37.
- Phase 37 Live Node Evidence Hardening is closed.
- Phase 38 Lifecycle Action Model Executable Contract is closed.
- Active work is Phase 39 Delete-Safety Status Boundary. Finalizer mutation is
deferred to a later lifecycle-owner phase because of CRD finalizer
authorization semantics.
- Phase 39 Delete-Safety Status Boundary is closed.
- Phase 40 Operator Production Hardening is closed and is the v0.4 beta release
boundary.
- Active work is Phase 41 Lifecycle Owner Foundation. It is non-mutating:
finalizer add/remove is deferred, while lifecycle-owner dry-run decisions and
delete-safety preconditions are made visible.
- Do not start NVMe ANA parity, rebuild/failback, backup/restore, or mutating
operator workflows by extending Phase 39. Pick those as separate gated
phases after finalizer/delete safety closes.
operator workflows by extending Phase 41. Pick those as separate gated phases
after the lifecycle-owner API/admission boundary is proven.
- When the current plan closes, move it to `internal/docs/finished-plans/`
with a phase/topic filename such as
`phase1_finishedplan_frontend_protocol_readiness.md`.
@@ -31,6 +31,8 @@ cabe790 phase41: tighten delete safety preconditions
ab004fc phase41: gate stale cleanup evidence
1f4f769 phase41: choose finalizer strategy and dry-run action
c80fdfc phase41: prove lifecycle action isolation
b414a9f phase41: add lifecycle owner qa gate
plus the latest Phase 41 branch HEAD docs close handoff
```
## G1 - Contract Review