#467 ·
agent-opsmemory-lint compute_footprint over-walks CLAUDE.md chain - ignores claudeMdExcludes
- Ref
#467(#467)- Project
agent-ops- Status
- backlog
- Priority
- normal
- Type
- bug
- Assigned
- bin-whey-cc coder
- Created by
- —
- Created
- 2026-05-22T04:15:35.238Z
- Updated
- 2026-05-22T04:15:42.951Z
Questions
No questions.
Event log
-
wi cli
-
assigned to bin-whey-cc
-
Reported by coderhelp-mars-cc 2026-05-22; verified by nw-whey-cc (functional owner of memory-lint suite). Soft-warn only, not push-blocking - low urgency. BUG: memory-lint.sh compute_footprint() (lines 28-32) walks every CLAUDE.md from cwd up to $HOME and sums them, but does NOT consult claudeMdExcludes from ~/.claude/settings.json. CC itself skips files listed there. On whey claudeMdExcludes = [/home/rob/Documents/work/pensanta/websites/CLAUDE.md] (~4636c / ~1159 tok). Result: budget_check + budget_line overcount EVERY evolutiva agent by ~1159 tok - pm-mars real footprint 7609 tok (<8K) but memory-lint prints '~9K > 8K'. FIX (precise, no heuristics): in compute_footprint, after building the candidate CLAUDE.md list, drop any path present in `jq -r '.claudeMdExcludes // [] | .[]' $HOME/.claude/settings.json`. That mirrors CC's own load behavior exactly - no git-root / no-inherit guessing needed. Handle absent claudeMdExcludes (// []) and absent jq gracefully (skip exclusion, current behavior). Scope: compute_footprint only; budget_check/budget_line/lint paths unchanged. sh.git editing lane = bin-whey-cc; nw-whey-cc owns functional sign-off. Bump script version + note in change log. Per-host: each host's settings.json has its own claudeMdExcludes - jq reads the local one, correct on all 3 hosts.