evidence

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package evidence keeps secrets out of persisted and model-facing evidence. It is defense in depth, not a filesystem or network sandbox.

Index

Constants

View Source
const EnvironmentMarker = "GOLEM_ENVIRONMENT_FAILURE:"

EnvironmentMarker starts the first line of every environment failure, so a caller can stop automatic repair for a fault no code change can fix.

Variables

This section is empty.

Functions

func CheckCheckout

func CheckCheckout(root string) error

CheckCheckout refuses live secrets in a shared checkout before handing its ownership to an agent. It does not inspect secret values or traverse symlinks. Secrets outside this tree still require a deployment filesystem boundary.

func Clean

func Clean(text string) string

Clean redacts known process secrets, credential assignments and private keys, and omits entire sensitive-file diff sections before they reach another model.

func SensitivePath

func SensitivePath(path string) bool

SensitivePath excludes live configuration and key material, not templates.

Types

type Writer

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

Writer buffers lines so a credential split across writes is never emitted in pieces. An oversized line is discarded, not flushed unsanitized.

func NewWriter

func NewWriter(dst io.Writer) *Writer

func (*Writer) Flush

func (w *Writer) Flush() error

func (*Writer) Write

func (w *Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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