generatedcheck

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package generatedcheck owns generated-output conformance policy.

Index

Constants

View Source
const PropertyReproducibility checkresult.Property = "reproducibility"

PropertyReproducibility is the protected property for generated-output findings.

Variables

This section is empty.

Functions

func Additional

func Additional(input AdditionalInput, plan outputplan.Plan) (checkresult.Result, error)

func GuideSizeAdvisory

func GuideSizeAdvisory(plan outputplan.Plan) (checkresult.Result, error)

GuideSizeAdvisory reports the fixed guide-size heuristic finding.

func Locked

func Locked(nested bool, lock *manifest.Lock, plan outputplan.Plan, read ReadFile, tracking checkresult.Result) (checkresult.Result, error)

Locked compares the prepared output plan with a lock and observed output bytes.

func Staged

func Staged(nested bool, lock *manifest.Lock, plan outputplan.Plan, read outputplan.TreeReader, indexed map[string]bool) (checkresult.Result, error)

Staged compares one Publisher plan entirely in its prepared index universe.

func Tracking

func Tracking(ctx context.Context, nested bool, paths IndexPaths, plan outputplan.Plan) (checkresult.Result, error)

Tracking checks index membership without retaining a repository object.

func ValidateFrontmatter

func ValidateFrontmatter(content []byte) error

ValidateFrontmatter validates generated skill and agent frontmatter.

Types

type AdditionalInput

type AdditionalInput struct {
	Vars         map[string]any
	Domains      []string
	Artifacts    []Artifact
	Singletons   []Artifact
	Sidecars     []SidecarData
	PitfallPaths []string
	Topics       []Topic
	Entries      []TreeEntry
	ResidentRoot bool
}

AdditionalInput supplies closed, immutable semantic projections prepared by Publisher.

type Artifact

type Artifact struct {
	Kind, Name string
	Sections   []string
}

Artifact identifies one configured artifact and its declared sections.

type IndexPaths

type IndexPaths func(context.Context) ([]string, error)

IndexPaths lists prepared Git-index paths without exposing a repository.

type ReadFile

type ReadFile func(string) ([]byte, error)

ReadFile reads one prepared working-universe output.

type SidecarData

type SidecarData struct {
	Kind, Name, Path string
	Data             map[string]any
}

SidecarData is the prepared data projection for one semantic artifact identity.

type Topic

type Topic struct{ Domain, Slug string }

Topic is the path identity needed to claim generated topic sources.

type TreeEntry

type TreeEntry struct {
	Path      string
	Directory bool
}

TreeEntry is one path in the selected operation tree.

Jump to

Keyboard shortcuts

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