observer

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 3 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 observer turns a raw sandbox run into []analyzer.Observation. With no in-container instrumentation, it relies on canaries, synthetic-network hits, captured output, and explicit fixture markers; findings claim only what those signals demonstrate.

Index

Constants

View Source
const MaxCapture = 8192

MaxCapture bounds how much of stdout/stderr is retained for evidence. Anything sandboxed output can be arbitrarily large or adversarial; nothing downstream should have to allocate proportionally to it.

Variables

This section is empty.

Functions

func Observe

func Observe(in Input) []analyzer.Observation

Observe builds the observation list for a completed (or aborted) run

func Sanitize

func Sanitize(s string, max int) string

Sanitize bounds s to max bytes and escapes control characters, so captured sandbox output is always safe to put in a report or a log line

Types

type Input

type Input struct {
	Started  bool
	ExitCode int
	TimedOut bool
	Reaped   bool
	Stdout   string
	Stderr   string
	Canaries []analyzer.Canary
}

Input is everything the observer needs to reconstruct what happened

Jump to

Keyboard shortcuts

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