Skip to content

claude-memory: stateless scope-report over-counts filenames containing newlines #3444

Description

@kyle-sexton

Context

Found by the repo-wide /code-tidying:batch-simplify sweep (62 groups / 986 files, branch claude/repo-code-tidying-batch-twhddw). The sweep's doctrine files latent defects instead of fixing them mid-sweep, because the fix changes observable behavior; this issue is that filing.

plugins/claude-memory/skills/stateless/scripts/scope-report.sh:114find ... | wc -l over-counts a filename containing an embedded newline; the sibling count uses null-delimited form.

Proposed work

  • Use find -print0 | grep -zc . (or the sibling's null-delimited idiom).

Acceptance criteria

  • A fixture file with a newline in its name counts once.

References

  • plugins/claude-memory/skills/stateless/scripts/scope-report.sh:114

Filed by the /code-tidying:batch-simplify closeout (Phase 8).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions