Foreground cotal spawn resolves its --agent connector from the registry (spawn.ts below); on
the published binary nothing static-imports connectors, so the resolved one is materialized as a
required extension (seeded or ext added), failing loud if absent. The -f manifest launch
preflights every type via preflightConnectors, and --detach resolves the connector
manager-side, so both skip this.
#869: the persona file's agent: pin participates — flag > file > COTAL_DEFAULT_AGENT > default
— but the pin is only knowable from the TARGET mesh's root, which resolveTargetOrExit owns and
this pre-parse hook cannot reach without duplicating the five-tier target precedence. An earlier
revision read the persona from the cwd walk here; that made a spawn from a cwd outside the
target pre-materialize the WRONG connector, and a wrong pre-materialization hard-aborts the
command (materializeExtension throws on an uninstalled extension) before the body ever loads
the correct persona. The materialization is therefore DEFERRED into the spawn body, immediately
after the authoritative persona load and before registry.resolve — one resolver, one root, and
the hook stays root-free exactly as it was before #869.
Foreground
cotal spawnresolves its--agentconnector from the registry (spawn.ts below); on the published binary nothing static-imports connectors, so the resolved one is materialized as a required extension (seeded orext added), failing loud if absent. The-fmanifest launch preflights every type viapreflightConnectors, and--detachresolves the connector manager-side, so both skip this.#869: the persona file's
agent:pin participates — flag > file > COTAL_DEFAULT_AGENT > default — but the pin is only knowable from the TARGET mesh's root, whichresolveTargetOrExitowns and this pre-parse hook cannot reach without duplicating the five-tier target precedence. An earlier revision read the persona from the cwd walk here; that made a spawn from a cwd outside the target pre-materialize the WRONG connector, and a wrong pre-materialization hard-aborts the command (materializeExtension throws on an uninstalled extension) before the body ever loads the correct persona. The materialization is therefore DEFERRED into the spawn body, immediately after the authoritative persona load and before registry.resolve — one resolver, one root, and the hook stays root-free exactly as it was before #869.