Repository navigation
Description
结论
OMP Live Session Sharing 展示了 OpenPI 当前没有的完整产品能力:其他终端或浏览器实时观看同一 Session,也可在授权后 prompt、interrupt 和控制 Subagent;host 仍是唯一执行权威,relay 只转发端到端加密 payload。
这跨越 Pi Session、controller ownership、身份、权限、远程传输、事件复制、浏览器 UI 与威胁模型,不是一个小 extension。
建议把它作为 OpenPI Web #76 的后续研究轨:先研究本地 observer/controller 协议,再决定是否值得做远程多人协作。#76 明确暂不承诺多人协作,本 Issue 不扩大其第一阶段。
对比证据
固定审查点:
OMP guest 原生渲染 host Session 的 streaming text、tool cards 与 footer;full-control guest 可 prompt/interrupt,host 执行 Agent 和工具。OMP overview
权限由两种 link capability 区分:32-byte key 是 view-only,额外 16-byte write token 才有写权;Session payload 用 AES-256-GCM sealed。OMP security
Writable guest 可读完整历史、prompt、interrupt、操作 Agent Hub 和回答 UI request;view-only 只能读,host-only mutation command 仍保留在 host。OMP permissions
OMP production relay 源码/独立二进制当前未发布;仓库只有本地 stand-in。复制协议分开 snapshot、entry、event、state、bus、agents 与 UI request。OMP relay/replication
OpenPI #76 已提出本地 Web Host、snapshot/events/commands/receipts,以及 observer/controller/detached 三态;默认 loopback,公网另行设计。
OMP 的优势
- host-authoritative,不把 guest 变成 peer Runtime;
- read-only 与 write capability 分开;
- transcript、live events、Subagent 状态与 UI request 都有 wire frame;
- browser guest 无需安装;
- relay 看不到 Session plaintext。
不应直接照抄
- link-as-authority 可能经浏览器历史、聊天、截图或日志泄露;
- 显示名不足以成为可验证 actor identity;
- 完整 back-transcript 默认共享可能泄露 secret 与工具输出;
- remote kill/revive/steer 必须与 parent authority 和 delivery owner 统一;
- 核心能力不能依赖无法自托管/审查的 relay;
- TUI/Web/remote guest 不能无序并发写同一 Session。
研究问题
- Pi Session 能否提供稳定 snapshot + monotonic event cursor?
- 谁是唯一 controller,transfer 如何授权、撤销、超时和恢复?
- command 是否需要 id、actor、expected epoch 与 receipt?
- 断线重连如何避免重复命令和漏事件?
- observer/controller capability 是否短时、可撤销、一次性兑换?
- 分享前如何 preview/redact transcript、artifact、路径与 secret?
- guest prompt 如何向模型保留可验证来源?
- view-only 是否已覆盖大部分真实需求?
- 无 Web/Collab 时能否保持零 server/network/schema/prompt tax?
建议顺序
- 先定义 snapshot(cursor)、event(sequence, epoch)、command(id, actor, expectedEpoch)、receipt 与 controller lease。
- 基于 [Roadmap] OpenPI Web:像 Codex / Kimi Code 一样的本地浏览器 Agent 工作台 #76 做本地只读 observer:仅 loopback,无 prompt/interrupt。
- 做本地单 controller:TUI/Web 二选一,transfer 有确认,stale/replay command 被拒绝。
- 再研究远程 view-only:E2EE、短时可撤销 capability、分享预览、自托管 relay、背压与重放。
- 远程 write collaboration 最后单独决策。
验收标准
- 不扩大 [Roadmap] OpenPI Web:像 Codex / Kimi Code 一样的本地浏览器 Agent 工作台 #76 第一阶段
- 稳定 snapshot/event/command/receipt 协议
- controller ownership/transfer 可证明
- actor identity 的审计与 model-visible 策略明确
- transcript/artifact/secret 分享边界可检查
- relay 可审查或自托管
- remote disabled 时零网络、零 resident server、零上下文税
- view-only 验证后才决定 remote write
暂不做
- 不承诺公网服务;
- 不承诺多人同时写;
- 不直接复制 link-as-authority;
- 不让 browser/guest 成为第二 Session source of truth;
- 不在 [Roadmap] OpenPI Web:像 Codex / Kimi Code 一样的本地浏览器 Agent 工作台 #76 本地 Web 原型前实现协作。
Activity
627150795 commentedon Aug 29, 2026
I am taking a focused research slice: define the local read-only Observer contract that can precede any Web or relay work. This pass will specify snapshot/cursor, event ordering, session identity, redaction, backpressure, and zero-network guarantees; it will not add a Web server, relay, remote controller, or write capability.
627150795 commentedon Aug 29, 2026
I opened #263 (#263) for the focused local Observer slice. It defines a read-only snapshot/event contract with validated Session identity, bounded and redacted projections, stale-cursor resync, backpressure, lifecycle isolation, and zero-network guarantees. The docs checks passed:
git diff --check,bun run lint, andbun run typecheck. It does not add Web, relay, remote control, or write capability.