Skip to content

scripts/doctor.sh:617 globs REMEMBER_DIR raw, undercounting the memory-file total on msys/Git Bash #525

Closed

Description

@fdaviddpt

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

for _mf in "$REMEMBER_DIR"/$_pattern at line 617 is the third operator-facing counter in this file with the same defect: no _remember_forward_slash normalisation before the glob. #517's own fragment names the other two counters explicitly ("both printed directly to the operator, silently undercounted to 0") but this third one is left unfixed.

On Git Bash/MSYS2, REMEMBER_DIR carries backslashes and the glob matches nothing, so the operator reads OK Memory files: 0 file(s), 0 bytes total at line 626 for a store that is actually full.

Row: misreports (per the ranking table in skills/manager/SKILL.md).

The fact that would settle it: the same Git Bash run, comparing doctor's reported count against ls of the store.

Fix: apply _remember_forward_slash before the glob, the same as the sites #517 already fixed.

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