strategy, trailers, clusterdiscovery: delete dead code and its tests

Commit

Soph2mo ago

Everything here is unreachable from the CLI entry points (verified with x/tools deadcode + reference grep) and exercised only by tests dedicated to it:

  • strategy/common.go: the checkpoint-lite decode cluster (ReadCheckpointMetadata, ReadCheckpointMetadataFromSubtree, decodeCheckpointInfo, decodeSessionMetadataLite, decodeSummaryLiteFromTree, plus the private lite types) along with the bench file that was its only consumer; IsInsideWorktree and GetMainRepoRoot.
  • strategy: extractUserPrompts/extractUserPromptsFromLines (prod uses splitPromptContent/readPromptsFromFilesystem), subtractFiles.
  • trailers: ParseBaseCommit, ParseAllSessions, FormatTaskMetadata (prod uses FormatShadowTaskCommit) and the now-orphaned baseCommitTrailerRegex. FormatMetadata/FormatCheckpoint stay — live test infrastructure.
  • clusterdiscovery: exported RenderLoginHint wrapper (the private renderLoginHint stays, used by resolve.go); reword the auth/refresh.go comment that pointed at it.

Test helpers still exercising live code (hasCheckpointURL, IsAncestorOf, ManagedGitHookNames, sessionStateFile, tokenstore fault seams, OPF config seams, contexts.Save) are kept.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com Entire-Checkpoint: e64c28c66fb4

Checkpoints

/goal simplify this repo, make sure to de-slop it continue until you are happy, make sure to backfill tests and validate any significant change. The output of this should be a PR with green CI, review

Claude CodeFable 5
View session
Checkpoint 1