You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
scripts/doctor.sh:467-469 globs REMEMBER_DIR raw, misreporting SessionEnd as never-fired on msys/Git Bash #524
Found by the gate-3 release audit (v0.25.0..HEAD) ahead of the 0.26.0 release, priority:low.
_SESSION_END_LOG_DIR="$REMEMBER_DIR/logs/autonomous" is globbed at line 469 with no _remember_forward_slash normalisation, unlike the four other sites in this same file that #517 did normalize (lines 141, 329, 732, 850).
On Git Bash/MSYS2, REMEMBER_DIR carries backslashes (per resolve-paths.sh's _remember_normalize_win_path), and bash's glob only recognises / as a component separator. The glob at 469 therefore matches nothing, _SESSION_END_FIRED stays 0, and /remember:doctor falls through to its transcript heuristic and reports that SessionEnd may never have fired -- a false report of a hook-registration problem that does not exist.
This is the exact class of misreport session-end-hook.sh:277 was changed in this same delta (#503) to avoid producing.
Row: misreports (per the ranking table in skills/manager/SKILL.md).
The fact that would settle it: run bash scripts/doctor.sh on a Git Bash install with a real session-end-*.log present, and check whether line 515's OK SessionEnd has fired prints.
Fix: apply _remember_forward_slash to _SESSION_END_LOG_DIR (or the glob pattern) before the glob, the same way the other four sites in this file already do.
Cross-platform claim above is reasoned, not observed (mechanism demonstrated with a synthetic backslash-separated glob on a non-Windows host; not run on an actual Git Bash install).
The round-2 gate-3 audit for the same release (v0.25.0..HEAD) found this independently and confirms it, with one additional composing cause worth recording: eced1f3 (#487/#498/#502) added an age-keyed sweep over the same logs/autonomous/session-end-*.log glob at thresholds.autonomous_log_retention_days (default 7 days), replacing the previous emptiness-only sweep that could never reach these files (non-empty by construction since #483). A project idle longer than the retention window has its SessionEnd evidence reclaimed by that sweep, which reproduces the same misreport this issue already describes (doctor.sh:546 -> FAIL SessionEnd has never fired for this project) through a second, independent path. Neither commit's own diff contains the defect; only the pair does. Not a new issue -- recording it here since it is the same lines and the same misreport.
Activity
fdaviddpt commentedon Sep 4, 2026
The round-2 gate-3 audit for the same release (v0.25.0..HEAD) found this independently and confirms it, with one additional composing cause worth recording:
eced1f3(#487/#498/#502) added an age-keyed sweep over the samelogs/autonomous/session-end-*.logglob atthresholds.autonomous_log_retention_days(default 7 days), replacing the previous emptiness-only sweep that could never reach these files (non-empty by construction since #483). A project idle longer than the retention window has its SessionEnd evidence reclaimed by that sweep, which reproduces the same misreport this issue already describes (doctor.sh:546->FAIL SessionEnd has never fired for this project) through a second, independent path. Neither commit's own diff contains the defect; only the pair does. Not a new issue -- recording it here since it is the same lines and the same misreport.fix: 3 more Windows glob sites survive #517's sweep (#524, #525, #526) (
docs: drop the stale absolute call-site total from docs/windows.md (#587