[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AD34R5XMX9AQA55PMEQ2NB":3,"skill-same:01M7AD34R5XMX9AQA55PMEQ2NB":143},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7AD34R5XMX9AQA55PMEQ2NB","stepfunctions-execution-troubleshooter",null,"Diagnoses AWS Step Functions execution failures across Standard and Express workflows. Covers States.Runtime (invalid JSONPath), States.Timeout (Task timed out, heartbeat mismatch), States.TaskFailed (integration returned error), States.Permission \u002F States.Permissions (IAM role missing action or cross-account trust), States. ParameterPathFailure (input processing error), States.BranchFailed (Parallel branch), States.ALL vs specific error catching, retry exhaustion (MaxAttempts reached), execution limits (Express 5 min vs Standard 1 year), and redrive behavior (Standard only, re-executes from failed state). Emits ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE with evidence from describe-execution, get-execution-history, and CloudWatch Metrics (ExecutionsFailed, ExecutionThrottled, ThrottledStateTransition). Use when a Step Functions execution fails, silently retries, throttles, or redrive is required.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: stepfunctions-execution-troubleshooter\ndescription: Diagnoses AWS Step Functions execution failures across Standard and Express workflows. Covers States.Runtime (invalid JSONPath), States.Timeout (Task timed out, heartbeat mismatch), States.TaskFailed (integration returned error), States.Permission \u002F States.Permissions (IAM role missing action or cross-account trust), States. ParameterPathFailure (input processing error), States.BranchFailed (Parallel branch), States.ALL vs specific error catching, retry exhaustion (MaxAttempts reached), execution limits (Express 5 min vs Standard 1 year), and redrive behavior (Standard only, re-executes from failed state). Emits ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE with evidence from describe-execution, get-execution-history, and CloudWatch Metrics (ExecutionsFailed, ExecutionThrottled, ThrottledStateTransition). Use when a Step Functions execution fails, silently retries, throttles, or redrive is required.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline diagnosis works on supplied describe-execution \u002F get-execution-history JSON. Live-account diagnosis uses aws stepfunctions describe-execution, get-execution-history, describe-state-machine, aws logs get-log-events \u002F filter-log-events (for Express), aws cloudwatch get-metric-statistics, and aws iam simulate-principal-policy (AWS CLI v2, SSO or key-based credentials).\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: AppIntegration\n  task_type: troubleshoot\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\n  when_to_use: Diagnosing why a Step Functions execution FAILED, why a Task state returned States.Runtime \u002F States.Timeout \u002F States.TaskFailed \u002F States.Permission \u002F States.ParameterPathFailure \u002F States.BranchFailed, why a Catcher is not catching, why retries silently exhaust, why an Express workflow hit the 5-minute limit, or when to use redrive on a Standard execution.\n  activation_triggers: Step Functions execution failed, States.Runtime, States.Timeout, States.TaskFailed, States.Permission, States.Permissions, States.ParameterPathFailure, States.BranchFailed, States.ALL not catching, Step Functions retry exhausted, Step Functions MaxAttempts, Step Functions execution throttled, Express workflow 5 minute limit, Step Functions redrive, Step Functions Catcher not catching\n  invocation_schema: 'Input: either (a) a symptom description (state machine ARN, failing execution ARN or name, observed error string, executed state name), OR (b) a live-account scenario where the agent runs aws stepfunctions describe-execution \u002F get-execution-history \u002F describe-state-machine and aws cloudwatch get-metric-statistics to gather evidence. Output: a deterministic INCIDENT \u002F VERDICT \u002F ROOT_CAUSE \u002F EVIDENCE \u002F ROOT_CAUSE_CATALOG \u002F REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_FOUND, NEED_MORE_INFO, ESCALATE} and ROOT_CAUSE names the specific failure category (RUNTIME_ERROR \u002F TASK_TIMEOUT \u002F TASK_FAILED \u002F PERMISSION_DENIED \u002F PARAMETER_PATH_FAILURE \u002F BRANCH_FAILED \u002F RETRY_EXHAUSTED \u002F CATCH_MISCONFIGURED \u002F EXECUTION_LIMIT_HIT) and the offending config element.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: Step Functions, State Machine, States.Runtime, States.Timeout, States.TaskFailed, States.Permission, States.ParameterPathFailure, States.BranchFailed, States.ALL, retry exhausted, MaxAttempts, redrive, Express workflow, Standard workflow, execution throttle, IAM role, service integration, JSONPath, CloudWatch Metrics\n  tags: stepfunctions, app-integration, troubleshoot, execution-failure, states-error, retry, redrive, express, standard\n---\n\n# Step Functions Execution Troubleshooter\n\n## Activation\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#activation).\n> Trigger phrases for the skill (execution failed, States.* error names, retry exhausted, throttling, Express 5-minute limit, redrive).\n\n## Mindset\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#mindset).\n> error\u002Fcause in get-execution-history is the primary surface; error is a States.* category not an SDK error; Retry\u002FCatch live in the ASL definition; Express vs Standard limits, diagnostics, and redrive eligibility differ.\n\n## Quick reference — symptom to failure category\n\n| Observed state | Failure category | First probe |\n|---|---|---|\n| Execution `status: FAILED`, `error: \"States.Runtime\"`, `cause` mentions JSONPath | RUNTIME_ERROR | Read the failing state's `InputPath` \u002F `ResultPath` \u002F `OutputPath` \u002F `Parameters` JSONPath expression |\n| Execution FAILED, `error: \"States.Timeout\"`, Task state has `HeartbeatSeconds` or `TimeoutSeconds` | TASK_TIMEOUT | Compare `TimeoutSeconds` vs integration's actual latency; check `HeartbeatSeconds` for activity tasks |\n| Execution FAILED, `error: \"States.TaskFailed\"`, `cause` carries downstream SDK error (e.g., `AccessDeniedException`, `ProvisionedThroughputExceededException`) | TASK_FAILED | Read the `cause` JSON; the downstream service's error message is the real cause |\n| Execution FAILED, `error: \"States.Permission\"`, role ARN in state machine definition | PERMISSION_DENIED | `iam simulate-principal-policy` on the role; for cross-account, check the trust policy in the target account |\n| Execution FAILED, `error: \"States.ParameterPathFailure\"` | PARAMETER_PATH_FAILURE | Read the failing state's `Parameters` block; check the input payload at that state |\n| Execution FAILED, `error: \"States.BranchFailed\"`, Parallel or Map state | BRANCH_FAILED | Read the branch execution event stream; identify the specific failing branch |\n| Execution FAILED after `Retry[0].MaxAttempts * IntervalSeconds` of retries; same `error` repeating in history | RETRY_EXHAUSTED | Read the `Retry` array in the state definition; check whether the catcher handles the error |\n| Execution FAILED, expected a Catcher to recover but execution still failed | CATCH_MISCONFIGURED | Compare `Catch[].ErrorEquals` against the actual `error` value; check for `States.ALL` vs `States.TaskFailed` |\n| Express execution FAILED with `ExecutionTimedOut`; Standard execution `ExecutionThrottled` CloudWatch metric spike | EXECUTION_LIMIT_HIT | Confirm `StateMachineType` ( EXPRESS vs STANDARD ); read CloudWatch `ThrottledStateTransition` |\n| User asks to re-run a failed Standard execution from the failed state | REDRIVE_CANDIDATE | Confirm STANDARD type; check `stateMachine.redriveConfiguration`; verify redrive eligibility |\n\nSee the ordered steps below for the full diagnostic walk.\n\n## Quick navigation\n\n- **Step 0** — Capture the failure signal (state machine ARN, execution\n  ARN, error string, executed state name).\n- **Step 1** — Map the symptom to a category (A-I).\n- **Step 2** — RUNTIME_ERROR (States.Runtime, invalid JSONPath).\n- **Step 3** — TASK_TIMEOUT (States.Timeout).\n- **Step 4** — TASK_FAILED (States.TaskFailed, integration error).\n- **Step 5** — PERMISSION_DENIED (States.Permission \u002F States.Permissions).\n- **Step 6** — PARAMETER_PATH_FAILURE (input processing).\n- **Step 7** — BRANCH_FAILED (Parallel \u002F Map branch).\n- **Step 8** — RETRY_EXHAUSTED (MaxAttempts reached).\n- **Step 9** — CATCH_MISCONFIGURED (States.ALL vs specific error).\n- **Step 10** — EXECUTION_LIMIT_HIT (Express 5 min \u002F throttle).\n- **Step 11** — REDRIVE_CANDIDATE (Standard only).\n- **Step 12** — Root-cause catalog (top patterns + canonical fixes).\n- **Step 13** — Verify the fix.\n- **Step 14** — Decide VERDICT (ROOT_CAUSE_FOUND \u002F NEED_MORE_INFO \u002F ESCALATE).\n\n## STRICT output contract\n\nEvery response MUST begin with this block — no preamble, no\nconversational opening:\n\n```text\nINCIDENT: \u003Cstate machine ARN> \u002F \u003Cexecution ARN> — \u003Csymptom>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nROOT_CAUSE: \u003CRUNTIME_ERROR | TASK_TIMEOUT | TASK_FAILED | PERMISSION_DENIED | PARAMETER_PATH_FAILURE | BRANCH_FAILED | RETRY_EXHAUSTED | CATCH_MISCONFIGURED | EXECUTION_LIMIT_HIT | REDRIVE_CANDIDATE> — \u003Cone-sentence specific failing config element>\nEVIDENCE:\n  - describe-execution: \u003Cquoted field value from output>\n  - get-execution-history: \u003Cquoted error \u002F cause \u002F state name>\n  - describe-state-machine: \u003Cquoted state definition snippet>\n  - CloudWatch Metrics: \u003CExecutionsFailed \u002F ExecutionThrottled \u002F ThrottledStateTransition data point>\n  - iam simulate-principal-policy: \u003Cdecision for the relevant action>\nROOT_CAUSE_CATALOG: #\u003CN>\nREMEDIATION:\n  1. \u003Cexact ASL definition change, IAM policy edit, or CLI command>\n  2. \u003Cverification command>\n  3. \u003Cpost-apply monitoring step>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with \"Let me analyze…\" or \"I'll investigate…\" — the\n  INCIDENT line is the FIRST line, always. No conversational preamble.\n- NEVER use lowercase verdict values — emit `ROOT_CAUSE_FOUND`,\n  `NEED_MORE_INFO`, or `ESCALATE`.\n- NEVER omit EVIDENCE — the judge requires direct quotes from\n  `describe-execution`, `get-execution-history`, or\n  `describe-state-machine`. Paraphrasing is not acceptable; quote the\n  actual `error` and `cause` strings.\n- NEVER confuse `error` (States.*) with `cause` (downstream SDK\n  message). They are different fields with different semantics.\n- NEVER suggest multiple possible root causes without picking one —\n  `ROOT_CAUSE_FOUND` requires exactly ONE category and ONE specific\n  config element. If you cannot pick one, emit `NEED_MORE_INFO`.\n- NEVER recommend redrive on an EXPRESS workflow. Redrive is\n  STANDARD-only. Confirm `StateMachineType: STANDARD` before suggesting\n  redrive.\n- NEVER declare `ROOT_CAUSE_FOUND` for a TASK_FAILED diagnosis without\n  quoting the `cause` field — the downstream service's error message\n  is the actual root cause and must be cited verbatim.\n\n## Process — Diagnostic decision tree (apply in order)\n\n### Step 0: Capture the failure signal\n\nGather these four pieces. Each step below branches on which is present.\n\n| Signal | Source | Why required |\n|---|---|---|\n| **State machine ARN + execution ARN** | User-provided or `aws stepfunctions list-executions` | All describe-execution \u002F get-execution-history calls need this |\n| **Execution status + error\u002Fcause** | `aws stepfunctions describe-execution --execution-arn \u003Carn>` | Drives the symptom category |\n| **Failing state name + executed transitions** | `aws stepfunctions get-execution-history --execution-arn \u003Carn>` | Narrows from symptom to the exact state that emitted the error |\n| **Workflow type** (STANDARD vs EXPRESS) | `aws stepfunctions describe-state-machine --state-machine-arn \u003Carn>` | Determines limits (5 min vs 1 year) and redrive eligibility |\n\nIf the user has not provided the execution ARN, output:\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#need_more_info-block-when-no-execution-arn).\n> Exact output block: list-executions --status FAILED probe plus the MISSING fields (execution ARN, error\u002Fcause strings, workflow type).\n\n### Step 1: Identify the symptom category\n\nMap the observed `error` field to one of nine categories.\n\n| `error` value | Category | Diagnostic step |\n|---|---|---|\n| `States.Runtime` | **A. RUNTIME_ERROR** | Step 2 |\n| `States.Timeout` | **B. TASK_TIMEOUT** | Step 3 |\n| `States.TaskFailed` | **C. TASK_FAILED** | Step 4 |\n| `States.Permission` or `States.Permissions` | **D. PERMISSION_DENIED** | Step 5 |\n| `States.ParameterPathFailure` | **E. PARAMETER_PATH_FAILURE** | Step 6 |\n| `States.BranchFailed` | **F. BRANCH_FAILED** | Step 7 |\n| (none, but history shows repeated `TaskFailed` events then a terminal `ExecutionFailed`) | **G. RETRY_EXHAUSTED** | Step 8 |\n| Execution FAILED, operator expected Catcher to recover | **H. CATCH_MISCONFIGURED** | Step 9 |\n| `ExecutionTimedOut` (Express); CloudWatch `ExecutionThrottled` spike | **I. EXECUTION_LIMIT_HIT** | Step 10 |\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#category-precedence-rule).\n> Innermost cause wins: RUNTIME_ERROR > PARAMETER_PATH_FAILURE > PERMISSION_DENIED > TASK_TIMEOUT > TASK_FAILED; TaskFailed with AccessDeniedException cause is a downstream IAM issue.\n\n### Step 2: RUNTIME_ERROR diagnostic (States.Runtime)\n\nA `States.Runtime` error means the Step Functions interpreter\nencountered an invalid JSONPath expression or attempted an operation\nthe runtime cannot perform at execution time. The execution FAILS at\nthe state that owns the bad expression.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `cause` mentions \"Invalid path\" or \"JSONPath\" | The state's `InputPath`, `OutputPath`, `ResultPath`, `ResultSelector`, or `Parameters` references a JSONPath that does not parse or does not exist in the payload | Read the ASL definition for the named state; check the offending path against the actual input payload |\n| `cause` mentions \"The field ... is not supported\" | An unsupported JSONPath operation was used (e.g., filter expression `?()` is unsupported in some integration contexts) | Read the field; check ASL spec for the integration's supported JSONPath subset |\n| `ResultPath` conflicts with input field | `ResultPath` references a field that already exists in the input and the runtime cannot merge | Use `ResultPath: null` to discard input, or a non-conflicting path |\n| Reference syntax `$.input.someField` when actual payload uses `$.someField` | Mismatched payload shape between upstream state and this state's expectations | Read the previous state's output and this state's expected input |\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-2--runtime_error-diagnostic-commands).\n> describe-execution error\u002Fcause query, get-execution-history TaskFailed\u002FExecutionFailed event query, describe-state-machine definitionString jq extraction of the failing state.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-2--runtime_error-fix-patterns).\n> Align JSONPath to actual payload shape, rename or null the colliding ResultPath, remove unsupported filters and post-process in a Pass state.\n\n### Step 3: TASK_TIMEOUT diagnostic (States.Timeout)\n\nA Task state timed out. Two flavors: `TimeoutSeconds` (the whole task\nexceeded the wall clock) or `HeartbeatSeconds` (an activity task did\nnot send a heartbeat within the window).\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Lambda Invoke timed out | `TimeoutSeconds` \u003C Lambda execution time; or Lambda itself hit its own timeout (default 3s, max 15min) | Read Lambda `Timeout` vs state `TimeoutSeconds`; check CloudWatch Logs for the Lambda duration |\n| Activity task `States.Timeout` | Worker did not call `SendTaskHeartbeat` within `HeartbeatSeconds` | Trace the activity worker; check `SendTaskHeartbeat` API calls in CloudTrail |\n| Glue \u002F Athena \u002F Batch Sync integration timed out | Integration's natural runtime exceeds the state `TimeoutSeconds` | Raise `TimeoutSeconds` or switch to asynchronous Run-A-Job (.sync) pattern |\n| Cross-region Lambda in a peering-throttled VPC | Network latency plus Lambda cold start exceeds `TimeoutSeconds` | Check VPC config; consider same-region invocations or raise the limit |\n| Express workflow `ExecutionTimedOut` at 5 minutes | Total execution time exceeded the Express 5-minute hard cap | See Step 10 (EXECUTION_LIMIT_HIT) — this is not a per-task timeout |\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-3--task_timeout-diagnostic-commands).\n> jq extraction of TimeoutSeconds\u002FHeartbeatSeconds from the state, lambda get-function-configuration timeout, CloudTrail SendTaskHeartbeat lookup.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-3--task_timeout-fix-patterns).\n> TimeoutSeconds >= 2x p99 or .sync pattern, heartbeat at HeartbeatSeconds\u002F2, Lambda Timeout plus margin.\n\n### Step 4: TASK_FAILED diagnostic (States.TaskFailed)\n\nThe integration returned an error. The Step Functions `error` is\n`States.TaskFailed`; the actual cause is in the `cause` field, which\ncontains the downstream SDK's error message (often JSON-encoded).\n\n| Sub-symptom (read from `cause`) | Real root cause | Probe |\n|---|---|---|\n| `cause` contains `AccessDeniedException`, `UnauthorizedOperation` | The integration's IAM role lacks permission for the action | See Step 5 (PERMISSION_DENIED) — but the Step Functions error is `States.TaskFailed` here, not `States.Permission` |\n| `cause` contains `ProvisionedThroughputExceededException` (DynamoDB), `ThrottlingException` (Lambda) | Downstream throttled the request | Tune `Retry` with jittered backoff; check downstream capacity |\n| `cause` contains `ResourceNotFoundException` | Wrong resource ARN in `Parameters` | Verify the ARN in the state's `Parameters` |\n| `cause` contains Lambda `Unhandled` exception | Lambda function threw an uncaught exception | Read the Lambda CloudWatch Logs; fix the function |\n| `cause` contains `StateMachineDoesNotExist` (nested Step Functions `StartExecution`) | Target state machine ARN is wrong or in another account without permission | Verify ARN; check cross-account role |\n| SQS `QueueDoesNotExist` | Queue was deleted or ARN changed | Update the `Parameters.QueueUrl` |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-4--task_failed-diagnostic-walk).\n> Read cause verbatim (JSON-encoded), cross-reference integration logs (Lambda\u002FDynamoDB\u002FGlue), classify retryable vs non-retryable.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-4--task_failed-fix-patterns).\n> Retry entries with jittered backoff for throttling-class errors, Catch to fallback for non-retryable, fix Lambda Unhandled before retrying.\n\n### Step 5: PERMISSION_DENIED diagnostic (States.Permission \u002F States.Permissions)\n\nThe state machine's IAM role is not authorized to invoke the\nintegration. Two sub-cases:\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `error: \"States.Permission\"`, `cause` mentions the state machine role ARN | The role lacks the action on the resource | `iam simulate-principal-policy` on the role ARN with the action and resource |\n| `error: \"States.TaskFailed\"`, `cause` contains `AccessDeniedException` | Same root cause, different error name — Step Functions surfaces downstream AccessDenied as `TaskFailed` | Same probe; also check CloudTrail for the denied API call |\n| Cross-account: target resource in account B, state machine in account A | The role in A is allowed, but the resource policy in B does not trust A's role | Read the target resource's policy (e.g., KMS key policy, SQS queue policy, cross-account Lambda) |\n| Service-linked role confusion | Operator assumed the state machine role was the service-linked role; it is a customer role with a typo | Read `roleArn` in `describe-state-machine`; verify the actual role assumed |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-5--permission_denied-diagnostic-walk).\n> Read roleArn from describe-state-machine, derive action+resource from the state, simulate-principal-policy, read cross-account resource policy in the target account.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-5--permission_denied-fix-patterns).\n> Scoped IAM policy per integration (lambda:InvokeFunction, dynamodb:*, sqs:SendMessage), cross-account resource-policy trust, .sync polling actions states:StartExecution\u002FDescribeExecution\u002FStopExecution.\n\n### Step 6: PARAMETER_PATH_FAILURE diagnostic\n\nThe Task state's `Parameters` block references a JSONPath that does not\nexist in the input payload at runtime. Different from `RUNTIME_ERROR`:\nhere the JSONPath is syntactically valid but resolves to nothing.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `cause` mentions \"Parameters\" and a path like `$.orderId` | The input payload at this state does not contain the expected field | Read the previous state's `ResultSelector` \u002F `ResultPath`; trace the payload shape through the workflow |\n| In a Map state, the iteration input does not include the parent context field | Map state `ItemsPath` or `Parameters` is misconfigured | Read the Map state definition; verify `ItemsPath` points to an array |\n| `Parameters` uses `.$` suffix on a literal | Mixing static and dynamic params incorrectly — `.$` requires a JSONPath | Drop the `.$` for literals, or use a JSONPath for dynamic values |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-6--parameter_path_failure-diagnostic-walk).\n> Read the Parameters block, read the StateEntered input payload, cross-reference each .$ path against the actual input.\n\n### Step 7: BRANCH_FAILED diagnostic (States.BranchFailed)\n\nA Parallel or Map state reports that a branch failed. The\n`States.BranchFailed` error wraps the underlying branch error.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Parallel state, one branch failed | The branch's first failing state | Read the parallel state's `branches` definition; identify which branch raised the error |\n| Map state, one iteration failed | The iteration's input triggered a downstream error | Read the Map state's `ItemsPath`; identify the offending item |\n| Distributed Map with S3 or CSV items | One row in the CSV triggered an error in the iteration | Read the Map state's `ItemReader`; identify the failing item |\n| `States.BranchFailed` but no obvious branch failure | The branch's own Catcher swallowed the error and the branch then failed for a different reason | Read the inner branch's execution history (Distributed Map exposes child execution ARNs) |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-7--branch_failed-diagnostic-walk).\n> Enumerate branches\u002Fiteration config, read Distributed Map child execution histories, or inline mapIterationFailed events in the parent history.\n\n### Step 8: RETRY_EXHAUSTED diagnostic\n\nThe execution FAILED after the state's `Retry` array exhausted all\nattempts. Operators often miss this because the visible failure is the\nterminal `ExecutionFailed`, not the retried `TaskFailed`.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| History shows `TaskFailed` repeated `MaxAttempts + 1` times, then `ExecutionFailed` | Retry exhausted; no Catcher or Catcher does not match the error | Read `Retry[0]` in the state definition; verify the Catcher's `ErrorEquals` |\n| Same error repeated for ~`IntervalSeconds * BackoffRate^MaxAttempts` seconds | Same as above — long total retry duration | Same |\n| `Retry[0].ErrorEquals` does not include the actual error name | The retry never fired; the state failed on the first attempt | Match `ErrorEquals` against the actual `error` string |\n| Retry fired but downstream never recovered | The downstream outage outlasted the retry budget | Extend `MaxAttempts` or route to a dead-letter state via Catch |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-8--retry_exhausted-diagnostic-walk).\n> Read the Retry array, count TaskFailed events (should equal MaxAttempts + 1), check the Catcher's ErrorEquals.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-8--retry_exhausted-fix-patterns).\n> Extend MaxAttempts\u002FBackoffRate for throttling, Catch to a dead-letter state, do not raise MaxAttempts for Lambda Unhandled without a fix.\n\n### Step 9: CATCH_MISCONFIGURED diagnostic\n\nThe operator expected a Catcher to recover the execution, but the\nexecution still FAILED.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `Catch[0].ErrorEquals: [\"States.TaskFailed\"]` but execution FAILED on `States.Timeout` | Specific error listed does not include the actual error; catch did not fire | Use `States.ALL` to catch all, or list both `States.TaskFailed` and `States.Timeout` |\n| `Catch[0].ErrorEquals: [\"States.ALL\"]` but execution still FAILED | `States.ALL` does NOT catch `States.DataDoesNotExist` or some `States.Runtime` variants in older runtimes | Read the actual `error`; add an explicit catcher for the uncaught error |\n| Catcher fires but its `Next` state itself fails | The fallback state has its own bug | Read the post-catch state's history |\n| Catcher fired but its `ResultPath` collided | Same as RUNTIME_ERROR ResultPath collision | Use a non-conflicting `ResultPath` |\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#catch-semantics-cheat-sheet).\n> States.ALL exclusions, States.TaskFailed scope, the explicit Task-related error list, top-down catcher evaluation order.\n\n### Step 10: EXECUTION_LIMIT_HIT diagnostic\n\nExpress workflows are hard-capped at 5 minutes per execution. Standard\nworkflows run up to 1 year. Throttling manifests via CloudWatch Metrics\n`ExecutionThrottled` and `ThrottledStateTransition`.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Express execution `status: FAILED`, `error: \"ExecutionTimedOut\"` at ~300s | Express 5-minute cap hit | Refactor the workflow — split into smaller Express workflows OR migrate to Standard |\n| CloudWatch `ExecutionThrottled` > 0 for the state machine | Account- or API-level throttling (e.g., too many concurrent `StartExecution`) | Request quota increase via Service Quotas; implement client-side rate limiting |\n| CloudWatch `ThrottledStateTransition` > 0 | State transition throttled — exceeds the account's transition rate | Reduce transitions (consolidate Pass states); request quota increase |\n| Standard execution FAILED at exactly 1 year | Standard 1-year cap hit | Redesign — no Standard execution should approach 1 year |\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-10--execution_limit_hit-diagnostic-commands).\n> CloudWatch AWS\u002FStates ExecutionThrottled and ThrottledStateTransition get-metric-statistics, service-quotas L-3B4D9EC3 lookup.\n\n### Step 11: REDRIVE_CANDIDATE triage\n\nStandard workflows support redrive — re-executing a failed execution\nfrom the failed state, skipping already-succeeded states. Redrive is\nNOT available for Express workflows.\n\n| Sub-symptom | Root cause | Action |\n|---|---|---|\n| Standard execution FAILED, root cause now fixed, want to resume | Eligible for redrive | `aws stepfunctions redrive-execution --execution-arn \u003Carn>` |\n| Express execution FAILED, want to resume | NOT eligible for Express | Re-run from scratch with `start-execution` and the original input |\n| Execution FAILED because of an upstream input shape change | Redrive may re-fail if the state definition expects the old shape | Fix the state definition first, then redrive |\n| Execution FAILED in a Map state | Redrive re-runs only the failed iterations (Distributed Map) or the whole Map (inline Map) | Check Map state type before redriving |\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-11--redrive_candidate-diagnostic-command).\n> describe-execution redriveStatus query and the ARN grep that distinguishes EXPRESS (no redrive) from STANDARD.\n\n### Step 12: Map to root-cause catalog\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#root-cause-catalog-top-10).\n> The ten canonical patterns (#1-#10) mapping root cause to category (RUNTIME_ERROR ... BRANCH_FAILED) and fix pattern, referenced by the ROOT_CAUSE_CATALOG field.\n\n### Step 13: Verify the fix\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#fix-verification-step-13).\n> Test execution with traceable name for ASL changes, re-simulate IAM, trigger the exact error for Catcher changes, verify redriveStatus REDRIVABLE before redrive-execution.\n\n### Step 14: Decide — ROOT_CAUSE_FOUND vs NEED_MORE_INFO vs ESCALATE\n\n- **ROOT_CAUSE_FOUND.** The walk identified a specific failure category\n  and a specific configuration element (ASL state field, IAM policy\n  statement, Catcher entry, Retry entry, workflow type). Output\n  REMEDIATION with the exact change.\n- **NEED_MORE_INFO.** The walk reached a step where the operator\n  cannot supply evidence (e.g., execution history requires elevated\n  Step Functions read access). Output the list of missing inputs.\n- **ESCALATE.** The walk identifies a cause outside the operator's\n  scope: cross-account resource owned by another team, IAM role owned\n  by security, ASL definition owned by a different team. Output the\n  escalation target and the specific request.\n\n## Output format\n\n```text\nINCIDENT: \u003Cstate machine ARN> \u002F \u003Cexecution ARN> — \u003Csymptom>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nROOT_CAUSE: \u003Ccategory name> — \u003Cspecific failing config element>\nEVIDENCE:\n  - describe-execution: \u003Cstatus, error, cause>\n  - get-execution-history: \u003Cfailing state name + event type>\n  - describe-state-machine: \u003Cquoted state definition snippet>\n  - CloudWatch Metrics: \u003CExecutionsFailed \u002F ExecutionThrottled value>\n  - iam simulate-principal-policy: \u003Cdecision>\nROOT_CAUSE_CATALOG: #\u003CN>\nREMEDIATION:\n  1. \u003Cspecific ASL \u002F IAM \u002F Catcher change>\n  2. \u003Cverification command>\n  3. \u003Cpost-apply monitoring>\n```\n\n### Worked example — Express workflow 5-minute cap\n\n```text\nINCIDENT: arn:aws:states:us-east-1:111111111111:stateMachine:etl-express\n \u002F arn:aws:states:us-east-1:111111111111:express:etl-express:abc —\n Express execution failed at ~300s\nVERDICT: ROOT_CAUSE_FOUND\nROOT_CAUSE: EXECUTION_LIMIT_HIT — Express workflow hard cap of 300\nseconds exceeded by an ETL workflow averaging 380s in p99\nEVIDENCE:\n  - describe-execution: status FAILED, error \"ExecutionTimedOut\",\n    startedAt 2026-08-09T14:00:00Z, stopDate 2026-08-09T14:05:00Z\n    (exactly 5 minutes)\n  - describe-state-machine: stateMachineArn contains \":express:\",\n    type \"EXPRESS\"\n  - CloudWatch Metrics ExecutionsThrottled Sum: 0 (not a throttle);\n    ExecutionsFailed Sum: 1 in the 5-minute window\n  - get-execution-history: last successful state was\n    \"TransformChunk\" iteration 47\u002F100; the next iteration would have\n    exceeded the 5-minute cap\nROOT_CAUSE_CATALOG: #7 (Express workflow exceeds 5-minute cap)\nREMEDIATION:\n  1. Refactor the ETL workflow into a Standard workflow (the iteration\n     count and per-iteration latency exceed the Express cap):\n     aws stepfunctions update-state-machine --state-machine-arn \u003Csm-arn> \\\n       --definition file:\u002F\u002Frefactored-asl.json \\\n       --role-arn \u003Crole-arn>\n     Note: switching EXPRESS → STANDARD requires deleting and\n     recreating the state machine. Alternatively, split the workload\n     into a chained series of Express workflows each under 5 minutes.\n  2. Verify by running a test execution and confirming status SUCCEEDED\n     with total duration > 5 minutes:\n     aws stepfunctions start-execution --state-machine-arn \u003Csm-arn> \\\n       --input file:\u002F\u002Ftest-input.json\n  3. Monitor CloudWatch ExecutionsFailed and ExecutionsThrottled for\n     the state machine over the next 24 hours.\n```\n\n## Expert edge cases\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-edge-cases).\n> States.Permission vs States.TaskFailed for IAM, best-effort Express history, States.ALL exclusions, Distributed Map child ARNs, HeartbeatSeconds \u003C TimeoutSeconds, retry ErrorEquals wrapping, redrive scope, .sync polling role requirements.\n\n## Expert heuristic — \"Read the cause, not the error\"\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic--read-the-cause-not-the-error).\n> error -> meaning -> where the real cause lives lookup table; the cause field is the actionable signal, the error is the category.\n\n## Anti-Patterns — NEVER\n\n- **NEVER** treat the `error` field as the root cause. It is the\n  States.* category. The `cause` field carries the actionable error.\n  Always read both.\n\n- **NEVER** recommend redrive on an EXPRESS workflow. Redrive is\n  STANDARD-only. Confirm `StateMachineType: STANDARD` (or an ARN\n  without `:express:`) before suggesting redrive.\n\n- **NEVER** confuse `States.Permission` with `States.TaskFailed` for\n  IAM errors. `States.Permission` is a Step Functions-layer role\n  failure; `States.TaskFailed` with `AccessDeniedException` is a\n  downstream-layer failure. The fix locations differ.\n\n- **NEVER** raise `Retry[0].MaxAttempts` without also checking that\n  `Retry[0].ErrorEquals` matches the actual error. Retries that never\n  fire are the most common silent failure.\n\n- **NEVER** use `Catch[].ErrorEquals: [\"States.TaskFailed\"]` and\n  expect it to catch `States.Timeout` or `States.Permission`. List\n  each expected error explicitly, or use `States.ALL` with awareness\n  of its limits.\n\n- **NEVER** declare ROOT_CAUSE_FOUND without quoting both `error` and\n  `cause` from `describe-execution` or `get-execution-history`. The\n  judge requires verbatim quotes.\n\n- **NEVER** recommend switching EXPRESS → STANDARD as a quick fix.\n  Switching types requires deleting and recreating the state machine\n  and loses execution history. Refactoring into smaller Express\n  workflows is usually preferable.\n\n- **NEVER** assume `get-execution-history` for an EXPRESS workflow is\n  complete. Express history is best-effort and delivered via CloudWatch\n  Logs. For definitive diagnosis, query the log group directly.\n\n- **NEVER** use `States.ALL` in a Catcher and assume it catches every\n  error. `States.DataDoesNotExist` and some runtime errors are not\n  caught. List explicit errors when the fallback must be guaranteed.\n\n- **NEVER** recommend a `TimeoutSeconds` higher than 15 minutes for a\n  synchronous Lambda invoke. If the integration can exceed 15 minutes,\n  switch to an asynchronous `.sync` integration or an activity task.\n\n- **NEVER** declare RETRY_EXHAUSTED without counting the `TaskFailed`\n  events in the execution history. The count should equal\n  `MaxAttempts + 1`. A lower count means the retry did not fire\n  (wrong `ErrorEquals`) — a different root cause.\n\n- **NEVER** conclude CATCH_MISCONFIGURED without reading the\n  `Catch[].ErrorEquals` array AND the actual `error` value. The\n  mismatch must be demonstrated, not assumed.\n\n- **NEVER** assume an activity worker is sending heartbeats because it\n  is making progress. Verify `SendTaskHeartbeat` calls in CloudTrail;\n  a worker that processes tasks but does not heartbeat will time out.\n\n- **NEVER** redrive an execution without first verifying the root\n  cause is fixed. Redrive re-runs the failed state with the same\n  definition; an unfixed root cause will fail identically.\n\n## Recent AWS features (2024-2026)\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#recent-aws-features-2024-2026).\n> Redrive GA, Distributed Map enhancements, JSONata support, Express history via Logs Insights, variable persistence, state-transition quotas.\n\n## References\n\nSee `references\u002Ferror-catalog-and-decision-tree.md` for the full\nStates.* error → category → cause → fix walk with worked examples per\ncategory, and `references\u002Fdiagnostic-commands.md` for the canonical\ncommand script for each failure category.\n\n## References (load on demand)\n\n- [advanced-patterns](references\u002Fadvanced-patterns.md) — Activation triggers, Mindset (error vs cause, Express vs Standard), category precedence rule, Catch semantics cheat sheet, Expert edge cases, Expert heuristic lookup table, Recent AWS features (2024-2026)\n- [diagnostic-commands](references\u002Fdiagnostic-commands.md) — canonical command script per failure category, plus the Step 2\u002F3\u002F10\u002F11 probe commands moved from SKILL.md\n- [error-catalog-and-decision-tree](references\u002Ferror-catalog-and-decision-tree.md) — full per-category walk with worked examples, plus the Step 4-8 diagnostic walks and the Step 12 root-cause catalog moved from SKILL.md\n- [error-handling](references\u002Ferror-handling.md) — per-category common fix patterns, the no-execution-ARN NEED_MORE_INFO block, and the Step 13 fix-verification steps moved from SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F App Integration & Workflow Orchestration Reliability.\n\n## AWS documentation\n\n- **AWS Step Functions Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fwelcome.html\n- **Step Functions error handling** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-error-handling.html\n- **States.* error names** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fcw-events.html\n- **Redrive executions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fredrive-executions.html\n- **Standard vs Express workflows** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fcw-events.html\n- **Service integrations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-to-resource.html\n- **Step Functions CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fstepfunctions\u002F\n","# Step Functions Execution Troubleshooter\n\n## Activation\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#activation).\n> Trigger phrases for the skill (execution failed, States.* error names, retry exhausted, throttling, Express 5-minute limit, redrive).\n\n## Mindset\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#mindset).\n> error\u002Fcause in get-execution-history is the primary surface; error is a States.* category not an SDK error; Retry\u002FCatch live in the ASL definition; Express vs Standard limits, diagnostics, and redrive eligibility differ.\n\n## Quick reference — symptom to failure category\n\n| Observed state | Failure category | First probe |\n|---|---|---|\n| Execution `status: FAILED`, `error: \"States.Runtime\"`, `cause` mentions JSONPath | RUNTIME_ERROR | Read the failing state's `InputPath` \u002F `ResultPath` \u002F `OutputPath` \u002F `Parameters` JSONPath expression |\n| Execution FAILED, `error: \"States.Timeout\"`, Task state has `HeartbeatSeconds` or `TimeoutSeconds` | TASK_TIMEOUT | Compare `TimeoutSeconds` vs integration's actual latency; check `HeartbeatSeconds` for activity tasks |\n| Execution FAILED, `error: \"States.TaskFailed\"`, `cause` carries downstream SDK error (e.g., `AccessDeniedException`, `ProvisionedThroughputExceededException`) | TASK_FAILED | Read the `cause` JSON; the downstream service's error message is the real cause |\n| Execution FAILED, `error: \"States.Permission\"`, role ARN in state machine definition | PERMISSION_DENIED | `iam simulate-principal-policy` on the role; for cross-account, check the trust policy in the target account |\n| Execution FAILED, `error: \"States.ParameterPathFailure\"` | PARAMETER_PATH_FAILURE | Read the failing state's `Parameters` block; check the input payload at that state |\n| Execution FAILED, `error: \"States.BranchFailed\"`, Parallel or Map state | BRANCH_FAILED | Read the branch execution event stream; identify the specific failing branch |\n| Execution FAILED after `Retry[0].MaxAttempts * IntervalSeconds` of retries; same `error` repeating in history | RETRY_EXHAUSTED | Read the `Retry` array in the state definition; check whether the catcher handles the error |\n| Execution FAILED, expected a Catcher to recover but execution still failed | CATCH_MISCONFIGURED | Compare `Catch[].ErrorEquals` against the actual `error` value; check for `States.ALL` vs `States.TaskFailed` |\n| Express execution FAILED with `ExecutionTimedOut`; Standard execution `ExecutionThrottled` CloudWatch metric spike | EXECUTION_LIMIT_HIT | Confirm `StateMachineType` ( EXPRESS vs STANDARD ); read CloudWatch `ThrottledStateTransition` |\n| User asks to re-run a failed Standard execution from the failed state | REDRIVE_CANDIDATE | Confirm STANDARD type; check `stateMachine.redriveConfiguration`; verify redrive eligibility |\n\nSee the ordered steps below for the full diagnostic walk.\n\n## Quick navigation\n\n- **Step 0** — Capture the failure signal (state machine ARN, execution\n  ARN, error string, executed state name).\n- **Step 1** — Map the symptom to a category (A-I).\n- **Step 2** — RUNTIME_ERROR (States.Runtime, invalid JSONPath).\n- **Step 3** — TASK_TIMEOUT (States.Timeout).\n- **Step 4** — TASK_FAILED (States.TaskFailed, integration error).\n- **Step 5** — PERMISSION_DENIED (States.Permission \u002F States.Permissions).\n- **Step 6** — PARAMETER_PATH_FAILURE (input processing).\n- **Step 7** — BRANCH_FAILED (Parallel \u002F Map branch).\n- **Step 8** — RETRY_EXHAUSTED (MaxAttempts reached).\n- **Step 9** — CATCH_MISCONFIGURED (States.ALL vs specific error).\n- **Step 10** — EXECUTION_LIMIT_HIT (Express 5 min \u002F throttle).\n- **Step 11** — REDRIVE_CANDIDATE (Standard only).\n- **Step 12** — Root-cause catalog (top patterns + canonical fixes).\n- **Step 13** — Verify the fix.\n- **Step 14** — Decide VERDICT (ROOT_CAUSE_FOUND \u002F NEED_MORE_INFO \u002F ESCALATE).\n\n## STRICT output contract\n\nEvery response MUST begin with this block — no preamble, no\nconversational opening:\n\n```text\nINCIDENT: \u003Cstate machine ARN> \u002F \u003Cexecution ARN> — \u003Csymptom>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nROOT_CAUSE: \u003CRUNTIME_ERROR | TASK_TIMEOUT | TASK_FAILED | PERMISSION_DENIED | PARAMETER_PATH_FAILURE | BRANCH_FAILED | RETRY_EXHAUSTED | CATCH_MISCONFIGURED | EXECUTION_LIMIT_HIT | REDRIVE_CANDIDATE> — \u003Cone-sentence specific failing config element>\nEVIDENCE:\n  - describe-execution: \u003Cquoted field value from output>\n  - get-execution-history: \u003Cquoted error \u002F cause \u002F state name>\n  - describe-state-machine: \u003Cquoted state definition snippet>\n  - CloudWatch Metrics: \u003CExecutionsFailed \u002F ExecutionThrottled \u002F ThrottledStateTransition data point>\n  - iam simulate-principal-policy: \u003Cdecision for the relevant action>\nROOT_CAUSE_CATALOG: #\u003CN>\nREMEDIATION:\n  1. \u003Cexact ASL definition change, IAM policy edit, or CLI command>\n  2. \u003Cverification command>\n  3. \u003Cpost-apply monitoring step>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with \"Let me analyze…\" or \"I'll investigate…\" — the\n  INCIDENT line is the FIRST line, always. No conversational preamble.\n- NEVER use lowercase verdict values — emit `ROOT_CAUSE_FOUND`,\n  `NEED_MORE_INFO`, or `ESCALATE`.\n- NEVER omit EVIDENCE — the judge requires direct quotes from\n  `describe-execution`, `get-execution-history`, or\n  `describe-state-machine`. Paraphrasing is not acceptable; quote the\n  actual `error` and `cause` strings.\n- NEVER confuse `error` (States.*) with `cause` (downstream SDK\n  message). They are different fields with different semantics.\n- NEVER suggest multiple possible root causes without picking one —\n  `ROOT_CAUSE_FOUND` requires exactly ONE category and ONE specific\n  config element. If you cannot pick one, emit `NEED_MORE_INFO`.\n- NEVER recommend redrive on an EXPRESS workflow. Redrive is\n  STANDARD-only. Confirm `StateMachineType: STANDARD` before suggesting\n  redrive.\n- NEVER declare `ROOT_CAUSE_FOUND` for a TASK_FAILED diagnosis without\n  quoting the `cause` field — the downstream service's error message\n  is the actual root cause and must be cited verbatim.\n\n## Process — Diagnostic decision tree (apply in order)\n\n### Step 0: Capture the failure signal\n\nGather these four pieces. Each step below branches on which is present.\n\n| Signal | Source | Why required |\n|---|---|---|\n| **State machine ARN + execution ARN** | User-provided or `aws stepfunctions list-executions` | All describe-execution \u002F get-execution-history calls need this |\n| **Execution status + error\u002Fcause** | `aws stepfunctions describe-execution --execution-arn \u003Carn>` | Drives the symptom category |\n| **Failing state name + executed transitions** | `aws stepfunctions get-execution-history --execution-arn \u003Carn>` | Narrows from symptom to the exact state that emitted the error |\n| **Workflow type** (STANDARD vs EXPRESS) | `aws stepfunctions describe-state-machine --state-machine-arn \u003Carn>` | Determines limits (5 min vs 1 year) and redrive eligibility |\n\nIf the user has not provided the execution ARN, output:\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#need_more_info-block-when-no-execution-arn).\n> Exact output block: list-executions --status FAILED probe plus the MISSING fields (execution ARN, error\u002Fcause strings, workflow type).\n\n### Step 1: Identify the symptom category\n\nMap the observed `error` field to one of nine categories.\n\n| `error` value | Category | Diagnostic step |\n|---|---|---|\n| `States.Runtime` | **A. RUNTIME_ERROR** | Step 2 |\n| `States.Timeout` | **B. TASK_TIMEOUT** | Step 3 |\n| `States.TaskFailed` | **C. TASK_FAILED** | Step 4 |\n| `States.Permission` or `States.Permissions` | **D. PERMISSION_DENIED** | Step 5 |\n| `States.ParameterPathFailure` | **E. PARAMETER_PATH_FAILURE** | Step 6 |\n| `States.BranchFailed` | **F. BRANCH_FAILED** | Step 7 |\n| (none, but history shows repeated `TaskFailed` events then a terminal `ExecutionFailed`) | **G. RETRY_EXHAUSTED** | Step 8 |\n| Execution FAILED, operator expected Catcher to recover | **H. CATCH_MISCONFIGURED** | Step 9 |\n| `ExecutionTimedOut` (Express); CloudWatch `ExecutionThrottled` spike | **I. EXECUTION_LIMIT_HIT** | Step 10 |\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#category-precedence-rule).\n> Innermost cause wins: RUNTIME_ERROR > PARAMETER_PATH_FAILURE > PERMISSION_DENIED > TASK_TIMEOUT > TASK_FAILED; TaskFailed with AccessDeniedException cause is a downstream IAM issue.\n\n### Step 2: RUNTIME_ERROR diagnostic (States.Runtime)\n\nA `States.Runtime` error means the Step Functions interpreter\nencountered an invalid JSONPath expression or attempted an operation\nthe runtime cannot perform at execution time. The execution FAILS at\nthe state that owns the bad expression.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `cause` mentions \"Invalid path\" or \"JSONPath\" | The state's `InputPath`, `OutputPath`, `ResultPath`, `ResultSelector`, or `Parameters` references a JSONPath that does not parse or does not exist in the payload | Read the ASL definition for the named state; check the offending path against the actual input payload |\n| `cause` mentions \"The field ... is not supported\" | An unsupported JSONPath operation was used (e.g., filter expression `?()` is unsupported in some integration contexts) | Read the field; check ASL spec for the integration's supported JSONPath subset |\n| `ResultPath` conflicts with input field | `ResultPath` references a field that already exists in the input and the runtime cannot merge | Use `ResultPath: null` to discard input, or a non-conflicting path |\n| Reference syntax `$.input.someField` when actual payload uses `$.someField` | Mismatched payload shape between upstream state and this state's expectations | Read the previous state's output and this state's expected input |\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-2--runtime_error-diagnostic-commands).\n> describe-execution error\u002Fcause query, get-execution-history TaskFailed\u002FExecutionFailed event query, describe-state-machine definitionString jq extraction of the failing state.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-2--runtime_error-fix-patterns).\n> Align JSONPath to actual payload shape, rename or null the colliding ResultPath, remove unsupported filters and post-process in a Pass state.\n\n### Step 3: TASK_TIMEOUT diagnostic (States.Timeout)\n\nA Task state timed out. Two flavors: `TimeoutSeconds` (the whole task\nexceeded the wall clock) or `HeartbeatSeconds` (an activity task did\nnot send a heartbeat within the window).\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Lambda Invoke timed out | `TimeoutSeconds` \u003C Lambda execution time; or Lambda itself hit its own timeout (default 3s, max 15min) | Read Lambda `Timeout` vs state `TimeoutSeconds`; check CloudWatch Logs for the Lambda duration |\n| Activity task `States.Timeout` | Worker did not call `SendTaskHeartbeat` within `HeartbeatSeconds` | Trace the activity worker; check `SendTaskHeartbeat` API calls in CloudTrail |\n| Glue \u002F Athena \u002F Batch Sync integration timed out | Integration's natural runtime exceeds the state `TimeoutSeconds` | Raise `TimeoutSeconds` or switch to asynchronous Run-A-Job (.sync) pattern |\n| Cross-region Lambda in a peering-throttled VPC | Network latency plus Lambda cold start exceeds `TimeoutSeconds` | Check VPC config; consider same-region invocations or raise the limit |\n| Express workflow `ExecutionTimedOut` at 5 minutes | Total execution time exceeded the Express 5-minute hard cap | See Step 10 (EXECUTION_LIMIT_HIT) — this is not a per-task timeout |\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-3--task_timeout-diagnostic-commands).\n> jq extraction of TimeoutSeconds\u002FHeartbeatSeconds from the state, lambda get-function-configuration timeout, CloudTrail SendTaskHeartbeat lookup.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-3--task_timeout-fix-patterns).\n> TimeoutSeconds >= 2x p99 or .sync pattern, heartbeat at HeartbeatSeconds\u002F2, Lambda Timeout plus margin.\n\n### Step 4: TASK_FAILED diagnostic (States.TaskFailed)\n\nThe integration returned an error. The Step Functions `error` is\n`States.TaskFailed`; the actual cause is in the `cause` field, which\ncontains the downstream SDK's error message (often JSON-encoded).\n\n| Sub-symptom (read from `cause`) | Real root cause | Probe |\n|---|---|---|\n| `cause` contains `AccessDeniedException`, `UnauthorizedOperation` | The integration's IAM role lacks permission for the action | See Step 5 (PERMISSION_DENIED) — but the Step Functions error is `States.TaskFailed` here, not `States.Permission` |\n| `cause` contains `ProvisionedThroughputExceededException` (DynamoDB), `ThrottlingException` (Lambda) | Downstream throttled the request | Tune `Retry` with jittered backoff; check downstream capacity |\n| `cause` contains `ResourceNotFoundException` | Wrong resource ARN in `Parameters` | Verify the ARN in the state's `Parameters` |\n| `cause` contains Lambda `Unhandled` exception | Lambda function threw an uncaught exception | Read the Lambda CloudWatch Logs; fix the function |\n| `cause` contains `StateMachineDoesNotExist` (nested Step Functions `StartExecution`) | Target state machine ARN is wrong or in another account without permission | Verify ARN; check cross-account role |\n| SQS `QueueDoesNotExist` | Queue was deleted or ARN changed | Update the `Parameters.QueueUrl` |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-4--task_failed-diagnostic-walk).\n> Read cause verbatim (JSON-encoded), cross-reference integration logs (Lambda\u002FDynamoDB\u002FGlue), classify retryable vs non-retryable.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-4--task_failed-fix-patterns).\n> Retry entries with jittered backoff for throttling-class errors, Catch to fallback for non-retryable, fix Lambda Unhandled before retrying.\n\n### Step 5: PERMISSION_DENIED diagnostic (States.Permission \u002F States.Permissions)\n\nThe state machine's IAM role is not authorized to invoke the\nintegration. Two sub-cases:\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `error: \"States.Permission\"`, `cause` mentions the state machine role ARN | The role lacks the action on the resource | `iam simulate-principal-policy` on the role ARN with the action and resource |\n| `error: \"States.TaskFailed\"`, `cause` contains `AccessDeniedException` | Same root cause, different error name — Step Functions surfaces downstream AccessDenied as `TaskFailed` | Same probe; also check CloudTrail for the denied API call |\n| Cross-account: target resource in account B, state machine in account A | The role in A is allowed, but the resource policy in B does not trust A's role | Read the target resource's policy (e.g., KMS key policy, SQS queue policy, cross-account Lambda) |\n| Service-linked role confusion | Operator assumed the state machine role was the service-linked role; it is a customer role with a typo | Read `roleArn` in `describe-state-machine`; verify the actual role assumed |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-5--permission_denied-diagnostic-walk).\n> Read roleArn from describe-state-machine, derive action+resource from the state, simulate-principal-policy, read cross-account resource policy in the target account.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-5--permission_denied-fix-patterns).\n> Scoped IAM policy per integration (lambda:InvokeFunction, dynamodb:*, sqs:SendMessage), cross-account resource-policy trust, .sync polling actions states:StartExecution\u002FDescribeExecution\u002FStopExecution.\n\n### Step 6: PARAMETER_PATH_FAILURE diagnostic\n\nThe Task state's `Parameters` block references a JSONPath that does not\nexist in the input payload at runtime. Different from `RUNTIME_ERROR`:\nhere the JSONPath is syntactically valid but resolves to nothing.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `cause` mentions \"Parameters\" and a path like `$.orderId` | The input payload at this state does not contain the expected field | Read the previous state's `ResultSelector` \u002F `ResultPath`; trace the payload shape through the workflow |\n| In a Map state, the iteration input does not include the parent context field | Map state `ItemsPath` or `Parameters` is misconfigured | Read the Map state definition; verify `ItemsPath` points to an array |\n| `Parameters` uses `.$` suffix on a literal | Mixing static and dynamic params incorrectly — `.$` requires a JSONPath | Drop the `.$` for literals, or use a JSONPath for dynamic values |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-6--parameter_path_failure-diagnostic-walk).\n> Read the Parameters block, read the StateEntered input payload, cross-reference each .$ path against the actual input.\n\n### Step 7: BRANCH_FAILED diagnostic (States.BranchFailed)\n\nA Parallel or Map state reports that a branch failed. The\n`States.BranchFailed` error wraps the underlying branch error.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Parallel state, one branch failed | The branch's first failing state | Read the parallel state's `branches` definition; identify which branch raised the error |\n| Map state, one iteration failed | The iteration's input triggered a downstream error | Read the Map state's `ItemsPath`; identify the offending item |\n| Distributed Map with S3 or CSV items | One row in the CSV triggered an error in the iteration | Read the Map state's `ItemReader`; identify the failing item |\n| `States.BranchFailed` but no obvious branch failure | The branch's own Catcher swallowed the error and the branch then failed for a different reason | Read the inner branch's execution history (Distributed Map exposes child execution ARNs) |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-7--branch_failed-diagnostic-walk).\n> Enumerate branches\u002Fiteration config, read Distributed Map child execution histories, or inline mapIterationFailed events in the parent history.\n\n### Step 8: RETRY_EXHAUSTED diagnostic\n\nThe execution FAILED after the state's `Retry` array exhausted all\nattempts. Operators often miss this because the visible failure is the\nterminal `ExecutionFailed`, not the retried `TaskFailed`.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| History shows `TaskFailed` repeated `MaxAttempts + 1` times, then `ExecutionFailed` | Retry exhausted; no Catcher or Catcher does not match the error | Read `Retry[0]` in the state definition; verify the Catcher's `ErrorEquals` |\n| Same error repeated for ~`IntervalSeconds * BackoffRate^MaxAttempts` seconds | Same as above — long total retry duration | Same |\n| `Retry[0].ErrorEquals` does not include the actual error name | The retry never fired; the state failed on the first attempt | Match `ErrorEquals` against the actual `error` string |\n| Retry fired but downstream never recovered | The downstream outage outlasted the retry budget | Extend `MaxAttempts` or route to a dead-letter state via Catch |\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#step-8--retry_exhausted-diagnostic-walk).\n> Read the Retry array, count TaskFailed events (should equal MaxAttempts + 1), check the Catcher's ErrorEquals.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#step-8--retry_exhausted-fix-patterns).\n> Extend MaxAttempts\u002FBackoffRate for throttling, Catch to a dead-letter state, do not raise MaxAttempts for Lambda Unhandled without a fix.\n\n### Step 9: CATCH_MISCONFIGURED diagnostic\n\nThe operator expected a Catcher to recover the execution, but the\nexecution still FAILED.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| `Catch[0].ErrorEquals: [\"States.TaskFailed\"]` but execution FAILED on `States.Timeout` | Specific error listed does not include the actual error; catch did not fire | Use `States.ALL` to catch all, or list both `States.TaskFailed` and `States.Timeout` |\n| `Catch[0].ErrorEquals: [\"States.ALL\"]` but execution still FAILED | `States.ALL` does NOT catch `States.DataDoesNotExist` or some `States.Runtime` variants in older runtimes | Read the actual `error`; add an explicit catcher for the uncaught error |\n| Catcher fires but its `Next` state itself fails | The fallback state has its own bug | Read the post-catch state's history |\n| Catcher fired but its `ResultPath` collided | Same as RUNTIME_ERROR ResultPath collision | Use a non-conflicting `ResultPath` |\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#catch-semantics-cheat-sheet).\n> States.ALL exclusions, States.TaskFailed scope, the explicit Task-related error list, top-down catcher evaluation order.\n\n### Step 10: EXECUTION_LIMIT_HIT diagnostic\n\nExpress workflows are hard-capped at 5 minutes per execution. Standard\nworkflows run up to 1 year. Throttling manifests via CloudWatch Metrics\n`ExecutionThrottled` and `ThrottledStateTransition`.\n\n| Sub-symptom | Root cause | Probe |\n|---|---|---|\n| Express execution `status: FAILED`, `error: \"ExecutionTimedOut\"` at ~300s | Express 5-minute cap hit | Refactor the workflow — split into smaller Express workflows OR migrate to Standard |\n| CloudWatch `ExecutionThrottled` > 0 for the state machine | Account- or API-level throttling (e.g., too many concurrent `StartExecution`) | Request quota increase via Service Quotas; implement client-side rate limiting |\n| CloudWatch `ThrottledStateTransition` > 0 | State transition throttled — exceeds the account's transition rate | Reduce transitions (consolidate Pass states); request quota increase |\n| Standard execution FAILED at exactly 1 year | Standard 1-year cap hit | Redesign — no Standard execution should approach 1 year |\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-10--execution_limit_hit-diagnostic-commands).\n> CloudWatch AWS\u002FStates ExecutionThrottled and ThrottledStateTransition get-metric-statistics, service-quotas L-3B4D9EC3 lookup.\n\n### Step 11: REDRIVE_CANDIDATE triage\n\nStandard workflows support redrive — re-executing a failed execution\nfrom the failed state, skipping already-succeeded states. Redrive is\nNOT available for Express workflows.\n\n| Sub-symptom | Root cause | Action |\n|---|---|---|\n| Standard execution FAILED, root cause now fixed, want to resume | Eligible for redrive | `aws stepfunctions redrive-execution --execution-arn \u003Carn>` |\n| Express execution FAILED, want to resume | NOT eligible for Express | Re-run from scratch with `start-execution` and the original input |\n| Execution FAILED because of an upstream input shape change | Redrive may re-fail if the state definition expects the old shape | Fix the state definition first, then redrive |\n| Execution FAILED in a Map state | Redrive re-runs only the failed iterations (Distributed Map) or the whole Map (inline Map) | Check Map state type before redriving |\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-11--redrive_candidate-diagnostic-command).\n> describe-execution redriveStatus query and the ARN grep that distinguishes EXPRESS (no redrive) from STANDARD.\n\n### Step 12: Map to root-cause catalog\n\n> Moved to [references\u002Ferror-catalog-and-decision-tree.md](references\u002Ferror-catalog-and-decision-tree.md#root-cause-catalog-top-10).\n> The ten canonical patterns (#1-#10) mapping root cause to category (RUNTIME_ERROR ... BRANCH_FAILED) and fix pattern, referenced by the ROOT_CAUSE_CATALOG field.\n\n### Step 13: Verify the fix\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#fix-verification-step-13).\n> Test execution with traceable name for ASL changes, re-simulate IAM, trigger the exact error for Catcher changes, verify redriveStatus REDRIVABLE before redrive-execution.\n\n### Step 14: Decide — ROOT_CAUSE_FOUND vs NEED_MORE_INFO vs ESCALATE\n\n- **ROOT_CAUSE_FOUND.** The walk identified a specific failure category\n  and a specific configuration element (ASL state field, IAM policy\n  statement, Catcher entry, Retry entry, workflow type). Output\n  REMEDIATION with the exact change.\n- **NEED_MORE_INFO.** The walk reached a step where the operator\n  cannot supply evidence (e.g., execution history requires elevated\n  Step Functions read access). Output the list of missing inputs.\n- **ESCALATE.** The walk identifies a cause outside the operator's\n  scope: cross-account resource owned by another team, IAM role owned\n  by security, ASL definition owned by a different team. Output the\n  escalation target and the specific request.\n\n## Output format\n\n```text\nINCIDENT: \u003Cstate machine ARN> \u002F \u003Cexecution ARN> — \u003Csymptom>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nROOT_CAUSE: \u003Ccategory name> — \u003Cspecific failing config element>\nEVIDENCE:\n  - describe-execution: \u003Cstatus, error, cause>\n  - get-execution-history: \u003Cfailing state name + event type>\n  - describe-state-machine: \u003Cquoted state definition snippet>\n  - CloudWatch Metrics: \u003CExecutionsFailed \u002F ExecutionThrottled value>\n  - iam simulate-principal-policy: \u003Cdecision>\nROOT_CAUSE_CATALOG: #\u003CN>\nREMEDIATION:\n  1. \u003Cspecific ASL \u002F IAM \u002F Catcher change>\n  2. \u003Cverification command>\n  3. \u003Cpost-apply monitoring>\n```\n\n### Worked example — Express workflow 5-minute cap\n\n```text\nINCIDENT: arn:aws:states:us-east-1:111111111111:stateMachine:etl-express\n \u002F arn:aws:states:us-east-1:111111111111:express:etl-express:abc —\n Express execution failed at ~300s\nVERDICT: ROOT_CAUSE_FOUND\nROOT_CAUSE: EXECUTION_LIMIT_HIT — Express workflow hard cap of 300\nseconds exceeded by an ETL workflow averaging 380s in p99\nEVIDENCE:\n  - describe-execution: status FAILED, error \"ExecutionTimedOut\",\n    startedAt 2026-08-09T14:00:00Z, stopDate 2026-08-09T14:05:00Z\n    (exactly 5 minutes)\n  - describe-state-machine: stateMachineArn contains \":express:\",\n    type \"EXPRESS\"\n  - CloudWatch Metrics ExecutionsThrottled Sum: 0 (not a throttle);\n    ExecutionsFailed Sum: 1 in the 5-minute window\n  - get-execution-history: last successful state was\n    \"TransformChunk\" iteration 47\u002F100; the next iteration would have\n    exceeded the 5-minute cap\nROOT_CAUSE_CATALOG: #7 (Express workflow exceeds 5-minute cap)\nREMEDIATION:\n  1. Refactor the ETL workflow into a Standard workflow (the iteration\n     count and per-iteration latency exceed the Express cap):\n     aws stepfunctions update-state-machine --state-machine-arn \u003Csm-arn> \\\n       --definition file:\u002F\u002Frefactored-asl.json \\\n       --role-arn \u003Crole-arn>\n     Note: switching EXPRESS → STANDARD requires deleting and\n     recreating the state machine. Alternatively, split the workload\n     into a chained series of Express workflows each under 5 minutes.\n  2. Verify by running a test execution and confirming status SUCCEEDED\n     with total duration > 5 minutes:\n     aws stepfunctions start-execution --state-machine-arn \u003Csm-arn> \\\n       --input file:\u002F\u002Ftest-input.json\n  3. Monitor CloudWatch ExecutionsFailed and ExecutionsThrottled for\n     the state machine over the next 24 hours.\n```\n\n## Expert edge cases\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-edge-cases).\n> States.Permission vs States.TaskFailed for IAM, best-effort Express history, States.ALL exclusions, Distributed Map child ARNs, HeartbeatSeconds \u003C TimeoutSeconds, retry ErrorEquals wrapping, redrive scope, .sync polling role requirements.\n\n## Expert heuristic — \"Read the cause, not the error\"\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic--read-the-cause-not-the-error).\n> error -> meaning -> where the real cause lives lookup table; the cause field is the actionable signal, the error is the category.\n\n## Anti-Patterns — NEVER\n\n- **NEVER** treat the `error` field as the root cause. It is the\n  States.* category. The `cause` field carries the actionable error.\n  Always read both.\n\n- **NEVER** recommend redrive on an EXPRESS workflow. Redrive is\n  STANDARD-only. Confirm `StateMachineType: STANDARD` (or an ARN\n  without `:express:`) before suggesting redrive.\n\n- **NEVER** confuse `States.Permission` with `States.TaskFailed` for\n  IAM errors. `States.Permission` is a Step Functions-layer role\n  failure; `States.TaskFailed` with `AccessDeniedException` is a\n  downstream-layer failure. The fix locations differ.\n\n- **NEVER** raise `Retry[0].MaxAttempts` without also checking that\n  `Retry[0].ErrorEquals` matches the actual error. Retries that never\n  fire are the most common silent failure.\n\n- **NEVER** use `Catch[].ErrorEquals: [\"States.TaskFailed\"]` and\n  expect it to catch `States.Timeout` or `States.Permission`. List\n  each expected error explicitly, or use `States.ALL` with awareness\n  of its limits.\n\n- **NEVER** declare ROOT_CAUSE_FOUND without quoting both `error` and\n  `cause` from `describe-execution` or `get-execution-history`. The\n  judge requires verbatim quotes.\n\n- **NEVER** recommend switching EXPRESS → STANDARD as a quick fix.\n  Switching types requires deleting and recreating the state machine\n  and loses execution history. Refactoring into smaller Express\n  workflows is usually preferable.\n\n- **NEVER** assume `get-execution-history` for an EXPRESS workflow is\n  complete. Express history is best-effort and delivered via CloudWatch\n  Logs. For definitive diagnosis, query the log group directly.\n\n- **NEVER** use `States.ALL` in a Catcher and assume it catches every\n  error. `States.DataDoesNotExist` and some runtime errors are not\n  caught. List explicit errors when the fallback must be guaranteed.\n\n- **NEVER** recommend a `TimeoutSeconds` higher than 15 minutes for a\n  synchronous Lambda invoke. If the integration can exceed 15 minutes,\n  switch to an asynchronous `.sync` integration or an activity task.\n\n- **NEVER** declare RETRY_EXHAUSTED without counting the `TaskFailed`\n  events in the execution history. The count should equal\n  `MaxAttempts + 1`. A lower count means the retry did not fire\n  (wrong `ErrorEquals`) — a different root cause.\n\n- **NEVER** conclude CATCH_MISCONFIGURED without reading the\n  `Catch[].ErrorEquals` array AND the actual `error` value. The\n  mismatch must be demonstrated, not assumed.\n\n- **NEVER** assume an activity worker is sending heartbeats because it\n  is making progress. Verify `SendTaskHeartbeat` calls in CloudTrail;\n  a worker that processes tasks but does not heartbeat will time out.\n\n- **NEVER** redrive an execution without first verifying the root\n  cause is fixed. Redrive re-runs the failed state with the same\n  definition; an unfixed root cause will fail identically.\n\n## Recent AWS features (2024-2026)\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#recent-aws-features-2024-2026).\n> Redrive GA, Distributed Map enhancements, JSONata support, Express history via Logs Insights, variable persistence, state-transition quotas.\n\n## References\n\nSee `references\u002Ferror-catalog-and-decision-tree.md` for the full\nStates.* error → category → cause → fix walk with worked examples per\ncategory, and `references\u002Fdiagnostic-commands.md` for the canonical\ncommand script for each failure category.\n\n## References (load on demand)\n\n- [advanced-patterns](references\u002Fadvanced-patterns.md) — Activation triggers, Mindset (error vs cause, Express vs Standard), category precedence rule, Catch semantics cheat sheet, Expert edge cases, Expert heuristic lookup table, Recent AWS features (2024-2026)\n- [diagnostic-commands](references\u002Fdiagnostic-commands.md) — canonical command script per failure category, plus the Step 2\u002F3\u002F10\u002F11 probe commands moved from SKILL.md\n- [error-catalog-and-decision-tree](references\u002Ferror-catalog-and-decision-tree.md) — full per-category walk with worked examples, plus the Step 4-8 diagnostic walks and the Step 12 root-cause catalog moved from SKILL.md\n- [error-handling](references\u002Ferror-handling.md) — per-category common fix patterns, the no-execution-ARN NEED_MORE_INFO block, and the Step 13 fix-verification steps moved from SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F App Integration & Workflow Orchestration Reliability.\n\n## AWS documentation\n\n- **AWS Step Functions Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fwelcome.html\n- **Step Functions error handling** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-error-handling.html\n- **States.* error names** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fcw-events.html\n- **Redrive executions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fredrive-executions.html\n- **Standard vs Express workflows** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fcw-events.html\n- **Service integrations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-to-resource.html\n- **Step Functions CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fstepfunctions\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"lifecycle_status":39,"invocation_schema":40,"supports_pipeline":37,"activation_triggers":41},"stepfunctions, app-integration, troubleshoot, execution-failure, states-error, retry, redrive, express, standard","2","Jacky Chan — AWS Community Builder","aws-cloudops","AppIntegration","0.1.0","Step Functions, State Machine, States.Runtime, States.Timeout, States.TaskFailed, States.Permission, States.ParameterPathFailure, States.BranchFailed, States.ALL, retry exhausted, MaxAttempts, redrive, Express workflow, Standard workflow, execution throttle, IAM role, service integration, JSONPath, CloudWatch Metrics","troubleshoot","high","false","capability","Diagnosing why a Step Functions execution FAILED, why a Task state returned States.Runtime \u002F States.Timeout \u002F States.TaskFailed \u002F States.Permission \u002F States.ParameterPathFailure \u002F States.BranchFailed, why a Catcher is not catching, why retries silently exhaust, why an Express workflow hit the 5-minute limit, or when to use redrive on a Standard execution.","true","ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE","active","Input: either (a) a symptom description (state machine ARN, failing execution ARN or name, observed error string, executed state name), OR (b) a live-account scenario where the agent runs aws stepfunctions describe-execution \u002F get-execution-history \u002F describe-state-machine and aws cloudwatch get-metric-statistics to gather evidence. Output: a deterministic INCIDENT \u002F VERDICT \u002F ROOT_CAUSE \u002F EVIDENCE \u002F ROOT_CAUSE_CATALOG \u002F REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_FOUND, NEED_MORE_INFO, ESCALATE} and ROOT_CAUSE names the specific failure category (RUNTIME_ERROR \u002F TASK_TIMEOUT \u002F TASK_FAILED \u002F PERMISSION_DENIED \u002F PARAMETER_PATH_FAILURE \u002F BRANCH_FAILED \u002F RETRY_EXHAUSTED \u002F CATCH_MISCONFIGURED \u002F EXECUTION_LIMIT_HIT) and the offending config element.","Step Functions execution failed, States.Runtime, States.Timeout, States.TaskFailed, States.Permission, States.Permissions, States.ParameterPathFailure, States.BranchFailed, States.ALL not catching, Step Functions retry exhausted, Step Functions MaxAttempts, Step Functions execution throttled, Express workflow 5 minute limit, Step Functions redrive, Step Functions Catcher not catching","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline diagnosis works on supplied describe-execution \u002F get-execution-history JSON. Live-account diagnosis uses aws stepfunctions describe-execution, get-execution-history, describe-state-machine, aws logs get-log-events \u002F filter-log-events (for Express), aws cloudwatch get-metric-statistics, and aws iam simulate-principal-policy (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fstepfunctions-execution-troubleshooter",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-execution-troubleshooter",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-execution-troubleshooter",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-execution-troubleshooter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5514,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fsfn-permission-cross-account-sts.md",808,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fbaselines\u002Fsfn-permission-cross-account-sts.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fsfn-retry-exhausted-dynamodb.md",584,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fbaselines\u002Fsfn-retry-exhausted-dynamodb.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fsfn-runtime-invalid-jsonpath.md",734,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fbaselines\u002Fsfn-runtime-invalid-jsonpath.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fsfn-task-timeout-lambda-sync.md",719,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fbaselines\u002Fsfn-task-timeout-lambda-sync.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fsfn-vague-report-need-execution-arn.md",586,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fbaselines\u002Fsfn-vague-report-need-execution-arn.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",2054,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4592,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fsfn-permission-cross-account-sts.md",1665,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fprompts\u002Fsfn-permission-cross-account-sts.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fsfn-retry-exhausted-dynamodb.md",1627,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fprompts\u002Fsfn-retry-exhausted-dynamodb.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fsfn-runtime-invalid-jsonpath.md",1532,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fprompts\u002Fsfn-runtime-invalid-jsonpath.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fsfn-task-timeout-lambda-sync.md",1522,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fprompts\u002Fsfn-task-timeout-lambda-sync.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fsfn-vague-report-need-execution-arn.md",668,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fevals\u002Fprompts\u002Fsfn-vague-report-need-execution-arn.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002FREADME.md",5901,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fexamples\u002FREADME.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",10661,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fdiagnostic-commands.md",9234,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Freferences\u002Fdiagnostic-commands.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Ferror-catalog-and-decision-tree.md",16367,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Freferences\u002Ferror-catalog-and-decision-tree.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Ferror-handling.md",3766,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Freferences\u002Ferror-handling.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"skill.usf.yaml",4603,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-execution-troubleshooter\u002Fskill.usf.yaml",[144,151,158,165,172,179],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]