Skip to content

Commit d54a67c

Browse files
committed
merge: bring main up to the scheduler receipt fence branch
Main deleted the unused readGoalHeartbeatReceipts helper (loopx-project#8985). The branch's receipt reader had grown around that helper, so the merge keeps main's removal and carries only the scoped receipt view, the committed-successor admission and the committed-row marker. scheduler_hint.py, quota.py, status.py and the settlement readback test merged without overlap; the receipt reader was the only textual conflict. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com>
2 parents 1ebd7a6 + f9bb5e3 commit d54a67c

519 files changed

Lines changed: 17366 additions & 39352 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/CODEOWNERS‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
/tests/ @huangruiteng @songoow @loopx-agent
5757
/scripts/ @huangruiteng @songoow @loopx-agent
5858
/demo/ @huangruiteng @songoow @loopx-agent
59-
/deprecate/ @huangruiteng @songoow @loopx-agent
6059

6160
# --- Subsystem routes --------------------------------------------------------
6261

‎.github/workflows/full-public-smokes.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
retention-days: 7
149149

150150
smoke-fleet-health:
151-
if: always()
151+
if: always() && github.repository == 'loopx-project/loopx'
152152
needs: full-public-smokes
153153
runs-on: ubuntu-latest
154154
timeout-minutes: 10

‎.github/workflows/python-tests.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ jobs:
192192
npm run smoke:chat-upgrade
193193
npm run smoke:delegation-search
194194
npm run smoke:task-inspector-route
195+
npm run smoke:explore-timeline-scan
195196
npm run smoke:conversation-find
196197
- name: Qualify packaged team evidence and feedback recovery
197198
if: matrix.shard == 2

‎.github/workflows/runtime-snapshots.yml‎

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,39 @@ jobs:
8989
shell: bash
9090
run: |
9191
set -euo pipefail
92-
revision="$(python -c 'import json; print(json.load(open("runtime/loopx-runtime.json"))["source_revision"])')"
92+
# Validate the downloaded qualification before any remote mutation.
93+
# Successful installation alone does not qualify outcome/cost claims.
94+
revision="$(python - <<'PY'
95+
import hashlib
96+
import json
97+
from pathlib import Path
98+
import re
99+
root = Path("runtime")
100+
manifest_bytes = (root / "loopx-runtime.json").read_bytes()
101+
manifest = json.loads(manifest_bytes)
102+
revision = manifest["source_revision"]
103+
if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision):
104+
raise SystemExit("Invalid runtime source revision")
105+
qualification = json.loads((root / f"qualification-{revision}.json").read_bytes())
106+
checks = ("ok", "clean_install", "upgrade", "doctor", "skills", "frontend_bundle_contract",
107+
"frontend_http", "no_frontend_build_tools", "license_notices", "activation_failure_restored")
108+
if any(qualification.get(check) is not True for check in checks):
109+
raise SystemExit("Runtime installation qualification is missing or failed")
110+
if manifest["channel"] != "main" or any(qualification.get(key) != manifest[key]
111+
for key in ("source_revision", "channel", "sha256")):
112+
raise SystemExit("Runtime qualification does not match the candidate")
113+
archive = root / f"loopx-runtime-{revision}.tar.gz"
114+
with archive.open("rb") as stream:
115+
digest = hashlib.file_digest(stream, "sha256").hexdigest()
116+
if type(manifest["size"]) is not int or type(qualification.get("bytes")) is not int or (
117+
archive.stat().st_size != manifest["size"] or qualification["bytes"] != manifest["size"]
118+
or digest != manifest["sha256"]):
119+
raise SystemExit("Qualified runtime bytes differ from the candidate")
120+
if (root / f"loopx-runtime-{revision}.json").read_bytes() != manifest_bytes:
121+
raise SystemExit("Immutable runtime metadata differs from the channel candidate")
122+
print(revision)
123+
PY
124+
)"
93125
# Keep each immutable snapshot below GitHub's per-release asset cap.
94126
# The existing channel release retains its historical assets and URL.
95127
tag="runtime-main-${revision}"

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.venv/
33
.idea
44
node_modules/
5-
apps/dashboard/public/*.local.json
65
apps/presentation/dashboard/public/*.local.json
76
__pycache__/
87
*.pyc

‎CONTRIBUTING.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ LoopX needs two runtimes:
127127

128128
- **Python 3.11+.** `uv` installs a compatible one for you.
129129
- **Node.js 22.22.3 or newer**, with Node.js 24 LTS recommended. `pyproject.toml`
130-
declares no Python dependencies, but the TypeScript control plane runs on the
130+
declares no cross-platform Python dependencies (only `tzdata; sys_platform == 'win32'`),
131+
but the TypeScript control plane runs on the
131132
system Node.js, both for `loopx` itself and for the test suite. `pip` and `uv`
132133
cannot install Node.js for you.
133134

@@ -193,7 +194,7 @@ touch, mention it in the PR instead of fixing it there.
193194
| `ci-maintenance.yml` | opened, reopened, edited, updated or closed PR (`pull_request_target`, trusted base code only) | no | inspects potential stale PR comparisons without mutating the head or target; cancels obsolete Python qualification runs after rechecking the PR and source branch |
194195
| `dependency-review.yml` | every PR | no | dependency changes introduced by the PR |
195196
| `postgresql-integration.yml` | control-plane or npm lockfile paths | no | PostgreSQL authority store and service on a temporary instance |
196-
| `package-smoke.yml` | extension package paths | no | extension packages install, entrypoints, and example schemas |
197+
| `package-smoke.yml` | `loopx-core` and extension package paths | no | `loopx-core` and extension packages install, entrypoints, and example schemas |
197198
| `release-artifacts.yml` | `loopx/`, packaging, and lockfile paths | no | release identity and a release build from this source |
198199
| `runtime-snapshots.yml` | runtime artifact, installer, and updater paths | no | qualified, revision-addressed runtime archives and the main channel pointer |
199200
| `ark-turn.yml` | Turn driver and collaboration paths | no | optional Ark Turn package, stdio MCP, and DSH parity |
@@ -203,7 +204,7 @@ touch, mention it in the PR instead of fixing it there.
203204
| `frontstage-pages.yml` | README, dashboard, and chat bundle paths | no | public Pages build |
204205
| `desktop-release-artifacts.yml` | desktop app and dashboard paths | no | macOS and Windows desktop builds |
205206
| `desktop-updater.yml` | desktop app paths | no | desktop app build and updater feed |
206-
| `full-public-smokes.yml` | no (push to `main`, schedule) | no | every public smoke, in shards |
207+
| `full-public-smokes.yml` | no (manual, schedule) | no | every public smoke, in shards |
207208
| `sonarcloud.yml` | no (called by Python Tests) | no | SonarCloud analysis of that run's coverage |
208209
| `stale.yml` | no (schedule) | no | stale-issue reminders (never closes issues) |
209210
| `update-notes.yml` | no (schedule) | no | biweekly update notes |

‎README.ja.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Claude Code では `/loopx <complex task>` を使います。その他のラン
5353
not news. Keep both languages aligned, newest first, using verified publication
5454
dates (UTC). -->
5555

56-
- **2026-11-01 · 📘 [24/7 エージェントのための段階的コンテキスト配信](https://loopx-project.github.io/loopx/blog/context-delivery/)** — コンパクションサイクル単位の構造化差分と段階的ビューにより、モデル向けの 213 回の起床にわたってコントロールプレーンのバイト数を削減しました(単層の段階的ビューで `32.5%`、サイクル内の 112 回の継続にわたる積み重ね型の初回読み取りエントリで本文 `3.0%` / CLI `5.0%`)。同時に、ロスレスなベースライン復元も維持しています([47 日間の鮮度に関するポストモーテム](https://loopx-project.github.io/loopx/blog/five-freshness-incidents/))。
56+
- **2026-11-01 · 📘 [24/7 エージェントのための段階的コンテキスト配信](https://loopx-project.github.io/loopx/blog/context-delivery/)** — コンパクションサイクル単位の構造化差分と段階的ビューにより、モデル向けの 213 回の起床にわたってコントロールプレーンのバイト数を削減しました(単層の段階的ビューで `32.5%`、サイクル内の 112 回の継続にわたる積み重ね型の初回読み取りエントリで本文 `3.0%` / CLI `5.0%`)。同時に、ロスレスなベースライン復元も維持しています。
5757
- **2026-10-25 · 🤝 [長期タスク向けエージェント研究:共同研究者を募集中](https://loopx-project.github.io/loopx/blog/edgebench-feedback-and-memory/)** — EdgeBench と実世界のタスクにおけるフィードバック、再計画、再現可能な評価を通じて、**同一予算下での長期的な成果のブレークスルー**を探求しています。学術研究室や企業のチームとの共同研究を歓迎し、成果と総コストを比較していきます。[共同研究について話し合う](https://github.com/loopx-project/loopx/discussions)。
5858
- **2026-10-20 · 🚀 [LoopX 2.0](https://github.com/loopx-project/loopx/releases/tag/v2.0.0)** — 共有の TypeScript 状態レイヤーと、長期研究用ワークベンチ。[移行ガイド](docs/product/releases/v2.0.0.md) · [エンジニアリングの舞台裏](https://loopx-project.github.io/loopx/blog/typescript-control-plane-refactor/)。
5959
- **2026-10-14 · 🤖 [エージェント型ソフトウェア](https://loopx-project.github.io/loopx/blog/semantic-software-development/)** — ゴール、エビデンス、人間のフィードバックをエンジニアリングの成果物につなげます。
@@ -161,7 +161,7 @@ LoopX はそのオープンでハーネス非依存のコントロールレイ
161161
| --- | --- | --- |
162162
| **Event Inbox** | シングルフライトの **Goal / Todo / Hard Lease** キュー、非同期のアプリ受信箱、接続済みの Lark / GitHub リスナー | 同じリポジトリの状態を重複したワーカーが変更すること、実行中に人間の入力が失われること |
163163
| **Timers & Wakeups** | **Guarded Heartbeat** と安全な定期プリセット(`daily-triage`、`changelog-draft`、`pr-watch`。`loopx preset list` で確認) | 何も変わっていない、またはゲートがまだ人間を待っているのに、やみくもな cron ループがトークンを浪費すること |
164-
| **Memory & Compaction** | [`Decision Context`](loopx/capabilities/decision_context/README.md) によるソース追跡、コンパクションサイクル単位の **Progressive + Delta** [`context_delivery`](https://loopx-project.github.io/loopx/blog/context-delivery/)(213 回の起床にわたるビューで `32.5%`、サイクル内の 112 回の起床にわたる初回読み取りエントリで `3.0% / 5.0%`)、およびオプションの [`Reward Memory`](loopx/capabilities/reward_memory/README.md) | 気付かないうちのソースの陳腐化([47 日間・253 ターンで 5 件のインシデント](https://loopx-project.github.io/loopx/blog/five-freshness-incidents/))、コンパクションをまたいだプロンプトの再送の累積や差分の破損 |
164+
| **Memory & Compaction** | [`Decision Context`](loopx/capabilities/decision_context/README.md) によるソース追跡、コンパクションサイクル単位の **Progressive + Delta** [`context_delivery`](https://loopx-project.github.io/loopx/blog/context-delivery/)(213 回の起床にわたるビューで `32.5%`、サイクル内の 112 回の起床にわたる初回読み取りエントリで `3.0% / 5.0%`)、およびオプションの [`Reward Memory`](loopx/capabilities/reward_memory/README.md) | 気付かないうちのソースの陳腐化、コンパクションをまたいだプロンプトの再送の累積や差分の破損 |
165165
| **Permissions & Deferred Calls** | 明示的な**オーナー、安全性、公開、プライベートデータのゲート**、分離されたワークツリー、レビュー可能な引き継ぎ | 自律的な cron 実行による外部への公開、強制マージ、プライベートなコンテキストの漏洩 |
166166
| **Outbox** | 本当の完了、ブロッカー、未解決のゲートを示す、共有 Workspace と Lark の Goal/Decision/Evidence ビュー | 断片化したターミナルログや、人間に実行の子守りを強いるノイズの多い通知 |
167167

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ run? [Choose a task below](#try-loopx).
5353
not news. Keep both languages aligned, newest first, using verified publication
5454
dates (UTC). -->
5555

56-
- **2026-11-01 · 📘 [Progressive context delivery for 24/7 agents](https://loopx-project.github.io/loopx/blog/context-delivery/)** — Compaction-cycle structured deltas and progressive views cut control-plane bytes across 213 model-facing wakes (`32.5%` single-layer progressive view; `3.0%` body / `5.0%` CLI stacked first-read entry across 112 in-cycle continuations) while preserving lossless baseline recovery ([47-day freshness postmortem](https://loopx-project.github.io/loopx/blog/five-freshness-incidents/)).
56+
- **2026-11-01 · 📘 [Progressive context delivery for 24/7 agents](https://loopx-project.github.io/loopx/blog/context-delivery/)** — Compaction-cycle structured deltas and progressive views cut control-plane bytes across 213 model-facing wakes (`32.5%` single-layer progressive view; `3.0%` body / `5.0%` CLI stacked first-read entry across 112 in-cycle continuations) while preserving lossless baseline recovery.
5757
- **2026-10-25 · 🤝 [Long-horizon agent research: collaborators welcome](https://loopx-project.github.io/loopx/blog/edgebench-feedback-and-memory/)** — Exploring **breakthroughs in long-horizon outcomes under equal budgets**, through feedback, replanning and reproducible evaluation on EdgeBench and real-world tasks. Academic labs and industry teams are welcome to collaborate, comparing outcomes and total cost. [Discuss collaboration](https://github.com/loopx-project/loopx/discussions).
5858
- **2026-10-20 · 🚀 [LoopX 2.0](https://github.com/loopx-project/loopx/releases/tag/v2.0.0)** — A shared TypeScript state layer and long-horizon research workbench. [Migration guide](docs/product/releases/v2.0.0.md) · [Engineering story](https://loopx-project.github.io/loopx/blog/typescript-control-plane-refactor/).
5959
- **2026-10-14 · 🤖 [Agentic software](https://loopx-project.github.io/loopx/blog/semantic-software-development/)** — Connecting goals, evidence and human feedback to engineering delivery.
@@ -163,7 +163,7 @@ operate 24/7 with explicit durability and human gates:
163163
| --- | --- | --- |
164164
| **Event Inbox** | Single-flight **Goal / Todo / Hard Lease** queue, async app inbox, and connected Lark / GitHub listeners | Duplicate workers mutating the same repo state; dropped human inputs mid-run |
165165
| **Timers & Wakeups** | **Guarded Heartbeat** and safe recurring presets (`daily-triage`, `changelog-draft`, `pr-watch`; inspect via `loopx preset list`) | Blind cron loops burning tokens when nothing changed or a gate is still waiting on a human |
166-
| **Memory & Compaction** | [`Decision Context`](loopx/capabilities/decision_context/README.md) source tracking, compaction-cycle **Progressive + Delta** [`context_delivery`](https://loopx-project.github.io/loopx/blog/context-delivery/) (`32.5%` view across 213 wakes; `3.0% / 5.0%` first-read entry across 112 in-cycle wakes), and optional [`Reward Memory`](loopx/capabilities/reward_memory/README.md) | Silent source staleness ([5 incidents across 253 turns / 47 days](https://loopx-project.github.io/loopx/blog/five-freshness-incidents/)); compounding prompt replay or broken deltas across compaction |
166+
| **Memory & Compaction** | [`Decision Context`](loopx/capabilities/decision_context/README.md) source tracking, compaction-cycle **Progressive + Delta** [`context_delivery`](https://loopx-project.github.io/loopx/blog/context-delivery/) (`32.5%` view across 213 wakes; `3.0% / 5.0%` first-read entry across 112 in-cycle wakes), and optional [`Reward Memory`](loopx/capabilities/reward_memory/README.md) | Silent source staleness; compounding prompt replay or broken deltas across compaction |
167167
| **Permissions & Deferred Calls** | Explicit **owner, safety, publication, and private-data gates**, isolated worktrees, and review-ready handoffs | Autonomous cron runs publishing externally, forcing merges, or leaking private context |
168168
| **Outbox** | Shared Workspace & Lark Goal/Decision/Evidence views surfacing genuine completions, blockers, and open gates | Fragmented terminal logs and high-noise pings that force humans to babysit runs |
169169

‎README.zh-CN.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ LoopX 会按需把它变成可见的任务、决策门和证据。Claude Code
5050
not news. Keep both languages aligned, newest first, using verified publication
5151
dates (UTC). -->
5252

53-
- **2026-11-01 · 📘 [面向 7×24 Agent 的渐进式上下文交付](https://loopx-project.github.io/loopx/blog/zh/context-delivery/)** — 受 Compaction 周期约束的结构化差分与按需视图在 213 次模型唤醒中将单层渐进载荷降至原文 `32.5%`,112 次同周期续跑的叠加首读入口降至 `3.0%` 正文 / `5.0%` 含封装,同时保留压缩失配时原子回切完整基线的能力(延伸阅读:[47 天保鲜事故复盘](https://loopx-project.github.io/loopx/blog/zh/five-freshness-incidents/))。
53+
- **2026-11-01 · 📘 [面向 7×24 Agent 的渐进式上下文交付](https://loopx-project.github.io/loopx/blog/zh/context-delivery/)** — 受 Compaction 周期约束的结构化差分与按需视图在 213 次模型唤醒中将单层渐进载荷降至原文 `32.5%`,112 次同周期续跑的叠加首读入口降至 `3.0%` 正文 / `5.0%` 含封装,同时保留压缩失配时原子回切完整基线的能力。
5454
- **2026-10-25 · 🤝 [长程 Agent 研究:欢迎学术与企业合作者](https://loopx-project.github.io/loopx/blog/zh/edgebench-feedback-and-memory/)** — 探索**等预算下的长期效果突破**:围绕 EdgeBench 和真实长程任务,研究反馈、重规划与可复现评测,同时核对效果与完整成本。欢迎学术与企业团队合作。[交流合作](https://github.com/loopx-project/loopx/discussions)。
5555
- **2026-10-20 · 🚀 [LoopX 2.0](https://github.com/loopx-project/loopx/releases/tag/v2.0.0)** — 共享 TypeScript 控制面与长程研究工作台。[迁移指南](docs/product/releases/v2.0.0.md#中文指南) · [重构历程](https://loopx-project.github.io/loopx/blog/zh/typescript-control-plane-refactor/)。
5656
- **2026-10-14 · 🤖 [Agentic Software](https://loopx-project.github.io/loopx/blog/zh/semantic-software-development/)** — 连接目标、证据、人的反馈与工程交付。
@@ -140,7 +140,7 @@ LoopX 把这套**开源、Harness 中立**的控制面直接做成可运行基
140140
| --- | --- | --- |
141141
| **Event Inbox(事件收件箱)** | Single-flight **Goal / Todo / Hard Lease** 队列、异步对话收件箱,以及飞书 / GitHub 事件监听 | 多 Worker 并发踩踏同一份仓库状态;运行中途用户消息丢失 |
142142
| **Timers(定时与唤醒)** | **Guarded Heartbeat** 与安全周期预设(`daily-triage`、`changelog-draft`、`pr-watch`,可用 `loopx preset list` 只读查看) | 盲目 cron 在零增量或人门尚未批准时反复唤醒模型白烧 Token |
143-
| **Memory(记忆与压缩恢复)** | [`Decision Context`](loopx/capabilities/decision_context/README.md) 来源追踪、受 Compaction 周期约束的 **Progressive + Delta** [`context_delivery`](https://loopx-project.github.io/loopx/blog/zh/context-delivery/)(213 次唤醒中单层渐进降至原文 `32.5%`,112 次同周期续跑首读降至原文 `3.0% / 5.0%`),以及可选 [`Reward Memory`](loopx/capabilities/reward_memory/README.md) | 数据源过期却一路亮绿灯([47 天 / 253 轮中的 5 次保鲜事故](https://loopx-project.github.io/loopx/blog/zh/five-freshness-incidents/));上下文压缩后全量重放或差分悬空 |
143+
| **Memory(记忆与压缩恢复)** | [`Decision Context`](loopx/capabilities/decision_context/README.md) 来源追踪、受 Compaction 周期约束的 **Progressive + Delta** [`context_delivery`](https://loopx-project.github.io/loopx/blog/zh/context-delivery/)(213 次唤醒中单层渐进降至原文 `32.5%`,112 次同周期续跑首读降至原文 `3.0% / 5.0%`),以及可选 [`Reward Memory`](loopx/capabilities/reward_memory/README.md) | 数据源过期却一路亮绿灯;上下文压缩后全量重放或差分悬空 |
144144
| **Permissions(权限与延后批准)** | 显式 **Owner / 安全 / 公开发布 / 私有数据 Gate**、隔离 Worktree 与可评审交付交接 | 定时任务在无人确认时私自对外发布、强行合并或越界读写 |
145145
| **Outbox(低噪成果回传)** | 本地工作区与飞书共享同一份 Goal / 决策 / 证据视图,仅在真正完成、阻塞或待决时打扰人类 | 碎片化终端日志与各端高频无效推送,避免人肉盯盘 |
146146

0 commit comments

Comments
 (0)