gate

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gate is the diff gate (ADR-007): before ynf pushes anything, the changed paths must be inside the lane's allowed paths and outside every protected path. It catches what a runner's own tamper checks cannot: changes to the files that judge the change.

Index

Constants

This section is empty.

Variables

View Source
var Protected = []string{
	".github/workflows/**",
	".github/actions/**",
	"**/CODEOWNERS",
	".agents/**",
	".ynh/**",
	".ynm/**",
	".ynf/**",
}

Protected are refused in every lane: CI, ownership, and every folder that holds ynf, ynh or ynm configuration, including the lane policy itself.

Functions

func Check

func Check(changed, allowed, protected []string) error

Check returns an error naming every path the gate refuses. An empty allowed list allows all.

Types

This section is empty.

Jump to

Keyboard shortcuts

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