{"service":"Second Wind","introduction":"Second Wind sells AWS fix services to agents. Post the evidence of a failing deployment or integration and receive a repair plan worked out for that exact case. Payment is x402 on Base, requested only after the case is solved.","total_live":8,"catalog":{"source":"live","as_of":"2026-11-18T00:57:46.903Z"},"payment":{"rail":"x402","network":"eip155:8453","asset":"USDC"},"tools":[{"slug":"cfn-export-in-use-update-plan","name":"deploy refuses to update export","kind":"tool","service":"cloudformation","summary":"Send the deployed and target templates of the exporting stack and its importers. Returns which exports are blocked and why, the exact deploy order that clears the deadlock, the outputs to pin in the interim deployment, and generated CDK or CloudFormation pin code that reproduces each deployed export unchanged.","price_usd":2,"use_when":["Export <name> cannot be deleted as it is in use by <stack>","Export <name> cannot be updated as it is in use by <stack>","Cannot delete export <name> as it is in use by <stack>"],"returns":{"verdict":"string code naming the finding","diagnosis":"the cause, stated once","steps":"ordered array; execute step 1 first; each has step, title and the commands, statements or code to apply","verify":"commands or checks that confirm the repair","blocked_exports":"each export that blocks the update, the change made to it and the stacks importing it","artifacts":"cloudformation_outputs_patch and cdk_pin_code that keep each blocked export identical during the interim deployment","new_imports_required":"exports the importers need that the exporter does not publish yet","caveats":"limits of the analysis"},"not_covered":"Same account and Region stacks linked by Outputs.Export and Fn::ImportValue, supplied as JSON templates. Does not cover CDK crossRegionReferences custom resources or Terraform consumers.","invoke_kind":"service","input_schema":"{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tool\",\"exporting_stack\",\"importing_stacks\"],\"properties\":{\"tool\":{\"enum\":[\"cdk\",\"cloudformation\",\"sam\"],\"description\":\"What deploys these stacks.\"},\"cdk_language\":{\"enum\":[\"typescript\",\"python\"],\"description\":\"Language for generated CDK pin code. Default typescript.\"},\"region\":{\"type\":\"string\",\"pattern\":\"^[a-z]{2}(-[a-z]+)+-\\\\d$\"},\"account_id\":{\"type\":\"string\",\"pattern\":\"^\\\\d{12}$\"},\"error_message\":{\"type\":\"string\",\"maxLength\":4000,\"description\":\"The deploy error text, if you have it.\"},\"exporting_stack\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"name\",\"deployed_template\",\"target_template\"],\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":128},\"deployed_template\":{\"type\":\"object\",\"description\":\"What is deployed now: aws cloudformation get-template --stack-name NAME --template-stage Processed --query TemplateBody\"},\"target_template\":{\"type\":\"object\",\"description\":\"What you are trying to deploy: cdk synth NAME --json, or your new template converted to JSON.\"},\"parameters\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"},\"description\":\"Parameter values, needed only when export names are built from parameters.\"}}},\"importing_stacks\":{\"type\":\"array\",\"minItems\":1,\"maxItems\":20,\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"name\",\"deployed_template\"],\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":128},\"deployed_template\":{\"type\":\"object\",\"description\":\"CloudFormation template as a JSON object. Only Outputs, Parameters and Resources are read; other sections may be removed to save space.\"},\"target_template\":{\"type\":\"object\",\"description\":\"The importer after your change. Omit it and the importer is assumed unchanged.\"},\"parameters\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}}}}}}}","input_example":"{\"tool\":\"cdk\",\"exporting_stack\":{\"name\":\"Data\",\"deployed_template\":{\"Resources\":{\"Bucket83908E77\":{\"Type\":\"AWS::S3::Bucket\"}},\"Outputs\":{\"ExportsOutputRefBucket83908E7781C90AC0\":{\"Value\":{\"Ref\":\"Bucket83908E77\"},\"Export\":{\"Name\":\"Data:ExportsOutputRefBucket83908E7781C90AC0\"}}}},\"target_template\":{\"Resources\":{\"Bucket83908E77\":{\"Type\":\"AWS::S3::Bucket\"}}}},\"importing_stacks\":[{\"name\":\"Api\",\"deployed_template\":{\"Resources\":{\"Fn\":{\"Type\":\"AWS::Lambda::Function\",\"Properties\":{\"Environment\":{\"Variables\":{\"BUCKET\":{\"Fn::ImportValue\":\"Data:ExportsOutputRefBucket83908E7781C90AC0\"}}}}}}},\"target_template\":{\"Resources\":{\"Fn\":{\"Type\":\"AWS::Lambda::Function\",\"Properties\":{}}}}}]}","mime_type":"application/json","source_repo":"","source_path":"","source_url":"https://github.com/aws/aws-cdk/issues/5304","sources":["https://github.com/aws/aws-cdk/issues/5304","https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html"],"license_spdx":"LicenseRef-SecondWind-Service","provenance":"original analyzer; public failure reports listed in sources","version":1,"updated_at":"2026-11-09T00:00:00.000Z","price_role":"exact","pricing_mode":"per-call","pricing_status":"configured","max_amount_atomic":"2000000","price_usdc_micros":"2000000","charge_policy":"402 is returned only when your case is already solved. 400 and 422 cost nothing.","content_hash":"a9a239ccdd15ba7e14c641ece4447262499a1f5ecca831575e25e432f00424a6","content_hash_scope":"service-contract","size_bytes":0,"url":"https://secondwindai.com/api/x402/cfn-export-in-use-update-plan","method":"POST"},{"slug":"iam-access-denied-layer-analysis","name":"cross account access denied","kind":"tool","service":"iam","summary":"Send the denied call and every policy around it: identity policies, resource or trust policy, KMS key policy, permissions boundary, SCP and RCP levels. Evaluates them together the way IAM does, same account or cross account, including the hidden KMS request. Returns the blocking layer and statement, statements that almost matched and why, and the minimal statement to add at each layer.","price_usd":10,"use_when":["AccessDenied","is not authorized to perform: <action> on resource: <arn>","with an explicit deny in a <policy type> policy","because no <policy type> policy allows the <action> action","User: <arn> is not authorized to perform: sts:AssumeRole","KMS.AccessDeniedException"],"returns":{"verdict":"string code naming the finding","diagnosis":"the cause, stated once","steps":"ordered array; execute step 1 first; each has step, title and the commands, statements or code to apply","verify":"commands or checks that confirm the repair","evaluations":"one entry per evaluated request (the call and each KMS action): decision, blocking layers, near miss statements, generated fixes","caller":"the principal as evaluated","not_evaluated":"layers outside this analysis"},"not_covered":"Evaluates supplied JSON policies for one principal, action and resource. Does not read live accounts and does not evaluate VPC endpoint policies, S3 ACLs, KMS grants or Lake Formation.","invoke_kind":"service","input_schema":"{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"request\",\"identity_policies\"],\"properties\":{\"request\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"principal_arn\",\"action\",\"resource\",\"resource_account_id\"],\"properties\":{\"principal_arn\":{\"type\":\"string\",\"pattern\":\"^arn:aws[a-z-]*:(iam|sts)::\\\\d{12}:.+$\",\"description\":\"The caller from aws sts get-caller-identity (role, assumed role session or user ARN).\"},\"role_arn\":{\"type\":\"string\",\"pattern\":\"^arn:aws[a-z-]*:iam::\\\\d{12}:role/.+$\",\"description\":\"Full role ARN when principal_arn is a session of a role that has a path.\"},\"action\":{\"type\":\"string\",\"pattern\":\"^[a-z0-9-]+:[A-Za-z0-9*]+$\",\"description\":\"The denied API action, for example s3:GetObject or sts:AssumeRole.\"},\"resource\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":2048,\"description\":\"The exact resource ARN of the call. For s3:GetObject that is the object ARN, for sts:AssumeRole the role ARN.\"},\"resource_account_id\":{\"type\":\"string\",\"pattern\":\"^\\\\d{12}$\"},\"context\":{\"type\":\"object\",\"description\":\"Request context keys you know, for example {\\\"aws:SourceVpce\\\":\\\"vpce-1\\\",\\\"aws:PrincipalOrgID\\\":\\\"o-abc\\\"}.\",\"additionalProperties\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]}},\"absent_context_keys\":{\"type\":\"array\",\"maxItems\":50,\"items\":{\"type\":\"string\"},\"description\":\"Context keys that are definitely not on the request, for example aws:SourceVpce when not calling through a VPC endpoint.\"},\"via_service\":{\"type\":\"string\",\"description\":\"Set when an AWS service makes the call for the principal, for example s3.us-east-1.amazonaws.com for the KMS call behind an S3 read.\"}}},\"identity_policies\":{\"type\":\"array\",\"maxItems\":30,\"items\":{\"type\":\"object\",\"required\":[\"Statement\"],\"description\":\"An IAM policy document as JSON.\"},\"description\":\"Every managed and inline policy attached to the role or user (and its groups).\"},\"permissions_boundary\":{\"type\":\"object\",\"required\":[\"Statement\"],\"description\":\"An IAM policy document as JSON.\"},\"session_policy\":{\"type\":\"object\",\"required\":[\"Statement\"],\"description\":\"An IAM policy document as JSON.\"},\"scp_levels\":{\"type\":\"array\",\"maxItems\":6,\"items\":{\"type\":\"array\",\"maxItems\":10,\"items\":{\"type\":\"object\",\"required\":[\"Statement\"],\"description\":\"An IAM policy document as JSON.\"}},\"description\":\"Organization policies, one array per level from the root down to the account. Every level must allow.\"},\"rcp_levels\":{\"type\":\"array\",\"maxItems\":6,\"items\":{\"type\":\"array\",\"maxItems\":10,\"items\":{\"type\":\"object\",\"required\":[\"Statement\"],\"description\":\"An IAM policy document as JSON.\"}},\"description\":\"Organization policies, one array per level from the root down to the account. Every level must allow.\"},\"resource_policy\":{\"type\":\"object\",\"required\":[\"Statement\"],\"description\":\"Bucket policy, queue policy, key policy, secret policy, or the role trust policy for sts:AssumeRole. Omit if the resource has none.\"},\"kms\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"key_arn\",\"actions\"],\"description\":\"The KMS key that encrypts the resource. The principal needs these KMS actions as well.\",\"properties\":{\"key_arn\":{\"type\":\"string\",\"pattern\":\"^arn:aws[a-z-]*:kms:[a-z0-9-]+:\\\\d{12}:key/.+$\"},\"actions\":{\"type\":\"array\",\"minItems\":1,\"maxItems\":6,\"items\":{\"type\":\"string\",\"pattern\":\"^kms:[A-Za-z*]+$\"}},\"key_policy\":{\"type\":\"object\",\"required\":[\"Statement\"],\"description\":\"An IAM policy document as JSON.\"},\"aws_managed\":{\"type\":\"boolean\",\"description\":\"True for an AWS managed key such as aws/s3 or aws/secretsmanager.\"},\"via_service\":{\"type\":\"string\"}}},\"error_message\":{\"type\":\"string\",\"maxLength\":4000}}}","input_example":"{\"request\":{\"principal_arn\":\"arn:aws:sts::111111111111:assumed-role/app-role/session\",\"action\":\"s3:GetObject\",\"resource\":\"arn:aws:s3:::shared-data/reports/q3.csv\",\"resource_account_id\":\"222222222222\"},\"identity_policies\":[{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::shared-data/*\"}]}],\"resource_policy\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::111111111111:role/app-role\"},\"Action\":[\"s3:GetObject\",\"s3:ListBucket\"],\"Resource\":\"arn:aws:s3:::shared-data\"}]}}","mime_type":"application/json","source_repo":"","source_path":"","source_url":"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html","sources":["https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html","https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic-cross-account.html","https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html"],"license_spdx":"LicenseRef-SecondWind-Service","provenance":"original analyzer; public failure reports listed in sources","version":1,"updated_at":"2026-11-09T00:00:00.000Z","price_role":"exact","pricing_mode":"per-call","pricing_status":"configured","max_amount_atomic":"10000000","price_usdc_micros":"10000000","charge_policy":"402 is returned only when your case is already solved. 400 and 422 cost nothing.","content_hash":"5dad9f992b6e7c465302cc2edfc999c81439167a6b33bed64e91e0f645808351","content_hash_scope":"service-contract","size_bytes":0,"url":"https://secondwindai.com/api/x402/iam-access-denied-layer-analysis","method":"POST"},{"slug":"eventbridge-cross-account-delivery-trace","name":"cross account events never arrive","kind":"tool","service":"events","summary":"Send one sample event, the sending rule, the receiving bus policy, the receiving rules and target policies. Walks the event through all five places cross account delivery stops silently, with real EventBridge pattern matching, and returns the first blocking stage, the exact field or statement responsible, and the command or statement that fixes it.","price_usd":8,"use_when":["events sent to another account never arrive","rule shows Invocations but target never runs","FailedInvocations metric above zero","rule on the receiving bus never triggers"],"returns":{"verdict":"string code naming the finding","diagnosis":"the cause, stated once","steps":"ordered array; execute step 1 first; each has step, title and the commands, statements or code to apply","verify":"commands or checks that confirm the repair","event_as_delivered":"the event with the account and region it carries on arrival","path":"status of each of the four delivery stages","blockers":"every stage problem with the mismatching field or statement"},"not_covered":"Bus to bus delivery between two accounts with supplied rules and policies. Lambda, SQS and SNS target policies are evaluated; role based targets are reported as unchecked. API destinations and Pipes are not covered.","invoke_kind":"service","input_schema":"{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"sample_event\",\"source\",\"destination\"],\"properties\":{\"sample_event\":{\"type\":\"object\",\"required\":[\"source\",\"detail-type\"],\"description\":\"One event exactly as the sender publishes it (source, detail-type, detail, resources). account and region are filled from source if absent.\"},\"source\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"account_id\",\"region\",\"rule\"],\"properties\":{\"account_id\":{\"type\":\"string\",\"pattern\":\"^\\\\d{12}$\"},\"region\":{\"type\":\"string\"},\"rule\":{\"type\":\"object\",\"required\":[\"name\",\"event_pattern\",\"targets\"],\"additionalProperties\":false,\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1},\"state\":{\"enum\":[\"ENABLED\",\"DISABLED\",\"ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS\"]},\"event_pattern\":{\"type\":\"object\"},\"targets\":{\"type\":\"array\",\"maxItems\":5,\"items\":{\"type\":\"object\",\"required\":[\"arn\"],\"additionalProperties\":false,\"properties\":{\"id\":{\"type\":\"string\"},\"arn\":{\"type\":\"string\",\"minLength\":20},\"role_arn\":{\"type\":\"string\"},\"dead_letter_arn\":{\"type\":\"string\"}}}}},\"description\":\"The sending rule: aws events describe-rule and list-targets-by-rule. event_pattern as a JSON object.\"},\"target_role\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"trust_policy\":{\"type\":\"object\",\"required\":[\"Statement\"]},\"identity_policies\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[\"Statement\"]},\"maxItems\":10}},\"description\":\"The role on the sending rule's bus target, if it has one.\"}}},\"destination\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"account_id\",\"region\",\"bus_arn\",\"rules\"],\"properties\":{\"account_id\":{\"type\":\"string\",\"pattern\":\"^\\\\d{12}$\"},\"region\":{\"type\":\"string\"},\"bus_arn\":{\"type\":\"string\",\"pattern\":\"^arn:aws[a-z-]*:events:[a-z0-9-]+:\\\\d{12}:event-bus/.+$\"},\"bus_policy\":{\"type\":\"object\",\"required\":[\"Statement\"],\"description\":\"aws events describe-event-bus --name NAME, the Policy field parsed as JSON. Omit if the bus has none.\"},\"rules\":{\"type\":\"array\",\"maxItems\":20,\"items\":{\"type\":\"object\",\"required\":[\"name\",\"event_pattern\",\"targets\"],\"additionalProperties\":false,\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1},\"state\":{\"enum\":[\"ENABLED\",\"DISABLED\",\"ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS\"]},\"event_pattern\":{\"type\":\"object\"},\"targets\":{\"type\":\"array\",\"maxItems\":5,\"items\":{\"type\":\"object\",\"required\":[\"arn\"],\"additionalProperties\":false,\"properties\":{\"id\":{\"type\":\"string\"},\"arn\":{\"type\":\"string\",\"minLength\":20},\"role_arn\":{\"type\":\"string\"},\"dead_letter_arn\":{\"type\":\"string\"}}}}}},\"description\":\"Rules on the receiving bus that should react to the event.\"},\"target_resource_policies\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"required\":[\"Statement\"]},\"description\":\"Resource policies of receiving targets keyed by target ARN: Lambda function policy, SQS queue policy, SNS topic policy.\"}}},\"context\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"},\"description\":\"Known context keys such as aws:PrincipalOrgID.\"}}}","input_example":"{\"sample_event\":{\"source\":\"orders.service\",\"detail-type\":\"OrderPlaced\",\"detail\":{\"total\":42}},\"source\":{\"account_id\":\"111111111111\",\"region\":\"us-east-1\",\"rule\":{\"name\":\"forward-orders\",\"state\":\"ENABLED\",\"event_pattern\":{\"source\":[\"orders.service\"]},\"targets\":[{\"arn\":\"arn:aws:events:us-east-1:222222222222:event-bus/central\"}]}},\"destination\":{\"account_id\":\"222222222222\",\"region\":\"us-east-1\",\"bus_arn\":\"arn:aws:events:us-east-1:222222222222:event-bus/central\",\"bus_policy\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"AllowSender\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::111111111111:root\"},\"Action\":\"events:PutEvents\",\"Resource\":\"arn:aws:events:us-east-1:222222222222:event-bus/central\"}]},\"rules\":[{\"name\":\"handle-orders\",\"state\":\"ENABLED\",\"event_pattern\":{\"account\":[\"222222222222\"],\"source\":[\"orders.service\"]},\"targets\":[{\"arn\":\"arn:aws:lambda:us-east-1:222222222222:function:handle\"}]}]}}","mime_type":"application/json","source_repo":"","source_path":"","source_url":"https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cross-account.html","sources":["https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cross-account.html","https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html","https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-use-resource-based.html"],"license_spdx":"LicenseRef-SecondWind-Service","provenance":"original analyzer; public failure reports listed in sources","version":1,"updated_at":"2026-11-09T00:00:00.000Z","price_role":"exact","pricing_mode":"per-call","pricing_status":"configured","max_amount_atomic":"8000000","price_usdc_micros":"8000000","charge_policy":"402 is returned only when your case is already solved. 400 and 422 cost nothing.","content_hash":"b9d59bc8a75b1728125e7cd4d2c3f3e7a3118f8304bfb428ff4f426d93f196a0","content_hash_scope":"service-contract","size_bytes":0,"url":"https://secondwindai.com/api/x402/eventbridge-cross-account-delivery-trace","method":"POST"},{"slug":"codepipeline-cross-account-artifact-access","name":"cross account pipeline artifact denied","kind":"tool","service":"codepipeline","summary":"Send the pipeline definition plus the artifact bucket policy, artifact key policy and the roles involved. Checks every cross account action for the seven things that must line up across both accounts: Regional artifact store, customer managed key named by ARN, key policy, bucket policy, action role permissions, trust, and the pipeline role's permission to assume. Returns each failing item with the generated statement or pipeline change.","price_usd":8,"use_when":["Access Denied (Service: Amazon S3) in a cross account action","The ciphertext refers to a customer master key that does not exist","is not authorized to perform: sts:AssumeRole on resource: <action role>","Insufficient permissions: unable to access the artifact"],"returns":{"verdict":"string code naming the finding","diagnosis":"the cause, stated once","steps":"ordered array; execute step 1 first; each has step, title and the commands, statements or code to apply","verify":"commands or checks that confirm the repair","problems":"each failing requirement with explanation and generated policy statement or pipeline change","checks_run":"every evaluation performed and its decision","not_checked_because_not_supplied":"inputs to add for a complete check"},"not_covered":"Pipelines with S3 artifact stores and actions that name a roleArn in another account. Evaluates supplied policies only. Does not check the deployment's own permissions inside the target account.","invoke_kind":"service","input_schema":"{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"pipeline\",\"pipeline_account_id\",\"pipeline_region\"],\"properties\":{\"pipeline\":{\"type\":\"object\",\"required\":[\"name\",\"roleArn\",\"stages\"],\"description\":\"The pipeline object from aws codepipeline get-pipeline --name NAME.\"},\"pipeline_account_id\":{\"type\":\"string\",\"pattern\":\"^\\\\d{12}$\"},\"pipeline_region\":{\"type\":\"string\",\"pattern\":\"^[a-z]{2}(-[a-z]+)+-\\\\d$\"},\"failing_action\":{\"type\":\"string\",\"description\":\"Name of the action that fails. Omit to check every cross account action.\"},\"bucket_policies\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"required\":[\"Statement\"]},\"description\":\"Artifact bucket policies keyed by bucket name.\"},\"kms_keys\":{\"type\":\"object\",\"description\":\"Artifact keys keyed by the encryptionKey id used in the pipeline.\",\"additionalProperties\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"key_arn\":{\"type\":\"string\",\"pattern\":\"^arn:aws[a-z-]*:kms:[a-z0-9-]+:\\\\d{12}:key/.+$\"},\"key_policy\":{\"type\":\"object\",\"required\":[\"Statement\"]}}}},\"roles\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"trust_policy\":{\"type\":\"object\",\"required\":[\"Statement\"]},\"identity_policies\":{\"type\":\"array\",\"maxItems\":20,\"items\":{\"type\":\"object\",\"required\":[\"Statement\"]}},\"permissions_boundary\":{\"type\":\"object\",\"required\":[\"Statement\"]}}},\"description\":\"Keyed by role ARN: the pipeline role (identity_policies) and each cross account action role (trust_policy and identity_policies).\"},\"error_message\":{\"type\":\"string\",\"maxLength\":4000}}}","input_example":"{\"pipeline_account_id\":\"111111111111\",\"pipeline_region\":\"us-east-1\",\"pipeline\":{\"name\":\"release\",\"roleArn\":\"arn:aws:iam::111111111111:role/pipeline-role\",\"artifactStore\":{\"type\":\"S3\",\"location\":\"release-artifacts\"},\"stages\":[{\"name\":\"Deploy\",\"actions\":[{\"name\":\"DeployProd\",\"roleArn\":\"arn:aws:iam::222222222222:role/deploy-role\",\"actionTypeId\":{\"category\":\"Deploy\",\"owner\":\"AWS\",\"provider\":\"CloudFormation\",\"version\":\"1\"},\"inputArtifacts\":[{\"name\":\"build\"}],\"configuration\":{\"ActionMode\":\"CREATE_UPDATE\",\"StackName\":\"app\",\"RoleArn\":\"arn:aws:iam::222222222222:role/cfn-exec\"}}]}]}}","mime_type":"application/json","source_repo":"","source_path":"","source_url":"https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-create-cross-account.html","sources":["https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-create-cross-account.html","https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_EncryptionKey.html"],"license_spdx":"LicenseRef-SecondWind-Service","provenance":"original analyzer; public failure reports listed in sources","version":1,"updated_at":"2026-11-09T00:00:00.000Z","price_role":"exact","pricing_mode":"per-call","pricing_status":"configured","max_amount_atomic":"8000000","price_usdc_micros":"8000000","charge_policy":"402 is returned only when your case is already solved. 400 and 422 cost nothing.","content_hash":"f20e00c194a65da52449984d2fc5ca5817702f8c6adc6e614a7a2ddf9a13fe8b","content_hash_scope":"service-contract","size_bytes":0,"url":"https://secondwindai.com/api/x402/codepipeline-cross-account-artifact-access","method":"POST"},{"slug":"cfn-stuck-stack-recovery-plan","name":"stack stuck rollback failed","kind":"tool","service":"cloudformation","summary":"Send the stack events of a stack stuck in UPDATE_ROLLBACK_FAILED, DELETE_FAILED or ROLLBACK_FAILED, including nested stack events. Separates the failure that started the rollback from the ones that blocked it, classifies each blocker, and returns the exact continue-update-rollback or delete command with only the resources that are safe to skip, plus how to reconcile each skipped resource afterwards.","price_usd":5,"use_when":["UPDATE_ROLLBACK_FAILED","Stack <name> is in UPDATE_ROLLBACK_FAILED state and can not be updated","DELETE_FAILED","ROLLBACK_FAILED","ROLLBACK_COMPLETE state and can not be updated"],"returns":{"verdict":"string code naming the finding","diagnosis":"the cause, stated once","steps":"ordered array; execute step 1 first; each has step, title and the commands, statements or code to apply","verify":"commands or checks that confirm the repair","original_failure":"the resource failure that started the rollback","rollback_blockers":"each resource that blocked the rollback: class, safe_to_skip, meaning, action","rules":"CloudFormation skip rules that apply"},"not_covered":"Works from supplied stack events for one stack and its nested stacks. Does not call AWS. StackSets operations are not covered.","invoke_kind":"service","input_schema":"{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"stack_name\",\"events\"],\"properties\":{\"stack_name\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":128},\"events\":{\"type\":\"array\",\"minItems\":1,\"maxItems\":400,\"items\":{\"type\":\"object\",\"required\":[\"LogicalResourceId\",\"ResourceStatus\",\"Timestamp\"],\"properties\":{\"LogicalResourceId\":{\"type\":\"string\"},\"PhysicalResourceId\":{\"type\":\"string\"},\"ResourceType\":{\"type\":\"string\"},\"ResourceStatus\":{\"type\":\"string\"},\"ResourceStatusReason\":{\"type\":\"string\"},\"Timestamp\":{\"type\":\"string\"}}},\"description\":\"StackEvents from aws cloudformation describe-stack-events --stack-name NAME, newest operation included. Any order.\"},\"nested_stack_events\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"array\",\"maxItems\":300,\"items\":{\"type\":\"object\",\"required\":[\"LogicalResourceId\",\"ResourceStatus\",\"Timestamp\"],\"properties\":{\"LogicalResourceId\":{\"type\":\"string\"},\"PhysicalResourceId\":{\"type\":\"string\"},\"ResourceType\":{\"type\":\"string\"},\"ResourceStatus\":{\"type\":\"string\"},\"ResourceStatusReason\":{\"type\":\"string\"},\"Timestamp\":{\"type\":\"string\"}}}},\"description\":\"For nested stacks that failed: their StackEvents keyed by the nested stack's LogicalResourceId in the parent.\"},\"service_role_arn\":{\"type\":\"string\",\"description\":\"The stack's service role, if it uses one.\"}}}","input_example":"{\"stack_name\":\"orders\",\"events\":[{\"LogicalResourceId\":\"orders\",\"ResourceType\":\"AWS::CloudFormation::Stack\",\"ResourceStatus\":\"UPDATE_IN_PROGRESS\",\"ResourceStatusReason\":\"User Initiated\",\"Timestamp\":\"2026-11-01T10:00:00Z\"},{\"LogicalResourceId\":\"Queue\",\"ResourceType\":\"AWS::SQS::Queue\",\"ResourceStatus\":\"UPDATE_COMPLETE\",\"Timestamp\":\"2026-11-01T10:01:00Z\"},{\"LogicalResourceId\":\"Api\",\"ResourceType\":\"AWS::ApiGateway::RestApi\",\"ResourceStatus\":\"UPDATE_FAILED\",\"ResourceStatusReason\":\"Invalid stage identifier specified\",\"Timestamp\":\"2026-11-01T10:02:00Z\"},{\"LogicalResourceId\":\"orders\",\"ResourceType\":\"AWS::CloudFormation::Stack\",\"ResourceStatus\":\"UPDATE_ROLLBACK_IN_PROGRESS\",\"ResourceStatusReason\":\"The following resource(s) failed to update: [Api].\",\"Timestamp\":\"2026-11-01T10:03:00Z\"},{\"LogicalResourceId\":\"Queue\",\"ResourceType\":\"AWS::SQS::Queue\",\"ResourceStatus\":\"UPDATE_FAILED\",\"ResourceStatusReason\":\"The specified queue does not exist.\",\"Timestamp\":\"2026-11-01T10:04:00Z\"},{\"LogicalResourceId\":\"orders\",\"ResourceType\":\"AWS::CloudFormation::Stack\",\"ResourceStatus\":\"UPDATE_ROLLBACK_FAILED\",\"ResourceStatusReason\":\"The following resource(s) failed to update: [Queue].\",\"Timestamp\":\"2026-11-01T10:05:00Z\"}]}","mime_type":"application/json","source_repo":"","source_path":"","source_url":"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html","sources":["https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html","https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ContinueUpdateRollback.html"],"license_spdx":"LicenseRef-SecondWind-Service","provenance":"original analyzer; public failure reports listed in sources","version":1,"updated_at":"2026-11-09T00:00:00.000Z","price_role":"exact","pricing_mode":"per-call","pricing_status":"configured","max_amount_atomic":"5000000","price_usdc_micros":"5000000","charge_policy":"402 is returned only when your case is already solved. 400 and 422 cost nothing.","content_hash":"8270cc01ff96ed63765ba2540875626ba6564b045b84fb9b2c293b44b1110ed4","content_hash_scope":"service-contract","size_bytes":0,"url":"https://secondwindai.com/api/x402/cfn-stuck-stack-recovery-plan","method":"POST"},{"slug":"cdk-stack-dependency-cycle-fix","name":"stacks form dependency cycle","kind":"tool","service":"cdk","summary":"Send the CDK cyclic reference error and the resource types of the two construct paths it names. Identifies which edge was added silently by a grant, an origin access control or a bucket notification, explains why, and returns replacement CDK code in TypeScript or Python that keeps the access but removes the back reference. Covers CloudFront OAC with a bucket in another stack, grants into KMS, S3, Secrets Manager, SQS, SNS and ECR policies, and S3 notifications.","price_usd":5,"use_when":["'<StackA>' depends on '<StackB>' (...). Adding this dependency (...) would create a cyclic reference","cyclic reference between stacks at cdk synth"],"returns":{"verdict":"string code naming the finding","diagnosis":"the cause, stated once","steps":"ordered array; execute step 1 first; each has step, title and the commands, statements or code to apply","verify":"commands or checks that confirm the repair","back_edge":"the reference that was added silently and the helper that added it","real_edge":"the reference that must stay","deploy_order":"stack order after the fix","tradeoff":"what the fix changes in behavior, when it does"},"not_covered":"Two stack cycles reported by CDK synth where the error names both construct paths and their resource types are supplied. Three or more stack cycles and nested stack cycles are not covered.","invoke_kind":"service","input_schema":"{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"error_message\",\"resources\"],\"properties\":{\"error_message\":{\"type\":\"string\",\"minLength\":40,\"maxLength\":6000,\"description\":\"The full CDK error line containing 'would create a cyclic reference'.\"},\"resources\":{\"type\":\"object\",\"minProperties\":2,\"maxProperties\":12,\"additionalProperties\":{\"type\":\"string\",\"pattern\":\"^(AWS|Custom)::[A-Za-z0-9:]+$\"},\"description\":\"CloudFormation type of each construct path named in the error, keyed by path without the attribute, for example {\\\"DataStack/Bucket/Resource\\\":\\\"AWS::S3::Bucket\\\",\\\"WebStack/Distribution/Resource\\\":\\\"AWS::CloudFront::Distribution\\\"}.\"},\"cdk_language\":{\"enum\":[\"typescript\",\"python\"]},\"uses_customer_kms_key\":{\"type\":\"boolean\",\"description\":\"True when the bucket, secret, queue or topic in the cycle is encrypted with a customer managed KMS key.\"}}}","input_example":"{\"error_message\":\"Error: 'bucket-stack' depends on 'cloudfront-stack' (bucket-stack -> cloudfront-stack/Distribution/Resource.Ref). Adding this dependency (cloudfront-stack -> bucket-stack/Bucket/Resource.RegionalDomainName) would create a cyclic reference.\",\"resources\":{\"cloudfront-stack/Distribution/Resource\":\"AWS::CloudFront::Distribution\",\"bucket-stack/Bucket/Resource\":\"AWS::S3::Bucket\"}}","mime_type":"application/json","source_repo":"","source_path":"","source_url":"https://github.com/aws/aws-cdk/issues/31462","sources":["https://github.com/aws/aws-cdk/issues/31462","https://github.com/aws/aws-cdk/issues/14213","https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront_origins-readme.html"],"license_spdx":"LicenseRef-SecondWind-Service","provenance":"original analyzer; public failure reports listed in sources","version":1,"updated_at":"2026-11-09T00:00:00.000Z","price_role":"exact","pricing_mode":"per-call","pricing_status":"configured","max_amount_atomic":"5000000","price_usdc_micros":"5000000","charge_policy":"402 is returned only when your case is already solved. 400 and 422 cost nothing.","content_hash":"e9cd528d698053fbff2efd72d3cd68753299679889fbb7bab0530edfa426a6df","content_hash_scope":"service-contract","size_bytes":0,"url":"https://secondwindai.com/api/x402/cdk-stack-dependency-cycle-fix","method":"POST"},{"slug":"security-group-delete-dependency-plan","name":"security group will not delete","kind":"tool","service":"ec2","summary":"Send the network interfaces that carry a security group and the groups whose rules reference it. Identifies the owner of every dependent object (Bedrock AgentCore, Lambda, VPC endpoints, load balancers, EKS, ECS, RDS, EFS and more), which ones you can delete now, which need the owning service to release them, and which AWS holds for hours. Returns the ordered commands and how to keep Terraform or CloudFormation from failing meanwhile.","price_usd":4,"use_when":["DependencyViolation: resource sg-<id> has a dependent object","aws_security_group: Still destroying... for many minutes","Security group deletion fails in a stack delete"],"returns":{"verdict":"string code naming the finding","diagnosis":"the cause, stated once","steps":"ordered array; execute step 1 first; each has step, title and the commands, statements or code to apply","verify":"commands or checks that confirm the repair","dependents":"each network interface carrying the group: owner, class, whether you can delete it, wait, how","rule_references":"rules in other groups that reference this group, with the revoke command","earliest_delete":"when deletion can succeed"},"not_covered":"Works from supplied describe-network-interfaces and describe-security-groups output for one group in one Region. Does not call AWS and does not inspect peered VPCs in other accounts.","invoke_kind":"service","input_schema":"{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"security_group_id\",\"network_interfaces\"],\"properties\":{\"security_group_id\":{\"type\":\"string\",\"pattern\":\"^sg-[0-9a-f]{8,17}$\"},\"network_interfaces\":{\"type\":\"array\",\"maxItems\":200,\"items\":{\"type\":\"object\",\"required\":[\"NetworkInterfaceId\"]},\"description\":\"NetworkInterfaces from: aws ec2 describe-network-interfaces --filters Name=group-id,Values=SG_ID\"},\"referencing_groups\":{\"type\":\"array\",\"maxItems\":100,\"items\":{\"type\":\"object\",\"required\":[\"GroupId\"]},\"description\":\"SecurityGroups from both: aws ec2 describe-security-groups --filters Name=ip-permission.group-id,Values=SG_ID and the same with Name=egress.ip-permission.group-id\"},\"group_name\":{\"type\":\"string\"},\"tool\":{\"enum\":[\"terraform\",\"cloudformation\",\"cdk\",\"cli\"]}}}","input_example":"{\"security_group_id\":\"sg-0a1b2c3d4e5f60718\",\"tool\":\"terraform\",\"network_interfaces\":[{\"NetworkInterfaceId\":\"eni-0aaa1111bbbb2222c\",\"InterfaceType\":\"agentic_ai\",\"Status\":\"in-use\",\"RequesterManaged\":false,\"Attachment\":{\"AttachmentId\":\"ela-attach-0123456789abcdef0\",\"Status\":\"attached\",\"InstanceOwnerId\":\"amazon-aws\"},\"TagSet\":[{\"Key\":\"AmazonBedrockAgentCoreManaged\",\"Value\":\"true\"}],\"Groups\":[{\"GroupId\":\"sg-0a1b2c3d4e5f60718\"}]},{\"NetworkInterfaceId\":\"eni-0ddd3333eeee4444f\",\"InterfaceType\":\"interface\",\"Status\":\"available\",\"Description\":\"aws-K8S-i-0123456789abcdef0\",\"Groups\":[{\"GroupId\":\"sg-0a1b2c3d4e5f60718\"}]}]}","mime_type":"application/json","source_repo":"","source_path":"","source_url":"https://github.com/hashicorp/terraform-provider-aws/issues/47399","sources":["https://github.com/hashicorp/terraform-provider-aws/issues/47399","https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/agentcore-vpc.html","https://docs.aws.amazon.com/vpc/latest/userguide/deleting-security-groups.html"],"license_spdx":"LicenseRef-SecondWind-Service","provenance":"original analyzer; public failure reports listed in sources","version":1,"updated_at":"2026-11-09T00:00:00.000Z","price_role":"exact","pricing_mode":"per-call","pricing_status":"configured","max_amount_atomic":"4000000","price_usdc_micros":"4000000","charge_policy":"402 is returned only when your case is already solved. 400 and 422 cost nothing.","content_hash":"19172cc3bdfb2dead5f85ac2868a3e441cebbeaf0a1d974d3756aef69cc80ac4","content_hash_scope":"service-contract","size_bytes":0,"url":"https://secondwindai.com/api/x402/security-group-delete-dependency-plan","method":"POST"},{"slug":"lambda-vpc-egress-path-trace","name":"lambda in vpc times out","kind":"tool","service":"lambda","summary":"Send the function's VPC configuration and the VPC's subnets, route tables, NAT gateways, endpoints and security groups. Traces the call to the internet, an AWS service or a VPC resource from every function subnet separately, so intermittent timeouts caused by one misrouted subnet are identified. Returns each broken hop (public subnet without public address, NAT in the wrong subnet, blackhole route, endpoint without private DNS, group rules) with the command that fixes it.","price_usd":4,"use_when":["Task timed out after <n> seconds in a VPC attached function","connect ETIMEDOUT","Connect timeout on endpoint URL","timeouts on only some invocations"],"returns":{"verdict":"string code naming the finding","diagnosis":"the cause, stated once","steps":"ordered array; execute step 1 first; each has step, title and the commands, statements or code to apply","verify":"commands or checks that confirm the repair","subnets":"the traced path and status for each function subnet","problems":"each broken hop with explanation and fix","failure_pattern":"always_fails or intermittent","not_evaluated":"layers outside this analysis"},"not_covered":"IPv4 paths inside one VPC from supplied describe output. Network ACLs, DNS, endpoint policies, peering and transit gateway hops beyond the VPC are not evaluated.","invoke_kind":"service","input_schema":"{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"region\",\"function\",\"destination\",\"subnets\",\"route_tables\",\"security_groups\"],\"properties\":{\"region\":{\"type\":\"string\",\"pattern\":\"^[a-z]{2}(-[a-z]+)+-\\\\d$\"},\"function\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"subnet_ids\",\"security_group_ids\"],\"properties\":{\"name\":{\"type\":\"string\"},\"subnet_ids\":{\"type\":\"array\",\"minItems\":1,\"maxItems\":16,\"items\":{\"type\":\"string\",\"pattern\":\"^subnet-[0-9a-f]+$\"}},\"security_group_ids\":{\"type\":\"array\",\"minItems\":1,\"maxItems\":5,\"items\":{\"type\":\"string\",\"pattern\":\"^sg-[0-9a-f]+$\"}}},\"description\":\"VpcConfig from aws lambda get-function-configuration.\"},\"destination\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\"],\"properties\":{\"kind\":{\"enum\":[\"internet\",\"aws_service\",\"vpc_resource\"]},\"aws_service\":{\"type\":\"string\",\"pattern\":\"^[a-z0-9.-]+$\",\"description\":\"For aws_service: the endpoint service short name, for example s3, dynamodb, secretsmanager, sqs, bedrock-runtime, sts.\"},\"port\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":65535,\"description\":\"Default 443.\"},\"security_group_ids\":{\"type\":\"array\",\"maxItems\":5,\"items\":{\"type\":\"string\"},\"description\":\"For vpc_resource: groups on the database, cache or instance being called.\"}}},\"subnets\":{\"type\":\"array\",\"maxItems\":100,\"items\":{\"type\":\"object\"},\"description\":\"Subnets from aws ec2 describe-subnets for the function's VPC.\"},\"route_tables\":{\"type\":\"array\",\"maxItems\":100,\"items\":{\"type\":\"object\"},\"description\":\"RouteTables from aws ec2 describe-route-tables --filters Name=vpc-id,Values=VPC_ID.\"},\"nat_gateways\":{\"type\":\"array\",\"maxItems\":100,\"items\":{\"type\":\"object\"},\"description\":\"NatGateways from aws ec2 describe-nat-gateways.\"},\"vpc_endpoints\":{\"type\":\"array\",\"maxItems\":100,\"items\":{\"type\":\"object\"},\"description\":\"VpcEndpoints from aws ec2 describe-vpc-endpoints --filters Name=vpc-id,Values=VPC_ID.\"},\"security_groups\":{\"type\":\"array\",\"maxItems\":100,\"items\":{\"type\":\"object\"},\"description\":\"SecurityGroups from aws ec2 describe-security-groups for the function groups, endpoint groups and destination groups.\"}}}","input_example":"{\"region\":\"us-east-1\",\"function\":{\"name\":\"worker\",\"subnet_ids\":[\"subnet-0aaa\",\"subnet-0bbb\"],\"security_group_ids\":[\"sg-0f00\"]},\"destination\":{\"kind\":\"aws_service\",\"aws_service\":\"secretsmanager\"},\"subnets\":[{\"SubnetId\":\"subnet-0aaa\",\"VpcId\":\"vpc-01\",\"CidrBlock\":\"10.0.1.0/24\",\"AvailabilityZone\":\"us-east-1a\"},{\"SubnetId\":\"subnet-0bbb\",\"VpcId\":\"vpc-01\",\"CidrBlock\":\"10.0.2.0/24\",\"AvailabilityZone\":\"us-east-1b\"},{\"SubnetId\":\"subnet-0ccc\",\"VpcId\":\"vpc-01\",\"CidrBlock\":\"10.0.0.0/24\",\"AvailabilityZone\":\"us-east-1a\"}],\"route_tables\":[{\"RouteTableId\":\"rtb-private\",\"VpcId\":\"vpc-01\",\"Associations\":[{\"SubnetId\":\"subnet-0aaa\"}],\"Routes\":[{\"DestinationCidrBlock\":\"10.0.0.0/16\",\"GatewayId\":\"local\"},{\"DestinationCidrBlock\":\"0.0.0.0/0\",\"NatGatewayId\":\"nat-01\"}]},{\"RouteTableId\":\"rtb-main\",\"VpcId\":\"vpc-01\",\"Associations\":[{\"Main\":true}],\"Routes\":[{\"DestinationCidrBlock\":\"10.0.0.0/16\",\"GatewayId\":\"local\"},{\"DestinationCidrBlock\":\"0.0.0.0/0\",\"GatewayId\":\"igw-01\"}]},{\"RouteTableId\":\"rtb-public\",\"VpcId\":\"vpc-01\",\"Associations\":[{\"SubnetId\":\"subnet-0ccc\"}],\"Routes\":[{\"DestinationCidrBlock\":\"10.0.0.0/16\",\"GatewayId\":\"local\"},{\"DestinationCidrBlock\":\"0.0.0.0/0\",\"GatewayId\":\"igw-01\"}]}],\"nat_gateways\":[{\"NatGatewayId\":\"nat-01\",\"State\":\"available\",\"SubnetId\":\"subnet-0ccc\",\"ConnectivityType\":\"public\"}],\"vpc_endpoints\":[],\"security_groups\":[{\"GroupId\":\"sg-0f00\",\"IpPermissionsEgress\":[{\"IpProtocol\":\"-1\",\"IpRanges\":[{\"CidrIp\":\"0.0.0.0/0\"}]}]}]}","mime_type":"application/json","source_repo":"","source_path":"","source_url":"https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc-internet.html","sources":["https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc-internet.html","https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html","https://docs.aws.amazon.com/vpc/latest/privatelink/create-interface-endpoint.html"],"license_spdx":"LicenseRef-SecondWind-Service","provenance":"original analyzer; public failure reports listed in sources","version":1,"updated_at":"2026-11-09T00:00:00.000Z","price_role":"exact","pricing_mode":"per-call","pricing_status":"configured","max_amount_atomic":"4000000","price_usdc_micros":"4000000","charge_policy":"402 is returned only when your case is already solved. 400 and 422 cost nothing.","content_hash":"72e47a1382495177bfd628eb942e69528546d766b6069d7fbb95efa30a9e371d","content_hash_scope":"service-contract","size_bytes":0,"url":"https://secondwindai.com/api/x402/lambda-vpc-egress-path-trace","method":"POST"}],"discovery":{"intent":"https://secondwindai.com/api/resolve","capnweb":"https://secondwindai.com/capnp","openapi":"https://secondwindai.com/openapi.json"},"toolGuidance":{"purchase":"Choose a whole product and configure it as required. Use its declared HTTP method, review the x402 payment requirements, and authorize payment with PAYMENT-SIGNATURE.","services":"Fix services have invoke_kind service. Match your error against use_when, then POST one JSON object matching input_schema to url. 400: fix the input, free. 422 no_actionable_finding: add the evidence named in reason, free. 402: your case is solved; repeat the same POST with PAYMENT-SIGNATURE. 200: execute result.steps in order, then result.verify. You pay only for a 200, and its result hashes to the content_hash shown in the 402.","service_result":"Every service result starts with verdict, diagnosis, steps and verify. returns on each tool lists its additional keys.","recovery":"Save paymentId and recoveryToken. Redelivery and Cap'n Web recovery require that private token and never initiate settlement.","disconnect":"For response-loss recovery, choose a random 32-byte base64url X-Recovery-Token before purchase and retain the accepted purchase URL.","execution":"Code Mode orchestration explicitly uses JavaScript. An existing artifact's language is determined by its product contract."}}