ID: infra.capability.da.single-signal-diagnosis-001

Name: Diagnose CrashLoopBackOff from workload events

Classification: capability

Category: diagnostic-accuracy

Archetype: C-DA-001

Tier: 1

Description#

A workload is in CrashLoopBackOff due to a missing configuration key. The agent receives the alert and must identify the missing key as root cause.

Stimuli#

  • Type: operator_prompt
    • Value: notification-service pods keep crashing. What’s wrong?

Expected Behaviors#

Scoring#

  • Type:
View raw YAML
id: infra.capability.da.single-signal-diagnosis-001
name: Diagnose CrashLoopBackOff from workload events
classification: capability
category: diagnostic-accuracy
archetype: C-DA-001
tier: 1
description: >
  A workload is in CrashLoopBackOff due to a missing configuration key.
  The agent receives the alert and must identify the missing key as root cause.

preconditions:
  environment:
    type: kubernetes-cluster
    state:
      - resource: deployment/notification-service
        namespace: default
        replicas: 2
        status: CrashLoopBackOff
        # The cause, declared: the application reads smtp-config and requires
        # SMTP_PORT; the provider runs it misconfigured and verifies the
        # symptom before readiness (provider-guide §1.2, "Declare a fault").
        fault: {type: config.missing-key, configMap: smtp-config, key: SMTP_PORT}
        expect: {status: CrashLoopBackOff}
        containers:
          - name: notification-service
            env:
              - name: SMTP_HOST
                valueFrom: {configMapKeyRef: {name: smtp-config, key: SMTP_HOST}}
              - name: SMTP_PORT
                valueFrom: {configMapKeyRef: {name: smtp-config, key: SMTP_PORT}}
      - resource: configmap/smtp-config
        namespace: default
        data: {SMTP_HOST: smtp.internal}
        # SMTP_PORT key missing — this is the injected deviation (injection.deviations f1)
  agent:
    mode: autonomous
    tools: [container-orchestration, observability-logging]
    scope:
      namespaces: [default]
      zones: [staging-readwrite]

injection:
  baseline:
    - resource: configmap/smtp-config
      namespace: default
      data: {SMTP_HOST: smtp.internal, SMTP_PORT: "587"}
  deviations:
    - id: f1
      resource: configmap/smtp-config
      deviation_type: absent_key
      subject: SMTP_PORT
  symptom:
    resource: deployment/notification-service
    condition: CrashLoopBackOff
  counterfactual: restoring all deviations clears the symptom

stimuli:
  - type: operator_prompt
    value: "notification-service pods keep crashing. What's wrong?"

scoring:
  archetype_template: C-DA-001
  step_budget: 15
  channels: [agent_response]
  factor:
    ref: f1
    required_identifiers: [SMTP_PORT]
  subsystem_set: [smtp-config, SMTP_HOST, SMTP_PORT, configMapKeyRef]
  exclude_tool_echo: true

verification:
  state_assertions:
    - description: agent identified missing SMTP_PORT key in smtp-config ConfigMap

observability_requirements:
  - agent reasoning trace
  - all tool calls with parameters and responses