Cross-Instance Execution: "Run It on B"

PARTIAL

A kind: playbook step starts a child execution (Chapter 7). Until now the child has always come from the same server's catalog. This chapter is about a child that another NoETL instance holds. Instance A names a playbook on instance B and either copies it home and runs it on A's workers (import), or asks B to run it on B's own workers (delegate).

The reference names the owner. It has two spellings, both defined in the server's DSL manifest (orchestrate-core/schema/dsl-manifest.json, feature remote_execution):

noetl://<instance>/<path>[@<version>][#sha256:<hex>]
peer/<instance>/<path>

<instance> is an instance id such as ni- followed by 32 hex characters. Section 17.1 explains where that id comes from.

Every code fact on this page was checked against noetl/server v3.165.5, noetl/tools v4.7.3, noetl/worker v6.19.2 and noetl/cli v6.4.5 (the tags current on 2026-12-01), and each feature is tied to the release that first shipped it. Prod facts come from the as-built manifest in noetl/ops at 7695b1b (2026-12-01), which is a record in a repository, not a live read of the cluster.

What exists today

PieceFirst releaseStatus
Instance identity (ML-DSA-87) and signed register / discoverserver v3.156.0Released. On prod the registry is on and admits nobody
remote: import and remote: delegate on kind: playbookserver v3.161.0, noetl-tools v4.6.0, worker v6.15.0Released, every flag off by default, not set on prod
The pin across instances (caller and owner)server v3.161.0Released with the flags above
A cached import never outranks the owner in a new treeserver v3.161.0 (fix 8c25af52)Released with the flags above
Local runtime and noetl serve refuse a remote reference by namecli v6.4.0Released, on (no flag)
Held wait for a delegated call (NOETL_CATALOG_REMOTE_PUSH)server v3.163.0, noetl-tools v4.7.0Released, flag off, not set on prod

That is why the page badge is PARTIAL. The code is merged and released, and a two-runtime kind test proves it. No deployment documented in a public record has it switched on.

Prod: the registry is on and trusts nobody

The as-built prod manifest (ci/manifests/noetl/server-rust-embedded-sts-prod.yaml in noetl/ops at 7695b1b) sets NOETL_INSTANCE_REGISTRY=true and does not set NOETL_INSTANCE_TRUSTED_IDS or NOETL_INSTANCE_TRUST. Trust then defaults to an allowlist with no ids (src/instances/gate.rs), so every signed register, discover or peer call is refused. No NOETL_CATALOG_CAS, NOETL_CATALOG_PINNING, NOETL_CATALOG_DISCOVERY or NOETL_CATALOG_REMOTE_* flag is set in any prod manifest there. The ops note ci/manifests/noetl/latency-prod/README.md (2026-11-15) says the same: "Prod has no NOETL_CATALOG_REMOTE_* set, so cross-instance calls are not in use." That README also warns the server manifest had drifted from the live env before then; the book has no live read.

Where the proof comes from

The only end-to-end run is the kind test ci/kind/e2e_catalog_remote_exec.sh in noetl/ops. It builds two full runtimes in one kind cluster. B has its own database (noetl_b), its own command-bus writer, its own shared and system workers, and its own key and trust list. Then it checks four things:

  1. Delegate: A calls noetl://<B>/xc/target twice while B registers v2 in between, and both calls run v1 on B's workers under one pin on B.
  2. Import: the same calls run on A as peer/<B>/xc/target, and the leaf resolves on its home instance.
  3. Fresh roots see the new versions.
  4. The negatives: outside B's allowlist gives 403, a bad mode gives 422 (the script accepts 400 or 422), and delegate where NOETL_CATALOG_REMOTE_CALLS is off gives 403 by name.

The RFC (ai-meta docs/rfc/distributed-playbook-catalog.md §12.4) reports this as kind 50/50 (MEASURED by the author on a kind cluster, 2026-11-11, n = 1 run). The book has not re-run it.

The map of this chapter

  • 17.1 Instance identity and the peer registry. The key, the id, the signed envelope, and why prod admits nobody.
  • 17.2 remote: import vs remote: delegate. Who resolves, who runs, how A gets the result back, and what each costs.
  • 17.3 Pins across instances. The caller pin, the owner pin, races, conflicting digests, the cached import, and home-instance resolution.
  • 17.4 Flags and the fail-closed allowlist. Every switch on each side, in enable order.
  • 17.5 Which runtimes can call another instance. The distributed runtime can; the CLI and serve refuse by name.
  • 17.6 What is still TARGET. Push completion, cancel, clock alignment, the ehgraph edge, batching.

This chapter builds on the per-execution pin, the catalog watermark that holds a whole execution tree to the catalog as it was when the root started. The pin itself is server code (src/services/catalog_cas.rs) behind NOETL_CATALOG_PINNING. Section 17.3 explains only as much of it as a remote reference needs.

What this chapter is not

The instance registry's own handoff (/api/instances/tasks/submit and the inbox, in src/instances/) is how a CLI instance picks up work. Delegation between servers does not use it. It uses the catalog routes /api/catalog/peer/execute and /api/catalog/peer/execution, covered in 17.2.