Build the callout's permissionsFor hook. Maps ValidatedUserToken → MintPrincipal → core's
permissionsFor("agent", …). connId here is the connection name the callout reads from
req.connect_opts.name (NOT req.user_nkey, which the client cannot know pre-connect). The callout
accepts a legacy nonce or <owner>-<actor>-<nonce> for this bearer's own principal. It scopes
the reply inbox _INBOX_<connId>.>. readerId is the
connection's server-assigned history-reader id
(core's calloutReaderId), which keys the admin view's reader deletes.
Invariants enforced HERE (not in core):
u_…) — user mode never accepts the reserved dev local owner;act.scope is the SINGLE capability authority: a token that ALSO carries a top-level scope must
have them agree, else it is rejected (the confused-authority guard the Q4 review required closed the
moment permissionsFor(validated) became production).Build the callout's permissionsFor hook. Maps ValidatedUserToken → MintPrincipal → core's
permissionsFor("agent", …). connId here is the connection name the callout reads from
req.connect_opts.name (NOT req.user_nkey, which the client cannot know pre-connect). The callout
accepts a legacy nonce or <owner>-<actor>-<nonce> for this bearer's own principal. It scopes
the reply inbox _INBOX_<connId>.>. readerId is the
connection's server-assigned history-reader id
(core's calloutReaderId), which keys the admin view's reader deletes.
Invariants enforced HERE (not in core):
u_…) — user mode never accepts the reserved dev local owner;act.scope is the SINGLE capability authority: a token that ALSO carries a top-level scope must
have them agree, else it is rejected (the confused-authority guard the Q4 review required closed the
moment permissionsFor(validated) became production).Build the callout's permissionsFor hook. Maps ValidatedUserToken → MintPrincipal → core's
permissionsFor("agent", …). connId here is the connection name the callout reads from
req.connect_opts.name (NOT req.user_nkey, which the client cannot know pre-connect). The callout
accepts a legacy nonce or <owner>-<actor>-<nonce> for this bearer's own principal. It scopes
the reply inbox _INBOX_<connId>.>. readerId is the
connection's server-assigned history-reader id
(core's calloutReaderId), which keys the admin view's reader deletes.
Invariants enforced HERE (not in core):
u_…) — user mode never accepts the reserved dev local owner;act.scope is the SINGLE capability authority: a token that ALSO carries a top-level scope must
have them agree, else it is rejected (the confused-authority guard the Q4 review required closed the
moment permissionsFor(validated) became production).Build the callout's permissionsFor hook. Maps ValidatedUserToken → MintPrincipal → core's
permissionsFor("agent", …). connId here is the connection name the callout reads from
req.connect_opts.name (NOT req.user_nkey, which the client cannot know pre-connect). The callout
accepts a legacy nonce or <owner>-<actor>-<nonce> for this bearer's own principal. It scopes
the reply inbox _INBOX_<connId>.>. readerId is the
connection's server-assigned history-reader id
(core's calloutReaderId), which keys the admin view's reader deletes.
Invariants enforced HERE (not in core):
u_…) — user mode never accepts the reserved dev local owner;act.scope is the SINGLE capability authority: a token that ALSO carries a top-level scope must
have them agree, else it is rejected (the confused-authority guard the Q4 review required closed the
moment permissionsFor(validated) became production).Build the callout's permissionsFor hook. Maps ValidatedUserToken → MintPrincipal → core's
permissionsFor("agent", …). connId here is the connection name the callout reads from
req.connect_opts.name (NOT req.user_nkey, which the client cannot know pre-connect). The callout
accepts a legacy nonce or <owner>-<actor>-<nonce> for this bearer's own principal. It scopes
the reply inbox _INBOX_<connId>.>. readerId is the
connection's server-assigned history-reader id
(core's calloutReaderId), which keys the admin view's reader deletes.
Invariants enforced HERE (not in core):
u_…) — user mode never accepts the reserved dev local owner;act.scope is the SINGLE capability authority: a token that ALSO carries a top-level scope must
have them agree, else it is rejected (the confused-authority guard the Q4 review required closed the
moment permissionsFor(validated) became production).OptionalresolvePluginChannelState: (space: string) => Promise<{ enabled: boolean }>
Build the callout's
permissionsForhook. MapsValidatedUserToken→MintPrincipal→ core'spermissionsFor("agent", …).connIdhere is the connectionnamethe callout reads fromreq.connect_opts.name(NOTreq.user_nkey, which the client cannot know pre-connect). The callout accepts a legacy nonce or<owner>-<actor>-<nonce>for this bearer's own principal. It scopes the reply inbox_INBOX_<connId>.>.readerIdis the connection's server-assigned history-reader id (core'scalloutReaderId), which keys the admin view's reader deletes.Invariants enforced HERE (not in core):
u_…) — user mode never accepts the reserved devlocalowner;act.scopeis the SINGLE capability authority: a token that ALSO carries a top-levelscopemust have them agree, else it is rejected (the confused-authority guard the Q4 review required closed the momentpermissionsFor(validated)became production).