Skip to content

The CLI checks the gh floor once and refuses GH_TOO_OLD instead of failing inside a gate #153

Closed

Description

@radiusred-cody

Goal

A gh older than 2.50.0 (no pr checks --json) is refused up front with a code naming the floor and the installed version, rather than surfacing as a parse error inside task finish or a skipped sweep in milestone close (#149; #119 findings 21, 30). The changelog flips to 1.0.3 in the same PR so the three fold-backs ship together.

Requirements

M6-R6

Plan

  1. gh.Version() in internal/gh: runs gh --version, parses the first line (gh version 2.46.0 (2024-03-…)) into a semantic version; a pure ParseVersion / Compare pair, table-tested — including the -preview/build-suffix shapes and a line that does not parse (which is reported, not treated as too old).
  2. The check runs once, in load() — the path every verb that reads the working repo's .codecrew.yml takes — after the protocol check. Below the floor: refused[GH_TOO_OLD]: gh 2.46.0 installed; CodeCrew needs 2.50.0 or later (gh pr checks --json, cli/cli#9079) — upgrade gh. init and version do not call gh and are not gated; identity new goes through load() like the rest. A gh whose version line cannot be parsed proceeds with a note, so an unexpected build cannot lock the operator out.
  3. Floor as a constant (ghFloor = "2.50.0") beside the check, with a comment naming the feature that set it — the next floor-raising feature changes one line.
  4. Catalogue: GH_TOO_OLD under "any verb that loads .codecrew.yml" in docs/introduction.md, the count goes twenty-two → twenty-three there and in the README, SPEC's verb-table row for that pseudo-verb gains the code (a code added is a minor change under SPEC's semver rule).
  5. Release: CHANGELOG.md — this entry, then [Unreleased] → [1.0.3] — 2026-08-28 carrying Fold back the orchestrator run's findings into the contracts, scaffold and docs #148, milestone new takes requirements and refuses a title that disagrees with its number #151 and this; after task finish, tag v1.0.3 on the merge commit as cody (release.yml builds from the tag) and verify the release's binary prints v1.0.3 (protocol 1.0).

Ask-the-human points

None — the floor is measured (cli/cli#9079 shipped in 2.50.0), the code follows the catalogue's conventions, and 1.0.x releases have been cut from the last fold-back PR before (1.0.1, 1.0.2).

Activity

  1. added
    cc:task
    on Aug 28, 2026
  2. radiusred-cody commented on Aug 28, 2026

    @radiusred-cody
    ContributorAuthor

    Started by @radiusred-cody[bot].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cc:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions