insight

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package insight produces the proactive "what's broken / what to look at" digest — the verdict founders actually want instead of a dashboard. Every finding is computed exactly from the deterministic engine, so it can't be hallucinated. Shared by the dashboard, the /v1/notable API, the MCP tool, and the daily brief.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Text

func Text(findings []Finding) string

Text renders the digest as a plain-text brief (for the daily webhook/email).

Types

type Finding

type Finding struct {
	Severity string `json:"severity"` // warn | info
	Title    string `json:"title"`
	Detail   string `json:"detail"`
}

Finding is one notable thing, ranked by severity ("warn" before "info").

func Generate

func Generate(evs []event.Event) []Finding

Generate returns the digest: the biggest funnel leak, the headline event's week-over-week change, and the retention read — computed exactly.

Jump to

Keyboard shortcuts

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