Been down this rabbit hole myself when I rewired the narrowboat last spring.
The short answer from my experience: yes, absolutely fuse it, and here's why it actually matters beyond just "rules say so."
Those cable runs you're describing — 400mm from battery to bus-bar, 300mm onward to the inverter — are short enough that people often think they're low risk. But that's slightly backwards thinking. Short cables have very low resistance, which means a fault can pull enormous current before your upstream protection even notices. The bus-bar itself isn't a fuse.
On my boat I've got a Victron MultiPlus, and the guidance there is pretty clear: fuse as close to the positive source as practical, then again if you've got a significant cable run to another device. I run a ANL fuse on each leg.
The 40A fuse you mention — worth double-checking that's actually rated for your inverter's peak draw. Inverters are notorious for surge current on startup, especially if you're running anything with a motor. Size the fuse to protect the cable, not the inverter. What cross-section is your cable?
Also worth thinking about: on a narrowboat or any floating structure, a wiring fault and fire aren't just inconvenient. There's no popping outside and waiting for the brigade — you are the brigade.
What inverter are you running, and what's the cable gauge between bus-bar and inverter? That'll help nail down whether 40A is the right call or whether you need to rethink the sizing.