Skip to content

Report an Unreadable Retired Copy as Unread, and Share One History-Match Helper #4254

Closed

Description

@ptr727

Problem

Two small defects in the retired-path match check that the CLAUDE.md pointer-file retirement added to spec/audit.py, left as is by the maintainer's decision when that pull request merged:

  • An unreadable copy reads as a changed one. check_hubonly_carried passes run.read_text(path) to matches_hub_history. That returns None where the contents API gives no inline content, such as a symlink to a non-file or a blob too large to inline. The finding then says the copy "matches no past hub version", and RESYNC.md section 3 step 2 says such a copy holds something the repository added. Neither is known, since the copy was never read. It goes to the maintainer, so nothing is deleted wrongly. Other content checks, such as check_verbatim_file, report run.unread(...) instead.
  • One comparison lives in three places. matches_hub_history asks whether a text's content_hash equals any past revision's. classify_verbatim's past-revision loop asks the same, and so does the history hash set in spec/fidelity_honesty.py fidelity_pass. A later change to the comparison has to be made three times.

Done when

An unreadable retired copy is reported as unread, with a test. One helper serves all three sites.

Found by a local strict review pass on the retirement, part of #4074.

Activity

  1. added
    pre-existing
    and removed
    pre-existing
    on Nov 17, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions