{
  "slug": "pulumi-policy-analyze-can-analyze-an-exported-state-file-65b0839b6801",
  "title": "pulumi policy analyze can analyze an exported state file",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-01T14:20:03.000Z",
  "announced_at": "2026-07-01T14:20:03.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When analyzing exported Pulumi state without a stack or backend login, run `pulumi policy analyze` with `--file` pointing to the state file and a local policy pack.",
    "examples": [
      "pulumi policy analyze --file <state-file> --policy-pack <policy-pack-path>"
    ],
    "gotchas": [
      "Version: 3.249.0",
      "--file <state-file> (required): Analyze a state file produced by `pulumi stack export` instead of a live stack; this file workflow does not require a stack or backend login.",
      "--policy-pack <policy-pack-path> (required): Path to a policy pack to run during analysis; command analyzes against one or more local policy packs.",
      "Prerequisite: Use a state file produced by `pulumi stack export` and provide a local policy pack.",
      "The file must be a state file produced by `pulumi stack export`.",
      "The stated workflow does not require a stack or backend login."
    ]
  },
  "why_it_matters": "When analyzing a repository's exported Pulumi state without a stack or backend login, pass the state file to policy analysis.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.249.0",
    "https://www.pulumi.com/docs/iac/cli/commands/pulumi_policy_analyze/"
  ],
  "rank": 0.96023,
  "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-925363f267618722-10:gate",
    "evidence_hash": "b2896daf03cf154af66c1f0ff52610b8c9a643f0866b46f3719578912d3997ae"
  },
  "review": {
    "draft_hash": "8cca130a098572b0617bddf422b53ab29f7a08b6071b704a7f6cb47ae68694a6",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
