{
  "slug": "cdk-deploy-defaults-to-errors-only-progress-for-ai-agents-0eb76115afd2",
  "title": "cdk deploy defaults to errors-only progress for AI agents",
  "tools": [
    "cdk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-26T16:20:11.000Z",
  "announced_at": "2026-08-26T16:20:11.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When no progress preference is configured and the CLI detects an AI agent, run `cdk deploy`; it uses `errors-only` automatically. For explicit errors-only output, run `cdk deploy --progress errors-only` and inspect the result or failures.",
    "examples": [
      "cdk deploy",
      "cdk deploy --progress errors-only"
    ],
    "gotchas": [
      "Version: 2.1139.0",
      "<stack-id>: Optional CDK stack construct ID to deploy; omit to deploy the app’s stack selection by default.",
      "--progress <STRING>: Select deployment progress output. `errors-only` prints nothing during deployment except errors; documented values in the current repository README are `bar`, `events`, and `errors-only`.",
      "progress: Scalar progress preference in `cdk.json` or `~/.cdk.json`; explicit configuration takes precedence over automatic agent detection.",
      "-v: Verbose logging; disables AI-agent detection for this default.",
      "Prerequisite: Install the AWS CDK CLI; the AWS guide says it is installed with Node Package Manager.",
      "Prerequisite: The target AWS environment must be bootstrapped for stacks with assets or synthesized templates over 51,200 bytes to deploy.",
      "The automatic default applies when an AI agent is detected and no progress preference is configured anywhere.",
      "An explicit `--progress` or a `progress` key in `cdk.json` or `~/.cdk.json` takes precedence.",
      "Verbose logging (`-v`) disables detection.",
      "When the automatic default applies, a one-line info notice explains the setting and how to override it.",
      "Docs conflict: The current AWS CLI command reference lists only `bar` and `events` as valid `--progress` values and gives `bar` as the default, while the current official repository README documents `errors-only` and automatic agent detection. The repository README is newer than the stated release; verify behavior against the installed v2.1139.0 CLI."
    ]
  },
  "why_it_matters": "Deploy a CDK app from an AI-agent context and inspect the deployment result or failures.",
  "before": "The release-note evidence says agents received per-event deployment output in events mode; `errors-only` preserves failures while suppressing routine progress.",
  "sources": [
    "https://github.com/aws/aws-cdk-cli/releases/tag/aws-cdk%40v2.1139.0",
    "https://github.com/aws/aws-cdk-cli/pull/1800",
    "https://github.com/aws/aws-cdk-cli/pull/1850",
    "https://github.com/aws/aws-cdk-cli/blob/main/packages/aws-cdk/README.md",
    "https://docs.aws.amazon.com/cdk/v2/guide/ref-cli-cmd-deploy.html",
    "https://docs.aws.amazon.com/cdk/v2/guide/cli.html"
  ],
  "rank": 0.96038,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-bd9861e7b4ce648b-0:gate",
    "evidence_hash": "b8e8e3faa6f7d4990a838d8067c3a5d9e516ba8d9e7ffd49e148103ff78609b8"
  },
  "review": {
    "draft_hash": "cf27282135b0986ffec6af7de138f9c4513ead7299c4174a99913c87689662bf",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
