🔐Authorization
This page covers two trust boundaries: the on-chain grant that lets an execution act for an Agent at a specific vertex, and the signed-HTTP channel that authenticates Leader-to-Tool calls. Both answer who is allowed to do what. Whether returned evidence satisfies a verifier is covered on the verification page.
On-chain Tool authorization
How is a step authorized to act on an Agent's behalf?
Through a Task-bound per-vertex authorization grant. AgentVertexAuthorization ties together the skill ID, interface revision, DAG, vertex, and Task ID; the occurrence's worksheet/current-Execution context proves which execution is using that Task-bound grant. It is not a durable exact-Execution trigger. A custody-touching Tool still must enforce its own recipient, amount, capability, sender, and state policy; fixed Tool identity and a signed result do not create application asset authority by themselves.
How does a scheduled Task stay authorized across many runs?
A scheduled Task stores a durable skill-level authorization object for the exact Agent, skill, and interface revision resolved when the Task is created. Each firing copies those pinned grants into the Occurrence's Execution. Updating the Agent's skill later does not rewrite an existing Task's authorization; close and recreate the Task when work must adopt a new skill revision.
Does an open Task freeze the Agent skill registry?
No. The Task snapshots its selected skill revision, DAG binding, and policy inputs, but the registry can later deactivate the Agent or skill, advance its revision, or change its DAG or policies. The registry classifies the immutable snapshot as Current, Inactive, Stale, or Missing: a matching inactive contract aborts before Execution without durable Task rejection and can recover through reactivation, while a revision/DAG/policy mismatch is Stale and an absent Agent or skill record is Missing. Stale and Missing are permanent for that snapshot and the explicit rejection path can record StaleSkillContract; close an idle old Task and create a new one, because Missing cannot be repaired by reactivation. Never infer that an open Task follows a registry mutation.
Signed HTTP and Tool identity
What exactly does signed HTTP v3.1 prove?
The Leader's existing v3 signature covers the Tool schema's ordered canonical input hash. The Tool verifies it against a local allowlist, reconstructs the canonical input commitment from the received body, and rejects a mismatch before invocation. V3.1 adds a separate Leader context signature that binds the receiving Tool FQN, deterministic invocation nonce, and Unix-millisecond timestamp. The Toolkit checks that signature against the allowlist and enforces an inclusive symmetric timestamp window, 30,000 ms by default, before replay-cache access. For a successful canonical result, the Tool retains the v3 response signature over the Leader signature, deterministic invocation nonce, and domain-separated SHA-256 of exact ordered response BCS.
These signatures do not bind the HTTP method, path, query, raw JSON bytes, response status, or arbitrary headers. The context signature binds its timestamp, but does not replace authenticated HTTPS on every hop. Signed HTTP proves provenance and integrity of the canonical commitments; it does not hide inputs/outputs from the Leader or prove a correctly signed business answer is true.
Which headers carry v3 and v3.1 evidence?
Requests carry X-Nexus-Sig-V, Leader capability ID, Leader key ID, canonical input hash, Leader signature, deterministic nonce, nexus-context-sig, and nexus-context-timestamp. The signature-version value remains 3. Responses carry only the signature version and Tool signature. There is no Tool kid response header: workflow starts from the registered Tool ID and resolves that Tool's active on-chain key binding.
The nonce is derived from execution ID, walk index, runtime vertex name, and iteration. It remains bound by the Tool result signature and is recomputed on-chain; the separate context signature binds the nonce and timestamp for request authentication.
Per-Tool client-certificate binding is optional and defaults off. When enabled, the Toolkit matches the TLS peer key to the allowlisted Leader key; terminate TLS in the Toolkit or pass the TLS connection through to it. Toolkit /meta advertises HTTPS and ignores X-Forwarded-Proto.
How are signing keys registered and discovered?
NetworkAuth binds a Leader capability identity or stable Tool ID to a sequence of Ed25519 keys. Registration requires the matching on-chain capability plus proof of possession of the private key. Only the active, non-revoked key verifies.
A Tool provider uses:
register-key resolves OwnerCap<OverTool> from --owner-cap or the saved CLI Tool record. Its result includes the Tool ID, binding object ID, active Tool key ID, public key, and transaction digest. The key ID selects the active registry entry; the Toolkit config and Tool response do not carry a Tool KID field.
How does key rotation work?
Registering the next Tool key advances the active key ID immediately. Quiesce old producers, register the replacement, update the Toolkit private key, and retry late responses under the new key. --skip-if-active avoids another registration when the same public key is already active, subject to the command's documented concurrent-run race.
The public contract exposes the active Leader key binding and rejects stale, revoked, or mismatched signatures. Details of how a service process starts or rotates its private key are outside the hosted developer documentation; consumers should inspect the public binding and report repeated mismatch evidence with its request or transaction id.
Can a Tool verify Leaders without an RPC read per request?
Yes. Export every registered Leader with an active key, or keep the file synchronized:
Use repeated --leader <LEADER_CAP_ID> instead of --all when the Tool should trust a bounded set. sync-allowed-leaders --once performs one atomic refresh and exits. A file-backed Toolkit resolver reloads the path during key lookup, so the sync process remains outside the request path.
Where do I go next?
Verification — how
RegisteredKeyandExternalaccept or reject evidence.Verify an off-chain Tool result — configure the complete v3 path.
Registries and Discovery — understand the public Leader identity and active-key binding.
Authorization and fixed Tools — understand Agent grants and fixed identity.
network_authand Network Authentication Actions — inspect the exact registry and SDK surfaces.Glossary — review grant, active-key, and proof-of-possession terms.
Last updated

