Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ Todo として計画して、ホストの有効化をガイドします。アク
[Getting Started](docs/guides/getting-started.md) にあります。ホスト連携では、
[Codex App のホストコマンドレジストリ契約](docs/reference/protocols/codex-app-host-command-registry-v0.md)、
[Codex CLI のパッケージインストール手順](docs/product/runtimes/codex-cli/codex-cli-packaged-install.md)、
[Claude Code アダプター](loopx/claude_goal_mode/README.md)、
[KunlunCode のネイティブ Goal アダプター](loopx/kunluncode_goal_mode/README.md)、
[Claude Code アダプター](loopx/hosts/claude/README.md)、
[KunlunCode のネイティブ Goal アダプター](loopx/hosts/kunluncode/README.md)、
[Kiro CLI の goal-mode アダプター](loopx/kiro_cli_goal_mode/README.md)、または
[DeepSeek Harness のターンアダプター](loopx/dsh_goal_mode/README.md)を確認できます。

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ The exact, copy-ready setup messages and host recovery paths live in
[Getting Started](docs/guides/getting-started.md). Host integrations can inspect
the [Codex App host command registry contract](docs/reference/protocols/codex-app-host-command-registry-v0.md),
the [Codex CLI packaged install path](docs/product/runtimes/codex-cli/codex-cli-packaged-install.md),
the [Claude Code adapter](loopx/claude_goal_mode/README.md), the
[KunlunCode native Goal adapter](loopx/kunluncode_goal_mode/README.md), the
the [Claude Code adapter](loopx/hosts/claude/README.md), the
[KunlunCode native Goal adapter](loopx/hosts/kunluncode/README.md), the
[Kiro CLI goal-mode adapter](loopx/kiro_cli_goal_mode/README.md), or the
[DeepSeek Harness turn adapter](loopx/dsh_goal_mode/README.md).

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ LoopX 会复用项目已有状态或连接项目,把工作规划成 Todo,并
[Getting Started](docs/guides/getting-started.md)。Host 集成还可以查看
[Codex App host command registry](docs/reference/protocols/codex-app-host-command-registry-v0.md)、
[Codex CLI packaged install](docs/product/runtimes/codex-cli/codex-cli-packaged-install.md)和
[Claude Code adapter](loopx/claude_goal_mode/README.md)、
[Claude Code adapter](loopx/hosts/claude/README.md)、
[KunlunCode 原生 Goal adapter](docs/guides/kunluncode-adapter.zh-CN.md)、
[Kiro CLI goal-mode adapter](loopx/kiro_cli_goal_mode/README.md),以及
[DeepSeek Harness turn adapter](loopx/dsh_goal_mode/README.md)。
Expand Down
2 changes: 1 addition & 1 deletion apps/presentation/dashboard/src/data/zcode-goal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ZCODE_GOAL_ACTIONS, ZCODE_NATIVE_GOAL_STATUSES, ZCODE_IDENTITY_SCOPES, type ZCodeGoalAction, type ZCodeGoalReadback, type ZCodeModelSelection } from "../../../../../loopx/zcode_goal_mode/contract.js";
import { ZCODE_GOAL_ACTIONS, ZCODE_NATIVE_GOAL_STATUSES, ZCODE_IDENTITY_SCOPES, type ZCodeGoalAction, type ZCodeGoalReadback, type ZCodeModelSelection } from "../../../../../loopx/hosts/zcode/contract.js";
import {z} from "zod";
import {requestJson} from "./chat.js";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {CircleHelp} from "lucide-react";
import {ContextHelp} from "./context-help";
import { useCallback, useEffect, useRef, useState } from "react";
import { fetchZCodeGoal, updateZCodeGoal } from "../../data/zcode-goal";
import type { ZCodeGoalAction, ZCodeGoalReadback, ZCodeModelSelection } from "../../../../../../loopx/zcode_goal_mode/contract.js";
import type { ZCodeGoalAction, ZCodeGoalReadback, ZCodeModelSelection } from "../../../../../../loopx/hosts/zcode/contract.js";
import { useWorkspaceI18n, type WorkspaceTranslate } from "./i18n";
import type { WorkspaceGoal } from "./personal-workspace-model";
import "./zcode-goal-control.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ bypass it, quota settlement, permission, lease or revision checks.

### LoopX: an existing native-Goal provider and its recovery boundary

The [managed ZCode provider](../../loopx/zcode_goal_mode/README.md) is a concrete
The [managed ZCode provider](../../loopx/hosts/zcode/README.md) is a concrete
example inside LoopX, not a fifth independent upstream runtime audit. Its
current call chain separates binding, starting and resuming:

Expand All @@ -233,8 +233,8 @@ CLI / Goal drawer -> bridge validates canonical Goal/Agent/project
native completed -> observed only; no automatic Core completion or credit write
```

[`zcode_goal_operation`](../../loopx/zcode_goal_mode/bridge.py) generates a new
canonical heartbeat task for bind/start. [`NativeGoalController`](../../loopx/zcode_goal_mode/runtime.ts)
[`zcode_goal_operation`](../../loopx/hosts/zcode/bridge.py) generates a new
canonical heartbeat task for bind/start. [`NativeGoalController`](../../loopx/hosts/zcode/runtime.ts)
serializes operations and preserves the native session/target on resume. Its
admission is validation → quota → validation. A lost `setGoal` reply is
recoverable only when a durable admitted start intent and objective hash match;
Expand All @@ -254,7 +254,7 @@ then observes the first new protected action. It must use current owning
revisions, or remain pending/paused at an unsupported refresh boundary. Do not
replace that evidence with a hash of the entire prompt or rewrite the old receipt.

The [broker](../../loopx/zcode_goal_mode/cli.ts) schedules another monitor about
The [broker](../../loopx/hosts/zcode/cli.ts) schedules another monitor about
two seconds after a serialized check completes; its admission subprocesses each
have a ten-second timeout. Online status can recheck quota and pause a target,
so it is not a purely observational operation. Pause/stop also contend with the
Expand Down Expand Up @@ -760,7 +760,7 @@ operation and current source revisions to join observations, not a new ledger.
| Commit a result between final drain and idle; deliver duplicates and old wakes after stop, then a newly authorized input | Durable work remains discoverable; prior wakes cannot revive stopped execution; new input re-enters current admission through the same continuation owner | Existing [accepted-result wake](../../loopx/chat_loopx_mode.py) and Host continuation paths; qualify both no duplicate start and no lost work, not just a lock |
| Deliver/retry an exact-Turn steer during tools, context preparation or finalization | Preserve text, ingress and target; show the actual pending/consumed/refused fact and permitted fallback; steering does not imply tool cancellation | [Steering tests](../../tests/test_chat_turn_steering.py) plus each Host's declared consumption boundary; no all-Host inference |
| Lose the reply after native set; replay an old operation, then admit new recovery work | Recover only the target matching durable start intent; cold recovery pauses; old replay is idempotent while a new accountable Turn retains its settlement obligation | Native controller and [Turn recovery](../../loopx/control_plane/turn_driver/turn_journal.ts) are reused; inspect original-operation and new-Turn receipts separately |
| Delay validation/quota while requesting stop; reach the execution deadline and explicitly resume repeatedly | Measure request queueing, native cancellation and confirmed drain; preserve configured cumulative budgets and unknown usage across per-execution timers | [ZCode runtime/broker](../../loopx/zcode_goal_mode/cli.ts) supplies a measurement candidate, not a proved stop SLO or token-usage bound |
| Delay validation/quota while requesting stop; reach the execution deadline and explicitly resume repeatedly | Measure request queueing, native cancellation and confirmed drain; preserve configured cumulative budgets and unknown usage across per-execution timers | [ZCode runtime/broker](../../loopx/hosts/zcode/cli.ts) supplies a measurement candidate, not a proved stop SLO or token-usage bound |
| Cite an omitted result via valid, forged, stale or foreign pages; add a positive finding under different conditions from an old refutation | Replay current source; keep counterevidence scoped and reachable; distinguish bad descriptors from unavailable source. Same-basis pages preserve admission identity; source drift can refresh basis within the original Turn | [Pagination tests](../../tests/control_plane_ts/stride_explore_pagination.test.ts) and Stride §7.6 own these rules; qualify actual omitted-evidence use |
| Commit primary work, then lose Explore attachment/link confirmation | Preserve successful primary work; retry the attachment under the original operation without repeating work or declaring adoption | [Explore writeback tests](../../tests/control_plane/test_explore_result_writeback.py) supply the recovery seam; verify product retry/readback |
| Exercise every enabled periodic-review exit, then disable strategy or omit direction declarations | Progress/successor/blocker/terminal exits retain their current duty; disabling preserves ordinary behavior/history; absent Direction M1 adds no projection or permission | [Stride tests](../../tests/control_plane_ts/stride_policy.test.ts) and [direction tests](../../tests/control_plane_ts/direction_baseline.test.ts); compaction, polling and UI refresh cannot discharge work obligations |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Explore 依据。它验证声明的来源与结构,不认证 Agent 解释为

### LoopX:已有原生 Goal provider 及恢复边界

[Managed ZCode provider](../../loopx/zcode_goal_mode/README.md)是 LoopX 内部的
[Managed ZCode provider](../../loopx/hosts/zcode/README.md)是 LoopX 内部的
具体接入示例,不是第五个上游运行时的独立审计。当前调用链区分绑定、启动与恢复:

```text
Expand All @@ -191,8 +191,8 @@ CLI / Goal drawer → bridge 验证 canonical Goal/Agent/project
native completed → 仅观察,不自动写 Core 完成或额度扣减
```

[`zcode_goal_operation`](../../loopx/zcode_goal_mode/bridge.py)在 bind/start
生成新的规范 heartbeat 正文;[`NativeGoalController`](../../loopx/zcode_goal_mode/runtime.ts)
[`zcode_goal_operation`](../../loopx/hosts/zcode/bridge.py)在 bind/start
生成新的规范 heartbeat 正文;[`NativeGoalController`](../../loopx/hosts/zcode/runtime.ts)
串行执行操作,resume 保留原 native session/target,准入为 validation→quota→validation。
`setGoal` 回执丢失时,仅有持久获准 start intent 与匹配 objective hash 才能恢复;
冷恢复先暂停原 target,不自动续跑。[Controller 测试](../../tests/control_plane_ts/zcode_native_goal.test.ts)
Expand All @@ -207,7 +207,7 @@ Agent 读取当前 Core 状态。待补组合验收应保持同一 Goal instance
无法支持该刷新边界时保持 pending/paused。不能用整段 prompt hash 代替这项证据,
也不能改写旧回执。

[Broker](../../loopx/zcode_goal_mode/cli.ts)在一次串行检查结束后约两秒再安排下次
[Broker](../../loopx/hosts/zcode/cli.ts)在一次串行检查结束后约两秒再安排下次
monitor,每个准入子进程有十秒 timeout。在线 status 可以重查 quota 并暂停 target,
不是对 Host 完全只读。Pause/stop 同样与串行队列竞争。每次执行的一小时安全期限
既不是整个 Goal 的 token 预算,也不是硬实时停机保证;native 用量仍未知。
Expand Down Expand Up @@ -618,7 +618,7 @@ Grok 的[第三方声明](https://github.com/xai-org/grok-build/blob/2bdd1d6a636
| 最后 drain 与 idle 之间提交结果;重复通知、停止后旧 wake,再加入新获准输入 | 持久工作可发现;旧 wake 不复活已停执行;新输入由原接续 owner 按当前准入处理 | 复用[已验收结果 wake](../../loopx/chat_loopx_mode.py) 和 Host 接续路径;同时验证不重复启动与不丢工作,不能只验证锁 |
| 工具、上下文准备或终结期间投递/重试 exact-Turn steer | 文本、ingress、目标不变;如实显示 pending/consumed/refused 和许可 fallback;steering 不等于工具取消 | [Steering 测试](../../tests/test_chat_turn_steering.py) 加每个 Host 的声明消费边界,不推广为全部 Host 通过 |
| Native set 已发生但回执丢失;重放旧操作后再准入新恢复工作 | 只恢复匹配持久 start intent 的 target;冷恢复暂停;旧重放幂等,新 accountable Turn 仍履行结算 | 复用原生控制器和 [Turn recovery](../../loopx/control_plane/turn_driver/turn_journal.ts),分别检查原操作与新 Turn 回执 |
| Validation/quota 变慢时请求停止;到单次 deadline 后多次显式恢复 | 分别测请求排队、原生取消与确认 drain;跨计时器保留配置的累计预算及 unknown 用量 | [ZCode runtime/broker](../../loopx/zcode_goal_mode/cli.ts) 是测量候选,不是已证明的停止 SLO 或 token 用量限制 |
| Validation/quota 变慢时请求停止;到单次 deadline 后多次显式恢复 | 分别测请求排队、原生取消与确认 drain;跨计时器保留配置的累计预算及 unknown 用量 | [ZCode runtime/broker](../../loopx/hosts/zcode/cli.ts) 是测量候选,不是已证明的停止 SLO 或 token 用量限制 |
| 经合法/伪造/陈旧/跨消费者页引用省略结果;新增与旧反证条件不同的正 finding | 当前来源重放;反证保留适用范围及读取入口;坏页与来源不可用分开。同依据页保留准入身份,源漂移可在原 Turn 更新 basis | [分页测试](../../tests/control_plane_ts/stride_explore_pagination.test.ts) 与 Stride §7.6 已有合同;仍须验证实际采用省略证据 |
| 主工作提交后丢失 Explore 附件/关联确认 | 主工作仍成功;原操作下补回附件,不重复工作、不宣称已采用 | [Explore 回写测试](../../tests/control_plane/test_explore_result_writeback.py) 提供恢复接缝,验证产品重试与回读 |
| 遍历启用策略的周期复核出口,再关闭策略或不声明 direction | Progress/successor/blocker/terminal 保留现有义务;关闭保留普通行为/历史;未声明 Direction M1 不加投影或权限 | [Stride 测试](../../tests/control_plane_ts/stride_policy.test.ts) 与 [direction 测试](../../tests/control_plane_ts/direction_baseline.test.ts);压缩、轮询、UI 刷新不能解除工作义务 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ facts, not a qualification of every installed Host.
| Runtime fencing | [`loopx/chat_runtime.py`](../../../loopx/chat_runtime.py) never starts a managed adapter for an attached session and fails closed with typed errors such as `attached_session_live_steering_unavailable`, `live_steering_requires_active_turn`, and `live_steering_session_not_attached`. |
| CLI surface | `loopx worker-bridge attached-session-bind`, `-list`, `-claim`, and `-complete` exist in [`loopx/cli_commands/worker_bridge.py`](../../../loopx/cli_commands/worker_bridge.py), documented in the [broker guide](../../integrations/attached-agent-session-broker.md) and the [worker-bridge install contract](../../integrations/worker-bridge-install-contract.md). |
| Existing-session delegation | [`loopx delegation`](../../reference/local-delegation.md#use-an-existing-agent-conversation-through-its-shell) exposes the same explicitly bound work as MCP to an existing shell-capable Agent. `operations` recovers requester-scoped work without remembered IDs, rechecks acceptance and exposes unavailable items and further pages. Newly tool-equipped Goal Chat consumes the same inventory; resumed native threads keep their original tool schema. It does not provision an Agent, migrate a host or install an automatic wake policy. |
| Managed native Goal | The opt-in [ZCode provider](../../../loopx/zcode_goal_mode/README.md) binds an idle session, starts under Core admission, retains session/target on resume and confirms pause on cold recovery. Native revisions and journaled start intent guard lost replies. Native completion writes no Core acceptance or credit debit; connected status can still pause denied execution. This is one provider, not generic native-Goal qualification. |
| Managed native Goal | The opt-in [ZCode provider](../../../loopx/hosts/zcode/README.md) binds an idle session, starts under Core admission, retains session/target on resume and confirms pause on cold recovery. Native revisions and journaled start intent guard lost replies. Native completion writes no Core acceptance or credit debit; connected status can still pause denied execution. This is one provider, not generic native-Goal qualification. |
| Focused tests | [`tests/test_attached_session_cli.py`](../../../tests/test_attached_session_cli.py) and `tests/test_chat_codex_home.py::test_attached_session_uses_existing_host_not_managed_adapter` cover bind/claim/complete and the no-managed-adapter fence. |
| Product-level proposal | The [Desktop execution frontends RFC](desktop-execution-frontends-v0.md) owns the Mode A/Mode B product comparison, the connector and event-source orthogonality, and the Desktop non-goals. |
| Host-side loop guidance | [Codex CLI TUI loop](../../product/runtimes/codex-cli/codex-cli-tui-loop.md) documents session-attached automation and resume options for one visible host. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ LoopX 启动,另一种已经属于其他宿主。当绑定没有说明自己
| 运行时围栏 | [`loopx/chat_runtime.py`](../../../loopx/chat_runtime.py) 绝不为挂接会话启动托管适配器,并以类型化错误失败关闭,例如 `attached_session_live_steering_unavailable`、`live_steering_requires_active_turn`、`live_steering_session_not_attached`。 |
| CLI 面 | `loopx worker-bridge attached-session-bind`、`-list`、`-claim`、`-complete` 存在于 [`loopx/cli_commands/worker_bridge.py`](../../../loopx/cli_commands/worker_bridge.py),并在 [broker 指南](../../integrations/attached-agent-session-broker.md) 与 [worker-bridge 安装契约](../../integrations/worker-bridge-install-contract.md) 中记录。 |
| 原会话委派 | [`loopx delegation`](../../reference/local-delegation.md#use-an-existing-agent-conversation-through-its-shell) 让有 shell 能力的原 Agent 使用与 MCP 相同的显式执行绑定;`operations` 无需记住 ID 即可找回自身委派,重新核验 accepted,明确单条不可用及剩余分页。新挂载工具的 Goal Chat 复用同一目录,已存在的原生线程恢复时保留原工具 schema;不创建 Agent、不迁移宿主,也不安装自动唤醒策略。 |
| Managed native Goal | 可选 [ZCode provider](../../../loopx/zcode_goal_mode/README.md) 绑定空闲会话,经 Core 准入启动,同 session/target 恢复,冷恢复确认暂停。Native revision 和已记录 start intent 保护丢失回执。原生完成不写 Core acceptance/credit debit,但在线 status 可暂停被拒绝的执行。这是单个 provider,不是通用 native Goal 资格。 |
| Managed native Goal | 可选 [ZCode provider](../../../loopx/hosts/zcode/README.md) 绑定空闲会话,经 Core 准入启动,同 session/target 恢复,冷恢复确认暂停。Native revision 和已记录 start intent 保护丢失回执。原生完成不写 Core acceptance/credit debit,但在线 status 可暂停被拒绝的执行。这是单个 provider,不是通用 native Goal 资格。 |
| 聚焦测试 | [`tests/test_attached_session_cli.py`](../../../tests/test_attached_session_cli.py) 与 `tests/test_chat_codex_home.py::test_attached_session_uses_existing_host_not_managed_adapter` 覆盖 bind/claim/complete 与"不启动托管适配器"的围栏。 |
| 产品级提案 | [桌面执行前端 RFC](desktop-execution-frontends-v0.zh-CN.md) 拥有 Mode A/Mode B 的产品对比、连接器与事件源正交性,以及桌面端非目标。 |
| 宿主侧循环指引 | [Codex CLI TUI loop](../../product/runtimes/codex-cli/codex-cli-tui-loop.md) 记录了一个可见宿主的会话挂接自动化与恢复选项。 |
Expand Down
Loading
Loading