Repository navigation
Replies: 9 comments 1 reply
|
Follow-up 1 — Evidence chain (per source line,
2.1 Root cause: ownership level mismatch (parent exits, child stays)
2.2 Most stubborn orphan form: hung, never released
2.3 Handoff info lost: parent exits first → child settlement silently dropped
2.4 Fault silentization (makes the defect harder to spot)
2.5 Unbounded container (scale amplifier)
跟帖1 — 证据链(按源码行号,
2.1 根因:ownership 层级错配(父退子留)
2.2 孤儿最顽固形态:挂起永不释放
2.3 交接信息丢失:父先退 → 子结算静默丢
2.4 故障静默化(让缺陷更难发现)
2.5 容器无上限(规模放大)
|
|
Follow-up 2 — Fix direction (minimum-cost anchor) The correct pattern already exists in-repo (the authors know how):
→ The fix is not "rewrite lifecycle management." It is to align Fix direction (direction only, no implementation):
Priority suggestion: Note: the 跟帖2 — 修复方向(最小代价锚点) 正确模式同仓库已存在(作者会做):
→ 修复方向不是"重写全生命周期管理",而是把 修复方向(仅方向,不写具体实现):
优先级建议: 补充:该弱契约家族的 dispose 半仍未合入上游——目前只有 Jstn-1g 的社区参考实现( |
EN / EnglishWorth pulling in #4989 here — it's the same "unbounded container" pattern hitting a different module in production. HiSeax reports that That's the same structural gap as the 中文版 / ZH值得把 #4989 拉进来——是同一个「无界容器」模式,打在不同模块上,已经进了生产环境。 HiSeax 报告 这就是 #4909 证据链 2.5 节文档化的 |
|
A concrete job-side instance of the missing handoff: a one-shot child's owned background job is cancelled at turn-end, and the teardown settlement is suppressed Adding a repro for the jobs branch of this defect class. The threads above cover orphaned child agents (#4909, #4239) and a parked continuable child that never reports (#5360). A one-shot child that owns a background job fails differently, and harder: the job is cancelled at the child's turn-end, and the teardown settlement is deliberately not announced — so the work is not merely unreported, it is destroyed. Environment.
Run 3 raw evidence — the job was a 40-line / 40-second writer: The last log line lands on the same second as Mechanism, from the packaged source
So both halves are true at once: the settlement is a teardown and the owner is already gone. Neither is individually wrong; together they make the loss silent. Why it matters beyond the child's own bookkeeping. The child's final message can still assert the work is running — #5360 quotes the same shape ("the reviewer is running, I'll continue when it reports"). The parent gets no signal and no artifact: the job is gone, its partial output is gone, and nothing in the event log records that anything was lost. Two fixes, in increasing scope
If useful, I can supply the exact |
|
Three readings of the current published artifacts, about the two halves this instance sits between, and about where visibility already exists. 1. The skip line is still there in
|
|
Thanks for pulling this into one place — the four-link table is the clearest framing I've seen of this family. I have three things to add: a status update on link ④, one case the table doesn't cover, and a concrete prompt-layer asymmetry that may be a cheap fix anchor.
Its Problem section names exactly the symptoms this table predicts: The observable downstream symptoms were parents busy-polling list_agents, re-sending messages to children that had already settled, and deployments abandoning subagent for workflow because a workflow at least returns something. The mechanism: notifySettlement() resolves the child's durable direct parent and sends one unconditional user-role notice before releaseOwnership, with a new source kind subagent-settled (form: 'notice', summary, senderSessionId). Unconditionality is the point — it's what makes "you are told when it finishes, so never poll or wait on it" true even when the child dies on a token ceiling or a durability failure. There's also 191c8cd — fix(acp): scope connection-owned continuation drain — which adds drainContinuable(). So on my reading the table is now 3/4 broken rather than 4/4, at least for continuable children. Please re-verify against your baseline; I'm on 0.2.0-rc.2 while #4793 reports against 0.1.1-rc.2.
The parent is alive and healthy, but has stopped needing the result. There: ownership is intact (① holds), there is no dispose to cascade (② is moot), the child is not hung and is making progress (③ is moot), and settlement delivery works correctly (④ holds). And the waste still happens — just later. What I observed, in a single session: A background delegation was launched in one turn. I'd suggest this is a distinct row from ③ rather than a variant of it: ③ is the hung child (never settles); this is the healthy but unwanted child (settles fine, eventually). Different detection, different fix.
package systemPrompt.section text The jobs family tells the model to reap before concluding. The subagent family has no counterpart instruction anywhere in its prompt surface. Suggested minimal fix: give dsh-tool-subagent the same kind of section dsh-tool-jobs already has — unconditional rather than continuable-gated, and covering the turn-end case, e.g. "before giving a final answer, stop or explicitly account for delegations you no longer need." This is prompt-layer only; it doesn't change ownership semantics, so it doesn't collide with the questions #4239 raises about whether a non-continuation parent should be allowed to start continuable children at all. Scope 中文版 / ZH
它的 Problem 段描述的正是这张表所预测的症状: 可观察到的下游症状是:父级反复轮询 list_agents、向已经结算的子级重复发消息、以及部署方放弃 subagent 转投 workflow——因为 workflow 至少会返回点什么。 机制是:notifySettlement() 在 releaseOwnership 之前解析子级持久的直接父级,并投递一条无条件的 user 角色通知;新增消息来源类型 subagent-settled(form: 'notice'、summary、senderSessionId)。"无条件"正是要点——它让「它结束时会通知你,所以永远不要轮询或等待」这句话在子级死于 token 上限或持久化失败时也成立。 另有一个提交 191c8cd fix(acp): scope connection-owned continuation drain,引入了 drainContinuable()。 所以我的读法是:表格现在是 3/4 断,而非 4/4(至少在 continuable 子级上)。请在你的基线上再核一遍——我用的是 0.2.0-rc.2,而 #4793 是针对 0.1.1-rc.2 报的。
父级活着且健康,只是不再需要这个结果了。 此时:所有权完整(① 成立)、没有 dispose 可级联(② 不适用)、子级并未挂起且在正常推进(③ 不适用)、结算投递正常工作(④ 成立)。而浪费照样发生——只是发生得更晚。 我在一次会话中观察到的: 某一轮里启动了一个后台委派。 我认为这是与 ③ 并列的一行,而不是 ③ 的变体:③ 是挂起的子级(永不结算);这是健康但不再被需要的子级(会正常结算,只是很晚)。检测方式不同,修法也不同。
包 systemPrompt.section 文本 jobs 族明确要求模型在收尾前回收。subagent 族的提示词面里没有任何对应指令。 建议的最小修复:给 dsh-tool-subagent 加上与 dsh-tool-jobs 同类的段落——不带 continuable 门控,并覆盖轮次结束的情形,例如「给出最终答案前,停止或显式交代你已不再需要的委派」。这纯粹是提示词层改动,不触碰所有权语义,因此不会与 #4239 提出的「非 continuation 父级是否应被允许启动 continuable 子级」那些问题冲突。 范围声明 |
|
Three answers, in the order you gave them. Everything below is read from published npm tarballs — 1. Re-checked on 0.2.0-rc.2 — the change lands on delivery, not on the condition the row namesYour two commits are visible where you said: What did not change is the line the ④ row was written about. notifySettlement(activation, terminal) {
if (!activation.announced) return;
try {
const parent = this.ctx.agents.get(activation.parentSession);
if (parent === void 0) return;
...So "the parent no longer exists ⇒ the settlement is dropped silently, with no durable record and no backlog" reads exactly as it did when the table was written. What changed is the delivery path around those exits: a parent that is itself tearing down now receives the message through Our reading is therefore narrower than "④ landed". Delivery while the parent is live got stronger, and a delivery failure stopped being completely silent. The specific condition the ④ row names — parent gone — is still the same early exit. Which way you mark the table after that is yours to call; we are only pointing at where the two layers part. 2. The case the table does not cover — agreed, and it may have a second anchorAgreed that it is a row of its own rather than a variant of ③: ③ never settles; this one settles correctly, only after the cost has been incurred. Different detection, different fix. One thing I would put as an open question on the new row rather than as an answer to it: whether the fix has a second anchor beyond the prompt. The mechanism in §1 answers "when will I be told" — it does not, by construction, answer "can I stop this now". If the tool surface offers no way to end a delegation the parent has stopped needing, then instruction is the only lever — and for bounding a resource, instruction is the weakest lever available, because it depends on the model choosing to act on it in the same turn in which it stops needing the result. 3. The prompt-layer asymmetry — re-checked, all three hold as writtenAt the locations you gave, on
So the asymmetry is not a reading artifact. One correction to the citation, because it will bite the next reader: the settlement note you link now lives under On where our status lines liveWe re-check these reports as a set now, and keep one status table rather than refreshing each thread separately — the current one, covering the eleven August reports against Authorship note: the readings above were taken by me against the published npm tarballs named inline on 2026-10-09; nothing was executed and no upstream behaviour was reproduced by running it. Drafting assisted by AI; verification and publication by me. I have no engineering background — if any technical claim reads wrong, please call it out; I will re-verify against the toolchain and correct. Reported by the OfferKuai Team — Founder: Zhaofeng (Yaming). Website: https://www.offerkuai.com/ | Contact: contact@offerkuai.com 中文版三点回答,按你给的顺序。以下全部读自已发布 npm 产物 —— 1. 在 0.2.0-rc.2 上重核 —— 变的是投递,不是那一行点名的条件你给的两个提交在你说的地方都看得见: 没变的,是 ④ 那一行当初写的那句话。 notifySettlement(activation, terminal) {
if (!activation.announced) return;
try {
const parent = this.ctx.agents.get(activation.parentSession);
if (parent === void 0) return;
...所以「父不存在 ⇒ 结算被静默丢弃,无 durable、无 backlog」读起来和当初写这张表时逐字一样。 变的是那两个早退周围的投递路径:父自己正在 teardown 时,消息现在经 ⇒ 我方的读法因此比"④ 已落地"更窄:父还活着时的送达被加固了,投递失败也不再完全无声。 而 ④ 那一行点名的那个具体条件 —— 父已不在 —— 仍是同一个早退。表格之后怎么标由你定,我们只是把这两层的分界指出来。 2. 表格未覆盖的那种情形 —— 同意,而它可能还有第二个锚点同意它是独立一行、而非 ③ 的变体:③ 是永不结算;这一种正常结算,只是在代价产生之后才到。检测方式不同,修法也不同。 有一条我想作为新行的未决问题提出,而不是作为它的答案:这个修法是否只有提示词层一个锚点。 §1 那个机制回答的是「什么时候会通知我」—— 它按构造就不回答「我现在能不能停下来」。如果工具面上没有任何入口去结束一个父已不再需要的委派,那么指令就是唯一可用的杠杆;而用来约束一个资源,指令是最弱的杠杆 —— 它依赖模型在"不再需要结果"的同一轮里选择照做。 3. 提示词层的不对称 —— 重新核过,三处与所写一致在你给的位置上,
⇒ 这个不对称不是读数误差。 一处更正,因为下一位读者会踩:你引的那份 settlement 笔记现在位于 我们的状态行现在放在哪我们不逐帖刷新,而是把这类报告成组重核、维护一张状态表 —— 当前的这张(8 月那十一份报告对着 协作说明:上列读数由我本人于 2026-10-09 对照内文点名的已发布 npm 产物完成;未执行任何代码,也未通过运行复现任何上游行为。文稿撰写由 AI 辅助;核验与发布由我本人负责。我没有工程背景 —— 若任何技术表述有误,请直接指出,我会对照工具链重新核实并更正。 本报告由 OfferKuai(Offer快)团队提交 —— 创始人:Zhaofeng(Yaming)。官网:https://www.offerkuai.com/ | 联系:contact@offerkuai.com |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Several of us have independently been converging on the same pattern from different angles: a weak cross-module lifecycle contract. On #4793, Jstn-1g reproduced it against
0.1.2-alpha.1and shipped a reference fix (cleanup bound to the parent Agent's own scope; 146 tests green). argszero confirmed the dispose half is real and framed it as the dispose-side of that weak-contract family. weijiafu14 / liyangbing / nokkies surfaced the same shape from the MCP-runtime and preset-mount angles.Upstream status that matters: the option half of #4666 was natively fixed in
0.1.2-alpha.1, but the dispose half is still NOT merged into the main branch — only the community reference implementation exists. So this is not re-reporting a bug; it lifts the pattern to the architecture layer and gives the convergence view, then points at the minimum-cost fix anchor.TL;DR (30s to judge priority)
dsh-agent-loopanddsh-subagentboth use factory/fiber-level ownership; neither binds a child agent's lifecycle to its parent's dispose. Result: parent exits → child stays; orphan never released; handoff info lost; crash silently dies. The design assumes the ideal exit path; production-normal exits (crash / abort / parent-exits-first / child-hung) have no handoff contract.activationsgrows monotonically (OOM risk);drain/drainDescendantsdegrade to O(n); scheduler fault → dangling tool_calls → model 400 hard-hang.@deepseek-ai/dsh@0.1.1-rc.2).The contract is 4 links, each broken
agentsservice fiber scopedrainChildrendrainChildren/drainDescendantsare explicit APIs, no auto hookwatchSettlementwaits onwhenIdle(); hung never settlesnotifySettlementsilently returnsRoot cause is not a single line — it is ownership层级选错 + 清理靠显式调用 + 挂起靠自管 + 交付靠乐观存在 stacked together. Notably,
dsh-jobs-local/dsh-schedulein the same repo bind cleanup correctly toagent.ctx.effect— so the authors do know how;dsh-subagent's continuation manager just architecturally skipped the cascade.Evidence chain (per source line, versioned) → in follow-up 1. Fix direction (minimum-cost anchor = align
dsh-subagentto the jobs/scheduleagent.ctx.effectcascade) → in follow-up 2.Authorship note: reproduced and documented by me in real-world usage; root-cause tracing and drafting assisted by AI; verification and publication by me. I have no engineering background — if any technical claim reads wrong, please call it out; I will re-verify against the toolchain and correct.
中文版 / ZH
我们几个人从不同角度独立收敛到了同一个模式:跨模块生命周期契约薄弱。在 #4793,Jstn-1g 用
0.1.2-alpha.1复现并给出参考实现(cleanup 装到父 Agent 自身作用域,146 测试全绿);argszero 确认 dispose 这一半是真实的,并把它定为那个弱契约家族的 dispose 侧;weijiafu14 / liyangbing / nokkies 从 MCP 运行时和 preset 挂载角度也点出了同一形态。关键的上游状态:#4666 的 option 半已在
0.1.2-alpha.1原生修复,但 dispose 半仍未合入主分支——目前只有社区参考实现。所以这不是重复报 bug,而是把模式升到架构层、给收敛视角,再指最小代价修复锚点。TL;DR(30 秒判断优先级)
dsh-agent-loop与dsh-subagent两层都用 factory/fiber 级所有权;没有任何一层把子 agent 生命周期绑定到父 dispose。结果:父退 → 子留;孤儿不释放;交接信息丢失;崩溃静默死。设计按理想退出路径;生产常态(崩溃 / abort / 父先退 / 子挂起)没有交接契约。activations单调增长(OOM 风险);drain/drainDescendants退化为 O(n);调度异常 → 悬挂 tool_calls → 模型 400 永久卡死。@deepseek-ai/dsh@0.1.1-rc.2)。契约是 4 个环节,每一环都断
agents服务 fiber scopedrainChildrendrainChildren/drainDescendants是显式 API,无自动 hookwatchSettlement等whenIdle(),挂起永不 settlenotifySettlement静默 return根因不是某一行——是「ownership 层级选错 + 清理靠显式调用 + 挂起靠自管 + 交付靠乐观存在」四者叠加。值得指出的是:同仓库的
dsh-jobs-local/dsh-schedule都把清理正确绑定到agent.ctx.effect——说明作者会做清理,dsh-subagent的 continuation manager 只是在架构上漏做了级联。证据链(按源码行号、带版本)→ 跟帖1。修复方向(最小代价锚点 = 把
dsh-subagent对齐到 jobs/schedule 的agent.ctx.effect级联)→ 跟帖2。协作说明:本文由我在真实使用中复现并记录;根因与成文由 AI 协助完成,我负责校验与发布。我非工程背景,技术表述如有错误,欢迎指出——我会回去用工具链重新验证后更正。
All reactions