Repository navigation
Preserve the project registry for Antigravity scheduled wakes - #8768
Conversation
Signed-off-by: LoopX Agent <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
评审提交 47fbd432ecc6255579d89407f094c1de13121b4c,对照目标基线 8d7d234c6f55fa45fa5db0ad5a156dcaaf726d32。
动机 / Motivation
把 LoopX Goal 创建在项目内、由 Antigravity App 在后台唤醒的操作者。 后台工作目录切到另一项目,两个项目各有一个 ID 相同但配额不同的 Goal。 原 bootstrap 从后台目录读到另一份 registry。它拿到同名 Goal 的准入结果,后续读哪个项目会随当前目录改变。 两个生成入口的安装 wheel 在同一个后台目录都使用注册原项目。sidecar 和会话内 wake 的下游 CLI 仍绑定所选可执行文件,scheduler observation 与 gate capture 都回读原项目。 证据覆盖隔离项目的安装 wheel、生成入口、scheduler reader 与合成 Stop 取消。真实登录状态下的后台定时启动、桌面发出的失败事件与托管 CI 仍未核验。
改动思路 / Approach
项目注册在 Core 解析。Antigravity activation 和 Stop hook 只传递已解析的身份,Core quota 继续判断准入和实际结算。 由两种已有 onboarding 入口提供已解析的 registry,并用 Core 现有可执行文件参数生成器贯穿各入口。 复用 render_cli_command_prefix、loopx_cli_argv 与已有的 registry、quota、Stop owners。无新增选择器、存储状态或调度入口。
具体改动 / Changes
关键代码讲解
bootstrap-command-pack 和 agent-onboard 将解析后的 registry 传入已有 Antigravity 激活。新 registry 参数从两个入口进入同一 builder。bootstrap 入口 · onboarding 入口
sidecar bootstrap 与 gate 使用同一 CLI 前缀。独立运行实际生成命令后,回读了下游 guard 所选 registry 和 gate capture 的原项目资格。sidecar 模板
Stop hook 把既有 registry 和 CLI 参数带入 Core。向生成的 Stop 命令输入用户取消,两个精确版本都保持停止。Stop 的 Core 调用
8 个文件,+99/-28。7 个实现文件沿现有入口和 helper 传递参数,1 个测试文件查两个生成入口和 Stop 绑定。 独立核验了项目和 Goal 的归属、各入口传递同一注册身份,以及显式无效来源与停止。项目内 Goal 契约
对主干的风险 / Risks
将任何入口的显式 registry 改成不存在的路径,执行均拒绝,且不回退到工作目录。Stop hook 持有同一 registry,用户取消仍结束;legacy agy 在相同默认 runtime 冲突下两版都拒绝。
语义与 CI 对齐
候选的 34 项 host 和 runtime 检查,以及本地 standard premerge 的 6 项直接检查和 4 项选定检查通过。 初次 standard 中既有 CLI output budget 检查超时,精确基线的独立检查以及候选的 standard 重跑通过。首次超时的原因仍未确证。 对照两个相同 ID 的 Goal 证明了路由变化。候选容纳带空格的路径,Core 仍决定准入和结算。
我的整体评价 / Verdict
通过。后台唤醒跨工作目录时,Agent 仍根据原 Goal 的配额和任务状态继续。 本改动交付生成命令的路由。已安装旧配置的更新和真实登录会话的定时唤醒还需以实际采用版本验收。
English verdict: APPROVE at 47fbd43. The installed CLI keeps the selected project, executable and quota scope across the generated Antigravity App wake routes.
…000 commits (#8759) * Deliver verified images in private Lark answers Signed-off-by: LoopX Agent <[email protected]> * Keep image retries behind new private Lark replies Signed-off-by: LoopX Agent <[email protected]> * Recover missing images from one verified private Lark reply Signed-off-by: LoopX Agent <[email protected]> * Use one wall clock for private Lark image retries Signed-off-by: LoopX Agent <[email protected]> * Recheck the original Lark reply before historical image writes Signed-off-by: LoopX Agent <[email protected]> * Verify private Lark image sources before every redirect Signed-off-by: LoopX Agent <[email protected]> * feat(coordination): add postgresql authority checkpoints and local-to-pg-seed exporter - Add authority_checkpoints table DDL and tenant-scoped RLS policies. - Store incremental delta in authority_commits and bounded checkpoints every 64 commits and on genesis cursor 1, resolving table bloat and the 20,000 commit recovery ceiling. - Implement scanCommitted bounded delta replay from covering checkpoint via AuthorityStateReplay. - Add setupPostgreSqlAuthoritySchemaAndRole for explicit schema installation and least-privilege restricted role assembly. - Add exportLocalToPgGenesisSeed with sanitization (expired leases, local absolute paths, .local/ references, Feishu IDs, private materials) and fail-closed privacy boundary scan. - Add loopx postgres setup and loopx postgres local-to-pg-seed CLI commands. - Add test suites for checkpoints, sanitization, role assembly, and CLI invocation. Signed-off-by: LoopX Agent <[email protected]> * Recheck the historical Lark reply before each media write Signed-off-by: LoopX Agent <[email protected]> * Retry Lark image uploads after an explicit App scope rejection Signed-off-by: LoopX Agent <[email protected]> * Honor original Lark stop and closure before deferred images Signed-off-by: LoopX Agent <[email protected]> * Recheck private answer control after Lark source read Signed-off-by: LoopX Agent <[email protected]> * Read the current Core session after delayed image controls Signed-off-by: LoopX Agent <[email protected]> * Fence private answer media dispatch with original controls Signed-off-by: LoopX Agent <[email protected]> * Keep Lark media checks with private delivery Signed-off-by: LoopX Agent <[email protected]> * Recheck Lark image sources after recording upload intent Signed-off-by: LoopX Agent <[email protected]> * Read both original Feishu messages together before media upload Signed-off-by: LoopX Agent <[email protected]> * Verify Feishu sources at the guarded image dispatch Signed-off-by: LoopX Agent <[email protected]> * Preserve pre-dispatch Feishu source and session validation Signed-off-by: LoopX Agent <[email protected]> * Recover and verify PostgreSQL checkpoint history with append-only privileges Signed-off-by: LoopX Agent <[email protected]> * Verify backup history to its captured cursor beyond 20000 commits Signed-off-by: LoopX Agent <[email protected]> * Generate explicitly synthetic secret fixtures at test time Signed-off-by: LoopX Agent <[email protected]> * Recover private image uploads when the Lark CLI cannot start Signed-off-by: LoopX Agent <[email protected]> * fix(chat): preserve the first Goal's registered conversation (#8798) * fix(chat): preserve the first Goal's registered conversation Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * test(chat): keep original Goal adoption compatible with Python 3.11 Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> --------- Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Avoid rereading delivered Lark settings records and empty queues Signed-off-by: LoopX Agent <[email protected]> * Recover private Lark images after a CLI descriptor limit Signed-off-by: LoopX Agent <[email protected]> * Enable existing checks and the original authorized Task in managed Chat Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Reuse the canonical boundary projection and narrow Task JSON types Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Keep confirmed Goal creation attached to its original Task (#8805) Reuse the existing C1 source observation guard Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Assert the lease source probe returned an observation (#8796) (cherry picked from commit 2c099be) Signed-off-by: LoopX Agent <[email protected]> * Recover an owed replan debit before the next host Turn (#8794) * Recover an owed replan debit before the next host Turn Consider the original Todo binding when an admitted replan has verified writeback. Require the exact spend receipt before another guard grants delivery, even if the Todo lifecycle has changed. Keep explicit selection on the same recovery path and let the existing settlement owner replay the original debit. Signed-off-by: LoopX Agent <[email protected]> * Preserve ordinary completed-Todo successor admission Signed-off-by: LoopX Agent <[email protected]> * Replay one validated Turn debit across concurrent observations Signed-off-by: LoopX Agent <[email protected]> * Validate original Turn spend terms before debit and replay Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * Keep conversation history rendering off the typing path (#8781) Signed-off-by: LoopX Agent <[email protected]> * feat(coordination): complete remote task lifecycle and opt-in gateway access (#8747) (#8765) * feat(coordination): add complete remote task lifecycle and opt-in gateway access (#8747) Align with PR #8747 (multi-loopx-agent-cloud-collaboration-v0) and remote-authority-task-service-v0 (#8508): 1. Extend RemoteAuthorityService with full remote task settlement: - Add 'complete', 'block', 'defer', 'todo_add', and 'snapshot' operations. - Enforce hard-lease fencing and claim-request ownership checks. - Settle completion receipts and deterministic cross-machine snapshot digests. - Maintain default-deny Tenant/Goal/Actor authorization and incarnation pinning. 2. Introduce controlled remote authority gateway in Python control plane: - Default-disabled access: local private Goals never connect to remote authority or leak local credentials. - Opt-in gateway metadata projection for explicitly configured goals and the 'loopx-quality-review' canary. - Fail-closed should-run health check when remote authority is unconfigured or unreachable. 3. Conformance and unit test coverage across TypeScript and Python suites. Signed-off-by: LoopX Agent <[email protected]> * test(coordination): assert subprocess readback before decoding Signed-off-by: LoopX Agent <[email protected]> * fix(coordination): qualify explicit remote task reads and lifecycle receipts Signed-off-by: LoopX Agent <[email protected]> * fix(coordination): preserve existing successors on remote completion Signed-off-by: LoopX Agent <[email protected]> * test(remote-authority): prove ordinary admission stays local Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * test(chat): preserve create-only intent in workspace selection smoke Signed-off-by: LoopX Agent <[email protected]> * Defer material inventory during configuration discovery (#8807) Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Defer report providers during Turn reads Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * test(core): require installed provenance before qualification Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Reuse the final source check for staged Turn requests (#8820) Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Defer PR wait provider loading until permission is checked (#8821) Load the optional PR reconciler only after the invocation-time observation permission check, inside the existing provider failure boundary. Preserve original permission, cadence, result and unknown-effect owners, and document the bounded default-closure and timing-window change. Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Load provider options only for the selected capability editor (#8822) Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * docs: describe README session continuity directly (#8823) * Skip automatic usage observers for supported opt-outs (#8824) * Skip automatic usage observers for supported opt-outs Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Record installed Core and C1 observer qualification Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> --------- Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * docs(blog): add EdgeBench controlled Context ON vs OFF 10-task score comparison (#8760) * docs(blog): add EdgeBench controlled Context ON vs OFF 10-task score comparison Signed-off-by: LoopX Agent <[email protected]> * docs(blog): use declarative mechanism-led opening in zh context-delivery score section Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(heartbeat): preserve proven waits before their due time (#8825) Signed-off-by: LoopX Agent <[email protected]> * Fix manager discovery in ordinary installs (#8830) * Package the manager discovery projection Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * Record selected manager discovery distribution qualification Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> --------- Signed-off-by: lusendong.6789 <[email protected]> Co-authored-by: TRAE CLI <[email protected]> * test(workspace): verify confirmed Goal creation against the current contract (#8816) Signed-off-by: LoopX Agent <[email protected]> * Fix Windows CLI output probe reader invocation (#8817) Port the probe fixture and native Windows regression coverage from e6eb92d and 8d200aa. Decode the generated PowerShell literals into argv before launching the pinned reader. Signed-off-by: LoopX Agent <[email protected]> * refactor(issue_fix): fold reviewer source trust/freshness vocabularies into one owner (#8826) reviewer_recommendation.py restated the trust and freshness sets that repository_context.py already owns. Import both as aliases of the owner objects so the decision has a single source, and add an architecture guard that pins single ownership by value, by identity, and by wiring through both public builders. REVIEWER_SOURCE_KINDS stays local (deliberately narrower). Signed-off-by: psychologister <[email protected]> Co-authored-by: psychologister <[email protected]> * fix(scheduler): reject superseded heartbeat receipts on the Python follow-up route (#8708) * fix(scheduler): reject superseded heartbeat receipts on the Python follow-up route The Python compatibility route for scheduler-ack-current/scheduler-fail-current checked only that the receipt for --turn-instance-id exists; a receipt already superseded by a newer heartbeat Turn still committed scheduler state, while the native TypeScript transaction rejects it as heartbeat_receipt_stale. Thread the Turn from build_scheduler_followup_payload through record_quota_scheduler_ack / record_quota_scheduler_ack_for_decision / record_quota_scheduler_failure_for_decision into _run_native_followup, which now sends turn_instance_id with require_heartbeat_receipt=true. The TypeScript transaction remains the single owner of the missing/stale/superseded fence (it also rechecks under the scheduler state lock); optional parameters keep the in-process API, which has no Turn, unchanged. Fixes #8605 Signed-off-by: Lihua <[email protected]> * Keep scheduler follow-up hint reads out of legacy migration Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: Lihua <[email protected]> Signed-off-by: LoopX Agent <[email protected]> Co-authored-by: LoopX Agent <[email protected]> * Resume the original quota settlement after lifecycle writeback (#8728) * fix(replan): resume settlement after lifecycle review writeback Signed-off-by: LoopX Agent <[email protected]> * Recover committed replan settlement before rebuilding its review Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * fix(antigravity): keep the project registry in generated wakes (#8768) Signed-off-by: LoopX Agent <[email protected]> * fix(chat): keep workspace checker reads portable (#8814) Signed-off-by: LoopX Agent <[email protected]> * Reject external Turn retries when the captured work changes (#8828) * Recheck captured work before launching an external Turn host Signed-off-by: LoopX Agent <[email protected]> * Keep complete-source metadata assembly outside Turn planning Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> * Preserve PostgreSQL runtime access and recover seed output retries Signed-off-by: LoopX Agent <[email protected]> * Validate recovery cursor metadata without a fixed history ceiling Signed-off-by: LoopX Agent <[email protected]> --------- Signed-off-by: LoopX Agent <[email protected]> Signed-off-by: lusendong.6789 <[email protected]> Signed-off-by: psychologister <[email protected]> Signed-off-by: Lihua <[email protected]> Co-authored-by: Lusen Dong <[email protected]> Co-authored-by: TRAE CLI <[email protected]> Co-authored-by: Lusen Dong <[email protected]> Co-authored-by: psychologister <[email protected]> Co-authored-by: psychologister <[email protected]> Co-authored-by: Lihua <[email protected]>
Goal And Delivered Outcome
Antigravity App can start a background wake from outside the project directory. The generated sidecar bootstrap then looks for the Goal in the ambient registry. A Goal registered only in its project fails to start. A different project using the same Goal ID can also send that bootstrap to the wrong registry.
The activation packet now carries the project registry selected by onboarding. The generated activation, scheduler gate, sidecar, in-session wake, and Stop hook use that registry and preserve the selected LoopX executable. This fixes the host handoff for #8266 and targets
mainindependently.Author Declaration
Validation
Tested revision
47fbd432e. Tests used isolated synthetic Goals and an installed wheel.loopx checkandgit diff --check.The separate C1 candidate was also exercised through the installed Antigravity scheduler binary with a deterministic driver on File and SQLite. This PR covers generated routing. A live signed-in model session and the desktop-managed Stop error path remain separate qualification work.
Frontend / Visual Evidence
UI impact: none. The existing Antigravity activation flow consumes the corrected commands. No layout or control changed.
Boundary Checklist