DURABLE TURNRoomTurnJob 跨崩溃恢复RoomTurnJob survives crashes
每个房间动作持久化 queued / running / waiting / succeeded / failed / cancelled 状态、lease、heartbeat、重试与结果引用。浏览器、Web、Agent 和 MCP 复用同一业务幂等键;base_revision 冲突返回可恢复结果,LLM turn 期间不持有房间或数据库锁。Every room action persists queued / running / waiting / succeeded / failed / cancelled state, lease, heartbeat, retries, and a result reference. Browser, Web, Agent, and MCP reuse one business idempotency key; base_revision conflicts are recoverable, and no room or database lock is held for the LLM turn.
STANDARD MCP MEDIA保留 CallToolResultPreserve CallToolResult
Hosted worker 保留标准 MCP text、image、audio、resource 与 embedded-resource 内容。Web 保存原始结果,再通过内部 HostMediaEnvelope 投影为受 audience 约束的私有 artifact/object ID;房间图片与战斗 grid 不需要私有 MCP wire protocol。Hosted workers preserve standard MCP text, image, audio, resource, and embedded-resource content. Web stores the original result, then projects it through an internal HostMediaEnvelope into audience-bound private artifact/object IDs; room images and combat grids need no private MCP wire protocol.
RECEIPT PROJECTION成功 receipt 驱动可重建投影Successful receipts drive rebuildable projections
Web 不直接读取或写入领域权威数据库。成功 MCP receipt 驱动 durable outbox 与带 authority revision、audience 的云端投影;failed、rolled-back 与 no-op 不失效缓存,工具目录也不会因每次战斗写入全量刷新。Web never reads or writes a domain's authoritative database directly. Successful MCP receipts drive a durable outbox and cloud projections carrying authority revision and audience; failed, rolled-back, and no-op work does not invalidate caches, and combat writes do not refresh the entire tool catalog.
TASK NEGOTIATIONHost job 不等于 MCP TaskA Host job is not an MCP Task
RoomTurnJob 覆盖整个 LLM turn。MCP Tasks 仅在协商 io.modelcontextprotocol/tasks 且真正长耗时工具返回 claim 后进入 authenticated poll、cancel 与恢复;普通工具保持同步。RoomTurnJob spans an entire LLM turn. MCP Tasks switch to authenticated poll, cancel, and recovery only after io.modelcontextprotocol/tasks negotiation and a claim from a genuinely long tool; ordinary tools stay synchronous.
WORKSPACE LIFECYCLE只清理由 Host 登记的工作区Clean only Host-registered workspaces
稳定 opaque --workspace-id、TTL、LRU、数量与容量上限约束 managed root;启动时恢复崩溃标记,terminal success 清理登记状态。未知、外部、legacy、symlink 或 active 目录保留给 operator 审核。A stable opaque --workspace-id, TTL, LRU, count, and byte limits bound the managed root; startup recovers crash markers and terminal success cleans registered state. Unknown, external, legacy, symlinked, or active directories remain for operator review.
TRACE + METRICS可追踪,不用高基数标签Traceable without high-cardinality labels
traceparent、tracestate 与 baggage 穿过 Web、Agent 与 MCP。service、MCP phase、projection、durable job、quota 与 outbox 指标保持低基数,不使用 user、campaign、room、run 或 tool args 作为标签。traceparent, tracestate, and baggage cross Web, Agent, and MCP. Service, MCP phase, projection, durable-job, quota, and outbox metrics stay low-cardinality and never label by user, campaign, room, run, or tool arguments.