Repository navigation
refactor(stride): make evidence_conditioned_v1 unconditional default and remove live switch - #9287
Conversation
…and remove live switch Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
Reviewer: model_agent · Gemini · Google · self_reported
Exact head reviewed: f94703ec5ae45ce239334c8f6965188f51a1feec (base dc90f1f4c467214fa5660191529c81ac0e05fdea, 102 files changed, +1496/-1031, benchmark/edgebench/studies/** untouched).
动机 / Motivation
使用 LoopX 复盘/结算控制面、Goal/设备配置 CLI 与 Dashboard 能力编辑器,以及运行 EdgeBench heartbeat/turn-resume 实验并导出历史研究报告的调用方与研究者。 变更前后场景:此前虽然新装设备默认启用 evidence_conditioned_v1,但 stride_strategy_schema.json 默认仍为 off、machine_defaults.py 在 Goal 显式设置复盘周期后提前返回导致所有固定周期的 Goal 与 EdgeBench 实验静默回落至 off,且控制面/CLI/UI/Runner 维护整套 on/off 切换分支;变更后 evidence_conditioned_v1 成为唯一实时步幅策略,所有在线开关与 off 旁路被移除,新 LoopX 运行在 worker-profile.json 与 runtime-receipt.json 中一致写入 evidence_conditioned_v1,而历史 registry.json、machine_configuration.json v2、stride_decision_v1 与 EdgeBench 报告仍保持只读兼容。 可观测结果:所有实时 TS/Python 控制面复盘检查点(periodic_review_due、typed_progress_repeat、no_progress_streak 等)无条件交付 stride_control 并执行 evidence_conditioned_v1 校验,已移除的 CLI/API/Runner 开关快速失败,旧配置文件含 stride_strategy=off 可无报错加载且在运行时被忽略,EdgeBench 历史报告导出继续校验 [None, 'off', 'evidence_conditioned_v1']。 非目标:不修改历史已发表研究数据(benchmark/edgebench/studies/** 零改动),不改变复盘计数周期(replan_after_turns/todos)、planning_horizon_goal 或 yardstick_enabled 开关,也不修改 stride_decision_v2 协议字段或执行授权边界。
本 PR 围绕单一收口目标执行减法:消除 stride_strategy 在线开关与隐蔽的 "off" 漏口(尤其是 machine_defaults.py 在 Goal 固定复盘周期后提前返回、导致 EdgeBench 试验和固定周期 Goal 静默退回 off 的行为),让 evidence_conditioned_v1 成为唯一实时策略,同时保留存量配置文件、运行日志与历史研究报告的只读兼容性。
改动思路 / Approach
架构评估:将 evidence_conditioned_v1 提升为 TS/Python 共享单一实时常量 LIVE_STRIDE_STRATEGY 并收口所有 live off 分支与配置写入开关,同时把历史 off/v1 兼容严格隔离在只读解码边界(compact_execution_profile、machine_defaults v2 读路径、stride_policy.ts 历史解码、causal_attribution/export_report),显著减少控制面与配置面分叉复杂度。 当前 PR 边界:一次完整收口控制面 TS/Py 实时策略、CLI/API/Dashboard 配置减法、EdgeBench Runner 统一记录与历史只读兼容以及对应 102 文件的测试/smoke/文档迁移。
| 边界层 | 变更前 | 变更后 |
|---|---|---|
| 实时 TS/Py 控制面 | stride_strategy_schema.json 默认 off;strideControlContract、requiresStrideDecision、replan_context 及 Python 调用链按 off 旁路 |
唯一实时策略 LIVE_STRIDE_STRATEGY="evidence_conditioned_v1";strideControlContract 恒非空、requiresStrideDecision 仅看 STRIDE_REVIEW_TRIGGERS、allow_terminal_stride_path 恒允许;同步清理仅供 stride 使用的 replan_configuration_reader 透传 |
| CLI / Chat API / Dashboard | 暴露 --execution-stride-strategy / --clear-execution-stride-strategy、表单下拉与 JSON 写字段 |
写入面全部移除并快速报错(reject_removed_stride_strategy / argparse 拒绝);读路径在 compact_execution_profile、machine_defaults v2 与 Dashboard 编辑器中校验并静默忽略遗留 stride_strategy 字段 |
| EdgeBench Runner & Report | --stride-strategy 可选,未传时容器因固定周期落回 off |
移除 --stride-strategy 及 BenchmarkCodex(stride_strategy=...) 开关;LoopX 运行在 worker-profile.json 与 runtime-receipt.json 一致记录 evidence_conditioned_v1(非 LoopX 保持缺省);export_report.py / causal_attribution.py 保留历史 [None, "off", "evidence_conditioned_v1"] 校验 |
具体改动 / Changes
- 控制面 TS 与 Python 编解码:
stride_strategy_schema.json默认值切为evidence_conditioned_v1(保留off仅作历史解码);stride_policy.ts、replan_context.ts、replan_semantics.ts、vision_checkpoint.ts与stride_policy_codec.py、Pythongoal_frontier/ack_policy/should_run_prepare/lifecycle_recovery/progress_observation/replan_context_codec/replan_history_codec/semantic_replan_writeback/goal_mode_mcp/state_refresh/host_adapter_settlement/goal_amendment_runtime/request_amendment全部去除实时off分支与冗余透传,保留normalizeHistoricalStrideDecision(stride_decision_v1)与validateReplanContext历史解码。 - 配置与界面减法:移除
registry_admin_configure.py、configure_goal.py、configuration_catalog.py、configuration_ui.py、goal_configuration.py、goal_configuration_api.py、capability-configuration.ts、capability-localization.ts中的在线开关;machine_defaults.py对todo_replan_cadence_machine_defaults_v2允许缺省或携带合法历史stride_strategy并在读出时剥离,写入端显式拒绝;execution_profile.py读入遗留值校验后丢弃。 - EdgeBench 与测试/文档:移除
benchmark/edgebench/run.py、harbor.py、sforge.py的开关选项,统一由uses_loopx决定记录LIVE_STRIDE_STRATEGY;新增causal_attribution.py历史校验函数供export_report.py复用;迁移 40+ 测试文件、4 个 Python smoke、Dashboard smoke 与docs/quota-allocation.md/goal-vision-replan-contract-v0.md/benchmark/edgebench/README.md/EXECUTION_OBSERVATIONS.md。
本地独立验证(exact head f94703ec5a):
tsc --project tsconfig.control-plane.json --noEmit:0 errors;Node TS 6 个 stride/replan 套件:165 passed / 0 failed / 0 skipped。- Dashboard:
npm --prefix apps/presentation/dashboard run smoke:capability-configuration通过(capability configuration projection and JSON boundary smoke: ok)。 - 变异检验:将
stride_policy.ts的strideControlContract改回"off" -> null后,stride_policy.test.ts3 个断言立即失败(35 pass / 3 fail)。 - Lint 与预算:
ruff check(全部改动.py)clean;git diff --checkclean;4 个受影响 Python smokes 4/4 通过;examples/control_plane/cli-output-budget-regression-smoke.py(.venv)输出cli-output-budget-regression-smoke ok。 - 核心 Python 测试(10 个文件,覆盖配置默认/迁移、Chat API、Host Vision 恢复、Effective-Turn Replan、Context/History/Frontier/Lease/Staged-Read):283 passed / 0 failed / 0 skipped。
- Benchmark 测试(
native-sforge-venv+provider-src):6 个文件合计 763 passed / 0 failed / 31 skipped(其中 5 文件649 passed / 31 skipped+test_task_entry.py114 passed / 0 skipped)。 loopx canary premerge --from-git-diff --git-diff-base origin/main:direct 6/6、selected 19/19(含全量 102 文件 public boundary scan 与semantic-vocabulary-drift-smoke.py)全部通过,failures=0,manual_hold_count=1(预期benchmark_sensitivehold)。git merge-tree与当前origin/main无冲突。
对主干的风险 / Risks
- 有意行为变化:此前依靠隐式或显式
stride_strategy=off在periodic_review_due/typed_progress_repeat/no_progress_streak上跳过stride_decision的所有调用方与自动化脚本,升级后都必须提交合法agent_vision.stride_decision(stride_decision_v2)与证据关联路径;传旧 CLI 开关--execution-stride-strategy/--stride-strategy会直接报错退出。 - 跨升级在途 Turn:若已有长程 Goal 在二进制升级瞬间恰有一个升级前按旧
off语义准入的receipt_boundTurn 尚未结算,该 Turn 在新二进制下需按stride_control补齐stride_decision后完成结算;历史runs/index.jsonl中的stride_decision_v1、registry.json与machine_configuration.jsonv2 均已验证可无损解码。 - 残余未覆盖面:本机未启动真实浏览器重跑
examples/personal-workspace-browser/replan-cadence.mjs(已通过smoke:capability-configuration覆盖投影/JSON 逻辑与 Python API 测试覆盖后端),且 benchmark 套件中 31 个需真实 native Codex 二进制/隔离 guest 的用例按预期跳过。
我的整体评价 / Verdict
架构评估:将 evidence_conditioned_v1 提升为 TS/Python 共享单一实时常量 LIVE_STRIDE_STRATEGY 并收口所有 live off 分支与配置写入开关,同时把历史 off/v1 兼容严格隔离在只读解码边界(compact_execution_profile、machine_defaults v2 读路径、stride_policy.ts 历史解码、causal_attribution/export_report),显著减少控制面与配置面分叉复杂度。 当前 PR 边界:一次完整收口控制面 TS/Py 实时策略、CLI/API/Dashboard 配置减法、EdgeBench Runner 统一记录与历史只读兼容以及对应 102 文件的测试/smoke/文档迁移。 改动严格兑现减法规格(无条件实时 evidence_conditioned_v1、彻底清除 live 开关与隐式 off 漏口、对历史配置/日志/EdgeBench 报告保持只读兼容),经 TS/Py/Benchmark/CLI 预算/变异检验与 19/19 premerge canary 全面核验,未发现阻塞问题。残余风险仅限于升级边界的外部旧脚本调用与未在本机运行的 E2E 浏览器脚本。
English verdict: APPROVE — Cleanly promotes evidence_conditioned_v1 as the unconditional live stride policy across TS/Python control plane, configuration surfaces, and EdgeBench runners while preserving read-only historical decoding; independently verified with 165 TS, 283 core Python, 763 benchmark tests, CLI output budget smoke, mutation sensitivity, and 19/19 premerge canaries (failures=0) at f94703ec5a.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
[P1] 保留升级前已准入复盘的结算语义。 File 与 SQLite 中,主线以显式 off 准入同一复盘 Turn 后,候选的原写回因 stride_decision_required 失败且没有追加记录。切回主线执行同一原命令,写回通过。 候选保留了结算身份,也未扣额,但用户必须重新生成旧准入时并未要求的决策。让已准入的旧 Turn 按原策略和身份结算。保留显式 off,先独立修复固定周期继承。另行论证强制启用并更新规范。 实时复盘门 旧配置字段处理
[P1] 保住设备设置保存后的运行时回退。 设备从当前主线保存 v2 默认值并升级,候选修改周期后继续写 v2 但省略 stride_strategy。旧版读相同文件报 review configuration fields do not match its schema version。恢复原配置字节后旧版读回通过。 同一版本的文件在一次普通设置写入后跨版本失配。保留旧 reader 所需的持久字段,同时隐藏或忽略它的配置含义,或通过版本化写入及可执行的状态回退完成迁移。 候选序列化 主线 v2 reader
动机 / Motivation
已设定固定复盘周期或显式关闭 Stride 的 Goal、由旧版本准入的待结算 Turn,以及配置设备默认值的维护者。 固定周期的继承路径可能漏掉策略。候选将所有生效路径改为 evidence_conditioned_v1,删除显式关闭,并接受旧配置后在常规保存时丢弃原字段。 在 File 和 SQLite 上,旧版本准入的原 Turn 由候选拒绝写回,同一原命令交回旧版本成功。候选保存后,旧版本拒绝读取仍标记 v2 的设备配置。 本轮验证源码入口、旧状态接续和配置回退。真实模型采用、同预算收益和正式分发未纳入本地验证。
恢复已准入 Turn 的原语义及设备配置向后可读性。全面退役 opt-out 需要对应 RFC 变更和配对资格证据。
改动思路 / Approach
让继承能力配置的固定周期 Goal 得到正确的默认策略,可以移除一条静默降级路径。修复固定周期分支遗漏的继承优先级,保留已保存的显式 off、兼容版本与原准入语义。 当前改动把继承漏洞与策略晋级捆在一起,普通复盘原输入和 device v2 的回退都随之改变。复用现有 Goal profile、设备事务和 TS 复盘 owner,单独修继承缺陷。提交独立迁移与回退证据之后再移除控制面 live 分支。 主线 RFC 的 §7.2 原 Turn 结算、§7.6 显式 off 与历史读回和**§7.7 匹配续跑证据**分别约束本次迁移。当前组件验证覆盖实现路径,正式适用范围还缺资格。主线 RFC §7.2 主线 RFC §7.6 的启用约定
具体改动 / Changes
对照 dc90f1f4c467214fa5660191529c81ac0e05fdea 和 f94703ec5ae45ce239334c8f6965188f51a1feec,共 102 文件 +1496/-1031。42 个生产文件 +198/-289,涉及 TS/Python 控制面、CLI/Chat/MCP、Dashboard 与 Benchmark。50 个测试文件、6 个执行 smoke 及 4 个文档随相应入口更新。
- TS 的
projectReplanContext按唯一实时策略生成 scope、证据和stride_control,requiresStrideDecision对复盘触发类型强制结构化输入。旧策略和值可解码,读过的原 off 准入却在写回重新适用新门。上下文和策略 - Goal/device 编辑器、CLI 及 Chat API 移除选择。Goal 配置剥离旧字段,设备事务对同版持久化也剥离。既有周期、规划视野和 Yardstick 控件继续走原 owner。Dashboard 配置投影与 JSON 边界已执行验证。设置投影
- Harbor/SForge 给 live LoopX 模式记录 v1,非 LoopX 保持省略。历史研究报告从单独的历史校验器读取原值。固定的 EdgeBench studies 未改变。Harbor 运行记录 历史报告值校验
对主干的风险 / Risks
候选通过 176 项 Python 定向测试和 143 项 TypeScript 测试,Dashboard 配置 smoke 通过。历史报告与 Runner 定向 9 项通过、18 项跳过。Git diff 检查通过。我另外跑了两个正常测试未覆盖的接续场景。File 和 SQLite 上先用主线准入,候选与主线依次执行原写回,各自读回拒绝与成功。设备场景真实写入 v2 后更改周期,旧版读取候选结果失败,恢复原字节可读。三个环节均使用隔离数据。GitHub 的既有 Gemini 评审通过了更宽的组件套件,并提及升级中的风险。本轮的配对检查把风险复现为可观察的失败。未复跑完整 premerge、真实包浏览器、正式升级或匹配研究。发布回退路径 现有 Gemini 评审
我的整体评价 / Verdict
先修固定周期的继承优先级,并覆盖旧版本准入到候选写回及候选保存后旧版本读回。保留现有规范下的 opt-out。若要淘汰这一选择,需要交付版本化迁移、回退和风险相称的验收。检查了 Dashboard 配置投影和 JSON smoke。正式打包浏览器和窄屏布局仍待验证。 此次两个 P1 由原生入口的对照明确复现,属于候选行为。
English verdict: REQUEST_CHANGES at f94703e. Preserve receipt-bound stride-off writeback across upgrade and keep v2 device configuration readable after rollback. Both regressions reproduced over the current base and candidate.
… readability Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
|
This pull request has merge conflicts with Choose the remote for the base repository, not an out-of-date fork. git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEADFor a same-repository clone whose Keep the DCO |
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
[P1] 常规设置保存后,升级前 off 回合仍无法按原规则写回
旧回执没有策略字段,回退逻辑读取当前 Goal/profile 与设备文件。当前保存把设备 v2 策略改为 evidence_conditioned_v1,Goal 重写又移除旧 off 标记。 在重写可变配置之前冻结受影响的原回合策略证据,或保留足以辨认旧回合的原始迁移依据。分别保留旧设备文件的用户选择语义,补测两次普通设置保存后的原回合写回。 候选代码
动机 / Motivation
有待写回的复盘回合、升级后继续调整 Goal 和设备设置的用户。 基线允许 stride off。回合在准入时已按这个策略选择复盘与写回要求。候选修订新增原策略回执字段以保护以后的回合。 新回合统一使用 evidence-conditioned stride,允许已准入的旧 off 回合用原结算要求写回。
由基线准入 off 回合。升级后保持 Goal profile 和设备设置原样,直接重放原 writeback。 File 和 SQLite 的旧 off 回合在设置原样时可以写回。设备 v2 文件现在也能由旧版 reader 解码。
基线使用设备 off 默认值准入回合。升级后,将设备 cadence 从 6 调到 5,再通过 configure-goal 修改 planning_horizon_goal,最后提交原回合 writeback。 旧回执没有策略字段,回退逻辑读取当前 Goal/profile 与设备文件。当前保存把设备 v2 策略改为 evidence_conditioned_v1,Goal 重写又移除旧 off 标记。 同样的两次设置保存下,File 和 SQLite 的基线均保留 off 并接受原写回。候选都以 stride_decision_required 拒绝,原回执身份一致,未追加写回或扣额。旧版接回候选保存的 v2 文件时也会把继承策略读成 on。 隔离运行真实 configure-goal、设备配置写入与 refresh-state。未以含回归的候选做 benchmark、实际升级或 UI 发布资格确认。
改动思路 / Approach
已准入回合继续受原结算 owner、作用域和证据要求约束。新回合的策略是公开运行时规则,当前配置只能影响以后的新选择。 新回合仍可固定使用当前策略。旧回合的兼容读取应沿原回执或受保护的首次迁移快照,禁止常规设置作者改写已准入条件。
具体改动 / Changes
关键代码讲解
评审头 2290ff7,合并基线 dc90f1f。114 个文件,+2344/−1069。 依据 Preserve original off Turn settlement 和 Compatibility across ordinary configuration edits 核对现有入口。 仓库规范 原回合 writeback 契约
- legacy_pre_upgrade_stride_strategy。缺少原策略字段时,从当前两份可改配置推断。 代码
- resolve_receipt_bound_stride_strategy。先用新回执策略,旧的则进入可变设置读取。 代码
- normalize_todo_replan_cadence_machine_defaults。保留 v2 旧字段形状,同时在新保存中写入 on。 代码
- compact_execution_profile。保留旧字段可读性,新规范形状省略已退役的键。 代码
- refresh_state_run。在 writeback 校验前为同一原回执解析策略。 代码
对主干的风险 / Risks
语义与 CI 对齐
249 项 TS 用例与 16 项选定 Python 用例通过。补充反例跨两次真实设置保存。Quick premerge 的 6 项直接和 4 项选中检查通过,另有人工项。 影响在已准入旧回合和设备继承的回退语义。新回合一般策略改变属于 PR 范围。v2 形状可解码,但候选保存后,旧版会继承不同的策略值。
我的整体评价 / Verdict
当前提交需要修改。已准入回合的最小兼容边界是按旧证据解释它的写回。修复应与新策略及已验证的 v2 reader 兼容同时成立。 同一原回执在设备和 Goal 都经历一次普通设置保存后,仍能按原要求写回并保持唯一结算。
English verdict: REQUEST_CHANGES — an ordinary machine and Goal settings update after upgrading can retroactively require stride_decision for an admitted legacy off Turn. Exact head 2290ff7.
Signed-off-by: huangruiteng <huangrt01@163.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
动机 / Motivation
曾在 Goal 显式关闭 Stride、从设备继承评审周期,并可能回退旧 runtime 的维护者。 现行主干保留 Goal 的显式 off。旧 runtime 遇到原样配置时保持关闭。 新版统一对现有评审触发使用 evidence_conditioned_v1,保留 cadence 和 planning horizon 的配置入口。 隔离的 File 和 SQLite,使用源 checkout 与公开合成场景。远端 CI 未轮询。
在旧版设备策略为 evidence_conditioned_v1、Goal 只覆盖 stride=off 时,用新版 configure-goal 保存无关的 planning horizon,随后用旧 runtime 查看同一 Goal 的周期评审。 升级前已准入的周期评审在新版先返回 stride_decision_required。按该错误的原轮次恢复命令和分段读取取得当前决策要求后,File 与 SQLite 都用原身份写回,保留唯一准入回执,扣额一次,重放不追加。
[P2] 保存规划设置会丢失旧版回退所需的 Goal 覆盖
File 和 SQLite 均显示相同结果。旧版保存保留 Goal 的 off,旧版评审无需提交 stride_decision。新版保存删除 off,旧版回退后继承设备上的 on,同一周期评审新增 stride_decision 要求。两组 dry-run 均未扣额。 在既有 Goal 存储写入器中保留已验证的历史策略值,仅在新版的运行投影和编辑器中隐藏。补测只覆盖策略、从设备继承周期的 Goal 在普通保存后回退。 Goal profile 编码
改动思路 / Approach
保留单一新策略和已存在的评审触发与结算身份。当前 PR 交付源码默认、设置入口和历史读取改动。 已有 Goal 和设备配置 owner 应保留兼容的存储值,活动策略继续由 TypeScript 所有者解释。回退、现轮恢复和候选策略收益各自需要证据。
具体改动 / Changes
评审 9287@9a02fd4a00ff7fb0152ce05418ad1a4d491a97c7,目标基线 f4c27a88b54e9f5daba0d282076328fb30b922ff。105 个文件,+1551/−1072。 基线 RFC 当前提案
- Live cadence and settlement identity。新增评审要求后,原轮次可沿现有恢复入口取得依据并完成一次性结算。
- Rollback of authored configuration。设备 v2 路径保留兼容值,Goal 普通保存仍会删除已保存的 off。
- Matched continuation and full cost。候选的源码运行结果留下可复核证据,配对模型的实际效果与完整成本仍待验证。
关键代码讲解
compact_execution_profile。对旧策略解码,返回的新 profile 省掉旧值。 代码apply_goal_execution_profile_change。修改 planning horizon 等常规选项时走同一个存储 profile 重建。 代码_apply_public_update。设备 v2 写入仍保留现有策略值,可作为 Goal 持久化兼容的参照。 代码requiresStrideDecision。当前策略按既有 periodic/observed-stall 触发,回放从原身份读取当前依据。 代码
对主干的风险 / Risks
78 项 Python 策略/配置测试和 94 项 TypeScript 用例通过,类型检查与 bilingual RFC diff 通过。另一组 43 项通过、2 项依赖已不存在的 inline writeback 字段。相同两个失败在精确基线复现。Quick premerge 的 6 项直接与 4 项检查均执行通过,仍有 benchmark 人工审阅。 回退差异发生在用户只调整 planning horizon 后,不依赖变更 cadence、伪造旧回执或额外扣额。
语义与 CI 对齐
在旧版设备策略为 evidence_conditioned_v1、Goal 只覆盖 stride=off 时,用新版 configure-goal 保存无关的 planning horizon,随后用旧 runtime 查看同一 Goal 的周期评审。 File 和 SQLite 均显示相同结果。旧版保存保留 Goal 的 off,旧版评审无需提交 stride_decision。新版保存删除 off,旧版回退后继承设备上的 on,同一周期评审新增 stride_decision 要求。两组 dry-run 均未扣额。 这轮复测把新版按当前策略恢复原轮与旧版读回规范设置作为两条可复核路径。隔离的 File 和 SQLite,使用源 checkout 与公开合成场景。远端 CI 未轮询。
我的整体评价 / Verdict
请求修改。保存现有 Goal 的旧策略以支持回退,同时保持新版的单一运行策略及原轮恢复路径。Dashboard 移除了 Stride 设置项,本轮验证覆盖实际 CLI 与设置 API。 独立的打包 Dashboard 浏览器实装、不同版本发行包回退和真实模型收益与完整成本尚未核验。
English verdict: REQUEST_CHANGES at 9a02fd4a00ff7fb0152ce05418ad1a4d491a97c7. An unrelated Goal settings save loses an explicit legacy off setting and makes the old runtime inherit stride-on after rollback. File and SQLite reproduce the change. The staged current-policy recovery still settles the same admitted Turn once.
Signed-off-by: huangruiteng <huangrt01@163.com>
Signed-off-by: huangruiteng <huangrt01@163.com>
huangruiteng
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · max
动机 / Motivation
维护 Goal 的用户可以固定复盘周期,执行这些 Goal 的 Agent 会在达到周期或出现停滞时复盘。
过去,仅固定复盘周期的 Goal 可能隐式退出步幅策略。此后,固定周期和继承周期使用同一套复盘规则,设置页也少了一个策略选项。
本次交付统一实时判断、移除配置入口,并保留设备 v2 文件及历史报告的读取能力。升级前的待写回复盘重试时使用当前规则。
目标收益、模型采纳和相同预算下的研究效果留给匹配续跑验证。
改动思路 / Approach
实时策略固定在现有 TypeScript 复盘判断里,配置、主机、历史读取和 runner 各自消费同一策略或记录值,旧回执无需新增策略字段或存储。
本 PR 交付统一实时策略、配置入口退役和历史读取。旧回执的身份和结算保护沿用原路径,未完成的复盘按当前要求恢复。
单独修正周期继承能减少隐式关闭,但会留下两套公开的选择和运行语义。合并后的路径使用现有触发器、复盘上下文和写回校验。Quota、Todo 与 Host 沿用当前主干的 Complete Turn、原选中工作区以及 benchmark worker 清理。设备配置在预览与应用之间仍由原来的版本锁保护。
具体改动 / Changes
按 d588d27fa5e09a516a66b56382606ba2d3ba8f1f 的 docs/architecture/rfcs/hierarchical-agent-stride-control-v0.md 核对。7.2 的结算归属和身份继续生效。7.6 的证据和来源要求继续生效,策略启用方式调整为单一实时规则。7.7 的匹配续跑、收益与完整成本验证保留在研究范围。 基线 RFC
关键代码讲解
projectReplanSemantics负责把周期到期或停滞触发的复盘约束到当前证据。写回拒绝后,原复盘的身份仍用于恢复。 对应实现normalize_todo_replan_cadence_machine_defaults负责保存设备 v2 值和隐藏旧配置项。旧版本可以读取新版本写入的周期。 对应实现BenchmarkCodex负责按既有运行模式记录新 LoopX 试验的策略值。独立模式沿用自身的准备和计分入口。 对应实现
变更覆盖 CLI、Goal/设备配置、Chat API 和 Dashboard、Host 与原控制面门,以及 Harbor、SForge 和 EdgeBench 报告。生产实现新增 216 行、删除 301 行。原生 benchmark 重新执行主干补齐会话夹具后的任务入口检查。冻结试验输入及历史报告维持可读。
对主干的风险 / Risks
新版本接手续做时,原先按 off 准入的复盘会按当前策略验证,缺少结构化决策会收到原写回入口的拒绝。普通读回、已结算回执和基于原身份的重入沿用现有路径。设备 v2 的兼容在旧版写入、当前版修改周期、旧版读回的命令对照中验证。
语义与 CI 对齐
当前提交通过 331 项 TypeScript、173 项 Python 和 39 项定向 benchmark 检查。与主干合并前的 500 项 Python 检查也通过。真实 File 和 SQLite 覆盖同一 Turn 的选中范围、写回、拒绝和恢复。打包 Dashboard 验证了保存、非法周期提示和失败回读。标准预合并重跑 19 项全部通过。首次因合成展示扩展暂不可用而失败的热路径检查单独通过,主干与当前提交的 quota guard 字符计数相同。全量 benchmark 为 734 通过、31 跳过、1 个 SForge 归档失败。该断言在当前主干和本提交上都复现,相关归档实现无 PR 差异。本次 benchmark 人工检查覆盖运行参数和历史报告,未执行计分任务。
改动复用现有策略版本、复盘触发词和结算身份。环境或跳过项不构成运行成功记录。基准适配器检查和历史读取提供本次 Runtime 更改的证据,留存的人工检查项限定为本次 benchmark 改动范围。发布前再次读取 GitHub 的精确头和线程状态。
我的整体评价 / Verdict
本次范围可以交付,现有复盘、结算和恢复走各自的 owner。长程行为接受旧 off 提案须补当前证据的升级成本,并通过原身份恢复。配置体验减少了一个设置选择,保存失败仍可以读回确认。我对照了打包设置页的首屏、窄屏展开和回读失败状态。移除策略选择后,首屏仍能直接修改周期,额外规划项可展开查看,回读失败有明确的重试按钮。 验证使用合成 Goal 和真实本地配置服务,已安装桌面版本未在本轮检验。 PR 截图与说明
English verdict: APPROVE at f63568f. Use the current evidence-conditioned rule on live and resumed reviews, preserve device v2 and historical report readback, and remove the old live switch and receipt-specific compatibility.
Summary
evidence_conditioned_v1now governs live reviews in LoopX. Goal and device settings continue to edit review cadence and planning preferences. The old Stride switch is removed from the CLI, settings API, Dashboard, and new EdgeBench runs.Validation
Exact head
f63568f04c96edf85ff4d17d9644926e615d6ba8, integrated withmainatd588d27fa5e09a516a66b56382606ba2d3ba8f1f. Static Python checks, the paired RFC check, and the packaged Settings browser scenario passed. The browser scenario covers the existing preview and apply flow, rejected invalid cadence, and recovery from a failed readback. The current head passed 173 focused Python tests, 331 TypeScript tests, and 39 focused Harbor, native SForge, and historical reporting tests. The isolated device v2 edit and rollback reader comparison passed.The standard premerge retry passed all 19 automated checks. The first attempt hit an unavailable synthetic presentation provider, and the same hot-path check passed independently on both the current baseline and this head. The full benchmark sweep recorded 734 passed, 31 skipped, and one SForge artifact-collection assertion reproduced identically on both revisions. The runner qualification covers launch configuration and historical reports. No scored workload was run.
Current-main integration at
1065402b20bf0d60e3fed318a281c2e61c18d861passed 81 SForge artifact, cadence, and Stride tests, including the previously failing archive case after #9319.Frontend / Visual Evidence
The packaged Dashboard used synthetic Goals and the real local configuration service. The current head repeats the packaged flow with the same frontend source as the after captures. On desktop the cadence inputs, Yardstick, and the apply controls remain in the first screen, with one less selector. The narrow view keeps the cadence and planning options available. The failure view shows the existing readback retry.
09eadec703· desktop9a02fd4a00· desktopBefore, narrow Goal settings · After, narrow Goal settings · After, failed readback and retry