{
  "slug": "pulumi-state-promote-converts-stateful-snippets-into-pulumi-program-code-cce967d1b9f8",
  "title": "pulumi state promote converts stateful snippets into Pulumi program code",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-28T11:06:12.000Z",
  "announced_at": "2026-08-28T11:06:12.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When promoting a stateful snippet, run `pulumi state promote <snippet-name>` from a real Pulumi project; it generates program code, prints the files, and removes the snippet while retaining its resources in stack state.",
    "examples": [
      "pulumi state promote <snippet-name>"
    ],
    "gotchas": [
      "Version: v3.260.0",
      "<snippet-name> (required): The snippet’s logical name.",
      "-s, --stack <string>: Stack to operate on; defaults to the current stack.",
      "-y, --yes: Skip confirmation prompts.",
      "Prerequisite: Run from a real Pulumi project so the generated code has a backing project runtime."
    ]
  },
  "why_it_matters": "Convert a stateful snippet into Pulumi program code.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.260.0",
    "https://www.pulumi.com/docs/iac/cli/commands/pulumi_state_promote/"
  ],
  "rank": 0.94024,
  "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": "wave1-20261014",
    "verdict_id": "wave1-20261014:wave1-20261014-ad3e1a37963505bc-2:gate",
    "evidence_hash": "6e5f71f2a252d02ae84fc8ae9ad9c026aefce7c8d6f9f294d7fabe8c71743695"
  },
  "review": {
    "draft_hash": "8a91e599cfc1c64bf18a50c3dee15cbbcd4588d3ab9d2e238800f6254310d282",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1-20261014:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.60 (>= 0.6 needed)."
  }
}
