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
_REMEMBER_PHASE is write-only: nothing reads it, and it is not exported #700
cohort-12Open at the v0.33.0 tag, 2026-09-15 (6 issues). Frozen: nothing joins a cohort.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/
Found by the release audit for v0.33.0 (round 1, dispatch token rel-0330-429b3dd1),
ranked here as non-blocking: it sits in no row of the ranking table, and nothing is
misreported because nothing is emitted at all.
scripts/session-start-hook.sh assigns _REMEMBER_PHASE at three places -- :382, :868 and :1882. A repo-wide sweep finds no reader:
grep -rn "_REMEMBER_PHASE". --exclude-dir=.git
returns exactly those three assignments. None is exported, so no child process, no log
line and no external profiler can observe it either.
The comment at :862-867 justifies it as making "how much is still synchronous"
answerable -- "a trace cannot tell a deferred child from a command substitution by pid
alone". That is a real problem and this variable does not currently solve it: the value
never leaves the shell that sets it.
Three honest fixes, in increasing order of usefulness:
delete it, and the comment with it;
export it, so a traced child carries the phase it was spawned in -- which is what the
comment describes wanting;
log it at the phase transitions, so the answer survives into hook-errors.log without
a tracer attached.
Lowest-consequence finding of that audit round. Filed rather than fixed in the release
branch because it changes no behaviour either way, and picking between the three above is
a design call rather than a repair.
cohort-12Open at the v0.33.0 tag, 2026-09-15 (6 issues). Frozen: nothing joins a cohort.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/
Activity
fix(#695): the five round-1 release-audit findings worth fixing befor…
fix(#700): export _REMEMBER_PHASE so a deferred child can see it (#718)
test(#898): give fake plugin roots the install manifest resolve-paths…
fix(#898): release tree scrub + 5 new guards (typed-heredoc shipped a…
fix(#900): compile hooks.json-registered hooks self-contained at buil…