Skip to content

Read a File Moved Out of a home_path_exempt Path or a Narrowed Scope in Full in the Prose Gate #3684

Closed

Description

@ptr727

Problem

In diff mode, changed_lines in .github/actions/prose-gate/prose_lint.py puts a renamed file's destination fully in scope only when the source sat under a generated tree or matched an --exclude, since no run read the file there. Two other sources also went unread, and a move out of either still adds only the moved file's hunks:

  • A home_path_exempt file. home-path never reads a file listed there, for example the repository-root OPERATIONS.md. Moving it to docs/ops.md unchanged puts no line in scope, so a literal operator path the runbook was allowed to hold reaches a non-exempt path without a finding.
  • A source outside a narrowed paths input. When a caller narrows the composite action's paths (the default is .), a file moved from outside those paths to inside them was never read either.

Evidence

Constructed: a repository whose root OPERATIONS.md holds Deploy into /home/<constructed-account>/stack. (with a constructed account name filled in), committed, then git mv OPERATIONS.md docs/ops.md and nothing else. --check home-path --diff HEAD reports no line in scope and exits 0. A whole-tree run reports docs/ops.md:1: home-path.

Reach

This is not a regression. On develop before the #1586 fix, every pure rename added nothing to scope. The #1586 fix (branch feature/burndown-3220-1586) narrowed whole-file credit to generated trees and excluded paths. That is the issue's named case, and it leaves these two sources out.

Suggested direction

Credit the destination in full for each rule that did not read the source. For home_path_exempt, that is a per-rule scope rather than a per-file one, so it needs a decision on whether diff scope should be keyed by rule.

Activity

  1. added
    pre-existing
    on Oct 31, 2026
  2. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown round 3 claim. Branch: feature/burndown-3684-3694. Group: #3684, #3694.

    Predicted file set:

    • .github/actions/prose-gate/prose_lint.py
    • .github/actions/prose-gate/prose-gate.json
    • tests/test_prose_lint.py

    No other live group may edit these files until this branch merges or the claim is released here.

  3. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Claim released: feature/burndown-3684-3694 merged to develop as #3712 and its branch and worktree are cleaned up. Follow-ups: #3711, #3714. This issue closes when the next develop -> main promotion merges.

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

    pre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions