> For the complete documentation index, see [llms.txt](https://docs.talus.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.talus.network/talus-docs-v2.1.0/reference/move/nexus_workflow/execution_submission.md).

# execution\_submission

* [Constants](#constants)
* [Function `commit_off_chain_tool_result_for_walk`](#function-commit_off_chain_tool_result_for_walk)
* [Function `prepare_tool_result_submission_worksheet`](#function-prepare_tool_result_submission_worksheet)
* [Function `release_vertex_authorization_for_onchain_walk`](#function-release_vertex_authorization_for_onchain_walk)
* [Function `create_on_chain_tool_result_for_walk`](#function-create_on_chain_tool_result_for_walk)
* [Function `consume_on_chain_tool_result_for_walk`](#function-consume_on_chain_tool_result_for_walk)

### Constants

```move
#[error]
const EToolResultSubmissionInvalid: vector<u8> = b"Tool result submission is invalid";
```

```move
#[error]
const EWorksheetRequiredStampMissing: vector<u8> = b"Worksheet is missing a required ordered stamp";
```

```move
#[error]
const EWorksheetUnexpectedStampCount: vector<u8> = b"Worksheet has an unexpected stamp count";
```

```move
#[error]
const EWalkDoesNotExpectThisVertex: vector<u8> = b"The walk does not expect this vertex";
```

```move
#[error]
const EExpectedOnchainTool: vector<u8> = b"Expected an onchain tool";
```

```move
#[error]
const EExpectedOffchainTool: vector<u8> = b"Expected an offchain tool";
```

```move
#[error]
const EAgentVertexAuthorizationMissing: vector<u8> = b"Vertex authorization is missing";
```

```move
#[error]
const EDAGMismatch: vector<u8> = b"DAG ID does not match";
```

```move
#[error]
const EWorksheetUidMismatch: vector<u8> = b"Worksheet does not belong to this execution";
```

```move
#[error]
const EWalkAuthorityLeaderMismatch: vector<u8> = b"Leader is not authorized for this walk";
```

```move
#[error]
const EWalkAuthorityWindowExpired: vector<u8> = b"Leader submission window expired";
```

```move
#[error]
const EToolRegistryMismatch: vector<u8> = b"DAG Tool binding is not currently registered";
```

```move
#[error]
const EVerifierConfigurationMissing: vector<u8> = b"Selected verifier configuration is missing";
```

#### Function `commit_off_chain_tool_result_for_walk`

Consumes the prepared worksheet and verifier verdict through the single off-chain submission path.

```move
public fun commit_off_chain_tool_result_for_walk<R>(_permit: &nexus_kernel::runtime_authority::RuntimePermit<R>, dag: &nexus_interface::dag::DAG, execution: &mut nexus_workflow::execution::DAGExecution, tool_registry: &nexus_tool::tool_registry::ToolRegistry, network_auth: &nexus_registry::network_auth::NetworkAuth, worksheet: nexus_primitives::proof_of_uid::ProofOfUID, stamp: nexus_interface::authorization::AgentVertexAuthorizationStamp, verdict: nexus_interface::verifier::VerificationVerdict, leader_cap: &nexus_primitives::owner_cap::CloneableOwnerCap<nexus_registry::leader_cap::OverNetwork>, leader_registry: &nexus_registry::leader::LeaderRegistry, walk_index: u64, expected_vertex: nexus_interface::graph::RuntimeVertex, ctx: &mut sui::tx_context::TxContext)
```

#### Function `prepare_tool_result_submission_worksheet`

Authorizes a leader and returns the exact worksheet plus its typed execution stamp.

```move
public fun prepare_tool_result_submission_worksheet<R>(permit: &nexus_kernel::runtime_authority::RuntimePermit<R>, self: &nexus_interface::dag::DAG, agent_registry: &nexus_registry::agent_registry::AgentRegistry, tool_registry: &nexus_tool::tool_registry::ToolRegistry, network_auth: &nexus_registry::network_auth::NetworkAuth, leader_registry: &nexus_registry::leader::LeaderRegistry, execution: &mut nexus_workflow::execution::DAGExecution, leader_cap: &nexus_primitives::owner_cap::CloneableOwnerCap<nexus_registry::leader_cap::OverNetwork>, walk_index: u64, clock: &sui::clock::Clock, ctx: &mut sui::tx_context::TxContext): (nexus_primitives::proof_of_uid::ProofOfUID, nexus_interface::authorization::AgentVertexAuthorizationStamp)
```

#### Function `release_vertex_authorization_for_onchain_walk`

```move
public fun release_vertex_authorization_for_onchain_walk<R>(_permit: &nexus_kernel::runtime_authority::RuntimePermit<R>, dag: &nexus_interface::dag::DAG, execution: &mut nexus_workflow::execution::DAGExecution, worksheet: &nexus_primitives::proof_of_uid::ProofOfUID, stamp: &nexus_interface::authorization::AgentVertexAuthorizationStamp, leader_cap: &nexus_primitives::owner_cap::CloneableOwnerCap<nexus_registry::leader_cap::OverNetwork>, walk_index: u64): nexus_primitives::authorization::ProvenValue<nexus_interface::authorization::AgentVertexAuthorization>
```

#### Function `create_on_chain_tool_result_for_walk`

Prepares an on-chain Tool result and its execution requirements.

This is the one way transition from the composable \[ProofOfUID] worksheet to \[UIDRequirements]. The requirements bind the expected tool witness and the exact result object that must be finalized.

```move
public fun create_on_chain_tool_result_for_walk<R>(_permit: &nexus_kernel::runtime_authority::RuntimePermit<R>, dag: &nexus_interface::dag::DAG, execution: &mut nexus_workflow::execution::DAGExecution, tool_registry: &nexus_tool::tool_registry::ToolRegistry, worksheet: nexus_primitives::proof_of_uid::ProofOfUID, stamp: &nexus_interface::authorization::AgentVertexAuthorizationStamp, leader_cap: &nexus_primitives::owner_cap::CloneableOwnerCap<nexus_registry::leader_cap::OverNetwork>, leader_registry: &nexus_registry::leader::LeaderRegistry, walk_index: u64, expected_vertex: nexus_interface::graph::RuntimeVertex, ctx: &mut sui::tx_context::TxContext): (nexus_primitives::proof_of_uid::UIDRequirements, nexus_interface::onchain_tool_result::OnchainToolResult)
```

#### Function `consume_on_chain_tool_result_for_walk`

```move
public fun consume_on_chain_tool_result_for_walk<R>(_permit: &nexus_kernel::runtime_authority::RuntimePermit<R>, dag: &nexus_interface::dag::DAG, execution: &mut nexus_workflow::execution::DAGExecution, tool_registry: &nexus_tool::tool_registry::ToolRegistry, result: nexus_interface::onchain_tool_result::OnchainToolResult, leader_cap: &nexus_primitives::owner_cap::CloneableOwnerCap<nexus_registry::leader_cap::OverNetwork>, leader_registry: &nexus_registry::leader::LeaderRegistry, priority_fee_vault: &nexus_registry::priority_fee_vault::PriorityFeeVault, walk_index: u64, expected_vertex: nexus_interface::graph::RuntimeVertex, tool_witness_id: sui::object::ID, commit_gas_charge: u64, settlement_gas_charge: u64, clock: &sui::clock::Clock, ctx: &mut sui::tx_context::TxContext)
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.talus.network/talus-docs-v2.1.0/reference/move/nexus_workflow/execution_submission.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
