Skip to content

The sweep's backlog order does not reach a unit newly carried by widening the manifest #1651

Closed

Description

@ptr727

The canonical review sweep asks for every stale unit plus a bounded slice of the never-read backlog, ordered by how recently the file each unit sits in was last committed. That ordering reaches a unit this repository has just authored, since authoring it commits the file it lives in. It does not reach a unit newly put under a carrier by widening the manifest.

Why

Declaring an existing file in spec/files.json, or adding a section name to an existing entry's sections list, commits spec/files.json. It commits nothing in the file whose units just became carried. backlog_slice reads the unit's own file:

times = newest_commit_times(root, sorted({unit.split(SECTION_DELIM, 1)[0] for unit in never}))
ordered = sorted(never, key=lambda unit: (-times[unit.split(SECTION_DELIM, 1)[0]], unit))

So the new units sort at their file's age. For a file last touched a year ago they sort among the oldest of the backlog and wait behind every file committed since.

Why it matters

Newly carrying a file is one of the two shapes the carried-content rule is written about. A repository receives that content for the first time, whole, exactly as it receives newly authored content, and the read is owed for the same reason. The retired check subcommand refused both shapes, and its test for this one was named test_newly_carrying_an_existing_file_is_a_changed_unit.

The prose now states the limitation rather than implying otherwise, in GOVERNANCE.md "Verification Discipline", scripts/canonical_review.py, and the local-strict-review Skill, so nothing claims a guarantee the order does not make. This issue is the gap itself.

Shapes that would close it, none of them decided

  • Order a never-read unit by the newer of its own file's last commit and the last commit that changed the manifest entry carrying it. That reaches the case exactly, and needs a way to date a manifest entry rather than the whole file, since dating the whole manifest would re-float every never-read unit in the tree on any manifest edit.
  • Record in the ledger when a unit first appeared, which makes "newly carried" a fact the engine holds rather than one it infers from git.
  • Accept it, and rely on the bounded slice reaching every unit eventually.

Scope

The sweep is correct as it stands and this is a priority gap rather than a coverage one: a newly carried unit does reach the slice, it waits its turn in the backlog. Filed from the review of #1649, which is the pull request that introduces the sweep.

Activity

  1. added
    gate
    on Sep 16, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

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

    gate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions