King David's administration carefully integrated both spiritual and civil leadership to address the nation's political shifts and practical needs. At the head of the spiritual hierarchy were the chief priests, Zadok and Abimelech [מצודת דוד]. Zadok traced his lineage to Phinehas, the son of Eleazar, while Abimelech belonged to the house of Eli, descending from Ithamar. Because David had not yet made a final decision between these two prominent priestly families, both men served concurrently [ביאור שטיינזלץ].
Another perspective suggests a slightly different hierarchy, where Abimelech's father, Abiathar, actually held the position of High Priest. Under his leadership, Zadok served as the priest specially anointed for war, with Abimelech acting as his deputy [מלבי״ם, מצודת ציון]. Abiathar's absence from this specific roster of leaders can be explained by the timing of his appointment, which occurred earlier when David ruled exclusively over Judah. The current record, by contrast, lists the ministers appointed over all of Israel. Alternatively, Abiathar is omitted because his position was not permanent; David eventually appointed Zadok to serve alone as the sole High Priest [מצודת דוד].
On the civil side of the government, Shavsha held the vital role of the king's scribe. His primary duty was to write down the official records dictated to him by Ahilud, the royal recorder [רש״י]. Interestingly, the name Shavsha is not of Israelite origin, suggesting he was likely a convert. This foreign background perfectly suited his responsibilities, which extended to managing diplomatic relations, functioning much like a foreign minister [ביאור שטיינזלץ].
Historical accounts from the era occasionally refer to the king's scribe by different names, such as Seraiah or Sheva. Some scholars resolve this by concluding that these names simply belonged to the same individual [רלב״ג]. Others propose that the differing names reflect a change in administration over time. In this view, Seraiah served as the original scribe, and Shavsha was appointed to fill the position following his passing [מלבי״ם].