Documentation
¶
Overview ¶
Package executor applies a complete verified series to a private prepared workspace using real GNU patch on Linux. It never opens original inputs or publishes output. The caller owns the surrounding staging/run directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateTool ¶
ValidateTool resolves a local executable and checks its GNU patch version identity without changing a workspace. A normal audit needs real GNU patch; diagnostics for GNU patch 2.7.6 are independently tested. Other GNU versions must still produce the same conservative clean-application diagnostic grammar. No caller environment variables affecting patch behavior are inherited.
Types ¶
type Executor ¶
type Executor struct{}
Executor implements the fixed v1 timeout and combined diagnostic byte limit. Successful results include the digest and restored final modes. If execution begins and fails, workspace contents are removed; preflight failures leave the prepared workspace untouched. The caller removes the workspace root/staging.
func (Executor) Execute ¶
func (Executor) Execute(ctx context.Context, req contracts.ExecuteRequest) (contracts.ExecutionResult, error)
Execute consumes only prepared source and verified staged patches. All stage descriptors are opened, rehashed and retained before any application process. Patches preserve declaration order. Operational diagnostics are bounded and separate from portable evidence; success contains no raw diagnostic logs.