{
  "slug": "pulumi-cli-adds-policy-analyze-command-31068812925e",
  "title": "Pulumi CLI adds policy analyze command",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-02T16:14:24.000Z",
  "announced_at": "2026-04-02T16:14:24.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When analyzing an existing stack against a policy pack, run `pulumi policy analyze` with the pack path and, if needed, the stack name.",
    "examples": [
      "pulumi policy analyze --policy-pack <policy-pack-path> [--stack <stack-name>]"
    ],
    "gotchas": [
      "Version: 3.229.0",
      "--policy-pack <path> (required): Path to a policy pack to run during analysis; repeat for multiple packs.",
      "--stack <name>: Stack to analyze; defaults to the current stack.",
      "Prerequisite: Use Pulumi CLI v3.229.0 or later; the command was added in v3.229.0.",
      "The command runs a policy pack against existing state.",
      "Docs conflict: The current CLI reference is generated for v3.264.0 and includes `--file`. Pulumi's release notes say `--file` was added in v3.258.0, so it is not included as a v3.229.0 option."
    ]
  },
  "why_it_matters": "Analyze an existing stack's state against a policy pack.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.229.0",
    "https://www.pulumi.com/docs/iac/cli/commands/pulumi_policy_analyze/"
  ],
  "rank": 0.94034,
  "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": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-8917654aa9414255-10:gate",
    "evidence_hash": "06eae1b2195795a48276a40132f15ffb30e65373f8402aefb15f2e65feb8797d"
  },
  "review": {
    "draft_hash": "f48b66f2671ab134a94658f234595a2d31f535d89f433e2d7217235885cfb296",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.61 (>= 0.6 needed)."
  }
}
