Question: Before 21 Lithuanian dukes signed a peace treaty with Galicia–Volhynia, what is an example of the war-related functions the group who made up the majority of the military-economic staff of the state performed?

full_context: Document 1: Lithuanian Hound: The Lithuanian Hound has been traditionally used to hunt hare, fox, and boar. The breed is mentioned in the Statutes of Lithuania (16th century). It is believed that it comes from the mixing of bloodhounds with several other hound breeds. Once a popular breed in Lithuania, the population decreased to 78 individuals after World War II. Thanks to several enthusiasts, the hound was revived, standardized, and the number of registered and documented dogs reached around 350 in 1987. After the dissolution of the Soviet Union, the breed decreased to around 150 individuals by 1998. The decrease in popularity is explained by changing hunting habits: the Lithuanian Hound is best suited for hunting large animals in large open areas, but modern hunting plots are decreasing in size. The Lithuanian Cynological Society plans to register the breed with the Fédération Cynologique Internationale (FCI).
Document 2: Seimas of the Grand Duchy of Lithuania: Seimas ("Sejm", "Sojm", Belarusian: Сойм ) was an early parliament in the Grand Duchy of Lithuania. It was active from 1445 to 1569, when it was officially abolished by the Union of Lublin. The Seimas was an irregular gathering of the Lithuanian nobility, called as needed by the Grand Duke or during an interregnum by the Lithuanian Council of Lords (an early government). The meetings would usually last one or two weeks. Seimas gradually evolved from a meeting of the most powerful magnates to a full legislative institution representing all of the nobility. The Seimas was not the main political player as it was overshadowed by the Council of Lords. The Union of Lublin created a new state, the Polish–Lithuanian Commonwealth, and joined the Seimas of Lithuania with Sejm of Poland into one Sejm of the Polish–Lithuanian Commonwealth. However, the Seimas continued to convene under the name of Lithuanian Convocation. In total there were 40 Seimas and 37 Convocations.
Document 3: Polish hussars: The Polish Hussars ( , , or ; Polish: "Husaria" ), or Winged Hussars, were one of the main types of the cavalry in the Polish-Lithuanian Commonwealth between the 16th and 18th centuries. When this cavalry type was first introduced by Serbian and Hungarian mercenary horsemen at the beginning of the 16th century, they served as light cavalry banners in the Polish army; by the second half of the 16th century and after Stephen Báthory's reforms, hussars had been transformed into heavily armored shock cavalry. Until the reforms of the 1770s, the husaria banners were considered the elite of the Polish cavalry.
Document 4: History of Lithuania: The history of Lithuania dates back to settlements founded many thousands of years ago , but the first written record of the name for the country dates back to 1009 AD. Lithuanians, one of the Baltic peoples, later conquered neighboring lands and established the Grand Duchy of Lithuania in the 13th century (and also a short-lived Kingdom of Lithuania). The Grand Duchy was a successful and lasting warrior state. It remained fiercely independent and was one of the last areas of Europe to adopt Christianity (beginning in the 14th century). A formidable power, it became the largest state in Europe in the 15th century through the conquest of large groups of East Slavs who resided in Ruthenia. In 1385, the Grand Duchy formed a dynastic union with Poland through the Union of Krewo. Later, the Union of Lublin (1569) created the Polish–Lithuanian Commonwealth that lasted until 1795, when the last of the Partitions of Poland erased both Lithuania and Poland from the political map. Afterward, the Lithuanians lived under the rule of the Russian Empire until the 20th century.
Document 5: Lithuanian Crusade: The Lithuanian Crusade was a series of campaigns by the Teutonic Order and the Livonian Order, two crusading military orders, to convert the pagan Grand Duchy of Lithuania into Roman Catholicism. The Livonian Order settled in Riga in 1202 and the Teutonic Order arrived to Culmerland in 1230s. They first conquered other neighboring Baltic tribes – Curonians, Semigallians, Latgalians, Selonians, Old Prussians (see Livonian Crusade and Prussian Crusade). The first raid against the Lithuanians and Samogitians was in 1208 and the Orders played a key role in Lithuanian politics, but they were not a direct and immediate threat until 1280s. By that time the Grand Duchy of Lithuania was already an established state and could offer organized defense. Thus for the next hundred years the Knights organized annual destructive "reise" (raids) into the Samogitian and Lithuanian lands but without great success: border regions in Samogitia and Suvalkija became sparsely inhabited wilderness, but the Order gained very little territory. The Grand Duchy finally converted to Christianity in 1386, when Grand Duke Jogaila accepted baptism from Poland before his wedding to reigning Queen Jadwiga and coronation as King of Poland. However, the baptism did not stop the crusade as the Order publicly challenged sincerity of the conversion at the Papal court. Lithuania, together with its new powerful ally Poland, defeated the Order in the decisive Battle of Grunwald in 1410, which is often cited as the end of the Lithuanian Crusade. The final peace was reached by the Treaty of Melno (1422).
Document 6: History of Lithuania (1219–95): The history of Lithuania between 1219 and 1295 concerns the establishment and early history of the first Lithuanian state, the Grand Duchy of Lithuania. The beginning of the 13th century marks the end of the prehistory of Lithuania. From this point on the history of Lithuania is recorded in chronicles, treaties, and other written documents. In 1219, 21 Lithuanian dukes signed a peace treaty with Galicia–Volhynia. This event is widely accepted as the first proof that the Baltic tribes were uniting and consolidating. Despite continuous warfare with two Christian orders, the Livonian Order and the Teutonic Knights, the Grand Duchy of Lithuania was established and gained some control over the lands of Black Ruthenia, Polatsk, Minsk, and other territories east of modern-day Lithuania that had become weak and vulnerable after the collapse of Kievan Rus'.
Document 7: List of szlachta: The szlachta (Polish: "szlachta" , ) was a privileged social class in the Kingdom of Poland. The term "szlachta" was also used for the Lithuanian nobility after the union of the Grand Duchy of Lithuania with Poland as the Polish-Lithuanian Commonwealth (Union of Lublin, 1569) and for the increasingly Polonized nobilities of territories controlled by the Polish-Lithuanian Commonwealth, including Ducal Prussia and the Ruthenian lands.
Document 8: Kingdom of Galicia–Volhynia: The Principality of Galicia–Volhynia, or Kingdom of Rus' (Old Ruthenian: Галицко-Волинскоє князство, Королѣвство Русь , Ukrainian: Галицько-Волинське князівство, Королівство Русі , Polish: "Królestwo Galicji-Wołyn" , Slovak: "Kráľovstvo Galícii-Volyni" , Latin: "Regnum Galiciae et Lodomeriae, Regnum Russiae" ), was a state in the regions of Galicia and Volhynia, of present-day western Ukraine, that was formed after the conquest of Galicia by the Prince of Volhynia Roman the Great with the help of Leszek the White of Poland. Roman the Great united the principalities of Halych (Galicia) and Volhynia into a state that existed from 1199 to 1349. Along with Novgorod and Vladimir-Suzdal, it was one of the three most important powers to emerge from the collapse of Kievan Rus'.
Document 9: Peace of Thorn (1411): The (First) Peace of Thorn was a peace treaty formally ending the Polish–Lithuanian–Teutonic War between allied Kingdom of Poland and Grand Duchy of Lithuania on one side, and the Teutonic Knights on the other. It was signed on 1 February 1411 in Thorn (Toruń), one of the southernmost cities of the Monastic State of the Teutonic Knights. In historiography, the treaty is often portrayed as a diplomatic failure of Poland–Lithuania as they failed to capitalize on the decisive defeat of the Knights in the Battle of Grunwald in June 1410. The Knights returned Dobrzyń Land which they captured from Poland during the war and made only temporary territorial concessions in Samogitia, which returned to Lithuania only for the lifetimes of Polish King Władysław Jagiełło and Lithuanian Grand Duke Vytautas. The Peace of Thorn was not stable. It took two other brief wars, the Hunger War in 1414 and Gollub War in 1422, to sign the Treaty of Melno that solved the territorial disputes. However, large war reparations were a significant financial burden on the Knights, causing internal unrest and economic decline. The Teutonic Knights never recovered their former might.
Document 10: Daujotas: Daujotas was one of the 5 elder Lithuanian dukes mentioned in the peace treaty with Halych-Volhynia in 1219. In the same document Vilikaila is mentioned as brother of Daujotas which suggests that Daujotas was the older or perhaps more influential brother. The brothers are not mentioned in any other sources. Tomas Baranauskas, a modern Lithuanian historian, believes that Vilikaila and Daujotas might be sons of Stekšys, a Lithuanian duke killed in 1214.
Document 11: Military of the Polish–Lithuanian Commonwealth: The military of the Polish–Lithuanian Commonwealth evolved from the merger of the armies of the Kingdom of Poland and the Grand Duchy of Lithuania following the 1569 Union of Lublin, which formed the Polish–Lithuanian Commonwealth. The army was commanded by the Hetmans of the Polish–Lithuanian Commonwealth. The most unique formation of the army was the heavy cavalry in the form of the Polish winged hussars. The Polish–Lithuanian Commonwealth Navy never played a major role in the military structure, and ceased to exist in the mid-17th century.
Document 12: National Cavalry: The National cavalry (Polish: "Kawaleria narodowa" ) was a branch of Polish–Lithuanian cavalry in the Polish armed forces in the last quarter of the 18th century. Formed as a merger of previously-existing units of Polish Hussars and pancerni that were still in service after the Confederation of Bar. In 1777 the Sejm new regulations converted all units of heavy cavalry and medium cavalry and reformed them into a line cavalry, roughly similar to later uhlans popular in Europe in the 19th century. Existing dragoon and Front or Vanguard Regiments were outside this reform The National Cavalry had a very short history of 20 years, and some units stationed in the eastern Polish–Lithuanian Commonwealth were forcibly incorporated into the Russian cavalry following the Second Partition of Poland, and the remainder was disbanded together with the rest of Polish–Lithuanian armed forces after the final partition in 1795. The Sejm's 1777 decision was rather late effort to modernize Polish–Lithuanian cavalry, along the much earlier trend of evolution of European cavalry towards more modern organization of the cavalry regiments into more mobile formations. The most modern part of the reform was the establishment of some very modern battle dress uniforms for these cavalrymen, and in turn this uniform of the National Cavalry inspired numerous similar uniforms and employment of 'Polish lance' in the rest of Europe, notably the Austrian, Prussian, Russian cavalry, and later of the French cavalry of the Napoleonic Wars.
Document 13: Leičiai: Leičiai (singular: leitis) were a distinct social group of the Lithuanian society in the early Grand Duchy of Lithuania subordinate to the Lithuanian ruler or the state itself. Leičiai were native to the Lietuva Land and formed the core of the Lithuanian society in the pre-state era and during the establishment of the state. Leičiai made up the majority of the military-economic staff of the state: they enforced state authority in the periphery, protected state borders, and performed various other war-related functions, such as breeding riding horses. By the 15th and 16th centuries, leičiai were in decline, already losing some of their functions and prestige, and they disappeared as a social class after the implementation of the Wallach Reform.
Document 14: Lithuanian Civil War (1389–92): The Lithuanian Civil War of 1389–92 was the second civil conflict between Jogaila, King of Poland and Grand Duke of Lithuania, and his cousin Vytautas. At issue was control of the Grand Duchy of Lithuania, then the largest state in Europe. Jogaila had been crowned King of Poland in 1386; he installed his brother Skirgaila as ruler of Lithuania. Skirgaila proved unpopular and Vytautas attempted to depose him. When his first attempt to take the capital city of Vilnius failed, Vytautas forged an alliance with the Teutonic Knights, their common enemy – just as both cousins had done during the Lithuanian Civil War between 1381 and 1384. Vytautas and the Knights unsuccessfully besieged Vilnius in 1390. Over the next two years it became clear that neither side could achieve a quick victory, and Jogaila proposed a compromise: Vytautas would become Grand Duke and Jogaila would remain Superior Duke. This proposal was formalized in the Ostrów Agreement of 1392, and Vytautas turned against the Knights. He went on to reign as Grand Duke of Lithuania for 38 years, and the cousins remained at peace.
Document 15: Lithuanian Civil War (1381–84): The Lithuanian Civil War of 1381–1384 was the first struggle for power between the cousins Jogaila, Grand Duke of Lithuania and later King of Poland, and Vytautas the Great. It began after Jogaila signed the Treaty of Dovydiškės with the Teutonic Knights which was aimed against his uncle Kęstutis, father of Vytautas. Kęstutis briefly seized power in the Grand Duchy, but was betrayed by adherents of Jogaila primarily from Vilnius. During negotiations for a truce Kęstutis and Vytautas were arrested and transported to the Kreva Castle. Kęstutis died there a week later but Vytautas managed to escape and then sought an alliance with the Teutonic Knights. Subsequently their joint forces raided Lithuanian lands. Eventually the cousins were reconciled as Jogaila needed internal stability in anticipation of negotiations with the Grand Duchy of Moscow and the Kingdom of Poland regarding the possible Christianization of Lithuania. The war did not settle the power struggle; it continued during the next Lithuanian Civil War (1389–1392) which was resolved by the signing of the Ostrów Agreement. After more than ten years of struggle, Vytautas finally became the Grand Duke of Lithuania and ruled the country for thirty-eight years.
ground_truth: breeding riding horses