MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestSkillHasUpgradeWorkflow

Function TestSkillHasUpgradeWorkflow

internal/app/skill_test.go:435–450  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
440func 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 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected