The subagent manager decided whether a child registers the checkout its
parent works in, reading the parent's anchors, containment, and header
from outside the directory service. inherit(agent, source, { cwd }) moves
that decision into the service: a source working in a registered checkout
other than the starting Session's original project passes it on through
relocate when the canonical cwd lies inside it; otherwise only the
directory is set. The manager resolves the directory before the provider
prepares, as before, and hands the same value to inherit afterwards.