Versions in this module Expand all Collapse all v0 v0.57.0 Nov 6, 2026 v0.56.0 Nov 6, 2026 v0.55.0 Nov 5, 2026 v0.54.0 Nov 3, 2026 v0.53.0 Nov 3, 2026 v0.52.0 Oct 30, 2026 v0.51.0 Oct 30, 2026 v0.50.0 Oct 30, 2026 v0.49.0 Oct 29, 2026 v0.48.0 Oct 29, 2026 v0.47.0 Oct 28, 2026 Changes in this version type WhyResult + Rev string v0.46.0 Oct 28, 2026 v0.45.0 Oct 28, 2026 v0.44.0 Oct 27, 2026 v0.43.0 Oct 27, 2026 v0.42.0 Oct 27, 2026 Changes in this version + var Judged = []string + var Sources = []string type Entry + Judged string + Source string v0.41.0 Oct 27, 2026 v0.40.0 Oct 26, 2026 Changes in this version + const TrailerChange + const TrailerTask + const ViaAnchor + const ViaTrailer + var ErrBadFileName = errors.New("lore: not an entry file name") + var ErrNoRecord = errors.New("lore: no record") + var Gates = []string + var Kinds = []Kind + var Outcomes = []string + var Severities = []string + var Statuses = []string + func Marshal(e Entry) ([]byte, error) + func RenderLessons(w io.Writer, path string, lessons []Entry) error + func RenderShow(w io.Writer, change string, entries []Entry) error + func RenderWhy(w io.Writer, r *WhyResult) error + func Validate(e Entry) error + type Agent struct + Model string + Session string + Via string + type Anchor struct + Commit string + EndLine int + Line int + Path string + Symbol string + func ParseAnchor(s string) (Anchor, error) + func (a Anchor) Covers(file string, line int) bool + func (a Anchor) String() string + type CLIGit struct + Dir string + func (g CLIGit) BlameLine(ctx context.Context, path string, line int) (string, error) + func (g CLIGit) Head(ctx context.Context) (string, error) + func (g CLIGit) IsAncestor(ctx context.Context, ancestor, commit string) (bool, error) + func (g CLIGit) Trailers(ctx context.Context, commit string) (map[string][]string, error) + func (g CLIGit) UserEmail(ctx context.Context) (string, error) + type CheckResult struct + Change string + Reasons []string + func (c *CheckResult) Pass() bool + type Entry struct + Agent *Agent + Anchors []Anchor + At time.Time + Body string + Change string + Chosen string + Commit string + Gate string + Human string + ID string + Kind Kind + Outcome string + Rejected []Rejected + Resolution string + Retired bool + Severity string + Status string + Supersedes string + func Parse(name string, data []byte) (Entry, error) + func (e *Entry) FileName() string + type Git interface + BlameLine func(ctx context.Context, path string, line int) (string, error) + Head func(ctx context.Context) (string, error) + IsAncestor func(ctx context.Context, ancestor, commit string) (bool, error) + Trailers func(ctx context.Context, commit string) (map[string][]string, error) + UserEmail func(ctx context.Context) (string, error) + type Kind string + const KindDecision + const KindFinding + const KindIntent + const KindLesson + const KindVerdict + type Problem struct + File string + Message string + func (p Problem) String() string + type Record struct + Change string + Entries []Entry + Intent *Entry + Verdict *Entry + type Rejected struct + Option string + Reason string + type Store struct + Entropy io.Reader + Git Git + Now func() time.Time + Root string + func (s *Store) Add(ctx context.Context, e Entry) (string, error) + func (s *Store) Changes() ([]string, error) + func (s *Store) Check(change string) (*CheckResult, error) + func (s *Store) Effective(change string) ([]Entry, error) + func (s *Store) Lessons(path string) ([]Entry, error) + func (s *Store) Load(change string) ([]Entry, error) + func (s *Store) Validate(change string) ([]Problem, error) + func (s *Store) Why(ctx context.Context, path string, line int) (*WhyResult, error) + type ValidationError struct + Problems []string + func (v *ValidationError) Error() string + type WhyResult struct + Commit string + Line int + Path string + Records []Record + Via string