05ae530442
Install current verified harness releases inside Docker, preserve persistent accounts and settings, and provide separate interactive and pipeline model defaults with terminal onboarding and fuzzy pickers. Add Docker-aware authoring transport, Pi stage execution, bounded workflow controls, reliable final-result readback and usage settlement, and finite short-lived CLI pipe draining. Keep dated installation evidence and packaged authoring guidance consistent. Verified with a real Docker installation, both harness stages and interactive authors, the built-in plan/implement/review starter, independent host race/vet checks, installer tests, and packaged skill tests. Generated release receipts stay ignored in clean checkouts.
22 lines
461 B
Go
22 lines
461 B
Go
package pipeline
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestStarterHarnessDefaults(t *testing.T) {
|
|
source := Template([]string{"worker"}, true)
|
|
updated := WithDefaults(source, "fixture/model", "pi")
|
|
graph, err := Parse(updated)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if graph.Stages[0].Configs["harness"] != "pi" || graph.Stages[0].Configs["model"] != "model" {
|
|
t.Fatal(graph)
|
|
}
|
|
if strings.Contains(source, "harness=pi") {
|
|
t.Fatal("source mutated")
|
|
}
|
|
}
|