Is this a roofing job or a masonry job?
It is usually both, which is why it gets passed back and forth. The waterproofing is roof work and the joint that holds it is masonry work, and a repair that does one without the other fails at the seam between them.
The reason this matters to a homeowner is sequencing. New metal let into a joint that is about to be repointed will be disturbed again within the year, and fresh pointing laid against old flashing locks a failed assembly into place. Doing the two together costs one opening-up of the roof instead of two.
What a crew is deciding on the roof is how much of the stack has to come into the scope. If the joint three courses up is sound, the work stops there. If the crown has split and the core is wet, metalwork alone will not dry the stack out, and saying so plainly before work starts is part of the job.
Why does sealant around a chimney never hold for long?
Because it is being asked to be the waterproofing rather than to help it. A bead of compound bridges the gap between metal and masonry, and that gap moves with heat and frost until the bead splits.
Flashing works by overlap and gravity. Every piece sheds onto the piece below it, and nothing depends on adhesion. Sealant has no overlap to offer, so the moment it parts from either face it becomes a channel that leads water into the joint and holds it there, which is worse than the open gap it replaced.
There is a narrow legitimate use for it: closing the very top edge of a counterflashing that has been properly let in and pointed. Used that way it is a dressing on a finished assembly. Used as the assembly it is a patch with a short life, and it hides the condition of what is underneath from the next person who looks.
What does a soft old mortar joint need that a modern one does not?
A mix no stronger than the material around it. Hard cement mortar in a soft stone or brick joint shifts the wear from the joint to the face of the stone, and the face cannot be replaced.
Natural cement was first found locally in 1825 and production of Rosendale natural cement ended in 1970 at the Snyder estate, now a National Register historic district. That industry is part of why masonry of several different periods and recipes stands side by side in this area, and why a joint cannot be assumed from the look of a wall.
In practice the crew matches softness, grain and joint profile rather than color alone, and keeps the new work to the depth that has actually failed. Raking out sound mortar to make a tidy line does damage that shows up a decade later, so a good repointing job on an old stack looks patchy and irregular when it is finished.
What moves the price of chimney work up or down here?
The height and width of the stack, how much of the masonry is in scope, how far the covering has to be opened, access for staging, and whether the stack is brick or stone. No figure is published on this site; the price is confirmed on site after inspection and approved before work starts.
The largest single variable is scope creep that is visible from the start if anyone looks. A stack needing a joint cut and new metal is a contained piece of work. The same stack with a cracked crown, wet core and loose top courses is a rebuild, and the difference is decided by the condition of the masonry, not by the size of the leak.
Access is the other half. A stack on a steep plane, on a tall wall, or on a roof that cannot take a ladder standoff needs staging, and staging is planned before the quote rather than discovered during it. Older houses with eaves close to a boundary are the usual case here.
Can an unused chimney simply be capped and forgotten?
It can be capped, but it cannot be forgotten. A disused stack still collects rain at the top and still has a flashing line at the roof, and both go on needing to work.
Capping keeps the bulk of rain out of the flue, and that alone slows the soaking that breaks a stack apart from the inside. A cap that seals the flue completely, though, traps moisture in the masonry with nowhere to go, so ventilation is left in deliberately rather than closed off.
The other route is removal back below the roofline and framing the opening over. That ends the maintenance for good, and it is a real option on a stack that serves nothing. It is also a change to the outside of the building, which matters on a landmarked property or in a historic district, so the building department and any commission with a say should be asked first.