I did a trench a bit like that running alongside neighbour's kitchen / coalhouse outrigger (skeleton party wall agreement signed, no surveyors). Next door foundation about 400mm, my trench 1000mm.
My risk analysis allowed me to do it, bearing in mind:
- it was only single storey
- it didn't...