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
2 changes: 1 addition & 1 deletion docs/book/chapters/00-reading-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ lifecycle 选择。

## 版本基线

当前内容面向 LoopX release `v2.4.0`;本地命令示例已按 `loopx 2.4.0` 的
当前内容面向 LoopX release `v2.4.1`;本地命令示例已按 `loopx 2.4.1` 的
公开 CLI 与协议表面复核。该版本要求 Python 3.11+ 与 Node.js 22.22.3+。LoopX 会自动管理
空闲后退出的 TypeScript Effect runtime,用户不需要手工维护 daemon。

Expand Down
4 changes: 2 additions & 2 deletions docs/book/en/chapters/00-reading-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ Do not bypass a newer permission or lifecycle check just to make an older exampl

## Version baseline

This book targets LoopX release `v2.4.0`. Local command examples were checked against
the public `loopx 2.4.0` CLI and protocol surface. It requires Python 3.11+ and Node.js 22.22.3+.
This book targets LoopX release `v2.4.1`. Local command examples were checked against
the public `loopx 2.4.1` CLI and protocol surface. It requires Python 3.11+ and Node.js 22.22.3+.
LoopX starts and reuses its managed, idle-exiting TypeScript Effect runtime automatically; users do not
operate that runtime as a manual daemon.

Expand Down
2 changes: 1 addition & 1 deletion docs/book/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ versioned or optional functionality.
- Source format: Markdown
- Site generator: MkDocs Material
- Hosting: GitHub Pages
- LoopX release anchor: `v2.4.0`
- LoopX release anchor: `v2.4.1`
- Runtime prerequisites: Python 3.11+ and Node.js 22.22.3+

The official public protocols remain authoritative for protocol facts. Commands that change across
Expand Down
2 changes: 1 addition & 1 deletion docs/book/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Extension 只是可独立版本化和交付的一种路径。
- 正文格式:Markdown;
- 站点生成器:MkDocs Material;
- 在线发布:GitHub Pages;
- LoopX 发布锚点:`v2.4.0`;
- LoopX 发布锚点:`v2.4.1`;
- 运行时前提:Python 3.11+ 与 Node.js 22.22.3+。

协议解释以 LoopX 官方公开合同为事实源。易变化的命令仍以对应发布物、官方文档和当前
Expand Down
81 changes: 81 additions & 0 deletions docs/product/releases/v2.4.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# LoopX v2.4.1 upgrade guide

## Release Decision

**Who should upgrade:** Operators who resume existing Goals, share a workspace with other Agents, or use the private Steward and signed macOS App. Install the upgrade through the same owner that installed your CLI or App.

**What this release solves:** The default Turn reply carries the original work and recovery identifiers together. Equivalent outcome requirements can share content across views, and distinct sources stay individually reachable. Agents get earlier, actionable feedback when two tasks need the same workspace. [#9176](https://github.com/loopx-project/loopx/pull/9176), [#9328](https://github.com/loopx-project/loopx/pull/9328), [#9256](https://github.com/loopx-project/loopx/pull/9256), [#9293](https://github.com/loopx-project/loopx/pull/9293)

**Breaking changes:** Yes, for integrations that pass retired quota selectors. Adopt the Complete Turn reply and its versioned protocol. Existing Goal data requires no migration. The archived v2.4.0 installation retains its historical format. [#9176](https://github.com/loopx-project/loopx/pull/9176), [#9306](https://github.com/loopx-project/loopx/pull/9306)

**How to verify:** Check the version and installation owner, reopen an existing Goal and read the same unfinished Todo and conversation.

**Contributors:** The release is maintained by @huangruiteng. Community changes in this range came from @BigDataDZ, @cocolord, @Duang777, @gcl-coder, @hhyykk, @Jiaqiiii523, @maxliux5, @xiaobaifly7 and @xiaods.

```bash
loopx --version
loopx doctor --installation-only
loopx status
```

## Release scope

- **Continue an existing Goal.** The supported Complete Turn path carries the original requirements, authorization and settlement identity together. Matching requirements can share a body across views. A historical full read retains the fallback fields, and exact values continue to have separate sources. [#9176](https://github.com/loopx-project/loopx/pull/9176), [#9323](https://github.com/loopx-project/loopx/pull/9323), [#9328](https://github.com/loopx-project/loopx/pull/9328)
- **Work alongside other Agents.** Routine claims avoid unnecessary path-level contention and a definitive declined claim has one actionable result. Work in the same directory can still require a different worktree. [#9256](https://github.com/loopx-project/loopx/pull/9256), [#9293](https://github.com/loopx-project/loopx/pull/9293)
- **Open the original conversation and result.** A new Goal confirmation links to the verified conversation. Local Goal replies support downloadable text files. Private Steward replies can return through their original Lark topic. [#9315](https://github.com/loopx-project/loopx/pull/9315), [#9316](https://github.com/loopx-project/loopx/pull/9316), [#9321](https://github.com/loopx-project/loopx/pull/9321), [#9318](https://github.com/loopx-project/loopx/pull/9318)
- **Read measured Research candidates in place.** The Research question card shows its supporting measurement and evidence. [#9307](https://github.com/loopx-project/loopx/pull/9307)

## Verify an existing installation

Use the upgrade route for your installation owner. For PyPI, update the same environment. For an archive install, check the exact version first.

```bash
loopx update check --ref v2.4.1
loopx update apply --ref v2.4.1
loopx --version
loopx doctor --installation-only
```

For the signed macOS App, use its update panel or run `loopx upgrade` to update the installed App and reopen it. Check the version in Settings. To restore the previous App, use the update backup action in Settings. After reopening the App, open an existing Goal. Verify the original conversation and an unfinished Todo. For an archive rollback, use `loopx update --rollback previous` if the pre-update release is still present. For a PyPI rollback, reinstall `loopx==2.4.0` in its original environment. Run `loopx doctor --installation-only` and read back the same work.

The runtime compatibility bridge teaches installed readers to accept both approved contract profiles. An old preview-only updater can require the bridge before consuming a Complete Turn archive. See the [release and update contract](https://github.com/loopx-project/loopx/blob/v2.4.1/docs/product/release-readiness.md) and the [Complete Turn protocol](https://github.com/loopx-project/loopx/blob/v2.4.1/docs/reference/protocols/turn-envelope-v0.md). [#9306](https://github.com/loopx-project/loopx/pull/9306)

## DSH 0.1.1-beta.8

The separate beta plugin recognizes the result of a successful tool call from the supported DSH 0.2.2 release candidates. A paused lane remains paused across a Driver reload. Use the versioned plugin archive and an authorized profile. [#9297](https://github.com/loopx-project/loopx/pull/9297), [#9298](https://github.com/loopx-project/loopx/pull/9298)

```bash
dsh plugin --profile web add https://github.com/loopx-project/loopx/releases/download/dsh-loopx-plugin-v0.1.1-beta.8/dsh-loopx-plugin-0.1.1-beta.8.tgz
dsh plugin --profile web
# Removal or rollback uses the same profile.
dsh plugin --profile web remove dsh-loopx-plugin
```

Open a bound Goal, invoke the `loopx` skill in the intended session, and verify the GoalBar can report the admitted run. Use Pause, reload the Driver, and check that no new step starts. The plugin uses the selected profile and the bound Goal's existing authority. Share neither private Goal captures nor conversation receipts in public issue reports. Review the [versioned DSH guide](https://github.com/loopx-project/loopx/blob/v2.4.1/packages/dsh-loopx-plugin/README.md).

## 中文摘要

### 升级决策

**谁需要升级:** 正在续作已有 Goal、让多个 Agent 协作,或使用私聊管家和 macOS 签名 App 的用户。按原安装方式升级。

**解决了什么:** 续作携带原有工作和恢复标识。相同成果要求在多个视图中共享内容,各自来源仍可读回。同一工作区发生争用时,Agent 能收到明确的恢复指引。[#9176](https://github.com/loopx-project/loopx/pull/9176)、[#9328](https://github.com/loopx-project/loopx/pull/9328)、[#9256](https://github.com/loopx-project/loopx/pull/9256)、[#9293](https://github.com/loopx-project/loopx/pull/9293)

**是否有破坏性变更:** 已有 Goal 无需迁移。调用旧 quota 选择器的集成应改用 Complete Turn 及其版本化协议。旧归档继续保留原输出格式。[#9176](https://github.com/loopx-project/loopx/pull/9176)、[#9306](https://github.com/loopx-project/loopx/pull/9306)

**如何验证:** 确认版本和安装归属,重开已有 Goal,读回同一个未完成 Todo 和原会话。

**贡献者:** 由 @huangruiteng 维护。社区贡献者包括 @BigDataDZ、@cocolord、@Duang777、@gcl-coder、@hhyykk、@Jiaqiiii523、@maxliux5、@xiaobaifly7 和 @xiaods。

```bash
loopx --version
loopx doctor --installation-only
loopx status
```

### 使用说明

- **续作与回退。** 根据当前安装方式升级到 2.4.1。执行 `loopx --version` 和 `loopx doctor --installation-only`,重开 App 读原会话和未完成的 Todo。归档安装可用 `loopx update --rollback previous` 回退,PyPI 用户在原环境重装 2.4.0。
- **减少执行摩擦。** 相同成果要求可在多个视图共享,精确值和各自采纳状态仍可读回。不同待办用各自的工作区推进,明确拒绝的领取结果附恢复指引。[#9256](https://github.com/loopx-project/loopx/pull/9256), [#9293](https://github.com/loopx-project/loopx/pull/9293), [#9328](https://github.com/loopx-project/loopx/pull/9328)
- **在原上下文取得结果。** 新 Goal 确认后可打开原会话。Goal 回复附可下载文本,私聊管家答复回到原飞书话题。研究问题卡展示能查证的测量结果。[#9316](https://github.com/loopx-project/loopx/pull/9316), [#9321](https://github.com/loopx-project/loopx/pull/9321), [#9318](https://github.com/loopx-project/loopx/pull/9318), [#9307](https://github.com/loopx-project/loopx/pull/9307)
- **DSH。** 使用前述命令安装独立的 beta.8。成功调用 skill 后查看 GoalBar。暂停后重开仍应保持暂停。用同一 profile 停用并按需装回 beta.7。[#9297](https://github.com/loopx-project/loopx/pull/9297), [#9298](https://github.com/loopx-project/loopx/pull/9298)
2 changes: 1 addition & 1 deletion loopx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__all__ = ["__version__"]

__version__ = "2.4.0"
__version__ = "2.4.1"
2 changes: 1 addition & 1 deletion loopx/cli_commands/public_default_contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"schema_version": "loopx_turn_envelope_v1",
"interaction_schema_version": "loopx_interaction_contract_v0"
},
"public_channel": "historical",
"public_channel": "current",
"historical": {
"surface": "quota_packet",
"schema_version": null,
Expand Down
22 changes: 3 additions & 19 deletions loopx/control_plane/testing/replan_semantic_action_behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
from ...heartbeat_prompt import build_heartbeat_prompt
from ..quota.effective_action import EffectiveAction
from ..quota.turn_envelope import quota_action_signature_document
from ..work_items.progress_observation import (
ProgressResultClass,
semantic_delta_from_writeback,
)
from ..work_items.progress_observation import ProgressResultClass
from .model_tool_behavior import (
_module_reader_tokens,
DoubaoExecToolBehaviorActorBase,
Expand Down Expand Up @@ -1404,7 +1401,6 @@ def _handle_semantic_writeback(
observation: Mapping[str, Any],
state: _QualificationState,
) -> str:
obligation_id = _expected_obligation_id(state)
result_class = str(observation.get("result_class") or "")
terminal_result = result_class in {
ProgressResultClass.BLOCKED.value,
Expand All @@ -1425,19 +1421,8 @@ def _handle_semantic_writeback(
)
if not matches_observed_surface:
raise ValueError("semantic_action_misses_uncovered_frontier")
obligation = dict(
(state.quota_packet or {}).get("autonomous_replan_obligation") or {}
)
if obligation.get("obligation_id") != obligation_id:
raise ValueError("quota_obligation_missing")
semantic_delta = semantic_delta_from_writeback(
obligation=obligation,
progress_observation=observation,
agent_vision=_authored_vision(command, state),
history_runs=_fixture_runs(state),
)
if semantic_delta.get("accepted") is not True:
raise ValueError("non_semantic_replan_action")
# The writer owns semantic acceptance and recovery for the original Turn.
# A compact admission packet may omit the review basis that it resolves.
state.semantic_result_class = result_class
return _bound_semantic_writeback(command, state)

Expand Down Expand Up @@ -1570,7 +1555,6 @@ def _behavior_command_kind(
"successor_reentry_not_runnable",
"successor_reentry_composition_not_scheduled",
"quota_obligation_missing",
"non_semantic_replan_action",
"semantic_writeback_failed",
"semantic_writeback_binding_mismatch",
"semantic_writeback_requires_authored_draft",
Expand Down
2 changes: 1 addition & 1 deletion man/loopx.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH LOOPX 1 "" "LoopX 2.4.0" "User Commands"
.TH LOOPX 1 "" "LoopX 2.4.1" "User Commands"
.SH NAME
loopx \- control-plane helper for long-running agent work
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion packages/dsh-loopx-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dsh-loopx-plugin",
"version": "0.1.1-beta.7",
"version": "0.1.1-beta.8",
"description": "One-step LoopX bootstrap, same-session driver, and local GoalBar for DeepSeek Harness",
"type": "module",
"main": "./lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "loopx"
version = "2.4.0"
version = "2.4.1"
description = "A Loop Engineering control plane for long-running agent goals (requires Node.js 22.22.3+)."
readme = "README.md"
requires-python = ">=3.11"
Expand Down
16 changes: 7 additions & 9 deletions tests/desktop/test_update_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,13 @@ def _run_upload_step(self, channel, version, tag, include_windows, *, channel_qu
"PYTHONPATH": str(WORKFLOW.parents[2]),
}
interpreter = shlex.quote(sys.executable)
if channel_qualified:
qualify_channel = (
"import sys; from loopx.cli_commands import update_artifact; "
"update_artifact._ARTIFACT_DEFAULT_CONTRACTS['public_channel'] = 'current'; "
"exec(compile(sys.stdin.read(), '<publisher>', 'exec'))"
)
script = f"python() {{ {interpreter} -c {shlex.quote(qualify_channel)}; }}\n" + script
else:
script = f"python() {{ {interpreter} \"$@\"; }}\n" + script
profile = "current" if channel_qualified else "historical"
qualify_channel = (
"import sys; from loopx.cli_commands import update_artifact; "
f"update_artifact._ARTIFACT_DEFAULT_CONTRACTS['public_channel'] = {profile!r}; "
"exec(compile(sys.stdin.read(), '<publisher>', 'exec'))"
)
script = f"python() {{ {interpreter} -c {shlex.quote(qualify_channel)}; }}\n" + script
result = subprocess.run(
[bash, "-c", script],
cwd=case_dir,
Expand Down
16 changes: 7 additions & 9 deletions tests/test_runtime_snapshot_publication.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,13 @@ def publish(root, *, channel_qualified=True):
# interpreter as pytest without requiring a particular host PATH alias.
functions = f"gh() {{ {shlex.quote(sys.executable)} github.py \"$@\"; }}\n"
interpreter = shlex.quote(sys.executable)
if channel_qualified:
qualify_channel = (
"import sys; from loopx.cli_commands import update_artifact; "
"update_artifact._ARTIFACT_DEFAULT_CONTRACTS['public_channel'] = 'current'; "
"exec(compile(sys.stdin.read(), '<publisher>', 'exec'))"
)
functions += f"python() {{ {interpreter} -c {shlex.quote(qualify_channel)}; }}\n"
else:
functions += f"python() {{ {interpreter} \"$@\"; }}\n"
channel = "current" if channel_qualified else "historical"
qualify_channel = (
"import sys; from loopx.cli_commands import update_artifact; "
f"update_artifact._ARTIFACT_DEFAULT_CONTRACTS['public_channel'] = {channel!r}; "
"exec(compile(sys.stdin.read(), '<publisher>', 'exec'))"
)
functions += f"python() {{ {interpreter} -c {shlex.quote(qualify_channel)}; }}\n"
return subprocess.run(["bash", "-c", functions + PUBLISH], cwd=root,
env={**os.environ, "PYTHONPATH": str(ROOT), "GITHUB_REPOSITORY": "example/loopx", "FAKE_GITHUB_STATE": str(root / "github.json")},
capture_output=True, text=True, encoding="utf-8", timeout=30, check=False)
Expand Down
Loading