I've now read all the diffs. Here are my findings:
Important
1. buildFinalizeCompactTranscript returns nil when external compactor succeeds but returns empty transcript
manual_commit_hooks.go:2864-2877
When AsTranscriptCompactor matches and startLine == 0, the code calls compactTranscriptForExternalAgent. If compaction succeeds but the transcript is empty (non-nil *CompactedTranscript with zero-length Transcript), the function returns the empty slice. However, if compactTranscriptForExternalAgent returns nil (error path), line 2877 return nil discards the checkpoint's compact transcript entirely — the caller gets nil and sets updateOpts.CompactTranscript = nil, which may overwrite a previously-stored compact transcript with nothing.
Compare with buildCompactTranscript in condensation (line 426-431): there, when compactTranscriptForExternalAgent returns nil, writeOpts.CompactTranscript is simply not set (left at zero value), and the function returns early. The condensation path doesn't overwrite existing data. But in the finalization path, UpdateCommitted receives CompactTranscript: nil explicitly, which could clear a previously-written compact transcript depending on how UpdateCommitted handles nil vs zero-length.
Why it matters: If the external compactor is temporarily broken at turn-end, finalization would silently clear the compact transcript that was successfully written at commit time.
Suggested fix: Check how UpdateCommitted handles nil CompactTranscript. If it overwrites, the finalization path should skip setting it (return the previously-stored value, or don't call update for that field). Otherwise, this is safe as-is.
2. compactTranscriptForExternalAgent doesn't validate the returned transcript is non-empty
manual_commit_condensation.go:465-475
After a successful CompactTranscript call, the function checks for assets but never validates len(compacted.Transcript) == 0. A well-behaved external agent shouldn't return success with empty bytes, but the protocol doesn't enforce it. The caller in buildCompactTranscript (line 427) does check for non-nil compacted, but if the agent returns &CompactedTranscript{Transcript: nil}, the code writes an empty to the checkpoint.