Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
70e05b4
docs: propose unified work contract and controller executor sessions
loopx-agent Oct 26, 2026
43453db
docs: clarify LayerFS RFC semantic mirror contract
loopx-agent Oct 26, 2026
a19be87
docs: align protocol and host guides with unified contract proposal
loopx-agent Oct 26, 2026
0457182
Merge remote-tracking branch 'origin/main' into codex/controller-unif…
loopx-agent Oct 26, 2026
d07a013
docs: ground controller contract convergence in shared capture owners
loopx-agent Oct 26, 2026
7dab2db
docs: qualify contract completeness with projection counterexamples
loopx-agent Oct 26, 2026
7c5d0f9
Merge remote-tracking branch 'origin/main' into codex/controller-unif…
loopx-agent Oct 26, 2026
7e55f36
docs: specify controller contract caller cutover boundaries
loopx-agent Oct 26, 2026
3522ba6
docs: distinguish review freshness from settlement identity
loopx-agent Oct 26, 2026
70d7e19
docs: specify controller contract layout and context transition
loopx-agent Oct 26, 2026
393c7b6
docs: record unfinished complete-contract implementation boundary
loopx-agent Oct 26, 2026
83d82d7
Record complete-contract reader qualification and remaining recovery gap
loopx-agent Oct 26, 2026
7ff693f
Update controller checkpoint with binding-preserving launch evidence
loopx-agent Oct 26, 2026
1280073
Reconcile controller RFC with structured host input migration
loopx-agent Oct 26, 2026
f8d7f65
Record complete CLI rendering and external worker validation
loopx-agent Oct 26, 2026
32d3883
Record captured reader and checkpoint qualification
loopx-agent Oct 26, 2026
816e004
Record inline successor settlement qualification
loopx-agent Oct 26, 2026
97d83bc
Record complete Turn action refusal and selected-work qualification
loopx-agent Oct 26, 2026
b4da61c
Qualify complete replan applicability and captured readers
loopx-agent Oct 26, 2026
a7e44f4
Record native complete-context continuity qualification
loopx-agent Oct 26, 2026
e4377b3
Record complete DSH context qualification boundary
loopx-agent Oct 26, 2026
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
12 changes: 12 additions & 0 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ live tasks, hidden evaluation, credentials, raw trajectories, submissions, and
unpublished comparisons remain maintainer-owned. Engineering readiness does not
by itself establish a C2 uplift claim.

The [unified work contract and session-role RFC](../docs/architecture/rfcs/controller-executor-unified-contract-v0.md)
extends this build map with C7: benchmark workers should reuse the same qualified
product profile and governed lifecycle as other entrypoints. Benchmark-family
adapters retain task, environment, verifier and scoring semantics. Proposed
single-/two-session comparisons count both sessions and all recovery costs;
helper delivery neither launches trials nor changes frozen historical arms.

中文:[统一工作契约与会话角色提案](../docs/architecture/rfcs/controller-executor-unified-contract-v0.zh-CN.md)
的 C7 延伸本建设图:worker 复用同一已验收产品模式和治理生命周期,benchmark 适配器
保留题目、环境、验证与评分语义。拟议单双会话对照计入双方及全部恢复成本;
交付 helper 不启动实验,也不修改已冻结的历史对照臂。

## Current work

- [Execution observations through ordinary Goal planning](runtime/EXECUTION_OBSERVATIONS.md)
Expand Down
8 changes: 8 additions & 0 deletions docs/architecture/rfcs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ Paired diffs do not certify translation accuracy.
settlement, and typed Effect Program foundations are shipped. Replan
planning/ACK stays domain-local until a second real lifecycle justifies
extraction.
- [Controller / Executor Sessions and One Governed Work Contract v0](controller-executor-unified-contract-v0.md)
([中文版](controller-executor-unified-contract-v0.zh-CN.md))
- **Delivery on `main`:** Design only; no unified schema or dual-session profile is implemented.
- **Current boundary:** Replaces permanent quota/Turn packet views with one
contract including differential context; controller-only model access to
Core, natural-language executor work and runtime-owned identity/recovery.
C1–C9 connect concrete refactors, real host adoption and complete-cost
qualification without changing defaults or launching experiments.
- [TypeScript Control-Plane Migration v0](typescript-control-plane-migration-v0.md)
([中文版](typescript-control-plane-migration-v0.zh-CN.md))
- **Delivery on `main`:** Substantially implemented; active migration.
Expand Down
3 changes: 2 additions & 1 deletion docs/architecture/rfcs/STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ appendix may keep dated history, but no dated log heading may precede it.

[中文版](STATUS.zh-CN.md) is the semantic mirror of this file.

## Accepted (46)
## Accepted (47)

| RFC | Header status | Supersedes / closes | Ledger |
| --- | --- | --- | --- |
Expand All @@ -31,6 +31,7 @@ appendix may keep dated history, but no dated log heading may precede it.
| [RFC: Capable Agent Manager and Semantic Work Handoff (v0)](capable-manager-semantic-handoff-v0.md) | Accepted | [Personal Follow-through independent proposal](personal-follow-through-v0.md) | [2 entries](ledger/capable-manager-semantic-handoff-v0/) |
| [RFC: Complete State Recovery and Controlled Reactivation (v0)](complete-state-recovery-v0.md) | Accepted | none | — |
| [RFC: Composable State Machines and Recovery Verification (v0)](composable-state-machines-recovery-verification-v0.md) | Accepted | none | — |
| [RFC: Controller / Executor Sessions and One Governed Work Contract (v0)](controller-executor-unified-contract-v0.md) | Accepted | none | — |
| [Explicit Todo continuation: Stage A](cross-session-memory-substrate-v0.md) | Accepted | none | — |
| [RFC: LoopX Desktop Execution Frontends v0](desktop-execution-frontends-v0.md) | Accepted | none | — |
| [RFC: External Evidence Research Capability v0](external-evidence-research-capability-v0.md) | Accepted | none | [3 entries](ledger/external-evidence-research-capability-v0/) |
Expand Down
3 changes: 2 additions & 1 deletion docs/architecture/rfcs/STATUS.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

[English](STATUS.md) 与本文互为语义镜像。

## 已接受 (46)
## 已接受 (47)

| RFC | 头部状态 | 替代 / 关闭 | Ledger |
| --- | --- | --- | --- |
Expand All @@ -28,6 +28,7 @@
| [RFC:强能力 Agent 管家与语义工作交接(v0)](capable-manager-semantic-handoff-v0.zh-CN.md) | 已接受 | [个人事项持续跟进独立提案](personal-follow-through-v0.zh-CN.md) | [2 条](ledger/capable-manager-semantic-handoff-v0/) |
| [RFC:完整状态恢复与受控重新激活(v0)](complete-state-recovery-v0.zh-CN.md) | 已接受 | 无 | — |
| [RFC:可组合状态机与恢复验证(v0)](composable-state-machines-recovery-verification-v0.zh-CN.md) | 已接受 | 无 | — |
| [RFC:Controller / Executor 会话与统一受治理工作契约(v0)](controller-executor-unified-contract-v0.zh-CN.md) | 已接受 | 无 | — |
| [显式 Todo 接续:阶段 A](cross-session-memory-substrate-v0.zh-CN.md) | 已接受 | 无 | — |
| [RFC:LoopX 桌面执行前端 v0](desktop-execution-frontends-v0.zh-CN.md) | 已接受 | 无 | — |
| [RFC:外部证据研究能力 v0](external-evidence-research-capability-v0.zh-CN.md) | 已接受 | 无 | [3 条](ledger/external-evidence-research-capability-v0/) |
Expand Down
37 changes: 29 additions & 8 deletions docs/architecture/rfcs/agent-loop-effect-interpreter-v0.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Status | Accepted |
| Supersedes / closes | none |
| Date | 2026-08-08 |
| Last normative revision | 2026-10-01 |
| Last normative revision | 2026-10-27 |
| Author | LoopX maintainers |
| Scope | Public control-plane docs, packet contracts, refactor direction, test strategy |

Expand Down Expand Up @@ -464,8 +464,12 @@ The existing R5 CLI captures full decisions before projection, with a private di

#### Heartbeat and Turn Envelope convergence

Under existing M7.4 and roadmap S2/S3/S6/S8, converge the **execution facts**
used by heartbeat and Turn hosts, while keeping host effect ownership separate.
Under existing M7.4 and roadmap S2/S3/S6/S8, converge heartbeat and Turn
execution into **one governed work contract**, while keeping host effect
ownership explicit. The [controller/executor RFC](controller-executor-unified-contract-v0.md)
owns the complete schema/consumer migration and optional model-session split.
Its target replaces permanent quota/Turn views with one schema, full/delta
delivery and immutable recovery; this does not claim that cutover has shipped.
When an admitted Todo later waits on a timer, PR or capability, the typed
receipt owner preserves its original writeback and settlement route. Reentry
projects only that closeout, including for deferred work and after the wait
Expand Down Expand Up @@ -692,7 +696,7 @@ Continue in this order using the existing owners and checkpoints:
| Todo | Observable outcome and decisive acceptance |
|---|---|
| Reconcile execution/context requirements across heartbeat and TurnEnvelope | Same captured authoritative decision preserves actor/Goal/Todo, required full reads, claim/lease, action selection, replan/closure, conditional settlement and scheduler ownership. Inventory omitted/duplicated facts before deleting render branches. Include optional capabilities off, recall-only, ingest-only, stale binding and provider failure; private detail is accessed only through authorized references. |
| Adopt one typed projection in real host renderers | Heartbeat full/thin and Turn host consume the same execution facts and per-Turn capture/detail route. Keep host-specific notification and scheduler transport explicit. Real File/SQLite CLI plus packaged Codex App tests cover reentry, source loss, refusal before required reads, late results, backoff and exactly-once settlement; no second admission from a detail read. Retire the replaced projection only after its last caller moves. |
| Adopt one contract in real host entrypoints | Heartbeat full/thin and Turn host consume the same schema and per-Turn capture/detail route, with no permanent format-specific semantic views. Keep host-specific notification and scheduler transport explicit. Real File/SQLite CLI plus packaged Codex App tests cover reentry, source loss, refusal before required reads, late results, backoff and exactly-once settlement; no second admission from a detail read. Retire the replaced projection only after its last caller moves. |
| Qualify the context shape and migration default | Compare the same normal, replan, wait/recovery and optional-capability workloads against both current full and compact paths. Measure payload/model tokens, detail IO, latency, resource growth, omissions and decision/outcome quality. Keep data loss, duplicate effects, identity and settlement errors as hard constraints. Preserve supported saved prompts/receipts and reversible rollout; change budgets or defaults only with that evidence. |

**Context cost and projection convergence: next implementation slice**
Expand All @@ -712,13 +716,17 @@ The next slice stays within the existing three convergence acceptances above:
ordinary `quota should-run` input actually consumed by benchmark case solvers;
operator/control-plane and personal maintenance packets are secondary. The
shared projection delivers complete context on first use and exact changed
subtrees on supported warm turns. Solvers need not switch to TurnEnvelope.
subtrees on supported warm turns. Solvers retain their product entrypoint;
both old packet formats migrate to the single contract.
In-packet deduplication and cold-start reduction complement this work; a
succession of small cleanups must not substitute for qualifying the repeated
input path. A smaller stored capture or import cleanup proves no model saving.
2. **One projection owner, two transport consumers.** Extend the existing typed
interaction/work-context owner for full and delta context; quota and
TurnEnvelope consume it. Preserve original capture, required-source checks,
2. **One contract and one delivery mechanism across hosts.** Extend the existing
typed interaction/work-context owner for full and delta context. Replace
quota and TurnEnvelope output schemas with the unified schema; retain old
decoders only for identified migration readers and historical receipt replay.
Different host wrappers do not create different contract views. Preserve
original capture, required-source checks,
invocation, selection, settlement and detail routes. Python retains source IO;
hosts retain their effects and context-continuity observation. No independent
admission service, diff daemon or Python context-decision owner is needed.
Expand Down Expand Up @@ -763,6 +771,11 @@ App consumers, and their full fallback. A standalone diff helper is insufficient
| Turn adoption | Consume the same full/delta context owner while retaining Turn signatures and outer-executor effects. Host-only settlement execution remains distinct from a manual CLI agent's executable settlement obligations. |
| Choice of representation | Emit a delta only when it is smaller after binding/removal metadata. Otherwise emit full context. Do not truncate values or change source selection to meet a byte target. |

The surface-specific bindings below describe the existing delivery/migration
contract. They remain mandatory while those readers are active; C1–C9 of the
controller/executor proposal replaces both emitted formats. Historical captures
keep their original version and may never reuse a new-schema baseline.

**Source and change boundaries.** The shared `context_delivery_v1` presentation
covers whole quota packets, whole Turn envelopes and their common work context.
The surface is part of the existing Goal/Agent/session/epoch/capture binding, so
Expand Down Expand Up @@ -1742,6 +1755,14 @@ Example replacements:

## Semantic control and execution ownership

The optional [controller/executor profile](controller-executor-unified-contract-v0.md)
separates model responsibilities within these owners: the controller is the sole
model-facing Core client; the executor exchanges natural-language work and
artifacts under host-enforced scope. It is not the deterministic Turn Loop
Controller. One Agent may bind those two roles without creating two competing
work executors or a second authority. Single-session behavior remains available;
role binding, result validation and total-cost qualification precede promotion.

LoopX's semantic control plane preserves work meaning across Turns, Agents and
runtimes: intent, ownership, dependencies, authority, evidence and continuation.
Its execution responsibility covers the typed transactions and settlement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| 状态 | 已接受 |
| 替代 / 关闭 | 无 |
| 日期 | 2026-08-08 |
| 最近规范性修订 | 2026-10-01 |
| 最近规范性修订 | 2026-10-27 |
| 作者 | LoopX maintainers |
| 范围 | 公开控制面文档、packet 合同、重构方向、测试策略 |

Expand Down Expand Up @@ -323,8 +323,10 @@ R5 短包投影也完整保留已有 CLI 结算计划,包括 effect identity

#### Heartbeat 与 TurnEnvelope 收敛

沿用既有 M7.4 与 roadmap S2/S3/S6/S8,统一 heartbeat 和 Turn host 消费的
**执行事实**,宿主效果的所有权仍分别保留。已准入 Todo 随后等待定时、PR 或能力时,
沿用既有 M7.4 与 roadmap S2/S3/S6/S8,把 heartbeat 和 Turn 执行统一为
**一份受治理工作契约**,显式保留宿主效果所有权。[Controller/executor RFC](controller-executor-unified-contract-v0.zh-CN.md)
拥有完整 schema/消费者迁移和可选模型会话分工:以同一 schema、full/delta 交付及不可变
恢复替代长期 quota/Turn 视图。这不宣称 cutover 已交付。已准入 Todo 随后等待定时、PR 或能力时,
typed receipt owner 保留原回写与结算路径;即使工作已 deferred 或等待已到期,重入也
只投影原收尾,不恢复业务执行、不选择后继、不创建重试时钟。恢复复用原回执中的正向
工作准入和精确结算绑定;工作区修复本身没有业务结果,须先经同轮正常 guard 对精确
Expand Down Expand Up @@ -469,7 +471,7 @@ live 模型结果、App 采用或以下三项收敛验收完成。
| Todo | 可观察结果与决定性验收 |
|---|---|
| 核对 heartbeat 与 TurnEnvelope 的执行和上下文要求 | 同一捕获的权威决策保留 actor/Goal/Todo、必读全文、claim/lease、选择、replan/收尾、带条件结算和 scheduler 所有权。删除渲染分支前列明遗漏与重复事实。覆盖可选能力关闭、仅 recall、仅 ingest、绑定失效和 provider 失败;私有详情只经有权限的引用访问。 |
| 在真实宿主 renderer 采用同一 typed 投影 | heartbeat full/thin 与 Turn host 消费同一执行事实及同 Turn 捕获/详情入口;显式保留通知和 scheduler 的宿主传输。真实 File/SQLite CLI 与打包 Codex App 覆盖重入、来源丢失、必读前拒绝、迟到结果、backoff 和一次结算;补读不触发第二次准入。最后调用方迁移后才退役旧投影。 |
| 在真实宿主入口采用统一契约 | heartbeat full/thin 与 Turn host 消费同一 schema 及同 Turn 捕获/详情入口,不长期保留分格式的语义视图;显式保留通知和 scheduler 的宿主传输。真实 File/SQLite CLI 与打包 Codex App 覆盖重入、来源丢失、必读前拒绝、迟到结果、backoff 和一次结算;补读不触发第二次准入。最后调用方迁移后才退役旧投影。 |
| 核验上下文形态及迁移默认 | 将相同的正常、replan、等待/恢复与可选能力负载同时对照当前完整和短包路径,测量载荷/model token、详情 IO、延迟、资源增长、遗漏、决策与结果质量。数据丢失、重复效果、身份和结算错误保持硬约束;保留受支持的已保存 prompt/回执与可逆 rollout,根据证据再改预算或默认。 |

**上下文成本与投影融合:下一实现切片**
Expand All @@ -484,12 +486,14 @@ live 模型结果、App 采用或以下三项收敛验收完成。

1. **以完整首包、后续子树增量作为融合目标。** 优先优化 benchmark case 内 solver 实际
消费的普通 `quota should-run` 输入,实验操作者/控制面对话及个人维护包为次要项。
共享投影首次完整交付,支持温态复用时只交付精确变化子树,solver 无需切换 TurnEnvelope。
共享投影首次完整交付,支持温态复用时只交付精确变化子树。Solver 保留产品入口,
两种旧 packet 格式共同迁入统一契约。
包内去重和冷启动缩减作为配套;连续做小清理不能替代重复输入路径的验收。存储 capture
缩小或 import 清理不能证明模型输入节省。
2. **一个投影 owner,两个传输调用方。** 扩展已有 typed interaction/work-context owner,
同时生成完整和增量上下文,由 quota 与 TurnEnvelope 消费。保留原始捕获、required-source
校验、调用、选择、结算与详情入口;Python 保留来源 IO,host 保留效果执行和上下文连续性
2. **跨宿主使用同一契约、同一交付机制。** 扩展已有 typed interaction/work-context owner,
同时生成完整和增量上下文,用统一 schema 替代 quota 与 TurnEnvelope 输出 schema;
旧 decoder 只服务具名迁移 reader 和历史回执 replay。不同宿主外层包装不构成不同契约
视图。保留原始捕获、required-source 校验、调用、选择、结算与详情入口;Python 保留来源 IO,host 保留效果执行和上下文连续性
观察。不新增独立准入服务、diff daemon 或 Python 上下文决策 owner。刻画调用方并在采用后
删除被替代投影。输出释放前的 host 传输 ACK 既不证明模型完整收到了内容,也不证明其仍被
保留。现有 capture/handoff 是接入位置,并非已经实现的连续性契约。
Expand Down Expand Up @@ -519,6 +523,10 @@ live 模型结果、App 采用或以下三项收敛验收完成。
| Turn 采用 | 消费同一完整/增量上下文 owner,同时保留 Turn 签名和外层 executor 效果归属。host 独占的结算执行与手动 CLI agent 的可执行结算义务仍有区别。 |
| 表示选择 | 计入绑定和删除元数据后,只有更小才发送 delta,否则发送全量。不为字节目标截断值或改变来源选择。 |

以下按 surface 区分的绑定描述现有交付/迁移契约;对应 reader 活跃时仍必须遵守。
Controller/executor 提案的 C1–C9 替换两种输出格式;历史 capture 保留原版本,
不能借用新 schema 基线。

**来源与变化边界。** 共享的 `context_delivery_v1` 展示覆盖完整 quota packet、
完整 Turn envelope 及其公共 work context。surface 纳入既有 Goal/Agent/session/epoch/
capture 绑定,不同展示不能借用彼此基线。扩展的是展示,不改变准入、持久化或结算 authority。
Expand Down Expand Up @@ -1164,6 +1172,12 @@ M7 只有在真实 vertical slice 满足 Product Outcome Contract、旧路径被

## 语义控制与执行归属

可选的 [controller/executor profile](controller-executor-unified-contract-v0.zh-CN.md)
在既有 owner 内分配模型职责:controller 是唯一面向 Core 的模型客户端,executor 在
host 强制范围内交流自然语言工作与产物。它不同于确定性的 Turn Loop Controller。
同一 Agent 可绑定这两个角色,不增加竞争业务 executor 或第二份权限。单会话仍可用;
角色绑定、结果验证和完整成本资格先于默认提升。

LoopX 的语义控制面跨 Turn、Agent 与 runtime 保持工作含义:intent、ownership、
dependency、authority、evidence 和 continuation。执行责任覆盖它实际拥有的 typed
transaction 与 settlement step。Agent/capability 推理提出领域结果,kernel 核验
Expand Down
Loading
Loading