The psalmist has found peace but he has not found that peace in the security of knowing he’s no longer persecuted nor in the security of being “in the know” with the right people. He’s found peace, great peace, because he’s found the path of life — to walk in Torah. This leads him to peaceful resolutions …
And Psalm 119:166-168 are a string of resolutions he has made in peace:
I hope for your salvation, O LORD,
and I fulfill your commandments.
My soul keeps your decrees;
I love them exceedingly.
I keep your precepts and decrees,
for all my ways are before you.
Resolved in peace to:
1. Hope for God’s salvation — which is surely earthly liberation.
2. Keeping God’s decrees.
3. Keeping God’s precepts.
His life is an open book before God: “for all my ways are before you.” That is, “all my ways” are “conspicuous” or “straightforward.” He lives his life before God with the windows open, the doors open, and in a glass house.