Skip to content

Keep confirmed Goal creation attached to its original Task - #8805

Merged
cocolord merged 5 commits into
mainfrom
codex/r1-creation-native-execution-reviewed-20261115
Nov 15, 2026
Merged

cocolord merged 5 commits into
mainfrom
codex/r1-creation-native-execution-reviewed-20261115

Conversation

@cocolord

@cocolord cocolord commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Goal And Delivered Outcome

Create Goal and start first run previously created a read-only conversation without retaining an executable original Task request. A confirmed workspace permission also did not reach its existing authority owner. This change retains that request and lets the original Session queue advance it once its independent checks and current admission permit work.

The request stays bound to the original Goal lifetime, Agent, Task, Session, native thread and source fingerprint. Initial quota denial keeps creation retryable; later denial keeps the saved request pending. Terminalization during queue reads no longer strands an ordinary follow-up, and unknown native publication remains held.

Related to the minimal-kernel RFC R1 checkpoint and C1 #8266. Intended base: main@1965965992fffa1a1cca1a18cb297860155bc133.

Author Declaration

  • Written by: model_agent — GPT-6 family through TRAE.
  • Specification: minimal-kernel RFC, paired with its Chinese checkpoint; current scoped R1 integration, rather than full R1/M3 completion.
Criterion Disposition Owning boundary Evidence
Preserve confirmed creation through the original Task implemented TypeScript Goal creation owners; original Session queue File/SQLite HTTP creation, same-operation replay, restart and quota holds
Retain original conversation and permission boundary implemented source-bound admission, actual Task lease and native sandbox frame thread/source rejection, readOnly failure and ordinary follow-up parity
Observe waiting, failure and result in the shipped UI implemented existing personal-workspace Task view packaged canonical navigation, held request and explicit Continue
Reuse composition, context and settlement owners implemented within this slice existing C1/native owners source combination and fresh isolated Core qualification
Full original ten requirements, live-model context and full costs deferred in the parent program original RFC R1/M3 acceptance remains open; this PR does not claim completion

The Python additions perform I/O and recovery; the TypeScript owners normalize and qualify the request. Current Goal approval and the actual Task lease must cover the original whole workspace. Narrow scopes remain read-only. Ordinary Chat remains read-only.

Scope And Continuation

This is a complete creation-to-original-Task integration slice. It preserves the existing action checkpoint, approval owner and native recovery; it introduces no parallel Intent Store or Python decision owner. Legacy creation stays on its existing path. The user guide explains waiting, permission scope and recovery.

The original ten requirements remain binding. Live-model/tool inheritance, context continuity, D2/D5 closure, progressive Standard journeys, comparable full costs and full R1/M3 acceptance remain open. C1 default cutover is separate. Full original-goal regression remains required before goal completion and EdgeBench preparation.

Validation

  • Tested code revision: 493533db9b47405386565838a59f86fb66c3f410; production/UI bytes unchanged from the corresponding qualified code heads where identified below.
  • Run state: completed author proposal; final local review and bounded qualification completed.
  • Input classes: synthetic, public_fixture.
Check kind Result Evidence / limitation
real_entrypoint / real_backend passed 347 Goal creation, original Task, queue and check-preparation cases on real HTTP/Chat/Core with File/SQLite; scripted native inference/editing. Qualified at a9a8c9446; these backend/Python test bytes are unchanged.
regression_parity passed Same 12-case public HTTP harness at immutable main and code head a63947dc9; zero normalized semantic differences, original permissions/receipts and six-check oracle retained.
regression_parity passed Three original defects fail before repair; pending Waiting accessible-name oracle fails on the old UI and passes on the repaired source frontend.
real_backend / integration passed Four fresh packaged canonical-caller scenarios at a63947dc9: normal acceptance, readOnly failure, failed result then explicit Continue, and quota hold then the same operation. No retries. UI production bytes are unchanged.
static / unit passed Goal creation/review/selection TS cases, full control-plane typecheck, shadow module and paired RFC check. The existing C1 nonempty-observation guard repairs the identical baseline typecheck failure.
integration passed Current C1@8daa5c523 plus author 493533db9: nine fresh cohorts, 298 JUnit cases, zero failures/errors/skips; source cross-Run/void refusal, original Task, queue/holds, replay/native return, installed replay6 and installed Core9. New wheel, 1901 runtime payload files equal source/staging/wheel/installed; all 7620 tracked bytes unchanged. This is bounded composition qualification, not whole-C1 or default cutover.
static / manual passed Final493: six direct and 19 automated premerge checks, zero failures; canary reports manual_review_required for four binary images, whose pixels/metadata/source are covered by final review. Two full code-review groups and cross-group verification report no validated findings. CQR remains disabled by canonical policy; published exact-head review/readiness and merge authority are separate.
manual not_run Real model, installed App/WebView, Lark companion and initial-quota-zero packaged UI recovery. Backend initial-quota-zero recovery is covered.

Earlier custom browser runs replaced Open new Goal's actual navigation with an immediate second navigation that also dropped its source parameter. Their loading failures remain unqualified, separately retained evidence. The canonical-caller qualification waits for and validates the product's own Goal/Agent/Session/source address and stable reload. It does not claim to repair an unrelated product race or relax a latency budget.

Frontend / Visual Evidence

UI impact: changed. Public fixture data only. These are packaged UI views with a real local backend and scripted model responses; they do not certify installed App or real-model behavior. The confirmation layout is unchanged from the canonical guide images and was inspected again at the qualified code revision. New waiting images have a current user-guide consumer.

Before: the earlier original-conversation creation journey, at the verified base; this is presentation evidence for that shipped slice.

Earlier original conversation

After: review the selected permission, then see the retained original request waiting for checks. Desktop and narrow views preserve a visible Task state, one action and on-demand check details.

Creation permission review
Original Task waiting on desktop
Original Task waiting at a narrow viewport

Type Of Change

  • Bug fix
  • New feature
  • Documentation update
  • Test update

Boundary Checklist

  • Public diff/body/images contain no private state, raw traces, credentials, internal links or local paths.
  • No paid model, benchmark run, submission, global installation or account change.
  • English/Chinese RFC pair changes together; bilingual diff check passes.
  • Every contribution commit carries a DCO Signed-off-by trailer.

cocolord and others added 5 commits November 15, 2026 11:30
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

@cocolord cocolord left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent — GPT-6 family — TRAE — self_reported

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

动机 / Motivation

使用个人工作区创建 Goal 并请求开始首轮的用户,需要在原会话中完成已经确认的 Task。

此前创建能保留会话和检查提案,却没有可消费的原 Task 执行请求;初始额度拒绝会丢失开始意图,后续额度拒绝还可能把等待误写成终止。现在确认后的请求保留在原操作中,检查和额度允许时由原队列执行,拒绝或未知结果可在同一 Task 读回。

已验证的改进是:独立检查通过后,在原 Session 执行原 Task、读回结果,并在额度恢复、服务重启和普通后续消息中保持原身份与一次执行边界。

本 PR 不完成原十项验收、全部 R1/M3、真实模型与上下文保留、完整成本资格、C1 默认切换,也不启动新的模型或外部基准任务。

原十项、完整 D2/D5、真实模型及压缩后的上下文保留、渐进 Standard 路径和可比完整成本仍由当前原目标继续验收;目标完成前仍需完整回归。

改动思路 / Approach

保留该组合:身份、资格和权限不变量归现有 TypeScript owner;Python 仅负责原记录读写和已授权的 Host 调用;UI 使用同一公开读回。先检查和当前 admission,再执行原 Task 的路径必须一起交付,拆成孤立字段或 UI POST 无法解决丢失意图和恢复。

当前 PR 只交付明确确认的创建请求到原 Task 执行、等待和恢复;保留普通 Chat 与既有 C1/结算 owner,完整 R1/M3 和真实模型/成本留在原验收。

复用了既有 Goal/action checkpoint、原 Session FIFO、当前 Task admission/lease、native guard 和结算。start_execution 是用户明确请求开始的意图,安装或检查就绪无法推导这项承诺;保存的请求绑定原 Goal lifetime、Agent、Task、Session、native thread 和来源,UI 等待状态则由这些原记录投影。一次确认复用原操作;不会要求重新填写已有目标,也不会把检查确认变成写入权限。独立检查和已有的工作区授权仍是必要的现有边界。

以下是当前头的源码路径说明,执行证据见后面的验证结果。

触发 owning decision / IO 结果
明确确认创建并开始 TS 规范化和原来源绑定;Python 调用既有审批/保存 owner 原 action receipt 留下一个可消费请求
检查或额度未就绪 现有 acceptance/live quota 与 exact Task admission 同一请求等待;初始创建拒绝可重试
原 Task 可执行 实际 Task lease 与最终 native guard 原 Session 执行并读回独立检查结果
原 Turn 已结束或结果未知 原 native journal 与共享 FIFO 已结束后继续普通消息;未知效果不自动重放

保留 legacy 无开始意图路径有实际调用者和持久化 receipt 义务;没有新增版本解码器、Intent Store、Python decision owner 或通用执行流水线。将原 FIFO 提取为共享队列,减少 Chat runtime 的内联责任,避免两个消费者各维护一份重试规则。C1 的现有 source/admission/context/recovery/settlement owner 保持一致。

具体改动 / Changes

评审完整范围为 main@1965965992fffa1a1cca1a18cb297860155bc133 到 493533db9b47405386565838a59f86fb66c3f410。两个评审组及跨组复核覆盖 28 个唯一代码文件的完整相关函数、直接调用者、七个缺陷维度及 TypeScript 专项;额外检查了测试、双语 README/RFC、指南、四张当前截图和现有 source lease shadow 断言。最终没有已验证缺陷;不是继承旧审批。

关键代码讲解

  1. prepareGoalCreationExecutionRequest 从原创建 action、Session 和 canonical Task 产生绑定请求;省略/false 开始意图返回空,不能从显示名称推导另一项工作。projectGoalCreationExecutionRequest 比较原来源和 receipt,冲突/不完整来源留给当前 owner 处理。
  2. retain_creation_write_approval 只发布原确认对应的既有 grant 一次;丢 ACK 读回原记录,而不刷新被撤销、缺失或未知 grant。retain_original_task_request 保留原操作和来源,不建立新权限表。
  3. _creation_allowance 复用 provider-first live quota 和 typed exact Todo preparation。额度拒绝保留 pending 或 accepted-unstarted;最终 native guard 仍再次检查,准备读不能代替执行权限,也不能借同 Goal 下另一项 runnable Todo。
  4. _drain_session_queue_events 在缓存的 creation queued 变为 terminal 后重读原 Turn 并继续普通 FIFO,修复 consumer 返回 false 后误退出;unknown/running 仅等待 signal,startup 只恢复来源匹配且确定未启动的原操作。
  5. goal-loopx-mode 用原 Task GET 采用保留请求,空 Turn、queued 和 starting 显示禁用 Waiting,仅实际 running 显示 Working。创建观察和刷新没有 native POST;失败后的 Continue 是显式操作,保留原 Task/Session 并重新读取当前 admission。

canonicalNativeTaskSandboxPolicy 要求已有 whole-workspace Goal approval 与实际 Task lease 都覆盖 **,才返回该原工作区的 workspaceWrite。窄 scope 保持 readOnly;同一 turn/start 固定原工作区 roots,网络和临时目录写入禁用。普通 Chat 后续消息显式回到 readOnly。来源、线程和模型参数不因创建请求而替换。

规格依据是 docs/architecture/rfcs/monorepo-distribution-split-v0.md,不可变规格版本 1965965(accepted text)。按修改前的接受标准评估,新双语 checkpoint 只记实际交付与缺口。

原规格项 当前处分与证据
I2 implemented:单一 typed authority、原审批/Task/lease/native/settlement owner;真实 File/SQLite HTTP 原 Task、重放和拒绝路径验证。
I7 implemented:明确意图才触发新请求,no-start/ordinary 的成对 HTTP、schema、prompt、receipt、权限和调度均保留;空队列不新增 canonical 读取。
I8 deferred:本片来源/身份/replay 规则已覆盖,真实模型、session generation/compaction 上下文连续性仍属原目标。
V2 deferred:本片精确 Task authority 与一次结算有证据;两个完整 preset 的全量资格未完成。
V4 deferred:真实 Chat/Core/存储的原 Task、restart 与结果读回已覆盖;模型编辑为脚本,真实 Host 与完整恢复成本仍未资格化。
V5 deferred:stale source/丢 ACK/startup 拒绝覆盖;真实模型 adoption 与压缩后上下文仍未完成。
V6 deferred:打包工作区四条实际路径通过;安装版 App、Lark、完整成本和完整 Standard journey 未完成。
V10 deferred:本 PR 不声明 latency、default-closure 或完整成本收益;没有改预算。
R1 deferred:原创建到 Task 的完整集成增量;完整选定 D2/D5 与 V1–V5/V10 继续原验收。
M3 out_of_scope:不发布分发包或宣称预发布完成;新装 Core 仅是当前组合路径验证。

双语 README/RFC 和指南说明旧/新触发、授权、Waiting/恢复及证据边界。source lease shadow 的小修直接复用当前 C1 的非空 stdout guard,原四个场景和状态/调用次数 oracle 未变;没有把其它 C1 源码带入本 PR。

对主干的风险 / Risks

最强回归风险是旧请求在初始/后续额度拒绝后失去开始意图或被写成终止,从而无法继续已确认工作;另一风险是缓存的队列状态使普通后续消息被饿死。三个 P1 的原失败保留,当前 real HTTP/File/SQLite 回归验证了原操作重试、pending 恢复和 terminal 竞态后普通 FIFO。未知 native 效果不会被当作安全 no-op:最终 late-change guard 返回 stale_goal_authority,无已知 Host 结果,保留 unknown recovery、禁止 reinvoke;不能用准备阶段的一次成功读绕过它。

创建 intent、检查确认和 UI 显示都不是执行权限。错 Task、来源改变、同 Goal 新增独立 Todo、窄 lease 和 readOnly 路径有拒绝证据;当前读取与实际 lease/source 仍是 owner。feature-off 使用同一不可变输入的 12 条 HTTP/Chat/File/SQLite 比较:保留全诊断、persisted receipt、原 thread/history、readOnly 参数与无 native dispatch;仅生成标识、时间和 digest 值按公开规则归一化,并保留相等关系,语义差异为零。fixture caller alias/error 修正没有改变其原 37 个 Assert AST,独立六行为 checker 和故意失败的原 cart 也未改动。

验证与语义 / Validation and semantics

验证 当前证据与边界
广覆盖真实入口 PASS:八个完整 Python 文件共 347 个案例,real HTTP/Chat/Core/File/SQLite、原 Task 修复/独立验收、source/权限/队列/restart。运行于 a9a8c9446e7b0ffb6e314e00b671503dfe74ffbf;当前生产和相关 Python 测试字节一致,保留原运行身份。
Legacy 对照 PASS:不可变 main 与 a63947dc9a79ba2ad53bf0d80978402f51cdbb7a 使用同一 12 案例 harness;零归一化语义差异,当前相关生产字节一致。
最终源码检查 PASS:当前头 74 个 TypeScript 案例及 full control-plane typecheck;浏览器四项 PASS。旧 pending Working 的 accessible-name 失败留存,修复后 Waiting 通过。
预合入 PASS 验证:六项 direct + 十九项 automated,零失败;canary 原始 gate 为 manual_review_required,四张图片的像素/元数据/来源在本次人工评审中覆盖。该结果没有赋予 merge authority;CQR 按 canonical 策略 disabled。
打包实际导航 PASS:a639 四个 fresh sequential、零重试案例,包括正常结果、readOnly 失败、失败后显式 Continue、额度 hold 后同操作恢复。当前生产 UI/LoopX 字节一致,原 statusUrl 保留。automatic UI native POST 为零,显式 Continue 为一。
最新 C1/Core 组合 PASS:当前 C1@8daa5c5230985a76361647c4a45496b3c244a2d0 与本 PR 的封存组合树 ffb54ebd675596a724630efb6c3c0ced57c506c7,九组 298 案例,失败/错误/跳过均为零。新 Core wheel 独立安装,1901 runtime 文件四方一致;installed replay 六例的 84 次实际 CLI 调用和 installed Core 九例来源已验证。7620 tracked 文件测试前后未变;不是 C1 全 PR/默认切换或真实 Host 资格。附加 Mac 路径别名的 lexical 审计初次失败保留,经 realpath 核对解决,未重跑测试。
远端 CI UNVERIFIED diagnostic:readiness 在 04:56 UTC 观察到 Ark adapter-contract (3.13) 和 windows-powershell 两项失败、25 项 pending。稍后当前 failing 项仅 Windows;其已完成 job 日志显示 CLI base/head differential 测量阶段 WinError 2,未完成 native Windows 成对重跑,因此不归因为已证实的外部/既有故障。已通过的本地/macOS 与安装 Core 证据独立覆盖当前所选路径,Windows 资格仍未声明。wait_for_ci=true 的远端门单独保留;此前的 explicit maintainer authorization 允许在精确 head、必要验证和线程无阻塞时使用 admin bypass,不改变验证标准。

来源及身份规则复用既有 registered vocabulary 和 typed owner;产品等待文案留在本地展示层,未引入第二状态模型。agent-consumed 既有义务未缩短;新的队列提示不能替代原 Task/source 或扩大权限。Windows ctime shadow 是合成场景,此表不声称 native Windows、真实模型或 OS sandbox 资格。

我的整体评价 / Verdict

本片为 justified_increment。long_horizon preserved:原请求、已确认承诺和原 identity 在重试/restart/额度恢复后仍可继续,unknown 不自动重放,普通 FIFO 不被 creation 终止竞态阻断;这些结果不证明模型的长程收益。user_experience improved:已有确认到原 Task 结果的路径完整,原地址、权限和真实等待状态一起读回,无需补写原意图或隐含新增 native POST。

检查了实际打包页面的桌面和窄屏默认、展开与恢复状态,包括长 Goal 描述、原回复和检查计划、已有消息以及 pending/readOnly/failed/quota 混合状态。原 Task、等待原因和下一动作可一起找到;等待显示 Waiting,实际运行才显示 Working,详细检查仍可展开。四张当前指南图片以及原会话 before 图片的像素和 RIFF 元数据已审查;新图片只有 VP8 内容。

未资格化范围:真实模型、安装版 App/WebView 和 Lark 未资格化;初始额度为零的打包 UI 恢复未执行,仅其 File/SQLite 后端恢复已验证。旧双重导航工作负载的 loading 失败原因仍未确定,当前自然导航工作负载四次零重试通过,不宣称修复旧失败。

代码规模 necessary / proportionate,兼容性选择 retain:有真实 legacy 调用者及持久化恢复义务,当前 request 用显式 start 分支而非多版本解码。已应用有界 FIFO 提取和 C1 guard 复用;没有应在本轮修复而被推迟的重复 authority/pipeline。C1 最新组合无文本冲突,但组合测试不等于 C1 producer/consumer/default cutover 完成。

当前评审结论以 493533db9b47405386565838a59f86fb66c3f410 为唯一对象;发布前后必须重新核对不变 head。原十项与完整回归仍开放,合入仍需 approval closeout、精确 readiness 和已授予的 maintainer authority,不能越过未解决发现、变更 head、冲突或缺少必要验证。

English verdict: APPROVE head 493533d; no validated findings after full source and cross-group review. Local real-path, parity and current C1/Core integration evidence qualify this bounded creation-to-original-Task slice; parent RFC/model/cost acceptance and merge readiness remain separate.

@cocolord
cocolord merged commit 7a2ee66 into main Nov 15, 2026
24 of 50 checks passed
@cocolord
cocolord deleted the codex/r1-creation-native-execution-reviewed-20261115 branch November 15, 2026 04:59
loopx-agent added a commit that referenced this pull request Nov 15, 2026
…000 commits (#8759)

* Deliver verified images in private Lark answers

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Keep image retries behind new private Lark replies

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Recover missing images from one verified private Lark reply

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Use one wall clock for private Lark image retries

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Recheck the original Lark reply before historical image writes

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Verify private Lark image sources before every redirect

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* 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 <337587101+loopx-agent@users.noreply.github.com>

* Recheck the historical Lark reply before each media write

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Retry Lark image uploads after an explicit App scope rejection

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Honor original Lark stop and closure before deferred images

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Recheck private answer control after Lark source read

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Read the current Core session after delayed image controls

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Fence private answer media dispatch with original controls

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Keep Lark media checks with private delivery

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Recheck Lark image sources after recording upload intent

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Read both original Feishu messages together before media upload

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Verify Feishu sources at the guarded image dispatch

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Preserve pre-dispatch Feishu source and session validation

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Recover and verify PostgreSQL checkpoint history with append-only privileges

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Verify backup history to its captured cursor beyond 20000 commits

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Generate explicitly synthetic secret fixtures at test time

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Recover private image uploads when the Lark CLI cannot start

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* fix(chat): preserve the first Goal's registered conversation (#8798)

* fix(chat): preserve the first Goal's registered conversation

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* test(chat): keep original Goal adoption compatible with Python 3.11

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

---------

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* Avoid rereading delivered Lark settings records and empty queues

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Recover private Lark images after a CLI descriptor limit

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Enable existing checks and the original authorized Task in managed Chat

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* Reuse the canonical boundary projection and narrow Task JSON types

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* Keep confirmed Goal creation attached to its original Task (#8805)

Reuse the existing C1 source observation guard

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* Assert the lease source probe returned an observation (#8796)

(cherry picked from commit 2c099be)

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* 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 <337587101+loopx-agent@users.noreply.github.com>

* Preserve ordinary completed-Todo successor admission

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Replay one validated Turn debit across concurrent observations

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Validate original Turn spend terms before debit and replay

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

---------

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Keep conversation history rendering off the typing path (#8781)

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* 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 <337587101+loopx-agent@users.noreply.github.com>

* test(coordination): assert subprocess readback before decoding

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* fix(coordination): qualify explicit remote task reads and lifecycle receipts

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* fix(coordination): preserve existing successors on remote completion

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* test(remote-authority): prove ordinary admission stays local

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

---------

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* test(chat): preserve create-only intent in workspace selection smoke

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Defer material inventory during configuration discovery (#8807)

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* Defer report providers during Turn reads

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* test(core): require installed provenance before qualification

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* Reuse the final source check for staged Turn requests (#8820)

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* 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 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* Load provider options only for the selected capability editor (#8822)

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* 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 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* Record installed Core and C1 observer qualification

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

---------

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* 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 <337587101+loopx-agent@users.noreply.github.com>

* docs(blog): use declarative mechanism-led opening in zh context-delivery score section

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

---------

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* fix(heartbeat): preserve proven waits before their due time (#8825)

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Fix manager discovery in ordinary installs (#8830)

* Package the manager discovery projection

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* Record selected manager discovery distribution qualification

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

---------

Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>

* test(workspace): verify confirmed Goal creation against the current contract (#8816)

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* 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 <337587101+loopx-agent@users.noreply.github.com>

* 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 <230141834+psychologister@users.noreply.github.com>
Co-authored-by: psychologister <230141834+psychologister@users.noreply.github.com>

* 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 <1017343802@qq.com>

* Keep scheduler follow-up hint reads out of legacy migration

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

---------

Signed-off-by: Lihua <1017343802@qq.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Co-authored-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Resume the original quota settlement after lifecycle writeback (#8728)

* fix(replan): resume settlement after lifecycle review writeback

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Recover committed replan settlement before rebuilding its review

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

---------

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* fix(antigravity): keep the project registry in generated wakes (#8768)

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* fix(chat): keep workspace checker reads portable (#8814)

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Reject external Turn retries when the captured work changes (#8828)

* Recheck captured work before launching an external Turn host

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Keep complete-source metadata assembly outside Turn planning

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

---------

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Preserve PostgreSQL runtime access and recover seed output retries

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

* Validate recovery cursor metadata without a fixed history ceiling

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

---------

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
Signed-off-by: psychologister <230141834+psychologister@users.noreply.github.com>
Signed-off-by: Lihua <1017343802@qq.com>
Co-authored-by: Lusen Dong <lusendong.6789@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: Lusen Dong <cicomaple@gmail.com>
Co-authored-by: psychologister <st040325@gmail.com>
Co-authored-by: psychologister <230141834+psychologister@users.noreply.github.com>
Co-authored-by: Lihua <1017343802@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant