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.
20 lines
709 B
Go
20 lines
709 B
Go
package pipeline
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestControlValidation(t *testing.T) {
|
|
for _, block := range []string{
|
|
"limits\n{\"max_visits\":0}", "limits\n{\"max_visits\":6}", "limits\n{\"max_visits\":3,\"max_visits\":2}",
|
|
"limits\n{\"max_visits\":3,\"on\":[\"missing\"]}", "limits\n{\"max_visits\":3,\"on\":[\"success\"]}",
|
|
"memory\n{\"task\":\"unknown.task\"}", "memory\n{\"task\":\"worker.task\"}", "memory\n{\"task\":\"input.prompt\",\"task\":\"input.pwd\"}",
|
|
} {
|
|
source := strings.Replace(Template([]string{"worker"}, true), "# stage worker", "# stage worker\n\n```"+block+"\n```", 1)
|
|
if _, err := Parse(source); err == nil {
|
|
t.Fatal("invalid control accepted", block)
|
|
}
|
|
}
|
|
}
|