phase54: add authority executor callsite gate

This commit is contained in:
pingqiu committed 2026-06-23 11:10:22 -07:00
1 parent 5346d8cf76
commit 48844b011a
6 files changed
+645 -4

No files matched your search

+4 -3
View File
@@ -182,9 +182,10 @@ Recommended order from here:
groups executor policy, the ACK eligibility mutation target, admission/RBAC,
terminal evidence, failure states, multi-volume isolation, and a live close
gate into one milestone. The first allowed mutation remains narrow:
returned-replica ACK eligibility only. D1-D3 are implemented, with D3 live
RBAC QA PASS; D4 has the executor call-site implemented and awaits terminal
evidence QA.
returned-replica ACK eligibility only. D1-D4 are implemented and live QA
passed through the RBAC boundary plus executor call-site terminal-evidence
gate; D5-D7 remain for broader failure states, multi-volume isolation, and
the live returned-replica close gate.
12. Add backup/restore and NVMe ANA parity after they can reuse the same action
owner, evidence, and status model rather than creating another isolated
control plane.
+14 -1
View File
@@ -185,7 +185,15 @@ default SA: denied for swblockreplicaeligibilities/status
### D4: Terminal Evidence Projection
Status: implemented locally, pending QA.
Status: **QA PASS** on live m02 k3s run `20260623-110832-6b9c`
(`authority-executor-callsite-chain`, 36/36 actions).
Runner gate:
```text
testops/scenarios/authority-executor-callsite-chain.yaml
scripts/run-phase54-authority-executor-callsite-gate.sh
```
After execution, project terminal evidence:
@@ -244,6 +252,11 @@ Acceptance:
### D5: Failure and Hold States
Status: pending. D4 already covers target-missing and terminal-evidence-missing
holds; D5 should broaden the matrix to stale evidence, ambiguous targets,
cross-volume identity mismatch, blocked preflight, and partial multi-contract
behavior.
Cover negative cases:
- contract missing,
@@ -0,0 +1,80 @@
# Phase 54 D4 QA Sign-off: Authority Executor Call-Site
Verdict: **PASS**.
Validated live on m02 k3s with a fresh `sw-block:local` image built from the
Phase 54 branch after `4313f21 phase54: connect authority executor ack
call-site`.
Runner:
```text
C:\work\swblock.exe run -results-dir C:\work\seaweed_block\results C:\work\seaweed_block\testops\scenarios\authority-executor-callsite-chain.yaml
```
Run:
```text
20260623-110832-6b9c
authority-executor-callsite-chain PASS, 36/36 actions
```
## Evidence
Summary:
```text
phase54_authority_executor_callsite_status=running
phase54_authority_executor_image=sw-block:local
phase54_authority_executor_node=m02
exec_patch_swblockreplicaeligibilities_status_allowed=yes
exec_patch_swblockreplicaeligibilities_main_denied=no
exec_patch_swblockvolumes_status_denied=no
exec_patch_swblockvolumes_finalizers_denied=no
exec_create_events_denied=no
exec_create_pods_denied=no
exec_patch_pvc_denied=no
exec_update_storageclass_denied=no
target_missing_mutation_attempts=0
target_missing_created_targets=0
terminal_missing_mutation_attempts=0
terminal_missing_target_reason_absent=
complete_mutation_attempts=1
complete_ack_eligibility_mutation_attempts=1
complete_target_reason=ack_eligibility_recorded
complete_target_ack_known=true
complete_target_ack_eligible=true
complete_target_frontend_fenced=true
complete_target_primary_unchanged=true
complete_target_frontier_covered=true
complete_target_no_cross_volume=true
complete_target_ready_condition=ack_eligibility_recorded
complete_swblockvolume_ack_still_false=false
complete_target_nonclaims_ok=true
phase54_authority_executor_callsite_status=ok
```
## Gate Results
| Gate | Result |
| --- | --- |
| Target missing holds | PASS: no target object created, `mutation_attempts=0` |
| Terminal evidence missing holds | PASS: target status remains absent, `mutation_attempts=0` |
| Complete terminal evidence writes target | PASS: one ACK eligibility status mutation, reason `ack_eligibility_recorded` |
| Source SwBlockVolume remains unchanged | PASS: source returned-replica `ackEligible=false` after target status write |
| Boundary carry-forward | PASS: executor can patch only `swblockreplicaeligibilities/status`; SwBlockVolume status/finalizers, Events, pods, PVCs, storageclasses denied |
| Cleanup | PASS: namespace/jobs/CRs/CRDs cleaned; no Phase 54 residue found |
## Verdict
D4 closes. The executor call-site is live-API-proven for the bounded mutation:
```text
SwBlockReplicaEligibility.status ACK eligibility only
```
No frontend publication, rebuild traffic, failback, SwBlockVolume status patch,
Event creation, or workload/storage mutation was permitted or observed.
D5 should broaden the negative/hold matrix and D6 should prove multi-volume
isolation with mixed eligible/blocked/no-contract volumes.
@@ -2,6 +2,18 @@
Status: ready for QA after D3 RBAC PASS.
Runner scenario:
```text
testops/scenarios/authority-executor-callsite-chain.yaml
```
Gate script:
```text
scripts/run-phase54-authority-executor-callsite-gate.sh
```
## Goal
Validate that `sw-block ops authority-executor --enable-execution
@@ -18,6 +30,14 @@ frontend, start rebuild/catch-up, perform failback, or touch another volume.
- Phase 54 D3 RBAC gate is PASS.
- CRDs are installed, including `SwBlockReplicaEligibility`.
- A current image containing `sw-block ops authority-executor` is available to
the k3s node. The gate defaults to `sw-block:local`; QA may override with:
```text
SW_BLOCK_PHASE54_IMAGE=<image>
SW_BLOCK_PHASE54_IMAGE_PULL_POLICY=IfNotPresent
```
- `authorityExecutor.execution.enabled=true` so the executor ServiceAccount has
only:
- get/list/watch `swblockvolumes`
@@ -0,0 +1,359 @@
#!/usr/bin/env bash
set -euo pipefail
PRODUCT_ROOT="${1:-$(pwd)}"
ARTIFACT_DIR="${SW_BLOCK_ARTIFACT_DIR:-${PRODUCT_ROOT}/results/phase54-authority-executor-callsite-gate}"
KUBECTL="${KUBECTL:-kubectl}"
NAMESPACE="${SW_BLOCK_PHASE54_NAMESPACE:-sw-block-phase54-authority-executor-callsite}"
EXEC_SA="sw-block-authority-executor-exec"
EXEC_USER="system:serviceaccount:${NAMESPACE}:${EXEC_SA}"
IMAGE="${SW_BLOCK_PHASE54_IMAGE:-sw-block:local}"
IMAGE_PULL_POLICY="${SW_BLOCK_PHASE54_IMAGE_PULL_POLICY:-IfNotPresent}"
NODE_NAME="${SW_BLOCK_PHASE54_NODE_NAME:-m02}"
SUMMARY="${ARTIFACT_DIR}/phase54-authority-executor-callsite-summary.txt"
mkdir -p "${ARTIFACT_DIR}"
: >"${SUMMARY}"
write_summary() {
echo "$*" | tee -a "${SUMMARY}" >/dev/null
}
run_capture() {
local name="$1"
shift
"$@" >"${ARTIFACT_DIR}/${name}.stdout.txt" 2>"${ARTIFACT_DIR}/${name}.stderr.txt"
}
run_expect_success() {
local name="$1"
shift
if run_capture "$name" "$@"; then
return 0
fi
echo "expected success for ${name}" >&2
cat "${ARTIFACT_DIR}/${name}.stderr.txt" >&2 || true
return 1
}
jsonpath() {
local resource="$1"
local path="$2"
"${KUBECTL}" get "${resource}" -n "${NAMESPACE}" -o "jsonpath=${path}" 2>/dev/null || true
}
assert_eq() {
local name="$1"
local actual="$2"
local expected="$3"
write_summary "${name}=${actual}"
if [ "${actual}" != "${expected}" ]; then
echo "${name}: got ${actual}, expected ${expected}" >&2
return 1
fi
}
can_i_as() {
local name="$1"
local expected="$2"
shift 2
run_capture "can-i-${name}" "${KUBECTL}" auth can-i "$@" --as "${EXEC_USER}" -n "${NAMESPACE}" || true
local actual
actual="$(tr -d '\r\n' <"${ARTIFACT_DIR}/can-i-${name}.stdout.txt")"
assert_eq "${name}" "${actual}" "${expected}"
}
cleanup_crds_if_empty() {
local volume_count eligibility_count
volume_count="$("${KUBECTL}" get swblockvolumes -A --no-headers 2>/dev/null | wc -l | tr -d ' ')"
eligibility_count="$("${KUBECTL}" get swblockreplicaeligibilities -A --no-headers 2>/dev/null | wc -l | tr -d ' ')"
if [ "${volume_count}" = "0" ] && [ "${eligibility_count}" = "0" ]; then
"${KUBECTL}" delete crd swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com --ignore-not-found >/dev/null 2>&1 || true
fi
}
cleanup() {
set +e
"${KUBECTL}" delete job -n "${NAMESPACE}" -l block.seaweedfs.com/phase54-callsite=true --ignore-not-found >/dev/null 2>&1
"${KUBECTL}" delete clusterrolebinding sw-block-phase54-authority-executor-callsite --ignore-not-found >/dev/null 2>&1
"${KUBECTL}" delete clusterrole sw-block-phase54-authority-executor-callsite --ignore-not-found >/dev/null 2>&1
"${KUBECTL}" delete namespace "${NAMESPACE}" --ignore-not-found >/dev/null 2>&1
for _ in $(seq 1 30); do
if ! "${KUBECTL}" get namespace "${NAMESPACE}" >/dev/null 2>&1; then
break
fi
sleep 1
done
cleanup_crds_if_empty
}
trap cleanup EXIT
write_summary "phase54_authority_executor_callsite_status=running"
write_summary "phase54_authority_executor_image=${IMAGE}"
write_summary "phase54_authority_executor_node=${NODE_NAME}"
run_expect_success kubectl-version "${KUBECTL}" version --client=true
run_expect_success apply-volume-crd "${KUBECTL}" apply -f "${PRODUCT_ROOT}/charts/seaweed-block/crds/swblockvolumes.block.seaweedfs.com.yaml"
run_expect_success apply-eligibility-crd "${KUBECTL}" apply -f "${PRODUCT_ROOT}/charts/seaweed-block/crds/swblockreplicaeligibilities.block.seaweedfs.com.yaml"
cat >"${ARTIFACT_DIR}/namespace.yaml" <<YAML
apiVersion: v1
kind: Namespace
metadata:
name: ${NAMESPACE}
labels:
block.seaweedfs.com/phase54-gate: "true"
YAML
run_expect_success apply-namespace "${KUBECTL}" apply -f "${ARTIFACT_DIR}/namespace.yaml"
cat >"${ARTIFACT_DIR}/rbac.yaml" <<YAML
apiVersion: v1
kind: ServiceAccount
metadata:
name: ${EXEC_SA}
namespace: ${NAMESPACE}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: sw-block-phase54-authority-executor-callsite
rules:
- apiGroups: ["block.seaweedfs.com"]
resources: ["swblockvolumes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["block.seaweedfs.com"]
resources: ["swblockreplicaeligibilities"]
verbs: ["get", "list", "watch"]
- apiGroups: ["block.seaweedfs.com"]
resources: ["swblockreplicaeligibilities/status"]
verbs: ["get", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: sw-block-phase54-authority-executor-callsite
subjects:
- kind: ServiceAccount
name: ${EXEC_SA}
namespace: ${NAMESPACE}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: sw-block-phase54-authority-executor-callsite
YAML
run_expect_success apply-rbac "${KUBECTL}" apply -f "${ARTIFACT_DIR}/rbac.yaml"
can_i_as "exec_patch_swblockreplicaeligibilities_status_allowed" "yes" patch swblockreplicaeligibilities --subresource=status
can_i_as "exec_patch_swblockreplicaeligibilities_main_denied" "no" patch swblockreplicaeligibilities
can_i_as "exec_patch_swblockvolumes_status_denied" "no" patch swblockvolumes --subresource=status
can_i_as "exec_patch_swblockvolumes_finalizers_denied" "no" patch swblockvolumes --subresource=finalizers
can_i_as "exec_create_events_denied" "no" create events
can_i_as "exec_create_pods_denied" "no" create pods
can_i_as "exec_patch_pvc_denied" "no" patch pvc
can_i_as "exec_update_storageclass_denied" "no" update storageclasses
create_volume() {
local name="$1"
local volume_id="$2"
local pvc_name="$3"
local replica_id="$4"
local frontend_fenced="$5"
local frontend_primary_ready="$6"
local durable_lsn="$7"
local required_lsn="$8"
cat >"${ARTIFACT_DIR}/${name}.yaml" <<YAML
apiVersion: block.seaweedfs.com/v1alpha1
kind: SwBlockVolume
metadata:
name: ${name}
namespace: ${NAMESPACE}
spec:
pvcName: ${pvc_name}
YAML
run_expect_success "apply-volume-${name}" "${KUBECTL}" apply -f "${ARTIFACT_DIR}/${name}.yaml"
cat >"${ARTIFACT_DIR}/${name}-status.json" <<JSON
{
"status": {
"volumeID": "${volume_id}",
"pvcName": "${pvc_name}",
"status": "unknown",
"reasonCode": "returned_replica_frontend_fenced",
"replicaReintegrations": [{
"replicaID": "${replica_id}",
"state": "fenced",
"reasonCode": "returned_replica_frontend_fenced",
"frontendFenced": ${frontend_fenced},
"frontendPrimaryReady": ${frontend_primary_ready},
"ackEligibilityKnown": true,
"ackEligible": false,
"durableFrontierKnown": true,
"durableFrontierLsn": ${durable_lsn},
"requiredFrontierKnown": true,
"requiredFrontierLsn": ${required_lsn},
"evidenceRefs": ["${name}-returned-evidence.txt"]
}],
"executorContracts": [{
"actionType": "authority.reintegrate_returned_replica",
"replicaID": "${replica_id}",
"decision": "disabled",
"reason": "executor_policy_disabled",
"ownerExecutor": "authority_recovery_executor",
"executionEnabled": false,
"mutationAllowed": false,
"preflightDecision": "ready",
"preflightReason": "preconditions_satisfied",
"allowedMutationClass": ["ack_eligibility"],
"forbiddenMutationClass": ["frontend_publication", "rebuild_traffic", "failback"],
"terminalEvidenceRequired": [
"ack_eligibility_known",
"ack_eligible_true",
"frontend_fenced_after_execution",
"primary_unchanged",
"durable_frontier_covered",
"no_cross_volume_identity_change"
],
"evidenceRefs": ["${name}-contract-evidence.txt"]
}]
}
}
JSON
run_expect_success "patch-volume-status-${name}" "${KUBECTL}" patch swblockvolume "${name}" -n "${NAMESPACE}" --subresource=status --type=merge --patch-file "${ARTIFACT_DIR}/${name}-status.json"
}
create_target() {
local name="$1"
local volume_name="$2"
local volume_id="$3"
local pvc_name="$4"
local replica_id="$5"
cat >"${ARTIFACT_DIR}/${name}.yaml" <<YAML
apiVersion: block.seaweedfs.com/v1alpha1
kind: SwBlockReplicaEligibility
metadata:
name: ${name}
namespace: ${NAMESPACE}
spec:
volumeName: ${volume_name}
volumeID: ${volume_id}
pvcName: ${pvc_name}
replicaID: ${replica_id}
YAML
run_expect_success "apply-target-${name}" "${KUBECTL}" apply -f "${ARTIFACT_DIR}/${name}.yaml"
}
clear_objects() {
run_capture "delete-synthetic-objects" "${KUBECTL}" delete swblockvolumes,swblockreplicaeligibilities --all -n "${NAMESPACE}" --ignore-not-found || true
}
run_executor_job() {
local case_name="$1"
local job_name="phase54-executor-${case_name}"
"${KUBECTL}" delete job "${job_name}" -n "${NAMESPACE}" --ignore-not-found >/dev/null 2>&1 || true
cat >"${ARTIFACT_DIR}/${job_name}.yaml" <<YAML
apiVersion: batch/v1
kind: Job
metadata:
name: ${job_name}
namespace: ${NAMESPACE}
labels:
block.seaweedfs.com/phase54-callsite: "true"
spec:
backoffLimit: 0
template:
metadata:
labels:
block.seaweedfs.com/phase54-callsite: "true"
spec:
nodeSelector:
kubernetes.io/hostname: ${NODE_NAME}
serviceAccountName: ${EXEC_SA}
restartPolicy: Never
containers:
- name: authority-executor
image: ${IMAGE}
imagePullPolicy: ${IMAGE_PULL_POLICY}
command: ["/usr/local/bin/sw-block"]
args:
- "ops"
- "authority-executor"
- "--namespace=${NAMESPACE}"
- "--allowed-mutation-class=ack_eligibility"
- "--execution-policy"
- "--enable-execution"
YAML
run_expect_success "apply-job-${case_name}" "${KUBECTL}" apply -f "${ARTIFACT_DIR}/${job_name}.yaml"
if ! run_capture "wait-job-${case_name}" "${KUBECTL}" wait --for=condition=complete "job/${job_name}" -n "${NAMESPACE}" --timeout=120s; then
"${KUBECTL}" describe job "${job_name}" -n "${NAMESPACE}" >"${ARTIFACT_DIR}/${case_name}-job-describe.txt" 2>&1 || true
"${KUBECTL}" logs "job/${job_name}" -n "${NAMESPACE}" >"${ARTIFACT_DIR}/${case_name}-executor.log" 2>&1 || true
cat "${ARTIFACT_DIR}/${case_name}-executor.log" >&2 || true
return 1
fi
run_expect_success "logs-job-${case_name}" "${KUBECTL}" logs "job/${job_name}" -n "${NAMESPACE}"
cp "${ARTIFACT_DIR}/logs-job-${case_name}.stdout.txt" "${ARTIFACT_DIR}/${case_name}-executor.log"
}
clear_objects
create_volume "target-missing" "pvc-target-missing" "pvc-target-missing" "r1" "true" "false" "52" "52"
run_executor_job "target-missing"
target_missing_log="$(tr -d '\r' <"${ARTIFACT_DIR}/target-missing-executor.log")"
if ! grep -q "authority_executor=blocked" <<<"${target_missing_log}"; then
echo "target-missing did not block" >&2
exit 1
fi
if ! grep -q "ack_eligibility_target_missing=1" <<<"${target_missing_log}"; then
echo "target-missing did not report missing target" >&2
exit 1
fi
assert_eq "target_missing_mutation_attempts" "$(grep -o 'mutation_attempts=[0-9]*' "${ARTIFACT_DIR}/target-missing-executor.log" | head -1 | cut -d= -f2)" "0"
target_count="$("${KUBECTL}" get swblockreplicaeligibilities -n "${NAMESPACE}" --no-headers 2>/dev/null | wc -l | tr -d ' ')"
assert_eq "target_missing_created_targets" "${target_count}" "0"
clear_objects
create_volume "terminal-missing" "pvc-terminal-missing" "pvc-terminal-missing" "r1" "false" "false" "52" "52"
create_target "terminal-missing-r1" "terminal-missing" "pvc-terminal-missing" "pvc-terminal-missing" "r1"
run_executor_job "terminal-missing"
terminal_missing_log="$(tr -d '\r' <"${ARTIFACT_DIR}/terminal-missing-executor.log")"
if ! grep -q "authority_executor=blocked" <<<"${terminal_missing_log}"; then
echo "terminal-missing did not block" >&2
exit 1
fi
if ! grep -q "terminal_evidence_missing=1" <<<"${terminal_missing_log}"; then
echo "terminal-missing did not report terminal evidence missing" >&2
exit 1
fi
assert_eq "terminal_missing_mutation_attempts" "$(grep -o 'mutation_attempts=[0-9]*' "${ARTIFACT_DIR}/terminal-missing-executor.log" | head -1 | cut -d= -f2)" "0"
assert_eq "terminal_missing_target_reason_absent" "$(jsonpath swblockreplicaeligibility/terminal-missing-r1 '{.status.reasonCode}')" ""
clear_objects
create_volume "complete" "pvc-complete" "pvc-complete" "r1" "true" "false" "52" "52"
create_target "complete-r1" "complete" "pvc-complete" "pvc-complete" "r1"
run_executor_job "complete"
complete_log="$(tr -d '\r' <"${ARTIFACT_DIR}/complete-executor.log")"
if ! grep -q "authority_executor=executed" <<<"${complete_log}"; then
echo "complete case did not execute" >&2
exit 1
fi
assert_eq "complete_mutation_attempts" "$(grep -o 'mutation_attempts=[0-9]*' "${ARTIFACT_DIR}/complete-executor.log" | head -1 | cut -d= -f2)" "1"
assert_eq "complete_ack_eligibility_mutation_attempts" "$(grep -o 'ack_eligibility_mutation_attempts=[0-9]*' "${ARTIFACT_DIR}/complete-executor.log" | head -1 | cut -d= -f2)" "1"
assert_eq "complete_target_reason" "$(jsonpath swblockreplicaeligibility/complete-r1 '{.status.reasonCode}')" "ack_eligibility_recorded"
assert_eq "complete_target_ack_known" "$(jsonpath swblockreplicaeligibility/complete-r1 '{.status.ackEligibilityKnown}')" "true"
assert_eq "complete_target_ack_eligible" "$(jsonpath swblockreplicaeligibility/complete-r1 '{.status.ackEligible}')" "true"
assert_eq "complete_target_frontend_fenced" "$(jsonpath swblockreplicaeligibility/complete-r1 '{.status.frontendFencedAfterExecution}')" "true"
assert_eq "complete_target_primary_unchanged" "$(jsonpath swblockreplicaeligibility/complete-r1 '{.status.primaryUnchanged}')" "true"
assert_eq "complete_target_frontier_covered" "$(jsonpath swblockreplicaeligibility/complete-r1 '{.status.durableFrontierCovered}')" "true"
assert_eq "complete_target_no_cross_volume" "$(jsonpath swblockreplicaeligibility/complete-r1 '{.status.noCrossVolumeIdentityChange}')" "true"
assert_eq "complete_target_ready_condition" "$(jsonpath swblockreplicaeligibility/complete-r1 '{.status.conditions[0].reason}')" "ack_eligibility_recorded"
assert_eq "complete_swblockvolume_ack_still_false" "$(jsonpath swblockvolume/complete '{.status.replicaReintegrations[0].ackEligible}')" "false"
run_expect_success "complete-target-json" "${KUBECTL}" get swblockreplicaeligibility complete-r1 -n "${NAMESPACE}" -o json
if ! grep -q '"no_frontend_publication"' "${ARTIFACT_DIR}/complete-target-json.stdout.txt" ||
! grep -q '"no_rebuild_traffic"' "${ARTIFACT_DIR}/complete-target-json.stdout.txt" ||
! grep -q '"no_failback"' "${ARTIFACT_DIR}/complete-target-json.stdout.txt" ||
! grep -q '"no_primary_authority_change"' "${ARTIFACT_DIR}/complete-target-json.stdout.txt"; then
echo "complete target missing non-claims" >&2
exit 1
fi
write_summary "complete_target_nonclaims_ok=true"
clear_objects
write_summary "phase54_authority_executor_callsite_status=ok"
@@ -0,0 +1,168 @@
# Runner-native Phase 54 D4 gate: authority-executor ACK eligibility call-site.
name: authority-executor-callsite-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: authority_executor_callsite_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite bash scripts/run-phase54-authority-executor-callsite-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^phase54_authority_executor_callsite_status=ok$"
save_as: phase54_callsite_ok
- action: assert_greater
actual: "{{ phase54_callsite_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^target_missing_mutation_attempts=0$"
save_as: target_missing_no_mutation
- action: assert_greater
actual: "{{ target_missing_no_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^target_missing_created_targets=0$"
save_as: target_missing_no_create
- action: assert_greater
actual: "{{ target_missing_no_create }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^terminal_missing_mutation_attempts=0$"
save_as: terminal_missing_no_mutation
- action: assert_greater
actual: "{{ terminal_missing_no_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^terminal_missing_target_reason_absent=$"
save_as: terminal_missing_no_status
- action: assert_greater
actual: "{{ terminal_missing_no_status }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_mutation_attempts=1$"
save_as: complete_one_mutation
- action: assert_greater
actual: "{{ complete_one_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_ack_eligibility_mutation_attempts=1$"
save_as: complete_one_ack_mutation
- action: assert_greater
actual: "{{ complete_one_ack_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_reason=ack_eligibility_recorded$"
save_as: complete_reason
- action: assert_greater
actual: "{{ complete_reason }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_ack_eligible=true$"
save_as: complete_ack_eligible
- action: assert_greater
actual: "{{ complete_ack_eligible }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_frontend_fenced=true$"
save_as: complete_frontend_fenced
- action: assert_greater
actual: "{{ complete_frontend_fenced }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_primary_unchanged=true$"
save_as: complete_primary_unchanged
- action: assert_greater
actual: "{{ complete_primary_unchanged }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_frontier_covered=true$"
save_as: complete_frontier_covered
- action: assert_greater
actual: "{{ complete_frontier_covered }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_no_cross_volume=true$"
save_as: complete_no_cross_volume
- action: assert_greater
actual: "{{ complete_no_cross_volume }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_swblockvolume_ack_still_false=false$"
save_as: complete_source_unchanged
- action: assert_greater
actual: "{{ complete_source_unchanged }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_nonclaims_ok=true$"
save_as: complete_nonclaims
- action: assert_greater
actual: "{{ complete_nonclaims }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
save_as: boundary_volume_status_denied
- action: assert_greater
actual: "{{ boundary_volume_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^exec_create_events_denied=no$"
save_as: boundary_events_denied
- action: assert_greater
actual: "{{ boundary_events_denied }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite"
name: "remote-phases"
ignore_error: true