Skip to content

Order STANDUP.md Section 2 So carry.py Runs Against a Clean Target #4228

Closed

Description

@ptr727

Problem

STANDUP.md section 2 opens with this order: "After the baseline files are present, apply every applicable whole-tree declaration" with scripts/carry.py.
The same paragraph says the carry tool "refuses a shared or dirty target worktree".
A standup tree that already holds its baseline files, uncommitted, is dirty, so carry.py check and apply refuse it.

In practice the standup has to move its uncommitted baseline out of the tree, run check, apply and check, and then move the files back.
That is easy to get wrong, and the section never says to do it.

Reproduce

  1. On a fresh standup branch, copy in the section 1A and section 2 files without committing them.
  2. Run uv run --no-project --script scripts/carry.py check "<Repo>" --target <standup worktree>.
  3. It refuses the dirty target.

Suggested fix

Put the whole-tree carry where a clean tree is guaranteed. Either:

  • run carry.py first in section 2, before any other baseline file is written, or
  • tell the standup to commit the baseline on its feature branch before running carry.py, then commit the carried tree on its own.

Alternatively, let carry.py accept a target whose only changes sit outside every declared tree. That would keep the current order valid.

Activity

  1. added
    documentation
    on Nov 16, 2026
  2. ptr727 commented on Nov 20, 2026

    @ptr727
    OwnerAuthor

    Decision triage, 2026-11-19. How should STANDUP.md section 2 be ordered so scripts/carry.py runs against a target it accepts?

    carry.py refuses a target with uncommitted changes outside the declared trees, and section 2 runs it "after the baseline files are present". The issue's first suggestion, running carry.py first in section 2, does not work on its own. Section 1A has already written AGENTS.md, GOVERNANCE.md and the rest into the tree by then, uncommitted, so the target is already dirty when section 2 starts. The choice between a procedure change and a tool change is the maintainer's.

    Options

    1. Commit before carrying (recommended). Section 2 tells the standup to commit what sections 1A and 2 wrote on its feature branch, then run check, apply and check, then commit the carried tree on its own. The commits cost nothing to history, because section 0B already squashes the standup pull request into develop. It also keeps every later re-run working, including the closing check and any re-carry when the hub's skills move during a long standup. It changes prose only.
    2. Carry before section 1A writes anything. Move the whole-tree carry to the first write into the standup tree, right after section 1. This matches RESYNC.md, which runs the carry modes before anything else writes. It holds only for the first run. Any later check meets the same refusal unless the work in between is committed, so it still needs the commit instruction from option 1.
    3. Relax carry.py. Let a tree carry accept changes outside every declared tree. The tree modes write only inside their owned roots, so this risks no overwrite. It removes a check that Add Manifest-Driven Verbatim Tree Propagation #804 added deliberately, and it makes the tree modes differ from the section modes, which must keep refusing because they write into mixed files. It is a code change with tests for a problem a sentence of procedure solves.

    Evidence:

    Effect on work in flight: none. No open pull request touches STANDUP.md, the standup-a-repo skill, or carry.py. #4223 edits the same section of STANDUP.md, so the two fixes can land in one pull request.

  3. added
    decision
    on Nov 20, 2026
  4. ptr727 commented on Nov 20, 2026

    @ptr727
    OwnerAuthor

    Maintainer's answer, 2026-11-19 (decision triage): option 1. STANDUP.md section 2 commits what sections 1A and 2 wrote on the feature branch, then runs carry.py check, apply, and check, then commits the carried tree on its own. carry.py is unchanged. This is now work, in one pull request with #4223.

  5. removed
    decision
    on Nov 20, 2026
  6. ptr727 commented on Nov 20, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim (2026-11-19 attended run, round 1, group 4): branch burndown/standup-seed-carry-order.

    Issues: #4223, #4228, #4224.

    Predicted file set:

    • STANDUP.md
    • .agents/skills/standup-a-repo/SKILL.md

    Generated from those: .github/skills/standup-a-repo/SKILL.md, .claude-plugin/fleet-skills/skills/standup-a-repo/SKILL.md, .claude-plugin/fleet-skills/.source-digests/standup-a-repo.

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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions