Short answer: not really — we log the decision but not the reason.
Here's what exists today around session attachment in manual_commit_hooks.go:
Current logging (decision-only, not reason-tagged):
HandleCondense decision / HandleCondenseIfFilesTouched decision debug logs (lines 695, 723) record should_condense true/false plus phase/has_new/files_touched, but not which branch of shouldCondenseWithOverlapCheck produced that answer.
- One inline debug log on the read-only-ACTIVE skip path (line 774). The other 4+ branches return silently.
- A post-fact
session condensed info log (line 1398) only fires after success and says nothing about why it qualified.
The reasons that are actually scattered across shouldCondenseWithOverlapCheck (line 753):
no_new_content — early return on !hasNew
active_recent_interaction — attached because ACTIVE + within 24h
skipped_read_only_active — has the only inline log
skipped_stale_no_tracked_files — silent
skipped_no_committed_overlap — silent
attached_via_file_overlap — silent (returns whatever filesOverlapWithContent decides)
Plus the trigger path itself is information: HandleCondense (from EventGitCommit on ACTIVE/IDLE) vs HandleCondenseIfFilesTouched (ENDED phase) vs condenseAndUpdateState invoked elsewhere — when multiple sessions hit the same checkpoint, you currently can't tell at a glance which one came in via which door.
Suggestion: introduce a small AttachReason string constant set (the 6 above) and add it as a slog.String("attach_reason", ...) to one consistent log line — emitted once per session decision in shouldCondenseWithOverlapCheck and threaded into the final session condensed info log. That gives you one greppable field across decision + outcome. Want me to sketch the change?