Skip to content

Close Remaining Latent Edges Found Closing 4285 #4294

Closed

Description

@ptr727

Problem

Latent edges a local strict review raised while closing #4285, tagged edge because no current input reaches them.

  • RequiredTrackingCase.run_against inherits the caller's git location variables. It runs spec/validate.py against a scratch tree that is not a git repository. Under a set GIT_DIR, hub_tracked_paths would list the hub's index instead of returning None. Its assertions concern only the tracking message, so no outcome changes today. spec/git_env.without_git_location strips them, as the no-ledger fixture now does.
  • A retire row on a tree-source-only path is refused with a false reason, and lifting the refusal is worse. The audit's tree check reads only the target, so "a file the tree's check requires" is untrue for a path under the source. Dropping the clause lets a fleet-wide retire row through on a tracked source path (lib/sh/foo.sh for the shipped lib/sh to lib/fleet/sh tree). spec/audit.py then tells any repo holding that path to delete it as hub-hosted, without the matches_hub_history check. No shipped row or pin sits under lib/sh. A fix needs the refusal reworded rather than removed.

Done when

Each edge is fixed or declined with evidence.

🤖 Generated with Claude Code

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