Skip to content

Carry a Newly Declared Verbatim Section in carry.py Instead of Refusing the Resync #3614

Closed

Description

@ptr727

carry.py check-sections refuses a whole resync when the hub declares a verbatim GOVERNANCE.md section the target has never carried. RESYNC.md section 0 says that case is the ordinary result of the baseline growing, and is carried inside the resync. The tool and the procedure disagree, and the resync has no mechanical path for the new section.

Observed

  • Audit run: audit run 2026-10-29T16:06:54Z | hub 77d7ca3, target PlexCleaner at main.
  • The audit reports GOVERNANCE.md section 'Design Before Code' region absent downstream, cannot compare, and the same for Trust Boundaries and Hardening Effort. Both are sections the hub added after the target last synced.
  • uv run --no-project --script scripts/carry.py check-sections PlexCleaner --target <worktree> exits 2 with: GOVERNANCE.md section 'Design Before Code' is declared verbatim but absent from the target. Where a declared section belongs in a file that never carried it is a standup question rather than a drift question, so this refuses rather than guessing.
  • It reports nothing about the other declared sections, so the stale ones go unmeasured until the new section exists.

Expected

RESYNC.md section 0 "A few letters are not that, and the ordinary cause is the baseline having grown" routes this case to a resync. The tool can place the section without guessing, since the hub's own heading order fixes where it goes: after the nearest preceding declared section the target carries.

Either apply-sections inserts a newly declared section at that position, asserting the rest byte-identical as it does today, or the refusal names the resync remedy instead of calling it a standup question.

Workaround used

The two sections were copied from hub main by hand, inserted before ## PR Review Etiquette, and committed. check-sections then ran clean and apply-sections re-vendored the stale sections.

Reproduce

  1. Take any carrier whose GOVERNANCE.md predates a section the hub has since declared verbatim.
  2. Run check-sections against it from a hub checkout.
  3. It exits 2 on the first absent section and measures nothing else.

🤖 Generated with Claude Code

Activity

  1. added
    script
    on Oct 29, 2026
  2. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown, round 1 file claim.

    Group issues: #3614
    Branch: feature/burndown-3614
    Predicted file set:

    • scripts/carry.py
    • scripts/tests/test_carry.py
    • RESYNC.md

    Another group must not edit these files until this branch merges or the claim is released here.

  3. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Claim correction for this group: the test file is tests/test_carry.py (repo-root tests/), not the scripts/tests/ path the claim above names. Branch and other files unchanged.

  4. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Claim update for this group (branch feature/burndown-3614): the file set gains scripts/README.md (its carry.py section), which the strict-review pass found now contradicts the change. Group #3392/#3677 does not hold it.

  5. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Claim released: group branch feature/burndown-3614 merged into develop as #3683 and is cleaned up. scripts/README.md passes to group #1642 (branch feature/burndown-1642).

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

    script

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions