Skip to content

Drop the synthesis.Home wrapper - #37

Merged
calvintvu merged 1 commit into
mainfrom
drop-synthesis-home-wrapper
Aug 5, 2026
Merged

Drop the synthesis.Home wrapper#37
calvintvu merged 1 commit into
mainfrom
drop-synthesis-home-wrapper

Conversation

@calvintvu

@calvintvu calvintvu commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Context

synthesis.Home only returned settings.Home. Nothing outside the package called it, and inside the package it had three callers, so it added an exported name and one more hop without adding behavior.

Changes

  • Delete synthesis.Home; call settings.Home directly in SummariesDir,
    SynthesisCwd, and EnsureDirs.

SummariesDir and SynthesisCwd stay. Unlike Home they add a path segment,
and they have callers in cache.go, runner.go, and collector.go.

Test

  • make -C collector check — passed

  • make -C collector test — passed

  • make -C collector release && make smoke — passed

  • Booted the binary under an empty HOME and confirmed the directory layout is
    unchanged:

    ~/.coslash
    ~/.coslash/summaries
    ~/.coslash/synthesis
    

    This is the behavior that would break if the wrapper had been resolving to a
    different root than settings.Home.

synthesis.Home only returned settings.Home. Nothing outside the package
called it, and inside the package it had three callers, so it added an
exported name and one more place to look without adding behavior.

Call settings.Home directly at those three sites.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@calvintvu
calvintvu merged commit 13f550d into main Aug 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants