🧭Choose an Agent Architecture
Use this page before scaffolding. It is a decision guide: after you choose a path, follow the linked task guide for exact commands and verification.
The architecture figure separates the builder’s identity choice from the durable runtime path: the deployment-operator-provisioned, registry-owned default executor, a registry Agent with named SkillRecords, and a Talus Agent Package (TAP) with package-specific state all converge on Task, Occurrence, Execution, and payment. The dashed branch is the exact policy-backed Invocation and receipt path. If a hosted view omits those fields, verify them through matching CLI/SDK object reads and transaction effects instead of treating the UI projection as a second payment model.
Prerequisites
Complete Developer Setup with the pinned CLI, authenticated network objects, signer, and SUI address-balance funding.
Know which Tool FQNs and DAG schemas exist on the target network; inspect them rather than assuming example Tools are deployed.
Decide which application state or assets, if any, must remain under package-specific Move authorization.
Choose the identity and state boundary
Run a published DAG without a custom identity
The registry-owned default Agent and an address-controlled Task
Task → Occurrence → Execution evidence tied to the selected DAG
Reuse named skills under one on-chain identity
A registry Agent with SkillRecords
Agent identity, active skill revision, DAG/payment/schedule requirements
Keep application assets and an Agent inside one Move package
A Talus Agent Package (TAP)
Package state plus embedded Agent and package-specific authority
Choose a TAP only when the package must enforce state or custody invariants that generic Nexus objects cannot enforce. An Agent is an identity/custody handle; its active skill metadata lives in AgentRegistry.
Default-DAG prerequisite
The default-Agent row assumes the deployment operator has already bootstrapped the registry-owned default DAG executor. Before choosing --dag-id, run nexus tap default-agent show --json and record the configured Agent/skill and runtime-selected target. If readback reports AgentRegistry missing default agent or the on-chain lookup raises EDefaultDagExecutorMissing, hand setup to the deployment operator; builders do not create this shared executor through a normal Task command.
Choose the Tool boundary
External API, model, or off-chain computation
Off-chain HTTP Tool
HTTPS transport, optional RegisteredKey or External verification, runtime-held secrets
Atomic on-chain state change
Standard on-chain Tool
Registered schema and witness; any compatible caller can invoke unless the package adds authority checks
Agent-asset mutation
WorkflowAuthorization on-chain Tool
Recipient-bound AgentVertexAuthorization plus package-specific capability, sender, amount, and state checks
Fixed Tools record required FQNs in a skill and make registration check that each FQN is registered at transaction time; they do not independently prove DAG membership, stored registry-ID correspondence, or asset authority. Read back the selected DAG vertex, Tool ID, registry ID, and schema after binding. Build the chosen Tool through Tool Development before binding its FQN into a DAG.
Choose who funds each run
User-funded: the submitting signer funds
TaskPaymentReservefrom an address balance and is the address-controlled Task's controller; unused scheduled funds return through the recordedrefund_recipientpath, which may be a different UserFunded beneficiary.Agent-funded: the matching
AgentPaymentVaultfunds the reserve, subject to the skill'smax_budget_mist; unused funds return to that Agent vault.
Both paths still use the submitter's SUI address balance or an explicit gas coin for immediate transaction gas. Tool charges, eligible Leader reimbursement, and priority charges settle inside ExecutionPayment; they are not the same as submission gas.
Before executing a workflow: Verify that the selected client, generated bindings, package IDs, and transaction effects agree with the target network. When a hosted projection omits Invocation fields, use direct object/effect reads rather than substituting a FQN, cashier candidate, or UI label.
Verify the settlement outcome
Create a Task, observe its Occurrence, follow the linked Execution, inspect the ExecutionPayment lock and exact Invocation, settle the Occurrence, and reconcile the Task reserve before closing. The caller may choose an accepted policy after skill and DAG checks pass, while the Tool owner controls which policies the ToolCashier accepts. Read Invocation policy and settlement model before choosing FixedPrice, including price zero, FiniteCredits, TimePass, or a custom policy. Record the Invocation ID, lock, settlement/refund receipt, and transaction effects; do not treat a ToolCashier capability as a general execution grant.
Choose timing and lifecycle
Use
--nowfor an immediately eligible Occurrence under a Task.Use standalone future Occurrences for known one-off times.
Use one lazy Recurrence for bounded periodic work.
Every path is Task → Occurrence → Execution. Existing Tasks pin the resolved Agent, skill, interface revision, inputs, and authorization. Close scheduled Tasks before updating that Skill; new work cannot select an obsolete revision.
Verification checklist
Inspect every Tool FQN, schema, verifier support, and registration state.
Validate the DAG and confirm every entry/default/output port matches those live schemas.
Read back the Agent skill’s active revision, payment policy, schedule policy, input commitment, and fixed Tools.
Create one Task and record its controller, funding source, reserve, and first Occurrence.
Follow the Execution, inspect each
ExecutionPaymentVertexLockwith its exact Invocation ID and lock/settlement receipt, settle the Occurrence, and verify the Task reserve/refund state before calling the flow complete.If a hosted projection omits Invocation reads, use selected-build help, matching bindings, direct object reads, and transaction effects; record the projection gap rather than accepting weaker identity evidence.
Common mistakes and recovery
Choosing a TAP for metadata only: use a registry Agent unless package-owned state or authority is required.
Treating a fixed Tool as authorization: add an authorized Tool entry and package checks; do not move real assets through the disposable Standard-mode tutorial.
Updating a Skill with live Tasks: the registry can advance or deactivate the active contract while older Tasks remain open; those Tasks keep their snapshot and may become stale or inactive at admission. Close an idle old Task and create new Tasks from the new revision when the workflow must adopt it.
Assuming examples are deployed: replace example FQNs and schemas with inspected network records before DAG validation.
Closing before settlement: finish the Execution, resolve its exact Invocation, settle the Occurrence, and reconcile the reserve before closing the Task.
Next
Continue with Build an Agent Package for a registry Agent, Scaffold a TAP for package-owned state, or Schedule an Asset-Management Flow for a default-Agent DAG.
Last updated

