TestSkillHasUpgradeWorkflow pins the §4.15 upgrade procedure: the skill must know how to walk the user through replacing the binary per the README at https://github.com/Facets-cloud/flow and then running `flow skill update`. It must also recognize the `flow-version-stale:` signal the SessionStart ho
(t *testing.T)
| 433 | } |
| 434 | // §4a should set the policy explicitly. |
| 435 | if !strings.Contains(got, "always AskUserQuestion") { |
| 436 | t.Errorf("skill §4a should establish 'always AskUserQuestion' as the rule") |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | func TestSkillHasPlaybookPersistAdjustmentsPattern(t *testing.T) { |
| 441 | got := skillCorpus(t) |
| 442 | for _, want := range []string{ |
| 443 | "Persisting in-run adjustments back to the playbook", |
| 444 | "frozen snapshot", |
| 445 | "playbooks/<slug>/brief.md", |
| 446 | "Persist to playbook", |
| 447 | "Just this run", |
| 448 | "Never edit the run-task's own `brief.md`", |
| 449 | } { |
| 450 | if !strings.Contains(got, want) { |
| 451 | t.Errorf("skill missing %q", want) |
| 452 | } |
| 453 | } |
nothing calls this directly
no outgoing calls
no test coverage detected