https://buildingcodetrainer.com/residential-stair-code/

Top and bottom handrail extensions. Commercial stairs definitely require them, but not 100% sure about residential projects,

https://www.wagnercompanies.com/wp-content/uploads/return-to-wall-300x291.jpg

I think the rule for a lot of this stuff is if you touch it it has to be brought up to code.