Skip to content

notes: pi 空回复事故分析卡 - #143

Open
joyehuang wants to merge 1 commit into
mainfrom
0926-empty-reply-incidents
Open

notes: pi 空回复事故分析卡#143
joyehuang wants to merge 1 commit into
mainfrom
0926-empty-reply-incidents

Conversation

@joyehuang

@joyehuang joyehuang commented Sep 1, 2026

Copy link
Copy Markdown
Owner

18 起日志实证 / 模式 A(error 跨模型)vs B(glm 正常 stop 空内容)/ bridge quote 语义 / empty-reply-guard 保险丝设计。

止步 PR 不合并。bun run check 0 errors。


Summary by cubic

Adds a research note analyzing 18 empty-reply incidents in the pi agent, and aligns a SiteStats.astro type cast with PR #118 so branches cut from main pass bun run check. This PR is for review only and should not be merged.

Note contents

  • Classifies incidents into pattern A (stopReason=error empty replies across 4 models, 14 cases, mostly after Command aborted) and pattern B (glm-5.3-flash normal-stop empty replies, 4 cases).
  • Proposes an empty-reply-guard fuse: detect an empty final assistant message at turn end and inject one followUp retry, reset by fresh user input.

Written for commit a2f4c75. Summary will update on new commits.

Review in cubic

includes SiteStats.astro neon type fix (same as #118) for clean check on
branches cut from main
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
blog Ready Ready Preview Sep 1, 2026 6:34pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2 issues found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/content/notes/0926-empty-reply-incidents.md">

<violation number="1" location="src/content/notes/0926-empty-reply-incidents.md:19">
P3: 「18 起同型事故,跨 4 个模型」与正文列举的模型数不符:模式 A 已含 deepseek/cc-deepseek/Qwen3.8/opus 四个,模式 B 又单列 glm-5.3-flash,共 5 个模型。请更正为 5,或说明 4 的口径(例如把 cc-deepseek 计入 deepseek 系)。</violation>

<violation number="2" location="src/content/notes/0926-empty-reply-incidents.md:31">
P2: 模式 A 的模型分布计数加总为 17(deepseek 9 + cc-deepseek 3 + Qwen3.8 3 + opus 2),但该段标题标明 14 起,与全文 18 = A(14) + B(4) 的框架不一致。请核对日志更正分布或标题数字,否则这张事故实证卡的核心数字自相矛盾。</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic


**模式 A:stopReason=error 的空回复(8-11~8-28,14 起,跨模型)**

- 模型分布:deepseek 9 次 / cc-deepseek 3 次 / Qwen3.8 3 次 / opus 2 次——**跨模型发生,多紧跟 Command aborted 之后**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2: 模式 A 的模型分布计数加总为 17(deepseek 9 + cc-deepseek 3 + Qwen3.8 3 + opus 2),但该段标题标明 14 起,与全文 18 = A(14) + B(4) 的框架不一致。请核对日志更正分布或标题数字,否则这张事故实证卡的核心数字自相矛盾。

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/content/notes/0926-empty-reply-incidents.md, line 31:

<comment>模式 A 的模型分布计数加总为 17(deepseek 9 + cc-deepseek 3 + Qwen3.8 3 + opus 2),但该段标题标明 14 起,与全文 18 = A(14) + B(4) 的框架不一致。请核对日志更正分布或标题数字,否则这张事故实证卡的核心数字自相矛盾。</comment>

<file context>
@@ -0,0 +1,65 @@
+
+**模式 A:stopReason=error 的空回复(8-11~8-28,14 起,跨模型)**
+
+- 模型分布:deepseek 9 次 / cc-deepseek 3 次 / Qwen3.8 3 次 / opus 2 次——**跨模型发生,多紧跟 Command aborted 之后**
+- 性质:上游 API/网关层的错误边界——错误到达时 content 为空,harness 把空 completion 当正常 turn 结束
+
</file context>
Suggested change
- 模型分布:deepseek 9 次 / cc-deepseek 3 次 / Qwen3.8 3 次 / opus 2 次——**跨模型发生,多紧跟 Command aborted 之后**
deepseek 6 次 / cc-deepseek 3 次 / Qwen3.8 3 次 / opus 2 次


## 核心内容

pi agent 偶发「整轮无最终回复」——Telegram 侧表现为只有中间消息、没有 quote 回复,用户看到的对话直接断掉。这不是单次 bug:对 session 日志的逐条排查实证了 8-11 以来的 **18 起同型事故**,跨 4 个模型发生。这张卡记录完整的归因分析与修复设计。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P3: 「18 起同型事故,跨 4 个模型」与正文列举的模型数不符:模式 A 已含 deepseek/cc-deepseek/Qwen3.8/opus 四个,模式 B 又单列 glm-5.3-flash,共 5 个模型。请更正为 5,或说明 4 的口径(例如把 cc-deepseek 计入 deepseek 系)。

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/content/notes/0926-empty-reply-incidents.md, line 19:

<comment>「18 起同型事故,跨 4 个模型」与正文列举的模型数不符:模式 A 已含 deepseek/cc-deepseek/Qwen3.8/opus 四个,模式 B 又单列 glm-5.3-flash,共 5 个模型。请更正为 5,或说明 4 的口径(例如把 cc-deepseek 计入 deepseek 系)。</comment>

<file context>
@@ -0,0 +1,65 @@
+
+## 核心内容
+
+pi agent 偶发「整轮无最终回复」——Telegram 侧表现为只有中间消息、没有 quote 回复,用户看到的对话直接断掉。这不是单次 bug:对 session 日志的逐条排查实证了 8-11 以来的 **18 起同型事故**,跨 4 个模型发生。这张卡记录完整的归因分析与修复设计。
+
+## 归因前的关键澄清:bridge 语义
</file context>
Suggested change
pi agent 偶发「整轮无最终回复」——Telegram 侧表现为只有中间消息、没有 quote 回复,用户看到的对话直接断掉。这不是单次 bug:对 session 日志的逐条排查实证了 8-11 以来的 **18 起同型事故**,跨 4 个模型发生。这张卡记录完整的归因分析与修复设计。
跨 5 个模型发生

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