{
  "slug": "railway-config-apply-safety-and-config-pull-imports-f0462c904cd9",
  "title": "railway config apply safety and config pull imports",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-11T12:22:56.000Z",
  "announced_at": "2026-06-11T12:22:56.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reviewing or importing Railway infrastructure configuration, run `railway config plan` to preview changes and pull with `--omit-preserved-variables` for a smaller import; unknown imported secrets otherwise render as `preserve()`. For destructive changes in a non-interactive or agent session, review the plan and use `railway config apply --confirm-destructive` only with explicit approval for that exact plan.",
    "examples": [
      "railway config plan",
      "railway config pull --omit-preserved-variables",
      "railway config apply --confirm-destructive"
    ],
    "gotchas": [
      "Version: v5.9.1",
      "--omit-preserved-variables: For `railway config pull`, omit imported preserved variable entries for a smaller import.",
      "--confirm-destructive: For `railway config apply`, required for destructive changes in non-interactive or agent sessions after reviewing the plan.",
      "--yes: For `railway config apply`, skip the confirmation prompt. The v5.9.1 README does not document its rejection by `railway config plan`.",
      "Destructive changes in non-interactive or agent sessions require `--confirm-destructive` after reviewing the plan.",
      "Never use `railway config apply --yes` or `railway config apply --confirm-destructive` from an agent session without explicit user approval for the exact plan.",
      "`railway config plan --yes` is rejected.",
      "Unknown imported variable values are rendered as `preserve()` by default."
    ]
  },
  "why_it_matters": "When reviewing or importing this repository’s Railway infrastructure configuration, preview the plan, preserve imported secrets, and apply destructive changes only after reviewing the plan and obtaining approval.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.9.1",
    "https://github.com/railwayapp/cli/pull/962",
    "https://github.com/railwayapp/cli/blob/v5.9.1/assets/railway-config/README.md"
  ],
  "rank": 0.91044,
  "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-dd5add063e40b759-0:gate",
    "evidence_hash": "a652d5ba689b70932683de8d1334ef8e11d0e91ec85a383c46c761c0f551bd0a"
  },
  "review": {
    "draft_hash": "7a71b2a8f3a0cd3b1c545e468ffea61c45f2cc56574c42d4824bd0214619aef5",
    "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.67 (>= 0.6 needed)."
  }
}
