{
  "slug": "flyctl-machine-wait-waits-for-a-machine-state-b68c8dfedd8f",
  "title": "flyctl machine wait waits for a machine state",
  "tools": [
    "flyctl"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-09T19:23:52.000Z",
  "announced_at": "2026-03-09T19:23:52.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a CLI workflow needs to wait for a Fly Machine to reach a state, run `fly machine wait <machine-id>`; it waits for `settled` by default. Use `--state <state>` to select a target and `--wait-timeout <duration>` to set the timeout.",
    "examples": [
      "fly machine wait <machine-id>",
      "fly machine wait <machine-id> --state <state>",
      "fly machine wait <machine-id> --state <state> --wait-timeout <duration>"
    ],
    "gotchas": [
      "Version: v0.4.20",
      "machine-id: Optional positional machine ID; command allows zero or one argument and selects a machine when omitted.",
      "--state: Machine state to wait for; defaults to `settled`.",
      "--wait-timeout: Duration to wait for the machine to reach the requested state; defaults to 5 minutes. Shorthand: `-w`.",
      "Prerequisite: Requires an authenticated flyctl session."
    ]
  },
  "why_it_matters": "Wait for a machine to reach a target state or settle during a CLI workflow.",
  "sources": [
    "https://github.com/superfly/flyctl/releases/tag/v0.4.20",
    "https://github.com/superfly/flyctl/pull/4765",
    "https://github.com/superfly/flyctl/blob/v0.4.20/internal/command/machine/wait.go"
  ],
  "rank": 0.96029,
  "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-3e67d9cee0ecfbf9-0:gate",
    "evidence_hash": "3be8a8021a6c311a451037d3c544aa5a293b267fff72fc031f261c6e32eb53ac"
  },
  "review": {
    "draft_hash": "212fdfc8a91b499a70d05e4fb52b384b0a03ec96e46e97e53327dd1c576176a6",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.79 (>= 0.6 needed)."
  }
}
