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
Review findings from five reviewers (four specialized agents + Copilot/
Bugbot on the PR), converging on two must-fix items and a set of
observability and comment-accuracy fixes:
- CondenseAndMarkFullyCondensed now re-checks Phase == ENDED under the
state lock (flagged by three reviewers + Bugbot): the detached child
can lose a race with a same-ID resume, and condensing a revived
session would wipe its in-flight attribution and leave a sticky
FullyCondensed=true that makes PostCommit skip the session's next end.
- handleLifecycleSessionEnd runs teardown on context.WithoutCancel
(Copilot): the graceful half of hook cancellation is a SIGTERM, which
cancels the root context — the ENDED mark must survive it.
- entire-dev runs the cached binary without exec and falls back to the
PATH binary on launch failure (126/127): a concurrent rebuild rewrites
the output in place, and a failed exec previously aborted the shell
without reaching any fallback, breaking the never-block contract. Also:
per-cause fallback messages, build stderr captured to
.entire/tmp/entire-dev-build.log instead of discarded, and
go build -C so invocation from outside the repo resolves the right
module (latent pre-existing bug).
- SpawnDetached returns the start error and the SessionEnd hook logs the
handoff and any spawn failure: the parent is the last process with
working logging, and a silently failed spawn previously left zero
evidence that a condense was ever requested.
- Comment corrections: the exited-session sweep cannot retry an ENDED
session (it is ACTIVE-only — doctor is the real second retry surface);
endSessionNow's stale lockstep framing; the ~1.5s Claude Code budget
now stated once with provenance and referenced elsewhere; the spawn
seam's rationale; the cached-binary reuse claim corrected to what go
actually does (rewrites in place, skips only the relink).
- Tests: reactivated-session guard subtest (fails without the fix),
rootErr sync-fallback test, seam records the worktree root, launcher
launch-contract test (exit-status passthrough), __condense_session in
the policy-warning table test, nil-guard in the polling test's timeout
path.
- CLAUDE.md hidden-commands list updated.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Entire-Checkpoint: 01KY8GX54M99KSD53H232HEKB4
0 commit comments