Skip to content

scripts/run-consolidation.sh:242 leaks .tail-*/.prefix-* staging temp files on msys/Git Bash #526

Closed

Description

@fdaviddpt

Found by the gate-3 release audit (v0.25.0..HEAD) ahead of the 0.26.0 release, priority:low.

rm -f "${staging_path}".tail-* "${staging_path}".prefix-* (line 242, .prefix-* added in this same delta by #509) globs a staging_path that inherits REMEMBER_DIR's backslashes on msys/Git Bash, in the same file whose snapshot sweep 134 lines above was already normalized into _remember_consolidate_glob_dir by #517.

On msys the cleanup glob never matches, so one stray .tail-XXXXXX/.prefix-XXXXXX file accumulates per failed consolidation split, indefinitely.

This is not covered by any row in the ranking table (skills/manager/SKILL.md): nothing is destroyed (the defect is that a cleanup silently never fires), nothing is lost that must be preserved (the audit that found this confirmed these temps are inert -- the filename does not end in .md and nothing else globs them), and nothing is reported wrongly (no receipt mentions them at all). Reported unranked rather than forced into the nearest row.

Consequence, stated plainly since no row weighs it for the release gate: bounded and non-destructive -- one small stray file accumulates per failed split, on one platform.

The fact that would settle it: count today-*.md.tail-*/.prefix-* files in a Git Bash store after a forced split failure.

Fix: normalise staging_path (or the glob pattern) through the same helper the snapshot sweep above already uses.

Cross-platform claim above is reasoned, not observed.

Activity

  1. added
    priority:low
    on Sep 4, 2026
  2. self-assigned this
    on Sep 4, 2026
  3. added a commit that references this issue on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority:low

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions