Skip to content

Commit 4fea667

Browse files
committed
Extract server-side PostgreSQL and RemoteAuthority service to loopx-cloud
Keep local File/SQLite authority, the provider injection SPI in local_authority_provider.ts, and the outbound HTTPS RemoteAuthority wire contract, TLS client, probe, and read-only scheduler gateway 100% Apache-2.0 in loopx while moving server-side PostgreSQL authority, distributed lease coordination, and Compose service bundles to loopx-project/loopx-cloud. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
1 parent 958b0f4 commit 4fea667

91 files changed

Lines changed: 716 additions & 9677 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/workflows/postgresql-integration.yml‎

Lines changed: 0 additions & 118 deletions
This file was deleted.

‎CONTRIBUTING.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ touch, mention it in the PR instead of fixing it there.
193193
| `dco.yml` | every PR | yes (`Sign-off`) | `Signed-off-by` on contribution commits; verified GitHub-generated two-parent merges are exempt |
194194
| `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 |
195195
| `dependency-review.yml` | every PR | no | dependency changes introduced by the PR |
196-
| `postgresql-integration.yml` | control-plane or npm lockfile paths | no | PostgreSQL authority store and service on a temporary instance |
197196
| `package-smoke.yml` | `loopx-core` and extension package paths | no | `loopx-core` and extension packages install, entrypoints, and example schemas |
198197
| `release-artifacts.yml` | `loopx/`, packaging, and lockfile paths | no | release identity and a release build from this source |
199198
| `runtime-snapshots.yml` | runtime artifact, installer, and updater paths | no | qualified, revision-addressed runtime archives and the main channel pointer |

‎README.ja.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ LoopX はそのオープンでハーネス非依存のコントロールレイ
169169
| 規模 | LoopX の動かし方 | 権限、連携、ガバナンスの姿勢 |
170170
| --- | --- | --- |
171171
| **個人開発者とローカルエージェント** | 外部インフラなしで `python3 -m pip install --upgrade loopx`。既存の CLI/デスクトップのランタイムを接続します | ハードリースを備えた正規のローカル **SQLite** ストア(既存の File セットアップも利用可)。アイドル時のトークン消費ゼロで、再起動やコンパクションを乗り越えます |
172-
| **エンジニアリングチームとエンタープライズへの道筋** | 対等なワーカーが todo を claim し、Desktop Workspace、GitHub、Lark を通じて共有ゴール上でレビュー済みの成果物を返します([3 エージェントのデモ](examples/collaboration-delivery/README.md)) | ワーカーのオーナーシップと人間の承認ゲートを維持します。段階的な **PostgreSQL** リモート権限([プロバイダー](loopx/control_plane/coordination/postgresql_authority_store.ts))や、計画中の組織ガバナンス(RBAC、SSO、クォータ、署名付き監査)へと拡張できます。詳しくは[導入と SaaS のロードマップ](docs/product/roadmaps/saas-opportunity-assessment.md)をご覧ください |
172+
| **エンジニアリングチームとエンタープライズへの道筋** | 対等なワーカーが todo を claim し、Desktop Workspace、GitHub、Lark を通じて共有ゴール上でレビュー済みの成果物を返します([3 エージェントのデモ](examples/collaboration-delivery/README.md)) | ワーカーのオーナーシップと人間の承認ゲートを維持します。ローカルの **File**/**SQLite** 権限およびアウトバウンド HTTPS **RemoteAuthority** クライアント契約([ワイヤー契約](loopx/control_plane/coordination/remote_authority_contract.ts))は `loopx` 内で Apache-2.0 のまま維持され、サーバーサイドの PostgreSQL 権限、分散コーディネーション、マルチテナント組織ガバナンス(RBAC、SSO、クォータ、署名付き監査)は `loopx-project/loopx-cloud` に配置されます。詳しくは[ライセンス境界](docs/project/licensing.md#open-core-and-commercial-boundaries)と[導入と SaaS のロードマップ](docs/product/roadmaps/saas-opportunity-assessment.md)をご覧ください |
173173

174174
## LoopX の動作を見る
175175

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ operate 24/7 with explicit durability and human gates:
176176
| Scale | How LoopX runs | Authority, collaboration & governance posture |
177177
| --- | --- | --- |
178178
| **Solo developer & local agent** | `python3 -m pip install --upgrade loopx` with zero external infrastructure; connect your existing CLI/Desktop runtime | Canonical local **SQLite** store with hard leases (plus existing File setups), surviving restarts and compaction at zero idle tokens |
179-
| **Engineering team & enterprise path** | Peer workers claim todos and return reviewed artifacts on shared Goals via Desktop Workspace, GitHub, and Lark ([three-agent demo](examples/collaboration-delivery/README.md)) | Preserves worker ownership and human approval gates; extends to staged **PostgreSQL** remote authority ([provider](loopx/control_plane/coordination/postgresql_authority_store.ts)) and planned org governance—RBAC, SSO, quotas, signed audit—in the [adoption & SaaS roadmap](docs/product/roadmaps/saas-opportunity-assessment.md) |
179+
| **Engineering team & enterprise path** | Peer workers claim todos and return reviewed artifacts on shared Goals via Desktop Workspace, GitHub, and Lark ([three-agent demo](examples/collaboration-delivery/README.md)) | Preserves worker ownership and human approval gates; keeps local **File**/**SQLite** authority and the outbound HTTPS **RemoteAuthority** client contract ([wire contract](loopx/control_plane/coordination/remote_authority_contract.ts)) Apache-2.0 in `loopx`, while server-side PostgreSQL authority, distributed coordination, and multi-tenant org governance—RBAC, SSO, quotas, signed audit—live in `loopx-project/loopx-cloud` ([licensing boundary](docs/project/licensing.md#open-core-and-commercial-boundaries), [adoption & SaaS roadmap](docs/product/roadmaps/saas-opportunity-assessment.md)) |
180180

181181
## See LoopX in Action
182182

‎README.zh-CN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ LoopX 把这套**开源、Harness 中立**的控制面直接做成可运行基
152152
| 使用形态 | LoopX 运行方式 | 权威存储、协作与治理形态 |
153153
| --- | --- | --- |
154154
| **个人开发者 & 本地 Agent** | `python3 -m pip install --upgrade loopx` 零外部依赖直接运行,接入已有 CLI / 桌面端 | 默认本地权威 **SQLite** + hard lease(兼顾既有 File 配置),跨重启、跨压缩保留现场且闲置零 Token |
155-
| **工程团队 & 组织级扩展** | 多 Agent 认领 Todo、基于同一 Goal 经工作区 / GitHub / 飞书协同交付与互审([三 Agent 协作示例](examples/collaboration-delivery/README.md)) | 保留各自责任边界与人工审批门;支持向预置的 **PostgreSQL** 远程共享权威([源码实现](loopx/control_plane/coordination/postgresql_authority_store.ts))以及[组织治理路线图](docs/product/roadmaps/saas-opportunity-assessment.zh-CN.md)中的 RBAC、SSO 与审计能力平滑演进 |
155+
| **工程团队 & 组织级扩展** | 多 Agent 认领 Todo、基于同一 Goal 经工作区 / GitHub / 飞书协同交付与互审([三 Agent 协作示例](examples/collaboration-delivery/README.md)) | 保留各自责任边界与人工审批门;本地 **File**/**SQLite** 权威及出站 HTTPS **RemoteAuthority** 客户端契约([协议契约](loopx/control_plane/coordination/remote_authority_contract.ts))在 `loopx` 中保持 Apache-2.0 开源,服务端 PostgreSQL 权威、分布式协调与多租户组织治理(RBAC、SSO、配额与签名审计)承载于 `loopx-project/loopx-cloud`(见[许可证边界](docs/project/licensing.md#open-core-and-commercial-boundaries)与[组织治理路线图](docs/product/roadmaps/saas-opportunity-assessment.zh-CN.md)) |
156156

157157
## 看看 LoopX 如何工作
158158

‎docs/architecture/rfcs/mechanism-convergence-and-learning-loop-v0.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ now rejects unsupported providers before storage or writer-fence effects;
347347
[CLI controls](../../../tests/control_plane/test_canonical_authority_fixture.py)
348348
verify actual File/SQLite readback and preserve state on rejection. Previously,
349349
a PostgreSQL label silently initialized File authority. The existing
350-
[PostgreSQL remote task candidate](../../reference/remote-authority-task-service-v0.md)
350+
[outbound `RemoteAuthority` client contract](../../../loopx/control_plane/coordination/remote_authority_contract.ts)
351+
(and the [`v2.4.0` PostgreSQL remote task candidate](https://github.com/loopx-project/loopx/blob/v2.4.0/docs/reference/remote-authority-task-service-v0.md), whose server-side authority now lives in `loopx-project/loopx-cloud`)
351352
is separately qualified through real TLS, restricted roles, task lifecycle and
352353
read-only quota observation. It admits no ordinary host Turn. These service
353354
checks therefore do not qualify an ordinary PostgreSQL feedback Turn or justify

‎docs/architecture/rfcs/mechanism-convergence-and-learning-loop-v0.zh-CN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ Mapping 拒绝顺序、精确整数 IO、会话 ID 解码、轮询时钟及 pend
324324
[CLI 对照](../../../tests/control_plane/test_canonical_authority_fixture.py)
325325
验证真实 File/SQLite 回读及拒绝时状态不变。此前 PostgreSQL 标签会静默
326326
初始化 File authority。既有
327-
[PostgreSQL remote task 候选](../../reference/remote-authority-task-service-v0.md)
327+
[出站 `RemoteAuthority` 客户端契约](../../../loopx/control_plane/coordination/remote_authority_contract.ts)(以及服务端权威现已归入 `loopx-project/loopx-cloud` 的 [`v2.4.0` PostgreSQL remote task 候选](https://github.com/loopx-project/loopx/blob/v2.4.0/docs/reference/remote-authority-task-service-v0.md))
328328
另经真实 TLS、受限角色、任务生命周期和只读 quota 观察验证,仍不准入普通
329329
host Turn。因此这些服务检查不能取得普通 PostgreSQL 反馈 Turn 资格,
330330
也不构成本切片新增执行 profile 的理由。

0 commit comments

Comments
 (0)