{
  "slug": "railway-config-plan-supports-detailed-exit-code-bb1072a87c5d",
  "title": "railway config plan supports --detailed-exit-code",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-19T16:30:51.000Z",
  "announced_at": "2026-06-19T16:30:51.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a script needs to distinguish a clean plan from pending changes, run `railway config plan --detailed-exit-code`. It exits 0 when nothing would change and 2 when changes are pending; errors remain non-zero.",
    "examples": [
      "railway config plan --detailed-exit-code"
    ],
    "gotchas": [
      "Version: v5.18.0",
      "railway config plan (required): Previews configuration changes without applying them.",
      "--detailed-exit-code: Opt-in: exits 0 when nothing would change, 2 when changes are pending; errors remain non-zero.",
      "Prerequisite: Install the Railway CLI and authenticate with `railway login`, or set a token for CI/CD."
    ]
  },
  "why_it_matters": "Integrate a Railway config plan into a script that needs an exit code indicating whether changes are present.",
  "before": "Without the opt-in flag, `railway config plan` retains its default exit behavior.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.18.0",
    "https://docs.railway.com/infrastructure-as-code",
    "https://docs.railway.com/cli"
  ],
  "rank": 0.93026,
  "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-1296dfa9f726935e-2:gate",
    "evidence_hash": "7c519e70e79403b65601ef7125772eb9e88ebd63a1a1d85d1cfa587360ab7e10"
  },
  "review": {
    "draft_hash": "1638e2754bdf6ae6a18f144bb6c9389255145d85d35117c485be8e9a05ca8382",
    "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.93 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
