Skip to content

[FEAT-LOOP-2026-0251 follow-up] T03#1 — the retry note's path list still misses renames, non-ASCII names and mode changes #3614

Backlog

Description

@clabonte

T03#1 — the retry note's path list still misses renames, non-ASCII names and mode changes

Criterion (GATE-01.md, clause 4): "Tree and note. An early refusal keeps or resets
the tree per defaults.retain_on_guard_refusal, as the late refusal does; its retry note
states that verification did not run and lists the paths this attempt changed (or says it
changed none)."

In plain words. After a refused attempt, the next session is told which files the last
one changed. For some kinds of change that list is incomplete, and sometimes it says
nothing changed when something did. Which attempts are refused is not affected.

Evidence. A probe drove loop.run() through the oracle's _second_attempt_note helper
(kept tree, stubbed dispatch and verify), with fail-fast on and off (same results), and
read the path list in the note for attempt 2:

  • R9: attempt 2 renames a tracked file: only the new name is listed. A first attempt with a
    reset tree does the same.
  • R10: attempt 1 renames a tracked file, attempt 2 writes the old name back: "(none — this
    attempt changed no files)".
  • R11: attempt 2 only makes a kept new file executable: the same "(none)" line.
  • R13: attempts 1 and 2 both edit tracked docs/café.md: "(none)".
  • R15: attempt 2 restores that file: "(none)".

python3 -m unittest tests.test_fail_fast_deliverables -b exits 0 (36 tests); no test
covers these cases. With attempt_own_paths returning its input unchanged, R10, R11 and
R13 list a path, so the filter added for #3612 drops them. Causes: git's rename detection
reports only the new name; git returns non-ASCII names quoted, so _path_digest returns
None both times; the digest covers content only. The same quoted names make
git add -N crash the driver on a new non-ASCII file in a kept tree (probe R4; the fourth
close saw the pre-feature driver do the same).

Why the loop did not fix it. This close may not edit source files.

Options.

  1. Fix the way the list is built. Record each path's state (content and mode) at the start
    and end of the attempt, with names read by git diff --no-renames --name-only -z and
    git ls-files -z, and list every path in either set whose state differs.
    For: covers all five cases at once, and the same -z reading can fix the crash.
    Against: more code on a judge surface, and another re-close (the four recorded closes
    cost 6.35 USD).
  2. Amend clause 4 to say the list is best-effort and name these limits, and change the
    "this attempt changed no files" line so that it does not claim certainty.
    For: small; the list only informs the next session. Against: the definition of done is
    narrowed a third time on this gate, the wording change is still a source edit, and the
    crash stays.

Recommendation: option 1. The last two fixes each covered only the cases named so far;
comparing start and end states removes the dependence on the filtered diff.

Re-run condition. Either of these:

  • the note lists the right paths in R9 (both names), R10, R11, R13 and R15, each shown by a
    test with fail-fast on and off, and R7 and R14 still say nothing changed;
  • or the operator amends clause 4 as in option 2 and the "changed no files" wording is
    changed to match.

Activity

  1. added
    specfuse:follow-up
    on Nov 26, 2026
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

    specfuse:follow-up

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions