internal/core/reviewscope
import "github.com/nilstate/scafld/v2/internal/core/reviewscope"
Package reviewscope derives the task-owned workspace surface used by review, status, handoff, and completion freshness checks.
Functions
func Derive(model spec.Model, explicit []string, snapshot []string) []string
Source: internal/core/reviewscope/scope.go:42
Derive returns the path scope implied by a task contract. Explicit scope wins.
func FilterAllowed(scope []string) []string
Source: internal/core/reviewscope/scope.go:71
FilterAllowed removes private/local paths from a review scope.
func MaterialScope(scope []string, reviewedSnapshot []string) []string
Source: internal/core/reviewscope/scope.go:63
MaterialScope returns the content scope that should be sealed for a review.
func PathAllowed(path string) bool
Source: internal/core/reviewscope/scope.go:82
PathAllowed reports whether a path is safe to include in review scope.
func Project(model spec.Model, explicit []string, baselineSnapshot []string, currentSnapshot []string) Projection
Source: internal/core/reviewscope/scope.go:26
Project classifies current workspace changes against the task contract and captured baseline.
Types
type Projection
Source: internal/core/reviewscope/scope.go:16
Projection is the task-owned workspace surface relative to the captured baseline. Baseline and current snapshots are already filtered to the review comparison surface, excluding scafld runtime state.
type Projection struct {
Scope []string
Baseline []string
Current []string
TaskChanges []coreworkspace.Mutation
AmbientDrift []coreworkspace.Mutation
}Fields
Scope []stringBaseline []stringCurrent []stringTaskChanges []coreworkspace.MutationAmbientDrift []coreworkspace.Mutation
