Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBriefing ¶
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) 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.
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.