Status
typeStatus is the lifecycle state of an agent identity.
Value
passport.Status
StatusActive
passport.StatusValue
<gnolang.StringValue>
StatusSuspended
passport.StatusValue
<gnolang.StringValue>
StatusRetired
passport.StatusValue
<gnolang.StringValue>
Endpoint
typeEndpoint advertises where the agent can be reached or discovered (e.g. an MCP server, an A2A endpoint, a DID document, an ENS name).
Value
passport.Endpoint
Event
typeEvent is one entry in an agent's append-only lifecycle log.
Value
passport.Event
Agent
typeAgent is a persistent, importable identity object. Other realms can import this package and ask questions like IsActive / IsOperator directly, instead of parsing NFT metadata scattered across contracts.
Value
passport.Agent
agents
*v0.Tree// id -> \*Agent
- OID
- 0aaf6e…c5d5:4
agents details
Register
func(id string, runtimeDesc string)Register creates a new agent identity owned by the caller. The id must be a non-empty, previously unused slug.
- OID
- 0aaf6e…c5d5:6
Register details
Transfer
func(id string, newOwner .uverse.address)Transfer hands ownership of an agent to a new address. Only the current owner may call it. Ownership changes are the single most important thing to keep visible: the operator behind an identity may become someone else.
- OID
- 0aaf6e…c5d5:8
Transfer details
AddOperator
func(id string, op .uverse.address)AddOperator authorizes an additional address to act as this agent.
- OID
- 0aaf6e…c5d5:9
AddOperator details
SetRuntime
func(id string, runtimeDesc string)SetRuntime records a change of the agent's runtime/model. This is logged loudly: a runtime change means the thing acting under this identity is (partly) a different thing than before.
- OID
- 0aaf6e…c5d5:10
SetRuntime details
AddEndpoint
func(id string, kind string, uri string)AddEndpoint advertises a discovery/interaction endpoint.
- OID
- 0aaf6e…c5d5:11
AddEndpoint details
DeclareCapability
func(id string, capab string)DeclareCapability records a capability the agent claims to offer. Note: this is a \*claim\*, not proof. Validation belongs to other realms (see the receipt and gnomem demos).
- OID
- 0aaf6e…c5d5:12
DeclareCapability details
Suspend
func(id string)Suspend and Retire move the lifecycle forward. Retire is terminal.
- OID
- 0aaf6e…c5d5:13
Suspend details
Retire
func(id string)- OID
- 0aaf6e…c5d5:14
Retire details
Reactivate
func(id string)Reactivate returns a suspended agent to active. A retired agent cannot be reactivated.
- OID
- 0aaf6e…c5d5:15
Reactivate details
Get
func(id string) passport.AgentGet returns a copy of the agent record; panics if unknown.
- OID
- 0aaf6e…c5d5:16
Get details
Exists
func(id string) boolExists reports whether an id is registered.
- OID
- 0aaf6e…c5d5:17
Exists details
IsActive
func(id string) boolIsActive reports whether the agent exists and is in the active state.
- OID
- 0aaf6e…c5d5:18
IsActive details
IsOperator
func(id string, addr .uverse.address) boolIsOperator reports whether addr is the owner or a listed operator of an active agent — the check other realms should gate agent actions on.
- OID
- 0aaf6e…c5d5:19
IsOperator details
Count
func() intCount returns the number of registered agents.
- OID
- 0aaf6e…c5d5:20
Count details
setStatus
func(id string, s passport.Status)- OID
- 0aaf6e…c5d5:21
setStatus details
mustGet
func(id string) *passport.Agent- OID
- 0aaf6e…c5d5:22
mustGet details
mustOwn
func(id string) (*passport.Agent, .uverse.address)- OID
- 0aaf6e…c5d5:23
mustOwn details
assert
func(cond bool, msg string)- OID
- 0aaf6e…c5d5:24
assert details
Render
func(path string) stringRender shows the registry, or a single agent's profile + lifecycle log at r/moul/agents/passport:\<id>. The profile deliberately foregrounds drift: how many owner and runtime changes have happened since creation.
- OID
- 0aaf6e…c5d5:25
Render details
renderIndex
func() string- OID
- 0aaf6e…c5d5:26
renderIndex details
renderAgent
func(id string) string- OID
- 0aaf6e…c5d5:27
renderAgent details
short
func(a .uverse.address) string- OID
- 0aaf6e…c5d5:28