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
MEMORY_LOG_DATE is evaluated at source time, so a process alive across midnight writes into yesterday's log file #705
bugSomething isn't workinglane-diagnosticsdoctor and the test harness — doctor.sh, commands/doctor.md, conftest.py, run-tests.sh, report_*.pypriority:lowReal, but neither blocking nor compounding fast
Observed by @jqit-ricky while tracing #660, and filed here so it does not stay buried in that thread.
scripts/log.sh:855 sets MEMORY_LOG_DATE when the file is sourced, not when a line is written:
MEMORY_LOG_DATE=$(date +%Y-%m-%d)# evaluated once, at source time
A process that sources log.sh and then lives across midnight — a long-running session, a backgrounded save, a consolidation round that starts at 23:58 — keeps writing into yesterday'smemory-YYYY-MM-DD.log for the rest of its life. The entries are not lost, but they are filed under a date that is not theirs, which is exactly the shape that makes a log unreadable when someone is trying to reconstruct what happened at 00:10.
The same class of bug has already been fixed once in this repo on the staging side (the UTC-midnight race in the daily fold); this is the logging side of it, still open.
Acceptance
A write after midnight lands in the day it happened, from a process that was already running before midnight.
bugSomething isn't workinglane-diagnosticsdoctor and the test harness — doctor.sh, commands/doctor.md, conftest.py, run-tests.sh, report_*.pypriority:lowReal, but neither blocking nor compounding fast
Activity
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…