Why guardrails fail at the base plate, not on the rail
Look at a ten-year-old guardrail: the rail is fine, the post is fine, and the base plate has lost its coating and is staining the floor.

The cut edge is where coating ends
Posts are cut to length on a saw after coating, or coated after cutting but with the cut face masked. Either way the base of the post is the one place where bare aluminium, or worse a steel insert, meets water and air. Specify that cut ends are coated, or use a closed-section post with a factory cap, and check the base detail on the sample rather than on the drawing.
Water sits under the plate
A base plate bolted to a slab edge collects water and dirt in the 6 mm gap between plate and floor, and that water stays there for days after rain. A small drainage notch or a continuous bead of sealant forming a fillet — not a gap — changes the outcome. The worst detail is a plate on packers with open sides, which makes a nice wet chamber.
Dissimilar metals at the anchor
Stainless anchors into an aluminium plate are fine; galvanised steel anchors into aluminium are not, and bare steel into aluminium is a battery. Where steel meets aluminium, isolate with a nylon or EPDM washer and a isolating sleeve, and keep the joint dry. On a coastal site this detail decides whether the post lasts five years or twenty.
Cleaning chemicals
Acid-based masonry cleaners, used to clean the floor or the facade, attack aluminium and strip the coating at the base before anywhere else. If the building is cleaned with acid, the guardrail base needs masking or a resistant coating. This is the most common cause of mysterious white staining at the foot of a new railing.
Designing for inspection
A base detail that cannot be seen cannot be maintained. Leave 50–80 mm between the plate and the finished floor line where possible, or make the cover trim removable, so someone can look at the anchors and the plate once a year. Concealed fixings look better and hide the failure until it is structural.
Repair rather than replace
Surface corrosion on a base plate can be ground back, treated with a conversion coating and repainted, provided the section loss is negligible. Once the plate has lost more than about 10% of its thickness, or the anchor is loose in the substrate, the post has to come out. That threshold is worth writing into the maintenance manual, because it is the point where a cheap repair stops being safe.