A stage whose request carries a HarnessSpec runs the Kit's CLI as a subprocess in its own process group, with the mission and archie's rules as the prompt. After every invocation the runner compares HEAD, every ref and the git configuration, and the worktree against a pre-run baseline: any ref or config change, a protected-path edit, or a write in a read-only stage parks the step whatever the CLI claimed. The runner runs the gate itself and resumes the same session with the gate's output, up to the gate's failure cap. The wall clock and cancellation kill the whole process group, so the CLI's children cannot outlive the step.
10 lines
198 B
Go
10 lines
198 B
Go
//go:build !unix
|
|
|
|
package agentexec
|
|
|
|
import "os/exec"
|
|
|
|
// setProcessGroup falls back to killing the harness process alone where
|
|
// process groups are unavailable.
|
|
func setProcessGroup(*exec.Cmd) {}
|