package provider import ( "encoding/json" "slices" "testing" ) func TestAssistProfile(t *testing.T) { p, err := Profile("assist") if err != nil { t.Fatal(err) } if p.Specialist != "Coordinator" || !p.ReadOnly { t.Fatalf("profile %+v", p) } want := []string{"mcp__equipo__look", "mcp__equipo__describe", "mcp__equipo__use", "mcp__equipo__ask_person", "mcp__equipo__write_note", "mcp__equipo__read_notes", "mcp__equipo__read_attachment"} if got := p.MCPTools(); !slices.Equal(got, want) { t.Fatalf("tools %v", got) } if !CoordinatorAction("assist") { t.Fatal("assist is not a coordinator action") } } // An assist manifest is a converse-shaped policy: the desk mounts read-only. func TestAssistManifestIsConverse(t *testing.T) { raw, _ := json.Marshal(effectiveManifest{Action: "assist"}) if !(Policy{Manifest: raw, ManifestHash: digest(raw)}).Converse() { t.Fatal("assist manifest is not Converse") } raw, _ = json.Marshal(effectiveManifest{Action: "implement"}) if (Policy{Manifest: raw, ManifestHash: digest(raw)}).Converse() { t.Fatal("implement manifest is Converse") } }