Skip to content

Backlog capture: migrate prints action-needed for an absent root entry point instead of writing it as init does #301

Closed

Description

@davison

Backlog capture (deliberately unlabeled). Operator's question, 2026-09-06, during the v2.0.0 fleet migration.

The observation. init writes the root AGENTS.md and CLAUDE.md when they are absent and prints the paste block only for a kept file that does not reach the instructions. migrate (v2.0.0, #256/#280) writes .codecrew/AGENTS.md but treats an absent root entry point the same as a kept one — it names it (absent) under "action needed" and asks the operator to create it by hand. The implementer's reasoning (the operator's act is the same either way) missed that a missing file is CodeCrew's to write, and the result contradicts the verb's own goal: a migrated repo indistinguishable from a fresh 2.0 scaffold. It bites every 1.x spoke — spokes never had a root entry point — so five of the twelve fleet repos in M14-R3.

Shape proposed. migrate writes an absent root AGENTS.md/CLAUDE.md from the same scaffold constants init uses, in the same pathspec commit, listed by --dry-run; the action-needed block is printed only for kept files that do not reach (reachesInstructions false on an existing file). Tests: spoke with no root files → both written, no block; hub with a kept 1.x AGENTS.md → block, file untouched. SPEC §6 migrate row. Any minor (v2.0.1).

Source: the operator, migrating radiusred/numberguess (a hub — both files kept) and asking why a spoke would not get them written.

Activity

  1. davison commented on Sep 6, 2026

    @davison
    ContributorAuthor

    Adopted by #306 — this issue is delivered as that task, and gh codecrew task finish closes it when the task's pull request merges (SPEC §4). The PR needs no Closes line for it.

  2. radiusred-cody commented on Sep 7, 2026

    @radiusred-cody
    Contributor

    Closed by gh codecrew task finish 306: adopted by #306 and delivered by #315, merged as 9e225d9.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions