@agenticprimitives/runtime-member

中文文档
0.0.0-alpha.27发布于 2026/10/26MITTypeScriptES Module近 30 天下载 4642

ADMISSION of an existing general-purpose runtime as a workspace MEMBER, without a rewrite (spec 400 W1 — admission, not 'add coding'): ap runtime join (the .svc member's key and session wire, its steward link and playbook), ap runtime mcp (the workspa

原始使用文档

@agenticprimitives/runtime-member

Part of Agentic Primitives — the open-source trust substrate for agentic applications: identity that can sign, authority checked at act time, evidence the owner carries. Developer kit · All packages

Admit an existing runtime — Claude Code, goose, Codex, anything that speaks the Agent Client Protocol — as a member of a workspace, without a rewrite, with the workspace deciding what it may do at every act. Admission, not "add coding": what the runtime is for is its own business; what it may do here is the member's grant.

# 1. the steward charters goose-1.svc through the Home and invites it to the organization (a member like any other)
# 2. on the machine that runs goose:
ap runtime join --member goose-1.svc --workspace missio-nexus.org \
  --home <home> --edge <edge> --a2a <runtime> --chain faithchain --handle alice --registry <skills registry>
ap runtime run  --member goose-1.svc --agent "goose acp"

join generates the runtime's own key here, has the member's custodian sign a session wire (member → key, pinned to harness.ask, time-bounded, revocable on chain), records the steward link and assigns the runtime-member playbook. run polls the member's own inbox, hands each new message to the agent as an ACP prompt with the workspace context, and sends the answer back as the runtime — an act that parks for the steward's signature, which the loop reports. The agent reaches the workspace through the workspace MCP server (ap runtime mcp): workspace_ask, workspace_reply, workspace_inbox, workspace_status — each a wire-signed A2A request as the runtime itself.

Hosted next to the Worker (W1c). The same loop, woken instead of clocked: ap runtime serve listens for POST /wake from the workspace's queue consumer and runs one pass per wake. Declare where the runtime lives at join (--wake container, or --wake https://… for a host of your own; ap runtime host … none to go back to polling), then hand the Container the record without its key (ap runtime export → AP_RUNTIME_RECORD) and the wire's key (AP_RUNTIME_KEY) as secrets. A wake carries the member, the thread and a message id — no content, no authority; the runtime reads under its own wire. Compromise the Container and you hold a revocable wire, not the agent.

The open mandate (W2a). Every write parks — the reply included — unless the steward decides once: ap runtime grant --member goose-2.svc --handle alice --to alice.me messaging.direct.send signs a standing grant (member → the runtime's key, one capability, named recipients, 30 days, no intent binding). When a reply then parks, the loop derives the child for that very intent, signs it with its own key, and continues the run presenting [child, standing]; the harness verifies the chain and the message leaves on the member's own rail (ap runtime messaging --to … enables it). A commit, an allocation, a payment still park; revoke the grant on chain and the next derivation is refused. Nothing of anyone else's is ever held.

What never happens here: the runtime holds a person's session; a parked act is retried; a permission prompt about the agent's own shell authorizes anything in the workspace.

版本与发布记录

@agenticprimitives/runtime-member 共发布 26 个版本,首次发布于 2026/09/16;过去 12 个月发布了 26 个版本。

版本发布日期距今
0.0.0-alpha.27latest2026/10/2612 天前
0.0.0-alpha.262026/10/2612 天前
0.0.0-alpha.252026/10/1721 天前
0.0.0-alpha.242026/10/1722 天前
0.0.0-alpha.232026/10/1722 天前
0.0.0-alpha.222026/10/1622 天前

关于 @agenticprimitives/runtime-member 的常见问题

@agenticprimitives/runtime-member 是什么?

ADMISSION of an existing general-purpose runtime as a workspace MEMBER, without a rewrite (spec 400 W1 — admission, not 'add coding'): ap runtime join (the .svc member's key and session wire, its steward link and playbook), ap runtime mcp (the workspa

如何安装 @agenticprimitives/runtime-member?

在项目目录运行 npm install @agenticprimitives/runtime-member,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:viem(^2.52.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 ap-runtime,可以用 npx ap-runtime 直接运行。

@agenticprimitives/runtime-member 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@agenticprimitives/runtime-member 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@agenticprimitives/runtime-member 可以商用吗?

@agenticprimitives/runtime-member 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@agenticprimitives/runtime-member 的下载量有多少?

根据 npm 官方下载统计,@agenticprimitives/runtime-member 在 2026/10/05 – 2026/11/03 这 30 天内被下载 4,642 次,日均约 155 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@agenticprimitives/runtime-member 还在维护吗?

最新版本 0.0.0-alpha.27 发布于 2026/10/26(12 天前);至今共发布 26 个版本,其中过去 12 个月发布了 26 个;首次发布于 2026/09/16。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。