Repository navigation
Conversation
Add opt-in discovery schedules using fresh read-only worker Sessions and explicit report or no_report settlement through the existing Bot path. Preserve original execution identities across restart and Host handoff. Refs: apache#6716 Generated-by: OpenAI Codex
Keep cancellation durable across resume and service disablement, and settle only the original investigation Turn. Recheck report authority at admission and restrict Recall to the enabled built-in implementation. Preserve uncertain result writes and allow approved inactive plans to resume. Generated-by: OpenAI Codex
This was referenced Nov 9, 2026
Integrate the durable Agent execution API, retain the A1 read-only investigation scope, and retract revoked pending reports before recovery consumers start. Port behavior coverage to the current real Host harness. Generated-by: OpenAI Codex
Include the latest upstream UI changes and regenerate the dependency inventory after the upstream native graph changes. Generated-by: OpenAI Codex
Finish each simulated model step before awaiting steering. Verify that Stop targets the current Run while an accepted followup executes once and the next draft stays intact. Keep the existing input, queue, and timeout checks. Generated-by: OpenAI Codex
Sync current rust-preview while retaining the recovered-report authorization boundary. Box the new legacy-compaction projection at its entrypoint to bound the debug poll stack, and keep the notification recovery fixture pinned to its original busy Run. Generated-by: OpenAI Codex
Acquire the existing child handle before the five-second pipe-drain wait. This separates PowerShell fixture startup from drain timing and preserves cleanup when the wait fails; production process behavior and the drain bound are unchanged. Generated-by: OpenAI Codex
The queue consumer uses try_lock for Goal admission, so an enqueue wake can be consumed while the producer still owns the gate. Notify after releasing it when the persisted schedule still has ready work; keep the existing authorization and ordering checks. Generated-by: OpenAI Codex
Withdraw independent engine, Goal, Bot admission, inventory and platform-test repairs. Keep discovery recovery and authorization coverage, and narrow fixture cleanup to report delivery. Generated-by: OpenAI Codex
Retain both discovery and upstream recovery endpoints in the model test fixture. Generated-by: OpenAI Codex
Keep discovery target checks and upstream completion placement during background admission. Retain the Bot controls and discovery regression fixtures. Generated-by: OpenAI Codex
Sync rust-preview and keep Bot worker notifications out of the interactive Stop cut. The recovery fixture finishes its independent worker turn before restarting the Host so the original report is still verified exactly once. Generated-by: OpenAI Codex
Generated-by: OpenAI Codex
Read the investigation plan directly in restore and tool admission, and fold ordinary Session tool visibility into the existing approval test. Generated-by: OpenAI Codex
Generated-by: OpenAI Codex
Continue accepting the old receipt shape while avoiding a second durable copy of the worker report. Generated-by: OpenAI Codex
sunrioa
marked this pull request as ready for review
November 12, 2026 10:04
30 tasks
Generated-by: OpenAI Codex
Generated-by: OpenAI Codex
Generated-by: OpenAI Codex
Generated-by: OpenAI Codex
Generated-by: OpenAI Codex
Generated-by: OpenAI Codex
Generated-by: OpenAI Codex
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #6716.
The Rust Bot can arrange scheduled tasks, but scheduled investigations do not yet have a dedicated way to finish quietly or hand recorded findings back to the Bot.
Add a
discoveryeffect to the existing Scheduler. Each fire creates a fresh read-only worker Session. The worker callsDiscoveryCompleteto record eitherno_reportorreportand end its Turn. Ano_reportoutcome settles without waking the Bot; a report enters the existing notification path, where the Bot decides whether to notify the user.DiscoveryComplete.Targets
rust-preview. This is the initial manual/timed investigation and result-settlement slice of A1/A3 in #6716. Source-change intake, shared memory and feedback linkage remain follow-up work.Verification
Local macOS verification for
96d87444c0dde0c1b4062da813df44645c562eeb, using Rust 1.98.0 and Node 26.13.0 for SDK checks.cargo-deny 0.20.2)-D warningsis not greenIntegration tests use local model fixtures and the real Host. Coverage includes approved-plan resume, Bot/scheduler disablement, pause/resume cancellation, permission changes before report admission, later ordinary worker Turns, restricted tool selection, uncertain result writes, restart and handoff.
No production code changed after this full-suite run. Full repository CI, Windows validation, desktop packaging and live-provider evaluation were not run locally.
AI use
Tool(s) and scope: OpenAI Codex assisted with investigation, implementation, tests, local verification and this description. The implementation commit includes a
Generated-by: OpenAI Codextrailer.Checklist
Does this PR entail a change in behavior?
简体中文
概述
关联 #6716。
Rust Bot 已经能够安排定时任务,但定时调查还缺少一条明确支持静默结束和将已记录发现交回 Bot 的路径。
在现有 Scheduler 中增加
discovery效果。每次触发新建一个只读 worker Session。worker 调用DiscoveryComplete,记录no_report或report并结束本轮。没有值得报告的发现时静默结算,不唤醒 Bot;有报告时通过现有通知路径交给 Bot,由 Bot 判断是否通知用户。DiscoveryComplete。目标分支为
rust-preview。这是 #6716 中 A1/A3 的首个手动/定时调查与结果结算切片。来源变化事件接入、共享记忆和反馈关联留在后续阶段。验证
本地 macOS 验证对应
96d87444c0dde0c1b4062da813df44645c562eeb,使用 Rust 1.98.0,SDK 检查使用 Node 26.13.0。cargo-deny 0.20.2)-D warnings检查尚未通过集成测试使用本地模型夹具和真实 Host,覆盖已批准计划的恢复、Bot/调度停用、暂停后恢复的取消语义、报告接纳前权限变化、worker 后续普通 Turn、受限工具选择、结果写入不确定、重启及交接。
全量套件运行后没有修改生产代码。本地未执行完整仓库 CI、Windows 验证、桌面打包或真实供应商评估。
AI 使用说明
OpenAI Codex 协助完成调查、实现、测试、本地验证及本说明起草。实现提交包含
Generated-by: OpenAI Codex标记。检查清单
已确认六个回归场景在修复前失败、修复后通过,最终格式、类型检查及受影响套件均已通过。本 PR 存在行为变化,已在概述中说明。