Cotal TypeScript packages
    Preparing search index...

    Function resolveSeatControlTarget

    • The managed seat this process runs in, as THAT seat's own control target, or undefined outside one. A seat that shells out to cotal must reach the manager as itself, not as a fresh operator instrument: the manager records the requesting principal (a detached spawn's spawner, a run answer's answerer), and a one-shot instrument is a principal nothing can present again, so the seat could never stop the child it asked for (#718). Connection material is intentionally not inherited by shell children; the non-secret launch identity (COTAL_NAME, COTAL_ID, COTAL_LIFECYCLE_UID) names the seat, and when the launch also sets COTAL_SPACE only a command aimed at that registered space acts as it. A raw open target (--server plus an unregistered --space) keeps the operator resolution, as connectOrThrow orders it:

      • static mesh: the manager-owned lifecycle credential, whose accepted row (COTAL_ACCEPTED_TOKEN) resolves an issuer-bound generation that must name the same principal and lifecycle uid. That proof binds the space too, so a launch without COTAL_SPACE still acts as the seat, and a target whose space holds no such credential is refused rather than answered as someone else;
      • open mesh: no credential system, so the seat's declared triple is the caller, over the transport the registry records, and only when COTAL_SPACE names that space;
      • user-auth mesh: undefined, because the CLI's bearer and the seat share an owner and the manager's owner-domain rule already covers that pair.

      instanceId (--on <instanceId>) pins the call to one manager instance. The seat's standing credential holds class routes only, so on a static mesh the seat's proven principal and lifecycle uid get a one-shot manager-caller view instead, minted from the local signer like the operator instrument --on already gets: every request, describe included, is pinned to that instance, it carries the spawn set only when the seat's own credential holds it, and it expires in five minutes.

      Parameters

      Returns Promise<ControlTarget | undefined>