Repository navigation
Scope newly discovered owner gates to the blocked Todo - #9409
Conversation
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
动机 / Motivation
把新发现的所有者门禁关联到真正受阻的 Todo,让下一次准入能继续同一 Goal 的独立工作。 适用场景是常规 Turn 内发现单项工作需要所有者,Goal 下仍有可执行的独立工作。
双 Agent 样例有待确认的发布和两项互不依赖的检查。新模板只关联发布 Todo,通知和检查同时进行。 精确门禁保留所有者提示和被阻塞 Todo,同一 Agent 的独立检查获准继续。 本次交付更新现有提示、模板、文档与验证。
改动思路 / Approach
todo_write_hint 给出可填充模板,日常 Agent 在证据出现时手动调用。权威 Todo 作者入口保存精确链接,下一次 quota should-run 复用既有 scoped fallback。 已有 todo add 按 blocks_agent 推导同一 bound agent。unblocks_todo_id 只记录依赖,原门禁、Claim 与 Turn 准入仍由 Core 判定。 提示只负责表达下一步,关系写入与准入复用既有所有者。
具体改动 / Changes
关键代码讲解
build_todo_write_hint生成 owner gate 的精确 Todo 参数和处理说明。 源码planTodoAuthoringScope复用原作者绑定和注册 Agent 校验。 源码selectScopedGateFallback复用已有关系判断,选择独立任务。 源码
5 文件,+86/−30。5 个文件集中在提示、用法和验证。现有作者和准入逻辑不新增分支。 新增的是已有 user_gate 的填写规则,仍从绑定和显式 Todo 关系判断,文档与生成模板相符。 验收依据
SCOPED-OWNER-GATE从公开提示写入后读回门禁与至关 Todo。 File/SQLite 用双 Agent 样例逐字填写并核对关系。INDEPENDENT-CONTINUATION显示所有者动作并让独立 Todo 获新准入。 双后端此次选择独立检查,另一 Agent 的工作亦可继续。GATE-LEGACY-PARITY显式受阻和无目标旧门禁保持原拒绝。 本地套件检查 open/blocked 选择以及无目标门禁。
对主干的风险 / Risks
无精确目标的旧门禁仍按规则暂停当前 Agent。显式绑定的原 Todo 在 open 时被暂缓,在 blocked 时选择不成立。
本次定向用例中,旧门禁不会因缺少目标而被猜成可绕过,新门禁的相关工作仍受准入约束。
语义与 CI 对齐
git diff --check 和 git merge-tree 通过。本地执行 File 与 SQLite 的 stock 门禁套件和双 Agent 前后对照。 File 和 SQLite 中,把模板原样填入已注册 Agent 和目标 Todo 后,成功创建精确 gate、触发 owner notice,原 Agent 获准继续检查,另一 Agent 继续自己的 Todo。 对当前 main c0bf1a5f68 的变更路径无交集,静态合并成功。验证使用合成待办与本地权威存储。真实所有者响应、持续多轮采用,以及远端 CI 结果留待独立验收。
我的整体评价 / Verdict
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
纯 CLI 投影与提示文本,无新 UI。 达成交付目标。可以按已有 gate 与落地权限推进评审之后的检查。
English verdict: APPROVE at 3efc0dd. The generated scoped gate authoring path preserves owner notification, admits only the unrelated work, and keeps legacy unscoped gates fail-closed in File and SQLite.
Keep the verified owner-only trigger, same-Turn gate, exact blocked Todo, owner action and verification, independent successor search, and settlement before fresh admission. Keep all command templates identical. For the personal-loopx-maintenance identifier, rule bytes go from 521 to 400 and minified hint JSON from 1099 to 978. A synthetic quota packet using the real context codec omits unchanged hints on a warm delta, emits the changed rule without unchanged templates, and recovers a full packet when continuity breaks. File/SQLite CLI authoring and admission regressions pass. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
动机 / Motivation
把新发现的所有者门禁关联到真正受阻的 Todo,让下一次准入能继续同一 Goal 的独立工作。 适用场景是常规 Turn 内发现单项工作需要所有者,Goal 下仍有可执行的独立工作。
双 Agent 样例有待确认的发布和两项互不依赖的检查。新模板只关联发布 Todo,通知和检查同时进行。 精确门禁保留所有者提示和被阻塞 Todo,同一 Agent 的独立检查获准继续。 本次交付更新现有提示、模板、文档与验证。
改动思路 / Approach
todo_write_hint 给出可填充模板,日常 Agent 在证据出现时手动调用。权威 Todo 作者入口保存精确链接,下一次 quota should-run 复用既有 scoped fallback。 已有 todo add 按 blocks_agent 推导同一 bound agent。unblocks_todo_id 只记录依赖,原门禁、Claim 与 Turn 准入仍由 Core 判定。 提示只负责表达下一步,关系写入与准入复用既有所有者。
具体改动 / Changes
关键代码讲解
build_todo_write_hint生成 owner gate 的精确 Todo 参数和处理说明。 源码planTodoAuthoringScope复用原作者绑定和注册 Agent 校验。 源码selectScopedGateFallback复用已有关系判断,选择独立任务。 源码
5 文件,+83/−30。5 个文件集中在提示、用法和验证。现有作者和准入逻辑不新增分支。 在已评审的 3efc0dd 之上仅压缩 todo_write_hint.rule。完整提示的合成 JSON 从 1039 降到 918 字节,三个命令模板逐字段一致。 相对主干,把已有 user_gate 模板补上精确 Todo 关系。此头的措辞保留已验证 owner-only 触发、当轮复用、拆分、动作与验证、独立续作、结算和重新准入。 验收依据
SCOPED-OWNER-GATE从公开提示写入后读回门禁与至关 Todo。 File/SQLite 用双 Agent 样例逐字填写并核对关系。INDEPENDENT-CONTINUATION显示所有者动作并让独立 Todo 获新准入。 双后端此次选择独立检查,另一 Agent 的工作亦可继续。GATE-LEGACY-PARITY显式受阻和无目标旧门禁保持原拒绝。 本地套件检查 open/blocked 选择以及无目标门禁。
对主干的风险 / Risks
无精确目标的旧门禁仍按规则暂停当前 Agent。显式绑定的原 Todo 在 open 时被暂缓,在 blocked 时选择不成立。
短版提示保留了上一评审头的执行顺序与权限条件。目标待办仍按原准入约束,旧门禁缺少精确关系时仍暂停。
语义与 CI 对齐
完整 git diff --check 与静态合并通过。当前头定向门禁 8 项、双 Agent 的 File/SQLite 复验 2 项、心跳简报预算 9 项通过。主干同一双 Agent 夹具已在同一源提交跑过两后端。 File 和 SQLite 中,把模板原样填入已注册 Agent 和目标 Todo 后,成功创建精确 gate、触发 owner notice,原 Agent 获准继续检查,另一 Agent 继续自己的 Todo。 对当前 main c0bf1a5f68 的变更路径无交集,静态合并成功。验证使用合成待办、真实 CLI 与本地存储。模型实际采纳新文字和真实所有者完成动作未测,远端 CI 未查询。
我的整体评价 / Verdict
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
纯 CLI 投影与提示文本,无新 UI。 达成交付目标。可以按已有 gate 与落地权限推进评审之后的检查。
English verdict: APPROVE at de59386. The shorter owner-gate guidance preserves trigger, scope, verification and continuation. Exact-commit File and SQLite CLI tests still admit unrelated work while protecting the linked Todo.
Signed-off-by: huangruiteng <huangrt01@163.com>
huangruiteng
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · GPT-5 · OpenAI · self_reported
动机 / Motivation
在普通 Turn 或 heartbeat 中推进多 Agent Goal 的 Agent 发现一项动作需要所有者批准,而同一 Goal 还有互不依赖的检查或其他 Agent 工作时,旧模板只生成无目标的 user_gate。
修复前模板写成通用 user_gate;当前 exact head 要求先拆分混合工作,再把门禁关联到最小受阻 Todo,并在让出 Turn 前记录或复用可运行 successor。
按模板原样填写后,File 与 SQLite CLI 都读回 owner notice、精确 Todo 关系和独立工作准入;缺少目标或显式覆盖受阻 Todo 的旧门禁仍被拒绝。
本 PR 不改变 owner gate 的批准权限、不自动判断哪个 Todo 应被拆分、不新增 Claim/lease 语义,也不允许 Agent 猜测缺失的依赖关系。
改动思路 / Approach
The PR corrects a caller hint while preserving the typed Todo and admission owners.
It improves dependency authoring and continuation guidance; it does not automate gate classification or owner response.
主路径是 quota should-run -> todo_write_hint -> todo add user_gate -> admission fallback。权威输入为 Todo identity, explicit unblocks_todo_id, agent binding, status and persisted ordering,决定边界由 Todo authoring owns gate scope; decision_scope owns exact relation and eligible fallback selection; admission owns execution. 持有,结果是 One user gate is added or reused with a relation to the smallest blocked Todo; independent work may be selected only by the existing scoped fallback.,再由 Generated command hint, Todo relation, owner notice and subsequent should-run admission 消费。Missing or conflicting scope stays fail-closed; the Agent must preserve the blocker and correct the Todo relationship.
具体改动 / Changes
按 docs/quota-allocation.md 的 revision 3c378ac104afb4a1f7dd4dfe45904cd77ac2ae67 核对,SCOPED-OWNER-GATE / INDEPENDENT-CONTINUATION / GATE-LEGACY-PARITY 分别对应下面的行为与验证。
关键代码讲解
build_todo_write_hint:Generate the user-facing owner-gate instructions and command templates. Before the gate template omitted unblocks_todo_id; now it requires the smallest blocked Todo and an independent successor decision.selectScopedGateFallback:Select only a candidate that is independent of exact or decision-scoped gates. The unchanged owner now receives the precise unblocks_todo_id that the new hint tells Agents to write.planTodoAuthoringScope:Validate role, agent binding and user_gate ownership before Todo creation. The existing validated authoring path now receives the exact target field from the generated template.
变更共 5 files (1 production hint, 2 docs, 1 example smoke, 1 CLI test),83 additions、30 deletions。Rewrite the owner-gate write hint to require exact blocked-Todo linkage and independent continuation, update guidance and extend dual-backend verification.
SCOPED-OWNER-GATE:A newly discovered owner-only blocker is written or reused as a user_gate linked to the smallest blocked Todo.,当前为 implemented。INDEPENDENT-CONTINUATION:The owner notice and genuinely independent work can both be admitted on the next guard.,当前为 implemented。GATE-LEGACY-PARITY:Legacy gates without a target and gates that cover the exact selected Todo remain fail-closed.,当前为 implemented。
对主干的风险 / Risks
最强回归场景是 A malformed or guessed gate target causes unrelated work to be blocked or the gated Todo to be admitted.。触发状态为 Legacy gate without target, explicit gate targeting the selected Todo, or binding conflict between blocks_agent and bound agent.;The authoring path validates binding; exactTodoGateRelation blocks target matches; missing scope returns repair-required rather than independent.。影响范围是 Todo authoring guidance and same-Goal admission for affected gate lanes.,可观察性来自 Generated hint, Todo relation, owner notice, quota admission selection and process exit.,恢复路径是 Correct the Todo linkage or keep the lane blocked; the owner gate remains the durable blocker.。
changed_invariant_positive=passed (30 passed.);material_negative_or_failure=passed (Python negative cases passed within the suite; TypeScript creation-scope passed 4/4.);repository_required_checks=passed (Adoption smoke and Ruff passed; standard premerge passed direct checks, 10 catalog canaries, 8 risk profiles and public boundary.);remote_ci_observation=pending (The new exact head has not yet completed hosted CI.)。
- PASSED · Scoped owner gate and independent continuation in File and SQLite.:30 passed.
- PASSED · Legacy/no-target gates and exact blocked selections remain fail-closed.:Python negative cases passed within the suite; TypeScript creation-scope passed 4/4.
- PASSED · Adoption smoke, Ruff, diff, catalog, risk-profile and public-boundary premerge.:Adoption smoke and Ruff passed; standard premerge passed direct checks, 10 catalog canaries, 8 risk profiles and public boundary.
- PENDING · Remote CI for the new exact head.:The new exact head has not yet completed hosted CI.
我的整体评价 / Verdict
长程效果判断为 improved:Owner blockers now preserve their exact dependency so independent Goal work can continue without weakening the blocked lane.。用户体验判断为 improved:Agents receive an actionable command template and owners receive a concrete action plus verification statement.。视觉检查不适用,因为本次没有改变渲染界面或布局。
The implementation changes only the caller guidance needed to express the existing typed dependency. Exact gate linkage and independent fallback are verified on both authority stores, while legacy gates remain safe.
English verdict: APPROVE at 25e4cee. Owner-gate guidance now links the exact blocked Todo and preserves verified independent continuation without weakening legacy fail-closed behavior.
Problem
An Agent can discover that one action needs the owner while independent work
remains available. The generic gate template only addresses an Agent lane, so
following it leaves Core without the exact dependency it needs to admit
independent work safely.
Change
the Agent to isolate the blocked action before linking it.
explain the owner action and verification, and keep a runnable independent
successor against the same Goal before yielding when one exists.
Verification
the emitted template and verify owner notification, independent delivery
admission, rejection or deferral of an exact gated selection, and fail-closed
behavior for legacy gates without a target.
Exact-head refresh on 2026-11-26:
25e4cee252e251e0cdaefd2f5973bc80024cf905on currentmainat3c378ac104afb4a1f7dd4dfe45904cd77ac2ae67.