{
  "slug": "pulumi-automation-api-adds-organization-default-commands-go-95456e5a8d2f",
  "title": "Pulumi Automation API adds organization default commands (Go)",
  "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 setting or retrieving the default organization for the current backend, call the Go Automation API workspace method `OrgSetDefault` or `OrgGetDefault`.",
    "examples": [
      "org, err := workspace.OrgGetDefault(ctx)",
      "err := workspace.OrgSetDefault(ctx, \"<org-name>\")"
    ],
    "gotchas": [
      "Version: 3.229.0",
      "OrgGetDefault(ctx context.Context) (required): Context is required; returns the default organization for the current backend and an error.",
      "OrgSetDefault(ctx context.Context, orgName string) (required): Context and organization name are required; sets the default organization for the current backend.",
      "Prerequisite: Use the Pulumi Go SDK Automation API. It drives the Pulumi CLI, which must be available at runtime; install it and add it to PATH, or install it programmatically."
    ]
  },
  "why_it_matters": "Set or retrieve the default organization through the Go Automation API.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.229.0",
    "https://github.com/pulumi/pulumi/blob/v3.229.0/sdk/go/auto/workspace.go",
    "https://www.pulumi.com/docs/iac/concepts/automation-api/"
  ],
  "rank": 0.91016,
  "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-8:gate",
    "evidence_hash": "06eae1b2195795a48276a40132f15ffb30e65373f8402aefb15f2e65feb8797d"
  },
  "review": {
    "draft_hash": "ec04093e27716e7f3ec9a1d23a284b89b19c0dfa8b228a398e8dda1f23fabda8",
    "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.91 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
