Skip to content

Session Handoff [auto-2167]: Match a Wildcard Row in Copilot's File Table Against the Changed Files per #2167 #2213

Closed

Description

@ptr727

Next steps, in priority order

  1. Fix Match a Wildcard Row in Copilot's File Table Against the Changed Files #2167 in scripts/pr_review.py. The file-table match (file_table, table_against_diff, table_shortfall, table_covers) compares each table row to the changed paths literally, so a Copilot overview row that groups sibling files as one glob, such as .github/workflows/*.yml, reads as a path the diff does not carry and status reports coverage=unstated. Apply the issue's suggested fix: a row holding a glob character is a pattern matched against the changed paths with fnmatch semantics restricted to one path segment, the table stands in only where its literal rows plus its pattern rows cover exactly the changed set, and a pattern row matching no changed path stays a mismatch. Also cover the second shape the issue's comment records: strip U+200B from a row before matching, and read a ... gap as matching exactly one changed path with that prefix and suffix, failing where it matches none or more than one. Done looks like: the issue's constructed wildcard case and a constructed ellipsis case each report table coverage, a pattern or gap row matching nothing or (for a gap) more than one path still fails, a test pins each, and the existing literal-row behavior still passes.
  2. Drive the pull request into develop with Closes on promotion: #2167 in its body, scope develop.

External blockers

None known.

Internal dependencies

None. #2186 and #2187 also edit scripts/pr_review.py, in the overview-narrative masking rather than the file-table match, and are named in the default lane's next steps, so leave them alone and keep this fix to the table match.

State

No branch or worktree yet. Base the work on develop, per repo-worktree. Re-derive open pull requests touching scripts/pr_review.py before starting.

The parked decision queue

None for this lane.

What the last round did

Nothing yet. The unattended picker created this lane from the open backlog.

What not to repeat

Nothing recorded yet.

New learnings

None yet.

Activity

  1. added
    handoff
    on Oct 1, 2026
  2. ptr727 commented on Oct 1, 2026

    @ptr727
    OwnerAuthor

    Parked by the unattended worker. It now waits on decision #2214.

    Done. #2167 is fixed on branch feature/auto-2167, which has three commits on top of develop 658034f7 and head b6aea9d1, and the branch is pushed. scripts/pr_review.py now reads each file-table row in one of three ways:

    • A row the diff carries is literal.
    • Otherwise, a ... gap row names the one path that shares its prefix and suffix. It is matched in one linear pass, its other text is read literally, and a gap matching several paths is a mismatch.
    • Otherwise, a * or ? row matches one segment at a time with [ as a literal, and a wildcard segment holding no letter or digit names nothing.

    The table stands in only where every changed path is named and every row names at least one. Tests pin the issue's wildcard case and a shortened-path case, along with each failing shape. The full suite passes (1888 tests), and ruff, mypy, the prose gate and the eol gate are clean. Three local strict review passes are recorded, at the final digest too, so the pre-push gate is satisfied.

    No pull request is open yet. The worktree is left standing and clean, as ProjectTemplate-auto-2167 in the fleet worktree layout.

    Why it parked. local-strict-review allows two rounds of edits per push. The third pass still reports two introduced findings: no test exercises the [ escape in segment_fits, and the truncated-list arm of table_against_diff counts rows as files. Decision #2214 gives both in full along with the options.

    What remains. Act on #2214's answer:

    • Option 1: add the two one-line fixes, run one local pass, record it, push, then open the pull request into develop with Closes on promotion: #2167 and drive it.
    • Option 2: open the pull request as it stands and file the two findings as a follow-up issue.
    • Option 3: hand the branch to an attended session.

    Draft pull request title: Match Wildcard and Shortened Rows in Copilot's File Table.

  3. added
    blocked
    on Oct 1, 2026
  4. ptr727 commented on Oct 1, 2026

    @ptr727
    OwnerAuthor

    Handed back to the unattended loop by an attended session. Decision #2214 is answered: option 1, apply both fixes past the budget (a test row with a bracket and a wildcard in one segment, and "rows" rather than "files" in the truncated-list arm), then drive the pull request to develop. Follow the answer recorded on #2214.

  5. removed
    blocked
    on Oct 1, 2026
  6. ptr727 commented on Oct 4, 2026

    @ptr727
    OwnerAuthor

    Closed out by the unattended worker, scope develop. The lane is done.

    Merged. #2369 is squash-merged into develop as 93c67aa. It carries Closes on promotion: #2167, so #2167 stays open until develop is promoted to main.

    What landed.

    • Decision Apply Two Local-Review Findings Past the Edit Budget on the #2167 File-Table Fix #2214's answer, option 1. A test pins the bracket escape with a bracket and a wildcard in one segment, and the truncated-list arm counts rows rather than files.
    • A merge of current develop. The table_reading docstring conflict was resolved, and a test assertion on the removed table_covers was dropped.
    • Two rounds answering this push's local strict review. A gap row whose text outside its gaps holds no letter or digit now names nothing. scripts/README.md states the three row forms and the ambiguity condition.
    • Two findings were declined with reasons. Counting a repeated gap row twice, or excluding paths another row names literally, would fail open on a table that names one file twice and omits another. A null file node in changed_paths is pre-existing and ruled out by the schema's path: String!.

    Review. Copilot reviewed head 8f66221 with no findings and full file-table coverage, and checks were 12/12. Its overview headline about adjacent gap markers is answered on the pull request with a probe. CodeRabbit was rate-limited, and it is advisory.

    Filed along the way. Nothing. The worktree, the local branch, and the remote branch are removed.

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

    handoff

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions