🧩Configure DAG and Skill
The Move package now compiles and exposes transfer_vertex::execute. Before we publish, we need to teach the workflow about it. That happens in two files:
dag.json— the workflow definition. We tell it about the on-chain vertex, its FQN, and which entry ports we'll feed at execute time.skill.tap.json— the Talus Agent Package (TAP) skill manifest. We point it at the DAG and keep the rest of the requirements at scaffold defaults. The CLI resolves the siblingtap/package automatically.
Both files were created by nexus tap scaffold with off-chain-tool defaults. We're going to overwrite them.
1. Rewrite dag.json
The scaffold writes a one-vertex DAG referencing a placeholder off-chain weather tool. Replace it with our on-chain transfer vertex:
{
"vertices": [
{
"kind": {
"variant": "on_chain",
"tool_fqn": "tutorial.local.transfer_vertex@1"
},
"name": "transfer_vertex",
"entry_ports": [{ "name": "0" }, { "name": "1" }]
}
],
"edges": []
}What's going on:
variant: "on_chain"flips the vertex kind. The workflow runtime will expect an on-chain Move tool registered under the FQN below.tool_fqn: "tutorial.local.transfer_vertex@1"is the FQN you set in the Move source and that the registration on the next page will use. The Move source, the DAG, and the on-chain Tool registration must all agree on this string.name: "transfer_vertex"is the vertex name inside the DAG. It's what we type when we feed inputs at execute time (--input-json '{"transfer_vertex": {...}}').entry_portslists the inputs the workflow will collect from the invoker. Port"0"is thestateobject and port"1"is the recipient address.UIDRequirements,OnchainToolResult, andTxContextare framework inputs and do not appear as entry ports, so the user inputs line up withexecute(requirements, result, state, recipient, ctx).
You're not declaring types here; the leader reads the registered tool's input schema at runtime and validates the entry-port JSON against it.
2. Rewrite skill.tap.json
Field by field:
dag_pathis relative to this file. The TAP package is always the siblingtap/directory for this CLI workflow.requirements.input_commitmentis an opaque byte vector in the local config. The laternexus tap create-skill-artifactcommand derives the on-chain artifact commitment from the published DAG's actual entry inputs, so do not hand-copy this placeholder into an artifact.payment_policy: "UserFunded"allows an address-funded Task to reserve MIST from the configured signer's Nexus SUI balance. The alternative shape is{"AgentFunded": {"max_budget_mist": <MIST>}}, which draws from the Agent's payment vault and caps its budget.schedule_policy: "Once"permits one-shot scheduling. Recurring skills use{"Recurring": {"min_interval_ms": <MS>, "max_occurrences": <COUNT or null>}}.fixed_tools: []means this skill records no required Tool FQNs. Fixed tools are FQN registration dependencies, not authorization grant lists or a proof that a Tool remains in the selected DAG; verify DAG vertices and Tool IDs separately.shared_objects: []leaves reusable shared-object aliases empty because this guide suppliesTutorialStatedirectly in Task inputs.interface_revision.inner: 1is the Talus Agent skill interface generation used by this guide;nexus tap update-skilladvances a live skill revision when its DAG or requirements change.
3. Dry-run
Run the local dry-run to confirm the DAG, the on-chain Tool reference, and the skill requirements all line up:
You should see the validation summary again — no chain calls happen. This local check parses the config and DAG and validates the TAP manifest/source layout. Registration later derives the Tool schema from Move, and DAG publication binds the vertex to that registered schema.
Note:
dry-rundoes not publish or execute the Move Tool. The Tool only runs after a Task Occurrence is dispatched and a leader creates its Execution.
4. What changed
You now have:
A
dag.jsonwhose only vertex is the on-chain transfer tool we wrote.A
skill.tap.jsonwhosepayment_policymakes the invoker pay for each execution, whoseschedule_policykeeps everything single-shot, and whosefixed_toolsrequirement is empty.A
validate-skillanddry-runthat both pass.
Everything is still local — nothing has touched the chain yet. The next page publishes the Move package, registers the on-chain Tool, publishes the DAG, creates its artifact, and binds the Agent.
Next: Publish, register, bind.
Last updated

