Skip to content

Ship v2.0.0 and migrate the fleet #272

Closed

Description

@davison

Goal

M14-R3 in full, last. Part A: the [Unreleased] changelog becomes 2.0.0, leading with what broke and the migration steps; docs/introduction.md and README flip; PR finished by the protocol. Part B: the annotated tag by the implementer identity, release.yml, five assets. Then the OPERATOR verifies gh extension upgrade codecrew prints v2.0.0 and status runs clean on this hub, migrates the remaining twelve repos hubs-before-spokes with gh codecrew migrate, and records the run on #269.

Requirements

M14-R3

Plan

Part A — the flip PR (this PR). As #242's PR #246 did for v1.2.0, with one addition the size of this release earns: a lead block.

  1. CHANGELOG.md. ## [Unreleased] becomes ## [2.0.0] — 2026-09-06 (the tag's date; amended before tagging if the tag slips a day), with a fresh ## [Unreleased] carrying Nothing yet. above it, in the form of the 1.2.0 flip (f64d4c9) and the 1.1.0 flip before it (a7a459d). The nineteen ### sections under Unreleased today — M13's protocol-2.0 work, M14's bookkeeping, and the M12 and M13 records — move into 2.0.0 unchanged but for the tidy in step 3. No entry for this task itself, as with Ship v1.1.0: the changelog flip, the docs at the boundary, the tag and the verified release #186 and Ship v1.2.0: the changelog flip, the introduction at the boundary, the tag and the verified release #242.
  2. The lead block. Between the ## [2.0.0] heading and the first ###, a short "What broke, and what to do" block in the shape of 1.0.0's opening paragraph and its "What 1.0 promises" section: the layout move in one sentence; that a 2.0 binary refuses a 1.x repo with refused[LAYOUT_LEGACY] and there is no dual read; then the migration steps as a numbered list — upgrade the extension, gh codecrew migrate in each repo with hubs before their spokes (a spoke reads its hub's .codecrew/roles/), read the commit, push and open the PR yourself, and paste the action needed lines into a kept root AGENTS.md/CLAUDE.md. It points at the migrate entry below for the detail rather than repeating it, and names the other four breaks (typed identities, routing failing closed, the entry point's move, the 1.0 shims and the tightened record grammar) as a sentence with pointers, not a second copy.
  3. The one tidy. The cc: labels entry's third bullet still closes "The asymmetry is deliberate: migrate runs once, on a repository whose labels nobody chose; init reruns, on one whose labels somebody may have" — the sentence SPEC §4 stopped saying in dd5913d, whose fourth bullet already carries the corrected reading (the move runs once; the label step is what a rerun repeats, and a deliberately restyled label is set back). Bullet three is reworded to SPEC §4's current wording so the two bullets agree; nothing else in the entry changes.
  4. Link definitions. [Unreleased] compares v2.0.0...HEAD; [2.0.0] added as v1.2.0...v2.0.0; the rest kept.
  5. docs/introduction.md. "What exists": **Shipped:** v1.2.0 … protocol 1.0 → v2.0.0 … protocol 2.0, and the version example → v2.0.0 (protocol 2.0). The verb list gains migrate (checked against internal/cli/cli.go's dispatch, which is where it has been missing since gh codecrew migrate: the one-shot 1.0 to 2.0 move #256 — it was correct to omit while 2.0 was unreleased). The dated "On main and not yet released:" paragraph Synthesize the M13 milestone document #284 added goes entirely: the migration guidance it carried lives in the changelog's lead block, which it already pointed at.
  6. README.md. The matching "On main and not yet released:" block under "Start now" goes the same way, replaced by one sentence naming v2.0.0 as the current release and pointing a 1.x adopter at gh codecrew migrate and the changelog. git grep '1\.2\.0' outside CHANGELOG.md and docs/milestones/ is then only ROADMAP.md's M12 row, which records which milestone shipped it and stays.
  7. Tests. Docs only, no Go touched; go test ./..., go vet ./... and gofmt -l . run as the boundary check, plus a grep that no "not yet released" or v1.2.0-as-current claim survives outside CHANGELOG history, docs/milestones/ and ROADMAP.md.
  8. The PR carries no Closes #272: this task closes after Part B and the operator's verification, so the body says "Part A of Ship v2.0.0 and migrate the fleet #272". The reviewer (an App) arrives by dispatch; task finish 272 is not run here.

Part B — after the flip merges, on the coordination layer's word. Annotated tag v2.0.0 with message v2.0.0 (protocol 2.0) on the merge commit, tagged and pushed as radiusred-cody[bot]; watch release.yml (gh-extension-precompile) to success; confirm the five platform assets on the release; post the evidence on this issue — tag SHA, run URL, assets — as #242's evidence comment did. Then stop: the operator's own checks (gh extension upgrade codecrew → v2.0.0, status clean on this migrated hub, migrate --dry-run saying already 2.0) and the twelve-repo migration are the operator's to run and record on #269, and the operator closes this issue after that.

Ask-the-human points

None. The release content is what M13's and M14's merged tasks already decided; the version follows from protocol 2.0 being a breaking major, and the date from when the tag is cut. The one judgment inside the flip — how much of the migration guidance the lead block repeats versus points at — is an ordinary editorial call, recorded as a Decision.

Activity

  1. added
    cc:task
    on Sep 6, 2026
  2. radiusred-cody commented on Sep 6, 2026

    @radiusred-cody
    Contributor

    Started by @radiusred-cody[bot].

  3. radiusred-cody commented on Sep 6, 2026

    @radiusred-cody
    Contributor

    Decision: the flip PR adds no ### … entry of its own under the fresh ## [Unreleased]. The changelog rule ("every PR adds an entry under Unreleased") is suspended for a release flip, as it was on #186's and #242's flips (PR #246: "No entry for this task itself, as with #186"). An entry describing the 2.0.0 release, sitting under the Unreleased heading that release just created, would be a changelog line about the changelog — and the first real entry after this merge would then have to work around it.
    Trade-off: a reader diffing ## [Unreleased] across the flip commit sees the section empty rather than self-documenting; the flip itself is legible from the ## [2.0.0] — <date> heading, the compare links and this task issue.
    Rejected: an entry under 2.0.0 saying the release was cut — the tag and the heading say that, and every other entry in the section describes a change to the software rather than to the record.

  4. radiusred-cody commented on Sep 6, 2026

    @radiusred-cody
    Contributor

    Decision: the "What broke, and what to do" block leads the 2.0.0 section as a ### What broke, and what to do entry: one paragraph on the layout move and LAYOUT_LEGACY, the five migration steps as a numbered list, and one paragraph naming the other breaks — typed identities, routing failing closed, the entry point's move, the three deleted 1.0 shims and the tightened record grammar — each pointing at its own entry below rather than restating it. The heading form follows 1.0.0's ### What 1.0 promises, which is likewise a summary rather than a change entry.
    Trade-off: the migration steps now appear twice in the file — here, and in the Protocol 2.0: the .codecrew/ layout entry's "Moving a repo forward" block, which arrived with #256 before the release had a section to lead. The duplication is deliberate: the block a 1.x adopter needs must be the first thing under the version heading, not four hundred lines down, and the older block carries detail (the action needed shape, the label step's failure mode) the lead deliberately compresses.
    Rejected: deleting the older block and leaving only the lead — it is part of a merged entry describing what #256 shipped, and editing an entry to remove content it recorded rewrites the history the file exists to keep. Also rejected: a lead of two sentences pointing at that block, which would make an adopter hunting the migration steps scroll past nineteen entries to find them.

  5. radiusred-cody commented on Sep 6, 2026

    @radiusred-cody
    Contributor

    Decision: docs/introduction.md's shipped-verb list gains migrate, which it has never carried. The verb shipped in #256 while 2.0 was on main and unreleased, so omitting it from a paragraph headed Shipped: was correct until this flip and is wrong the moment the claim reads v2.0.0. The list is checked against internal/cli/cli.go's dispatch — init, migrate, status, identity new/token/webhook, milestone new/close/evidence, task new/start/finish, checkpoint, role, roles, version, help — and help stays out of the list here as it always has.
    Trade-off: none; the paragraph is one verb longer.
    Rejected: leaving the list as it stands and letting the changelog carry migrate alone — the introduction's list is the one an adopter reads to know what the installed binary can do.

  6. radiusred-cody commented on Sep 6, 2026

    @radiusred-cody
    Contributor

    Deviation: checky's change request on PR #298 asked for two things — the literal closing keyword out of the PR body, and closingIssuesReferences empty afterwards. The first is done. The second cannot be reached by editing the body, and the PR still reports closingIssuesReferences: [#272].
    Why: the link is not body-derived. gh codecrew task start creates the working branch with gh issue develop (internal/tracker/github.go:230), which is a linked branch on the issue's development panel; when a pull request is opened from that branch GitHub converts the branch link into a linked pull request that closes the issue on merge. That link has no public API handle: gh issue develop 272 --list and the linkedBranches GraphQL connection are both empty (the branch link was consumed by the PR), the public schema offers createLinkedBranch/deleteLinkedBranch and nothing for a PR link, and the surviving ConnectedEvent (REST timeline id 30648824719) is not deletable. Removing Closes #272 from the body produced no DisconnectedEvent and left the reference in place, which is the same evidence read from the other side.
    What this means for Part B: merging #298 will close #272, whatever the body says. This is how every task in this hub has closed — task finish does not close the task issue itself (its only CloseIssue call is for adopted captures, internal/cli/task.go:689); it relies on exactly this link. M12's precedent went the same way: #242 was closed by the merge at 2026-09-04T23:59:41Z and Part B's tag, the release evidence and the operator's verification were all posted on the closed issue, with no reopen.
    Not mine to decide, so it goes to the coordination layer rather than into a commit. The options, as I see them: (a) accept the close and run Part B on the closed #272, as M12 did — the evidence comment and the operator's verification read the same either way; (b) reopen #272 immediately after the merge and close it again after the operator's verification, which costs one gh issue reopen; (c) close PR #298 and open a replacement from the same branch, which is the one act that would clear the link — GitHub does not re-link a PR to an issue whose linked branch it has already consumed — at the price of the PR number, its URL and checky's review. I have done none of these and made no commit and no push.

  7. davison commented on Sep 6, 2026

    @davison
    ContributorAuthor

    Decision: PR #298's merge will close this task through the linked branch task start created (the body no longer carries a closing keyword; the implementer's Deviation above shows the link is not body-derived and cannot be cleared). Accepted, as in M12 (#242): Part B — the annotated tag, the release run and the evidence — and the operator's verification and fleet migration are posted on this issue after it closes; no reopen. Rejected: closing #298 and reopening a replacement PR from the same branch — it would discard the reviewed PR and its number for a cosmetic difference in the timeline. Coordination layer, 2026-09-06.

  8. radiusred-cody commented on Sep 6, 2026

    @radiusred-cody
    Contributor

    v2.0.0 release evidence (M14-R3, implementer side)

    Merge commit: 2b75fdc6fdf5f6c8bb44a7ce8068fd0e3ebfad09 on main — PR #298 merged (rebase) by task finish 272; every gate ok, and the verb reported radiusred/gh-codecrew#272 closes via its closing keyword, deleted the remote branch, fast-forwarded the local main and deleted the local task branch at the merged head 87ca855. The commit's date, 2026-09-06, matches the ## [2.0.0] — 2026-09-06 heading it ships, so the heading needed no amendment.

    Tag: v2.0.0, annotated, tag object 93bf2f37818e1ccc7f2f3cff497628aae846d805 → commit 2b75fdc6fdf5f6c8bb44a7ce8068fd0e3ebfad09; tagger radiusred-cody[bot] <270330637+radiusred-cody[bot]@users.noreply.github.com> at 2026-09-06T18:46:35Z; message v2.0.0 (protocol 2.0). Confirmed through the API as well as locally: repos/radiusred/gh-codecrew/git/ref/tags/v2.0.0 resolves to that tag object and the tag object's object.sha is the merge commit.

    release.yml: run 34052790620 — completed, conclusion success, 1m11s, built by cli/gh-extension-precompile@v2. The one annotation is the runner's standing Node 20 deprecation notice on actions/checkout@v4 and actions/setup-go@v5, not a failure.

    Release: https://github.com/radiusred/gh-codecrew/releases/tag/v2.0.0 — gh release view v2.0.0 --json tagName,name,assets → v2.0.0, gh-codecrew 2.0.0, published (not a draft, not a prerelease), five assets:

    • gh-codecrew_v2.0.0_darwin-amd64
    • gh-codecrew_v2.0.0_darwin-arm64
    • gh-codecrew_v2.0.0_linux-amd64
    • gh-codecrew_v2.0.0_linux-arm64
    • gh-codecrew_v2.0.0_windows-amd64.exe

    This issue closed at the merge through the linked branch task start created, which is the accepted outcome recorded above; Part B was run on it closed, as M12's was on #242.

    The installed-binary checks are the operator's to run and post — gh extensions are user-global, so a seat cannot install one in its dispatch dir: gh extension upgrade codecrew → v2.0.0, gh codecrew version → v2.0.0 (protocol 2.0), gh codecrew status clean on this migrated hub, and gh codecrew migrate --dry-run reporting it already on protocol 2.0. Then the remaining repos, hubs before their spokes, recorded on #269.

  9. davison commented on Sep 6, 2026

    @davison
    ContributorAuthor

    Operator legs for v2.0.0 — release https://github.com/radiusred/gh-codecrew/releases/tag/v2.0.0 (tag v2.0.0 → 2b75fdc, run 34052790620, five assets). Coordination layer, 2026-09-06; tick off on this issue as you go:

    1. Install the release. The extension on this machine is a local build. Run gh extension remove codecrew, then gh extension install radiusred/gh-codecrew, then gh codecrew version → expect v2.0.0 (protocol 2.0).
    2. Verify on this hub. gh codecrew status runs clean (no drift, no refusal); gh codecrew migrate --dry-run says already on the 2.0 layout and labels at the protocol defaults.
    3. Migrate the fleet — twelve repos, hubs before their spokes. In each repo, on the default branch and up to date: gh codecrew migrate --dry-run, then gh codecrew migrate, then git show --stat to review the commit, then push (or open a PR where the branch is protected), then paste the printed action needed lines into a kept AGENTS.md if any.
      • Hubs: radiusred/ops, radiusred/numberguess, radiusred/snake, davison/davisononline-www, davison/md-notes, davison/topos.
      • Spokes (after their hub): radiusred/.github, radiusred/infrastructure, radiusred/www (hub ops); radiusred/codecrew-www (hub gh-codecrew, which The 2.0 layout: .codecrew/ everywhere, LAYOUT_LEGACY, this hub migrated #255 already moved — the spoke itself is NOT yet migrated); davison/topos-plugins (hub topos).
      • Excluded by decision: davison/numberguess (protocol 0.1 sandbox, never touched again).
    4. Record the run on M14: Adoption, tidy, and the v2.0.0 release #269 — one comment: each repo's migration commit SHA and anything migrate refused or noted.
      Then the QA seat verifies M14 and the doc-synthesizer writes the record.
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