Not every wasp near the hives is trouble. Some of the most purposeful insects in a garden are solitary wasps that have no interest in honey, no nest full of workers to defend and no appetite for bees. They turn up in late spring and summer carrying mud or dragging a spider, they are noticed because they look like wasps, and they get blamed for things they did not do. A diary entry on who they are saves a good deal of needless worry.
The wasps that damage hives are social: German and common wasps live in large colonies headed by a queen and staffed by thousands of workers. The Department of Conservation lists five social wasp species as pests in New Zealand, German wasps, common wasps and three paper wasps. In the same breath its wasp page notes that New Zealand has several native wasp species that have never become a nuisance.
A solitary wasp is a different proposition. One female does everything herself: she builds the nest, hunts the prey, lays the egg and then leaves. There is no colony to defend and no stored food to guard.
The one most often noticed around houses and sheds is the mason wasp, Pison spinolae. Wikipedia's account describes a fully black wasp, about 16 mm long, with a thin waist. That distinguishes it quickly from the German wasp's yellow-and-black bands. The Biosecurity New Zealand fact sheet on yellow-legged hornets gives the five social wasps as 11 to 16 mm, so the mason wasp is at the large end of the range and can look bigger than it is because of its slender build.
What gives it away is the work. The female builds her nest from sand and mud, in small separate compartments, and she makes a whining sound as she works the mud. Nests turn up in building cracks, keyholes, holes in wood and similar crevices. Each compartment holds one egg and one paralysed spider, and when the compartment is stocked she seals it and starts another. After laying she provides no further care. The larva eats the spider and develops in the cell.
The adults themselves feed on nectar and honeydew, and only rarely on other insects. They are mostly active during the day in direct sunlight, with little activity in overcast or rainy weather. According to the same account the species has two generations a year, a summer one that does not enter diapause and a winter one that does, which explains why the mud cells can turn up at more than one time of year.
The behaviour is the quickest guide.
Spider-hunting wasps of the family Pompilidae, mentioned in a DOC science report, are another group found in New Zealand. The general rule holds for solitary wasps with spiders on their minds: they are after spiders, not bees.
They can. The Wikipedia entry on the mason wasp notes that it can sting repeatedly, unlike a bee, and its sting is how it paralyses spiders. For people the usual rule applies: a solitary wasp has very little reason to sting unless it is handled or trapped, and mason wasps are not guarding a colony. Healthify says a bee leaves its sting behind but a wasp does not, and recommends calling emergency services straight away if someone shows signs of a severe allergic reaction, such as swelling of the lips and eyes, wheezing, difficulty swallowing or fainting. The first-aid steps on Healthify apply to any wasp sting.
Usually, nothing. A mason wasp is removing spiders from the garden. If a nest in a keyhole or a gap in a hive box is a nuisance, the time to deal with it is when the cell is empty or sealed. Stored hive boxes with gaps, spare supers and the cracks in a hive stand are exactly the kind of crevice the wasp likes, so look over equipment in spring before the boxes go back on a hive. Remove old mud cells and fill unneeded holes.
If you are not sure whether what you are seeing is a mason wasp or something that needs treatment, an identification page on mason wasps is a starting point. A wasp-control business such as Waspari can confirm what is visiting and tell you whether it needs action at all. Keep the photograph handy, taken from a distance, and do not poke at nests.
Hobby beekeepers are rightly alert to wasps from late summer. That alertness works better with some calibration: a single all-black wasp at a keyhole is not a precursor to a hive raid, and treating every wasp the same way risks spraying or swatting insects that are doing a useful job. Note where the mason wasp nests, note the date, and spend the saved effort on guarding the entrances against the wasps that are a problem.