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
$_END_LOG is named at second granularity with no PID or session id, so two SessionEnd hooks in the same second share one log file #488
Found by the spawned reviewer during lane #483 and recommended for filing in PR #486's body; filed here by the maintainer. Pre-existing, not introduced by that diff.
Second granularity, no PID, no session id. Two SessionEnd hooks for the same project ending in the same wall-clock second resolve to the same path. scripts/doctor.sh's own SessionEnd-liveness comments (#370) treat concurrently open windows as an ordinary case, so this is not a contrived race.
PR #486 hardened the immediate consequence -- its header write and the subshell redirect both append rather than truncate, so one hook can no longer clobber a sibling's already-written output -- but that makes the collision harmless, not absent. Two flushes still interleave into one file, and a reader cannot tell whose lines are whose.
Why it was not fixed there
Uniquifying the filename (a PID or session-id suffix) requires updating scripts/doctor.sh's session-end-*.log glob in its SessionEnd-liveness check, and scripts/doctor.sh was outside that lane's two files. Splitting it out was the right call.
whatever test stubs that marker (tests/test_doctor_session_end_370.py stubs it rather than exercising the real hook, so it will stay green either way -- which is itself worth a look while in there)
Interleaving is the visible symptom; the derivation #370 makes off that filename is the part that has to keep working.
Ranked
misreports. Nothing is destroyed and nothing leaks -- two runs' narratives arrive as one, and the operator reading it has no way to know.
Platform
Reasoned, not observed: the collision window is one second of wall clock on any platform, and nothing in the naming is platform-specific.
Activity
fix: converted #487/#488 tests invoked bash with a backslash path, so…
test: #488 date PATH shim did not intercept _remember_date on windows…
fix: PR #499 Windows CI red -- portable retention sweep, unchecked wr…
fix: normalize backslash-separated REMEMBER_DIR before the retention …
fix: Windows CI red on PR #499 -- portable retention sweep, NDC/reten…
fix(#705,#706): stop CI red on PR #711 -- allowlist drift and a Windo…
fix(#705,#706): scope the date-shim skip to Windows only
fix(#705,#706): revisit MEMORY_LOG_DATE across midnight, report Sessi…