synthesis

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBriefing

func BuildBriefing(date string, findings []Finding) string

BuildBriefing generates a markdown briefing from synthesis findings.

Types

type ClusterSynthesizer

type ClusterSynthesizer struct {
	// contains filtered or unexported fields
}

ClusterSynthesizer detects groups of semantically similar issues using embedding cosine distance and union-find clustering.

func NewClusterSynthesizer

func NewClusterSynthesizer(s *store.Store) *ClusterSynthesizer

NewClusterSynthesizer creates a ClusterSynthesizer with default thresholds.

func (*ClusterSynthesizer) Analyze

func (c *ClusterSynthesizer) Analyze(ctx context.Context, repo string, window time.Duration) ([]Finding, error)

func (*ClusterSynthesizer) Name

func (c *ClusterSynthesizer) Name() string

type DriftSynthesizer

type DriftSynthesizer struct {
	// contains filtered or unexported fields
}

DriftSynthesizer detects decision drift and roadmap staleness by correlating journal events with documentation in the vector store.

func NewDriftSynthesizer

func NewDriftSynthesizer(s *store.Store) *DriftSynthesizer

NewDriftSynthesizer creates a drift detection synthesizer.

func (*DriftSynthesizer) Analyze

func (d *DriftSynthesizer) Analyze(ctx context.Context, repo string, window time.Duration) ([]Finding, error)

Analyze runs both staleness and drift detection within the given time window.

func (*DriftSynthesizer) Name

func (d *DriftSynthesizer) Name() string

Name returns the synthesizer identifier.

type Finding

type Finding struct {
	Type       string // cluster, drift, upstream_signal, staleness
	Severity   string // info, warning, action_needed
	Title      string
	Evidence   []string
	Suggestion string
}

Finding represents a single insight produced by a synthesizer.

type IssueCreator

type IssueCreator interface {
	CreateIssue(ctx context.Context, installationID int64, repo, title, body string) (int, error)
}

IssueCreator abstracts GitHub issue creation for testability.

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner orchestrates synthesizers and posts briefings to a shadow repo.

func NewRunner

func NewRunner(github IssueCreator, s *store.Store, logger *slog.Logger, synthesizers ...Synthesizer) *Runner

NewRunner creates a runner with the given synthesizers.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, installationID int64, repo, shadowRepo string, window time.Duration) (int, error)

Run executes all synthesizers and posts a combined briefing as a shadow issue. Returns the number of findings and any error from posting.

type Synthesizer

type Synthesizer interface {
	Name() string
	Analyze(ctx context.Context, repo string, window time.Duration) ([]Finding, error)
}

Synthesizer is the interface that each analysis module implements.

type UpstreamSynthesizer

type UpstreamSynthesizer struct {
	// contains filtered or unexported fields
}

UpstreamSynthesizer detects upstream dependency changes that may impact project decisions (ADRs, roadmap items, research docs).

func NewUpstreamSynthesizer

func NewUpstreamSynthesizer(s *store.Store) *UpstreamSynthesizer

NewUpstreamSynthesizer creates a new UpstreamSynthesizer.

func (*UpstreamSynthesizer) Analyze

func (u *UpstreamSynthesizer) Analyze(ctx context.Context, repo string, window time.Duration) ([]Finding, error)

Analyze finds recently ingested upstream docs and checks whether they relate to any existing ADR/roadmap/research documents via vector similarity.

func (*UpstreamSynthesizer) Name

func (u *UpstreamSynthesizer) Name() string

Name returns the synthesizer identifier.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL