retro

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventError            = "error"
	EventTestFailure      = "test_failure"
	EventPermissionDenied = "permission_denied"
	EventCommandOutcome   = "command_outcome"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

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

func NewAnalyzer

func NewAnalyzer(redactor *secrets.Redactor) *Analyzer

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(_ context.Context, input Input) Report

type Event

type Event struct {
	Kind    string
	Message string
	Command string
	Outcome string
}

Event is one piece of session evidence available to the retro analyzer.

type Finding

type Finding struct {
	Pattern        string
	Evidence       string
	LocalAction    string
	UpstreamAction string
}

Finding is a compact improvement observation.

type Input

type Input struct {
	SessionID  string
	WorkingDir string
	Events     []Event
}

Input is the bounded session context analyzed by the optional retro loop.

type Report

type Report struct {
	SessionID string
	Findings  []Finding
}

Report is the analyzer output.

type RoutedActions

type RoutedActions struct {
	LocalActions         []string
	UpstreamInstructions []string
}

RoutedActions separates locally actionable items from upstream PR instructions.

func RouteFindings

func RouteFindings(cfg config.RetroConfig, report Report) RoutedActions

Jump to

Keyboard shortcuts

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