Skip to content

Name Every Symlink the Media Normalizer Skips, as the Gate Does #440

Closed as not planned

Description

@ptr727

scripts/normalize-media.py says nothing about a symlink it meets inside a tree, while the gate fails on one and its advice sends the user to the normalizer.

A constructed case: under static/media, a file a.png that is a symlink to a PNG outside the tree, a dangling symlink dangling.png, and a symlinked directory sub.

  • The gate exits 1 with a symlink, not read line for each of the three and advises running the normalizer on each.
  • The normalizer, in report mode and with --apply, prints 0 file(s) to normalize, exits 0, and names none of them.

The normalizer does name a symlinked root, as symlink, not followed, but returns 0 where the gate fails, and gives an absolute path where the gate gives a repository-relative one. Neither tool can clear a symlink finding, so the gate's advice points at a tool that cannot help.

Candidate fix: have the normalizer name every symlink its walk skips, with the gate's repository-relative form and a non-zero exit, and have the gate's advice for a symlink finding say to replace the link with a regular file rather than run the normalizer.

Pre-existing. Found by a read-only review of the promotion #437, prompted by Copilot's overview naming unresolved issues in symlink reporting without opening a thread.

Activity

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

    @ptr727
    OwnerAuthor

    Closed as not planned by the maintainer. The media tooling reads only images the maintainer commits, so no realistic input reaches this, and hardening without a threat vector is not worth the review rounds it costs.

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-existingscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions