Repository navigation
Add cumulative_admission_webhook_timeout_hotel_reservation problem - #886
Saadmrp1038 merged 6 commits into
Conversation
Saadmrp1038
left a comment
There was a problem hiding this comment.
@riyadomf I ran the fault on both kind and the real cluster. On the real cluster the fault sometimes does not work.
I did some testing to isolate the cause. The issue appears to be that Calico does not enforce ingress NetworkPolicy on traffic originating from the host network namespace when the destination pod is on the same node.
Tested with isolated webhook backends on specific nodes:
| Source | Destination | Time | NetworkPolicy enforced? |
|---|---|---|---|
| Regular pod on node0 | Pod on node0 (same node) | 5s (timeout) | ✅ Yes |
| Regular pod on node0 | Pod on node1 (cross node) | 5s (timeout) | ✅ Yes |
| Host-network pod on node0 | Pod on node0 (same node) | 0s (instant) | ❌ No |
| Host-network pod on node0 | Pod on node1 (cross node) | 5s (timeout) | ✅ Yes |
Also tested with single-webhook admission:
| Webhook backend location | Pod admission time | Behavior |
|---|---|---|
| Worker node (node1) | 13s | NetworkPolicy blocks → 10s timeout → fail open |
| Control-plane node (node0) | 1s | NetworkPolicy bypassed → instant connection refused → fail open |
The bypass requires BOTH: (1) source is host-network AND (2) target pod is on the same node. Regular pod-to-pod same-node traffic IS properly blocked. The kube-apiserver runs with hostNetwork: true.
It works on kind because the kind control-plane node has a NoSchedule taint, so backend pods are forced onto worker nodes.
Can you please check if this is the case or not. If this is the issue a simple anti-affinity to the backend deployments to exclude the control-plane node should do the trick.
|
@Saadmrp1038 You're right. I was able to reproduce the bypass locally before making any changes. I set up a namespace with a default-deny ingress NetworkPolicy, then pinned one busybox pod to the control-plane node and another to a worker node. A
This matches your findings. The only thing that changes is the destination node. I also found that this is a known Calico behavior and aligns with Calico issue #2632. For this fault, a backend landing on the control-plane node effectively removes one 10-second timeout from the chain. With one backend there, cumulative delay drops from ~40s to ~30s, which explains the flakiness. With two, the fault often won't trigger at all. I've pushed a fix that adds node affinity to exclude nodes labeled Verified locally:
Thanks for testing this on a real cluster. |
There was a problem hiding this comment.
@riyadomf Working now!
Running claudecode with sonnet-4.6 I got the following results:
| Run | Diagnosis Score | Diagnosis Success | Mitigation Success | Diagnosis Summary | Mitigation Summary |
|---|---|---|---|---|---|
| 1 | 100/100 | ✅ | ✅ | Named all 4 webhooks, NetworkPolicy, cumulative timeout mechanism, and cross-namespace dependency. Did not blame decoys. | Deleted the NetworkPolicy |
| 2 | 66/100 | ❌ | ✅ | Identified NetworkPolicy and webhooks correctly but blamed "fake busybox" backends as a contributing factor. Omitted global admission deadline, companion webhooks, and frontend degradation. | Deleted the NetworkPolicy |
| 3 | 77/100 | ✅ | ✅ | Identified NetworkPolicy and webhooks with cumulative 40s timeout. Blamed "fake busybox" backends and attributed failure to "replicaset controller's timeout" instead of apiserver admission deadline. | Deleted the NetworkPolicy |
| 4 | 100/100 | ✅ | ❌ | Perfect diagnosis — named all 4 webhooks, NetworkPolicy, cumulative timeout, cross-namespace dependency. | Deleted all 4 real webhooks (oracle rejected: "policy plane must remain present") |
| 5 | 89/100 | ✅ | ❌ | Identified NetworkPolicy and cumulative timeout but lumped decoys with real webhooks as equally causal ("7 fake mutating admission webhooks"). | Deleted all 7 webhooks (4 real + 3 decoys) — oracle rejected |
The diagnosis is not too hard. The agent consistently finds the NetworkPolicy and webhook chain. The issue is that in 2/5 runs the agent detects the backends are busybox (via kubectl exec ... ss -tlnp or checking pod images), concludes the webhooks are "fake" and shouldn't exist, and deletes them instead of fixing the NetworkPolicy.
The agent's reasoning in those runs: "there are two problems — NetworkPolicy blocks traffic AND webhooks are fake busybox. Deleting either fixes it." The agent chose to delete the webhooks since it viewed them as illegitimate. Technically correct (it would fix admission), but the oracle rejects it because the policy plane must remain present.
If agents can trivially detect the backends are busybox (not real webhook servers), it weakens the problem's realism. A real production incident would have actual webhook servers that are unreachable due to the NetworkPolicy, not dummy containers. The agent shouldn't be able to dismiss the policy plane as "fake" by inspecting the pod image.
Let me know what you think would be a good way to handle this.
Replace the dummy webhook backends with HTTPS admission servers that terminate TLS using Secret-mounted certificates, validate AdmissionReview requests, and return proper admission responses. Certificates are signed by the same CA referenced in each webhook's `caBundle`, with SANs covering the backend Service DNS names. The admission logic enforces a trusted image registry allowlist and a per-container CPU limit. All Hotel Reservation workloads satisfy these policies, so the webhooks remain transparent during normal operation and recovery. Also: * Vary webhook `timeoutSeconds` (12, 8, 11, 9) to make the cumulative timeout less obvious. * Rename the CA CN from `sregym-webhook-ca` to `compliance-webhook-ca`. * Remove a duplicate `rule.from_` check in the oracle. * Fix create-or-replace handling for webhooks, NetworkPolicies, Deployments, and Services so re-injection updates existing resources instead of failing or silently skipping changes.
@Saadmrp1038 Thanks for the testing. The busybox backends made it too easy for the agent to dismiss that the policy plane itself was illegitimate. I've updated the design so the backends behave like real admission services: each webhook now runs an HTTPS server that handles AdmissionReview requests, evaluates them against a compliance-style ruleset, and returns proper AdmissionReview responses. Under normal conditions, the webhooks are fully functional and admit the Hotel Reservation workloads. I also varied the per-webhook timeouts (12s, 8s, 11s, 9s) instead of using four identical 10-second timeouts, so the cumulative timeout is less obvious at a glance. My goal was to make the policy plane something the agent has to investigate and rule out, rather than something it can immediately dismiss as fake by checking the pod image or process list. The underlying root cause remains the same: the NetworkPolicy prevents the apiserver from reaching otherwise healthy webhook backends. I've also incorporated the other fixes you flagged in your inline comments. After the changes, |
|
@riyadomf The fix worked. The agent is not calling it fake anymore. But it seems the fault is quite easy for the agent to solve. claudecode sonnet-4.6 runs
The implementation is solid already. Maybe we can do some minor fiddling to make it a bit harder. I checked the incident link kubernetes#128162. It seems the NetworkPolicy there was more sophisticated and not a simple deny-all ingress.
So we could have a NetworkPolicy with partial allows but missing the allow for the apiserver CIDR. We could even have multiple NetworkPolicies. That would reflect the real incident more faithfully and force the agent to reason about what's absent rather than spotting an obvious deny-all. You can explore other ways also. We are not looking for a very hard problem but at least there should be some amount of difficulty where the agent gets confused and fails sometimes (more than the 1/7 diagnosis failure and 0/7 mitigation failure we see here). Problems like these help us see how an agent navigates ambiguity and expose its strengths and weaknesses. Even a problem where the agent solves it but takes a lot of time to reason about it is also interesting. |
|
@Saadmrp1038, Thanks for the suggestion. I reworked the network layer. What changed
Evaluation (claudecode, sonnet-4.5, N=3)
Diagnosis 1/3, mitigation 1/3. |
|
@riyadomf Thanks for addressing all the comments! The runs look a lot more interesting now. With claude-sonnet-4.6 the agent can still solve it but it's not as easy as before. It takes quite a lot of time for the agent to diagnose and mitigate the fault, and sometimes times out.
Diagnosis 5/5, mitigation 3/5. Agents don't get the fix right on the first attempt. They typically try patching Congrats on your first PR merged here @riyadomf 🎉 |
…REGym#886) * Add cumulative_admission_webhook_timeout_hotel_reservation problem * Pin webhook backends to worker nodes via nodeAffinity * Make webhook backends realistic admission services Replace the dummy webhook backends with HTTPS admission servers that terminate TLS using Secret-mounted certificates, validate AdmissionReview requests, and return proper admission responses. Certificates are signed by the same CA referenced in each webhook's `caBundle`, with SANs covering the backend Service DNS names. The admission logic enforces a trusted image registry allowlist and a per-container CPU limit. All Hotel Reservation workloads satisfy these policies, so the webhooks remain transparent during normal operation and recovery. Also: * Vary webhook `timeoutSeconds` (12, 8, 11, 9) to make the cumulative timeout less obvious. * Rename the CA CN from `sregym-webhook-ca` to `compliance-webhook-ca`. * Remove a duplicate `rule.from_` check in the oracle. * Fix create-or-replace handling for webhooks, NetworkPolicies, Deployments, and Services so re-injection updates existing resources instead of failing or silently skipping changes. * Model the fault as a missing apiserver NetworkPolicy allow * Model the fault as a missing apiserver allow with a near-miss policy --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]>
* Updated default mitigation oracle * Stop timeout for 0 replicas * TBC in CloudLab * Pushing all attempts at the problem * Enable idempotence * Add mutating_webhook_resource_limits problem (#847) * Add mutating_webhook_resource_limits problem * Add mutating_webhook_resource_limits to Problem List * mutating_webhook_resource_limits problem docstring fix Removed incorrect information about mitigation options. * Additions to mutating_webhook_limits_resource_limits problem - Memory limit/request patching before activating the webhook - Decoy pods for increased complexity * More additions to mutating_webhook problem - Make decoys realisticly named - Similar minor changes --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> * Derive the default problem namespace from the application (#876) * add the the probem redundency * base. * the fixed and dynamic app name are fixed. hte namespace are also fixed. * unessessry formating is reverted. * unessessry formating is reverted. * formating correction. * formating correction. * formating correction. * add fault injection decorator markers to test_problem_bsae.py --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> * Confluent kafka attempt * Custom image attempt * Threaded producer and added consumer * Syntax error * Added some imports * fix edge cases * run ruff check adn format * New OOM attempt * Force crash on OOM * Add file_descriptor_exhaustion problem (#832) * add file_descriptor_exhaustion problem * Modify fault injection and recovery methods * Fix fault recovery * Change fault injection method Add fault injection by flooding connections * Update fault injection method and add custom oracle --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> * Finalizer deadlock controller clean (#873) * finalizzer code is reaoslve dadlock benchmark. * yaml file corrected. * reverting hte comments back to their place. * read only rbac * controller log is generalized and avoiding any sregym related name exposing. * applied ruff linter formatter accordingly. * replace metadata naming and includding all the oprations on mitigation side. --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> * Add: secret_rotation_stale_env_credentials_astronomy_shop problem (#851) * Add secret rotation stale env credentials problem * Simplify secret rotation mitigation oracle checks * Require rotated PostgreSQL in oracle * Fix stale DB credential rotation shortcuts - Remove old password from postgresql-init ConfigMap - Keep PostgreSQL password rotation durable after pod restart - Reject mitigations that revert otelu to the old password - Remove old password leaks from unrelated pods * Fix fault recovery to satisfy the oracle * Fix problem registry import ordering --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> * Add cumulative_admission_webhook_timeout_hotel_reservation problem (#886) * Add cumulative_admission_webhook_timeout_hotel_reservation problem * Pin webhook backends to worker nodes via nodeAffinity * Make webhook backends realistic admission services Replace the dummy webhook backends with HTTPS admission servers that terminate TLS using Secret-mounted certificates, validate AdmissionReview requests, and return proper admission responses. Certificates are signed by the same CA referenced in each webhook's `caBundle`, with SANs covering the backend Service DNS names. The admission logic enforces a trusted image registry allowlist and a per-container CPU limit. All Hotel Reservation workloads satisfy these policies, so the webhooks remain transparent during normal operation and recovery. Also: * Vary webhook `timeoutSeconds` (12, 8, 11, 9) to make the cumulative timeout less obvious. * Rename the CA CN from `sregym-webhook-ca` to `compliance-webhook-ca`. * Remove a duplicate `rule.from_` check in the oracle. * Fix create-or-replace handling for webhooks, NetworkPolicies, Deployments, and Services so re-injection updates existing resources instead of failing or silently skipping changes. * Model the fault as a missing apiserver NetworkPolicy allow * Model the fault as a missing apiserver allow with a near-miss policy --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> * Add psa_restricted_blocks_recreation problem (#891) Labelling a namespace pod-security.kubernetes.io/enforce=restricted leaves running pods untouched but makes the apiserver reject recreated pods that run as root / set no seccomp profile, so a deployment silently goes under-replicated. Unlike the existing webhook problems, the policy is enforced by the apiserver via a namespace label, not a webhook config. * Add copilot cli agent (#893) * add copilot cli agent * remove -s flag * Fix MCP retry error handling and CRLF parsing in CI (#896) * fix(mcp): broaden MCP retry exceptions and return error instead of raising * fix(ci): strip CRLF from PR description before parsing problem ID * Fix kind cluster detection (#897) * Fix custom kind cluster detection * Handle failed kind detection output * fix edge cases * run ruff check adn format * Shell state persistence (#903) * Include shell persistence * Include shell persistence * Isolate problem IDs from agent runtime artifacts * update SREGym-applications (18620ed) (#910) * Add Calico route-reflector label drift problem (#828) * Add Calico route-reflector label drift problem * Address Calico route-reflector review comments * Harden Calico cleanup ownership tracking * Fix Codex agent install verification * Tighten Codex platform package detection * Restore kubelet eviction reset cleanup * Neutralize Calico ownership metadata --------- Co-authored-by: Munim Thahmid <[email protected]> Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> * Fail alert oracle on Prometheus query errors (#912) * Decouple failure configmaps from mongo pods in `hotel-reservation` (#899) * decouple failure configmaps from mongo pods * remove empty failure configmaps creation * Support local LLM endpoints for Stratus and OpenCode (#917) * Support local LLM endpoints for Stratus * Prefer env vars for local LLM endpoints * Support local LLM endpoints for OpenCode * Route local endpoints into agent containers * Normalize OpenCode local judge models --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> * Preflight check the judge model (#924) * Add support for uniform agent trajectory (ATIF format) (#918) * add support for ATIF trajectory conversion and normalization, add claudecode adapter * fix: make _finish_problem idempotent * isolate .codex mount in container runner * better temp dir cleanup * add codex adapter * add opencode adapter * add copilot adapter * add stratus adapter * fix antropic caching for stratus * add gemini adapter * store normalized ATIF trajectories in SQLite indexed by problem type * edge tests * bump litellm, tikoken * update docker lib versions * Add node_clock_drift Problem (#894) * adding clock drift problem * fixing race condition causing sidecar log delay * fixing recover_fault to reverse time sync removal applied, improve cleanup * global cleanup added + fixed restoration for node_clock_drift problem * fixing mitigation oracle to ensure correct node checked * adding problem to non emulated cluster problems list * extending wait * indentation error fix * fixing time restoration in global cleanup * adding in check to make sure it picks worker node * adding another control plane filter, fixing clock step-back in global recovery * increase sidecar rollout timeout, make podnames/labels generic, idempotancy check * formatting fixes * format fix * fix * fix ruff check/format issues --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> * Minimum viable python version * Changed diagnosis oracle * Cleaned up fault recovery * Edit tasklist.yml * Removed old Java artifacts * Updated mitigation oracle to be more robust * Added polling * Fail Kafka producer leak injection on timeout --------- Co-authored-by: Saad Mohammad Rafid Pial <[email protected]> Co-authored-by: Kerem Akcalioglu <[email protected]> Co-authored-by: ermias mulugeta <[email protected]> Co-authored-by: Tejas Shukla <[email protected]> Co-authored-by: Petr Myagkov <[email protected]> Co-authored-by: Omar Faruqe Riyad <[email protected]> Co-authored-by: Mohammad Tamimul Ehsan <[email protected]> Co-authored-by: Munim Thahmid <[email protected]> Co-authored-by: Om Kumar <[email protected]> Co-authored-by: Munim Thahmid <[email protected]> Co-authored-by: Tanzim Hossain Romel <[email protected]> Co-authored-by: haani-maybe <[email protected]>
Add cumulative_admission_webhook_timeout_hotel_reservation
/validate-problem cumulative_admission_webhook_timeout_hotel_reservation
The real-world failure
In October 2024, Kubernetes issue #128162 documented a class of admission-controller failure that isn't as obvious as it sounds. A chain of
MutatingWebhookConfigurations, each individually set tofailurePolicy: Ignore, can collectively block pod creation when their backends are unreachable. The issue was closed as "not planned". The upstream view is that operators should configure their webhook chains more carefully, but the trap remains current and reproduces on the 1.32.0 cluster used here.Here is the picture an SRE actually walks into. Someone installed a handful of compliance webhooks months ago: a pod resource validator, an audit logger, an image policy checker, a tenant quota validator. Each was set to
failurePolicy: Ignoreso they would never block the cluster if they went unhealthy. Later, a security audit added a default-deny ingressNetworkPolicyto the namespace where the webhook backends live. Nothing broke immediately. Pods that were already running stayed running. The next time a Deployment in the affected namespace tried to recreate a pod (rolling update, eviction, OOM-kill), pod creation began failing withTimeout: request did not complete within requested timeout - context deadline exceeded.The mechanism is cumulative, and that's the trap. Per-webhook
Ignoreonly applies after that webhook'stimeoutSecondselapses. With four webhooks at 10 seconds each, the kube-apiserver waits 40 seconds before the firstIgnorewould fire. The apiserver's global admission deadline is about 30 seconds. The global timeout fires first, so admission fails outright. The error message names neither the webhooks nor the NetworkPolicy.The simulation
inject_fault()reproduces the scenario in eight steps:policy-systemnamespace for the webhook backends.cryptographylibrary so thecaBundleschema is satisfied. The CA is never validated at runtime because the NetworkPolicy drops the connection before TLS.policy-system, each runningbusybox:1.36 sleep infinity. The backends never serve traffic. That's intentional.MutatingWebhookConfigurations pointing at those backends. Each hasnamespaceSelectormatchinghotel-reservation,timeoutSeconds: 10,failurePolicy: Ignore. Names:pod-resource-validator,audit-log-enforcer,image-policy-checker,tenant-quota-validator.MutatingWebhookConfigurations with ecosystem-realistic names:cert-manager-webhook,istio-sidecar-injector,kyverno-resource-mutating-webhook-cfg,linkerd-proxy-injector-webhook-config. They share the samenamespaceSelector, so listing webhooks for the application namespace returns 8 hits, not 4. The decoys are kept inert byobjectSelectors that require labels no application pod carries (for examplelinkerd.io/inject: enabled), or byrulestargeting CRDs that aren't installed. Their backend Services point at non-existent endpoints inpolicy-system, but those services are never called because the selectors don't match. Decoys are deliberately visible but non-causal: a diagnostic distractor.default-deny-ingressNetworkPolicy inpolicy-system, blocking all ingress. This is the actual fault.recommendationpod inhotel-reservation. The ReplicaSet tries to recreate it, admission fails, the deployment goes to0/1 ready, therecommendationService loses its endpoints.frontendcalls torecommendationdegrade. The application impact is visible from the user side, not just a cluster-state discrepancy.recover_fault()reverses the destructive steps in safe order: NetworkPolicy first, so subsequent kubectl calls aren't themselves admission-blocked.I picked
recommendationdeliberately. It's a leaf service in Hotel Reservation, so the cascade is bounded. The rest of the application keeps running, but the failure is real and observable from the frontend side.Why diagnosis is hard
The error message gives nothing away.
context deadline exceededlooks identical to scheduler timeouts under resource pressure, etcd contention, or any of a dozen other apiserver-side issues. It names no webhook and no NetworkPolicy.Each webhook individually looks safe. Reading any single
kubectl describe mutatingwebhookconfigurationshowsfailurePolicy: Ignore, which an operator reads as "if I time out, you'll skip me." The trap exists only in the sum across all four. Recognizing it requires enumerating the chain, adding the timeouts, and comparing to the apiserver's global deadline. None of that is hinted at by any single resource.The cause is one network layer below the symptom. The visible signal is pod admission failure. The first investigative impulse is to look at the webhook backends, and the backends are
busybox sleep, which looks like the cause: "the webhook server isn't listening." Even if the backends were real webhook servers, the NetworkPolicy inpolicy-systemwould still drop the request before TLS handshake. The agent has to follow the chain through this plausible-looking false bottom into another namespace's NetworkPolicy.Decoys add diagnostic noise. The first webhook listing returns 8 hits, not 4. The decoy names are realistic enough (
cert-manager,istio,kyverno,linkerd) that a competent operator would recognize them as the kind of cluster tooling that legitimately installs admission webhooks. The decoys'objectSelectors are visible, so the trail is followable. It just requires more investigation than reading the first row ofkubectl get.The mitigation oracle
A generic "are pods Running?" check would be defeated by
kubectl delete mutatingwebhookconfiguration --all. The custom oracle insregym/conductor/oracles/cumulative_admission_webhook_timeout_mitigation.pyhas four properties evaluated in order. Evaluation short-circuits on the first failure.Property 1: spec is in an accepted fix shape. Any one of these passes:
default-deny-ingressNetworkPolicy is deleted.timeoutSecondsacross surviving real webhooks targetinghotel-reservationis at most 25 seconds (5-second safety margin under the 30-second global deadline).namespaceSelectorno longer matcheshotel-reservation.If none of these holds, Property 1 returns False with an explicit reason that names the accepted shapes. The "policy plane must remain present" rejection (when all four real webhooks have been deleted) is the part that makes this oracle work. Real production operators can't delete compliance webhooks at will, and the oracle enforces that constraint the way production would. Same invariant style as
cronjob_sidecar_blocks_completion.Property 2: workload intact.
recommendationdeployment exists,spec.replicas >= 1, not paused, nodeletionTimestamp. Rejects "fix" attempts that remove the affected workload.Property 3: pod is healthy.
status.ready_replicas == spec.replicas. The pod actually reached Ready, not just exists.Property 4: fresh probe pod admits successfully. The oracle creates a real pod (
oracle-probe-<8-random-hex>) inhotel-reservationvia the kubernetes Python client and polls for Running with a 90-second deadline. Random suffix prevents pre-write attacks. Cleanup runs in a finally block viacontextlib.suppress(ApiException). If admission is still broken, this property fails regardless of what the spec looks like.Verified rejected shortcuts:
recommendationdeploymentkubectl scale deployment recommendation --replicas=0failurePolicy: FailTest results
Validation lifecycle
tests/integration/validate_problem.pyruns the canonical inject → oracle-must-fail → recover → oracle-must-pass contract. The problem passes 6/6 stages:I also re-ran the validation after three back-to-back agent runs to confirm the cluster baseline survives agent-driven state churn. That run also passed in 293s.
Three Claude Sonnet 4.5 runs
Each run is one invocation of
main.py --problem cumulative_admission_webhook_timeout_hotel_reservation --agent claudecode --model claude-sonnet-4-5 --judge-model gemini/gemini-2.5-flash. The judge runs at temperature 0, so identical diagnosis text produces identical scores.Diagnosis pass requires composite ≥ 0.78 and no dimension scored 0 (SREGym §App-A threshold). Sonnet 4.5 did not pass both diagnosis and mitigation in any of three attempts.
Run A
The agent listed all 8 MutatingWebhookConfigurations targeting
hotel-reservation, looked at the decoyobjectSelectorfields without falsely blaming any decoy, drilled into only 2 of the 4 real webhooks (pod-resource-validator,tenant-quota-validator), and submitted:The "10 seconds" claim is wrong. The actual failure is at the apiserver's ~30-second global deadline, not at any individual webhook's 10-second per-call timeout. The agent inspected the
policy-systemnamespace 15 times during the run (for backend pod logs) but never looked at NetworkPolicies in it.Per-question judge breakdown:
policy-systemnamespace.For mitigation the agent deleted the two webhooks it had been investigating. By coincidence, that left two real webhooks alive (policy plane intact) and dropped cumulative timeout to 2 × 10s = 20s, below the 25-second safety threshold. Property 1 accepted. The mitigation passed, but diagnosis was 4/9, so the joint outcome is still FAIL.
Run B
The kind cluster had real load from prior runs: kind-worker at 100% of CPU limits, kind-worker3 at 125%, because the cluster runs
kube-system,openebs,observe,chaos-mesh,khaos, andhotel-reservationsimultaneously. The agent saw the CPU numbers, saw the samecontext deadline exceedederror in the ReplicaSet, and submitted:The diagnosis is internally plausible.
context deadline exceededis genuinely ambiguous in isolation. It can come from scheduler timeouts under resource pressure or from the apiserver admission deadline. The agent picked the former without inspecting admission webhooks. The CPU pressure the agent observed comes from the kind cluster carrying days of accumulated work; a fresh cluster per run might produce different diagnoses, but persistent clusters are how SREGym normally evaluates, so this run reflects realistic conditions.Per-question judge breakdown:
context deadline exceedederror string.For mitigation the agent first ran
kubectl patch deployment/recommendationto reduce CPU limit from1to500m. That didn't help. The agent then deleted all four real webhook configurations. Property 1 rejected with the "policy plane must remain present" message.Run C
The agent traced the cross-layer dependency exactly. Final submission:
All 9 checklist questions answered Yes. Composite 1.0. The agent named the affected deployment, the NetworkPolicy, the namespace boundary between
policy-systemandhotel-reservation, the cumulative-timeout mechanism, and the apiserver's role.Per-question judge breakdown:
default-deny-ingressNetworkPolicy inpolicy-system.policy-systemas the fault component.recommendationdeployment, NetworkPolicy, kube-apiserver, webhook services.context deadline exceeded) match the mechanism.For mitigation, despite having the right answer, the agent deleted all four real webhooks. Property 1 rejected with the same "policy plane must remain present" message. The destructive shortcut was mechanically simpler than opening the NetworkPolicy or narrowing namespaceSelectors, and the agent took it.
Files
sregym/conductor/problems/cumulative_admission_webhook_timeout_hotel_reservation.pyinject_fault,recover_fault, helpers for CA generation, webhook config build, decoy management, NetworkPolicy management.sregym/conductor/oracles/cumulative_admission_webhook_timeout_mitigation.pysregym/conductor/problems/registry.pyTest plan
validate_problem.pypasses 6/6 stages (279s)validate_problem.pyre-run after three back-to-back agent runs passes (293s)