The success of King David's government relied on appointing wise and capable experts to key positions, creating a highly efficient division of power. This careful distribution of responsibilities highlights the deep connection between strong civil leadership and national security. By taking on the heavy burden of managing the military forces and commanding the wars, Joab served as the supreme commander [מצודת דוד, אברבנאל, ביאור שטיינזלץ]. His leadership on the battlefield entirely freed David from the demands of war, allowing the king to dedicate himself fully to acts of justice and charity. In a profound partnership, it was precisely the merit of David's commitment to justice that protected Joab and secured his military victories [אברבנאל].
Beyond the military, the kingdom required strong administrative leadership, such as a dedicated royal secretary. There are a few ways to understand the exact nature of this position. One approach views the secretary as the official record keeper, responsible for documenting events and writing the official history of the kingdom [רד״ק, מצודת דוד]. Alternatively, the role may have been strictly legal. In this view, the secretary managed the daily court schedule, keeping track of the queue of people waiting for judgment and reminding the king which case was next so that justice could be served in the proper order [רש״י, אברבנאל]. A broader perspective suggests that the secretary acted as a central liaison for the entire government, responsible for presenting the king with all pending issues across various departments that required his final decision [ביאור שטיינזלץ].