fix: M8 review findings (restore ownership, barrier tool, World0 claimRef, CI selection, drill verdicts)

P1: restore-world.sh claims its objects path (mkdir) and the database (a held
session with a restore try-lock and the exclusive upgrade lock), and removes only
what it created, so a losing restore never drops a winner's schema.
P2: barrier Ready-pod selection via shared jsonpath helper with fixtures; barrier
pod fsGroup; script-generated pods inspected by the policy check; World0 PV claim
references protected; ci-paths.sh uses the event's real base and runs on
uncertainty; fault-drill asserts RTO and needs positive quarantine evidence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-30 22:53:11 -04:00
co-authored by Claude Opus 5.5
parent 5b482ad6a3
commit 3a34ae39bc
21 changed files with 584 additions and 80 deletions
+14
View File
@@ -82,6 +82,20 @@ if printf '%s\n' "${present[@]}" | grep -qx world0; then
pvc="$("${k[@]}" get pvc -n evolution-world0 -o name 2>/dev/null | head -1)"
[ -n "$pvc" ] && denied "delete $pvc in evolution-world0" -n evolution-world0 "$pvc" ||
skip "no PVC in evolution-world0 to test"
# Clearing a World0 volume's claim reference must be denied too (it would strip
# the protection before a delete). Server-side dry run: never persisted.
pv="$("${k[@]}" get pv -o jsonpath='{range .items[?(@.spec.claimRef.namespace=="evolution-world0")]}{.metadata.name}{"\n"}{end}' 2>/dev/null | head -1)"
if [ -n "$pv" ]; then
out="$("${k[@]}" patch pv "$pv" --dry-run=server --type json \
-p '[{"op":"remove","path":"/spec/claimRef"}]' 2>&1 || true)"
if echo "$out" | grep -q "aevolution:world0-break-glass"; then
pass "clearing the claim reference of World0 volume $pv is denied"
else
fail "clearing the claim reference of World0 volume $pv was not denied: $out"
fi
else
skip "no PersistentVolume bound to evolution-world0 to test"
fi
else
skip "world0 admission dry runs (namespace absent)"
fi