{
  "slug": "go-automation-api-refresh-accepts-import-pending-creates-0511244d2d82",
  "title": "Go Automation API refresh accepts --import-pending-creates",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-14T11:30:57.000Z",
  "announced_at": "2026-07-14T11:30:57.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a Go Automation API refresh needs to resolve pending creates, pass `optrefresh.ImportPendingCreates` to `Stack.PreviewRefresh` or `Stack.Refresh`, mapping each resource URN to its provider-assigned physical ID.",
    "examples": [
      "result, err := stack.PreviewRefresh(ctx, optrefresh.ImportPendingCreates([]optrefresh.PendingCreate{{URN: \"<resource-urn>\", ID: \"<provider-id>\"}}))",
      "result, err := stack.Refresh(ctx, optrefresh.ImportPendingCreates([]optrefresh.PendingCreate{{URN: \"<resource-urn>\", ID: \"<provider-id>\"}}))"
    ],
    "gotchas": [
      "Version: 3.253.0",
      "optrefresh.ImportPendingCreates(creates []PendingCreate): Imports the given pending creates into state, mapping each resource URN to its provider-assigned physical ID.",
      "PendingCreate.URN (required): Pulumi resource URN of the pending create.",
      "PendingCreate.ID (required): Provider-assigned physical ID of the created resource.",
      "Prerequisite: Use Pulumi Go SDK v3.253.0 or later; `ImportPendingCreates` and `PendingCreate` were added in v3.253.0."
    ]
  },
  "why_it_matters": "When previewing or running a refresh through the Go Automation API, pass the pending-creates import option when needed.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.253.0",
    "https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/auto/optrefresh"
  ],
  "rank": 0.93017,
  "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-0d55f1bf8c1fc829-0:gate",
    "evidence_hash": "bd53a90ad43bc6dab743e96aa6c63249a382bcf0a589042e2e5c9c22e82f6b08"
  },
  "review": {
    "draft_hash": "02ac591b0a8a80a05ea59945f1c9b6cf59ef35f04f614c8ddc5882eb3f9f9dc6",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.60 (>= 0.6 needed)."
  }
}
