Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

passport state

Back to all declarations

Status

type

Status is the lifecycle state of an agent identity.

Value

passport.Status

StatusActive

passport.Status

Value

<gnolang.StringValue>

StatusSuspended

passport.Status

Value

<gnolang.StringValue>

StatusRetired

passport.Status

Value

<gnolang.StringValue>

Endpoint

type

Endpoint 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

type

Event is one entry in an agent's append-only lifecycle log.

Value

passport.Event

Agent

type

Agent 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

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.

Open
OID
0aaf6e…c5d5:6
Register details

Inspect func

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.

Open
OID
0aaf6e…c5d5:8
Transfer details

Inspect func

AddOperator

func(id string, op .uverse.address)

AddOperator authorizes an additional address to act as this agent.

Open
OID
0aaf6e…c5d5:9
AddOperator details

Inspect func

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.

Open
OID
0aaf6e…c5d5:10
SetRuntime details

Inspect func

AddEndpoint

func(id string, kind string, uri string)

AddEndpoint advertises a discovery/interaction endpoint.

Open
OID
0aaf6e…c5d5:11
AddEndpoint details

Inspect func

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).

Open
OID
0aaf6e…c5d5:12
DeclareCapability details

Inspect func

Suspend

func(id string)

Suspend and Retire move the lifecycle forward. Retire is terminal.

Open
OID
0aaf6e…c5d5:13
Suspend details

Inspect func

Reactivate

func(id string)

Reactivate returns a suspended agent to active. A retired agent cannot be reactivated.

Open
OID
0aaf6e…c5d5:15
Reactivate details

Inspect func

Get

func(id string) passport.Agent

Get returns a copy of the agent record; panics if unknown.

Open
OID
0aaf6e…c5d5:16
Get details

Inspect func

Exists

func(id string) bool

Exists reports whether an id is registered.

Open
OID
0aaf6e…c5d5:17
Exists details

Inspect func

IsActive

func(id string) bool

IsActive reports whether the agent exists and is in the active state.

Open
OID
0aaf6e…c5d5:18
IsActive details

Inspect func

IsOperator

func(id string, addr .uverse.address) bool

IsOperator reports whether addr is the owner or a listed operator of an active agent — the check other realms should gate agent actions on.

Open
OID
0aaf6e…c5d5:19
IsOperator details

Inspect func

Count

func() int

Count returns the number of registered agents.

Open
OID
0aaf6e…c5d5:20
Count details

Inspect func

setStatus

func(id string, s passport.Status)
Open
OID
0aaf6e…c5d5:21
setStatus details

Inspect func

mustGet

func(id string) *passport.Agent
Open
OID
0aaf6e…c5d5:22
mustGet details

Inspect func

mustOwn

func(id string) (*passport.Agent, .uverse.address)
Open
OID
0aaf6e…c5d5:23
mustOwn details

Inspect func

assert

func(cond bool, msg string)
Open
OID
0aaf6e…c5d5:24
assert details

Inspect func

Render

func(path string) string

Render 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.

Open
OID
0aaf6e…c5d5:25
Render details

Inspect func

renderAgent

func(id string) string
Open
OID
0aaf6e…c5d5:27
renderAgent details

Inspect func

short

func(a .uverse.address) string
Open
OID
0aaf6e…c5d5:28
short details

Inspect func
Status : type =passport.Status
StatusActive : passport.Status =<gnolang.StringValue>
StatusSuspended : passport.Status =<gnolang.StringValue>
StatusRetired : passport.Status =<gnolang.StringValue>
Endpoint : type =passport.Endpoint
Event : type =passport.Event
Agent : type =passport.Agent
agents : *v0.Tree Inspect
Register : func(id string, runtimeDesc string) Inspect
Transfer : func(id string, newOwner .uverse.address) Inspect
AddOperator : func(id string, op .uverse.address) Inspect
SetRuntime : func(id string, runtimeDesc string) Inspect
AddEndpoint : func(id string, kind string, uri string) Inspect
DeclareCapability : func(id string, capab string) Inspect
Suspend : func(id string) Inspect
Retire : func(id string) Inspect
Reactivate : func(id string) Inspect
Get : func(id string) passport.Agent Inspect
Exists : func(id string) bool Inspect
IsActive : func(id string) bool Inspect
IsOperator : func(id string, addr .uverse.address) bool Inspect
Count : func() int Inspect
setStatus : func(id string, s passport.Status) Inspect
mustGet : func(id string) *passport.Agent Inspect
mustOwn : func(id string) (*passport.Agent, .uverse.address) Inspect
assert : func(cond bool, msg string) Inspect
Render : func(path string) string Inspect
renderIndex : func() string Inspect
renderAgent : func(id string) string Inspect
short : func(a .uverse.address) string Inspect