Help us shape the future of Go! Take the 2026 Go Developer Survey

resolver

package
v2.219.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutcomeSelected  = "selected"
	OutcomeExcluded  = "excluded"
	OutcomeShadowed  = "shadowed"
	OutcomeDelivered = "delivered"

	ProviderCategoryPerson    = "person-package"
	ProviderCategoryCatalogue = "catalogue"
	ProviderCategoryRole      = "role-provider"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision struct {
	Subject string `json:"subject"`
	Kind    string `json:"kind"`
	Source  string `json:"source,omitempty"`
	Outcome string `json:"outcome"`
	Reason  string `json:"reason"`
}

type ProviderReport

type ProviderReport struct {
	Source            string `json:"source"`
	Category          string `json:"category"`
	Scope             string `json:"scope"`
	Outcome           string `json:"outcome"`
	Reason            string `json:"reason"`
	Warning           bool   `json:"warning,omitempty"`
	Skills            int    `json:"skills"`
	ContextBytes      int64  `json:"context_bytes"`
	ApproximateTokens int64  `json:"approximate_tokens"`
	SelectorReason    string `json:"selector_reason,omitempty"`
}

ProviderReport retains one provider outcome and its canonical selected-skill byte budget, which stays deterministic across native and staged projection.

type Resolution

type Resolution struct {
	Request           *schema.Request
	Person            *person.Person
	Personalities     []string
	Boundaries        []string
	RolePurpose       string
	RoleBriefing      string
	OperatingBase     string
	OperatingAppendix string
	Instructions      []Selected
	Skills            []Selected
	CompiledBodies    []Selected
	FavoriteColor     string
	Warnings          []string
	Decisions         []Decision
	Providers         []ProviderReport
	SourceIDs         []string
	Repositories      []schema.RepositorySelection
}

Resolution is the full composition plan: what was selected, how it is delivered, and the trace built while those choices were made.

func Resolve

func Resolve(req *schema.Request, p *person.Person, sources []*schema.Source, missing []schema.MissingSource) (*Resolution, error)

type Selected

type Selected struct {
	ID         string
	Source     string
	Files      fs.FS
	Path       string
	EntryPoint string
}

Jump to

Keyboard shortcuts

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