diff --git a/labs/22-yield/yield/cmd/yskill/agents.go b/labs/22-yield/yield/cmd/yskill/agents.go index 8f3c0fb4..b60ef293 100644 --- a/labs/22-yield/yield/cmd/yskill/agents.go +++ b/labs/22-yield/yield/cmd/yskill/agents.go @@ -660,7 +660,7 @@ func localRuntimeInstallCommand(language, expected string) string { var pinnedVersionPatterns = map[string]*regexp.Regexp{ "python": regexp.MustCompile(`(?m)^yieldskill==([^\s]+)$`), - "go": regexp.MustCompile(`(?m)^\s*github\.com/operatorstack/yield\s+v([^\s]+)`), + "go": regexp.MustCompile(`(?m)^\s*(?:require\s+)?github\.com/operatorstack/yield\s+v([^\s]+)`), "rust": regexp.MustCompile(`(?m)yieldskill\s*=\s*\{[^\n]*version\s*=\s*"=([^"]+)"`), } diff --git a/labs/22-yield/yield/cmd/yskill/agents_test.go b/labs/22-yield/yield/cmd/yskill/agents_test.go index 7907965a..d71323d6 100644 --- a/labs/22-yield/yield/cmd/yskill/agents_test.go +++ b/labs/22-yield/yield/cmd/yskill/agents_test.go @@ -405,6 +405,23 @@ func TestWorkflowSDKVersionMustMatchRuntime(t *testing.T) { } } +func TestGoWorkflowSDKVersionAcceptsGeneratedAndBlockForms(t *testing.T) { + repo := t.TempDir() + manifest := skillManifest{Version: 1, Language: "go", Run: []string{"go", "run", "."}} + for name, goMod := range map[string]string{ + "generated": "module review\n\ngo 1.26.5\n\nrequire github.com/operatorstack/yield v0.1.23\n", + "block": "module review\n\ngo 1.26.5\n\nrequire (\n\tgithub.com/operatorstack/yield v0.1.23\n)\n", + } { + t.Run(name, func(t *testing.T) { + skill := filepath.Join(repo, name) + writeTestFile(t, filepath.Join(skill, "go.mod"), goMod) + if err := verifyWorkflowSDKVersion(manifest, skill, repo, "0.1.23"); err != nil { + t.Fatal(err) + } + }) + } +} + func TestDoctorReportsSDKRuntimeAndAdapterVersionProblemsTogether(t *testing.T) { repo := t.TempDir() writeTestFile(t, filepath.Join(repo, ".git", "keep"), "") diff --git a/labs/22-yield/yield/evals/results/latest.json b/labs/22-yield/yield/evals/results/latest.json index 97483e11..4774d4ae 100644 --- a/labs/22-yield/yield/evals/results/latest.json +++ b/labs/22-yield/yield/evals/results/latest.json @@ -1,8 +1,8 @@ { "schema_version": 2, "methodology_version": "1.1", - "generated_at": "2026-08-02T14:30:09.305Z", - "source_digest": "6a2ad2cc8d59a7226c966bdf71015a3d959a7f57ecf29d661d195c2f8ea79604", + "generated_at": "2026-08-02T14:55:09.652Z", + "source_digest": "0c8520275d4bd2d0e607c6dbcb0ebf7696106451f2a7fd2acb71ea2c1ed16286", "status": "passed", "workflow_conformance": { "passed": 40,