Conversation
启动 E02-S004(交互式命令)需求讨论,产出 outline + D01–D05 五份决策初稿(初步收敛待评审): - D01 交互式定义:四道防线防的是"盲等"非"输入";判据"要不要人输入"再拆"谁持有答案" - D02 检测:系统层无"blocked on stdin"信号;改"模型声明 + 复用 S003 静默兜底" - D03 范式:新工具 write_stdin + 会话表(持有 live handle,与 S003 只存 pid 的登记表相反);stdio[0] 由 ignore 改 pipe - D04 pty:守零依赖基调不引 node-pty;只覆盖"读 stdin"那类,isatty 门控/密码提示记明示缺口 - D05 生命周期与安全:复用三道防线 + 新增会话空闲兜底 + 软上限;密码类推给审批专章 同步更新 Epic 2 README S004 行状态为"讨论中",并接上 S003 outline 的"下一步"指针。 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
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.
背景
E02-S003(terminal)已收口,Epic 2 只剩最后一个 Story:S004 交互式命令。S003 讨论中两次重画 S003/S004 的线后,S004 的边界收敛为「要不要人输入」,此前「尚未开始讨论」。本 PR 按项目
讨论 → spec → 实现 → 复盘的迭代流程,推进 S004 的需求讨论环节。改动
新增
.discuss/2026-09-18/e02-s004-interactive-commands/:outline.md:驱动文档 —— 问题框定、五议题议程与叙事链、竞品指针、Confirmed/Rejected/Pending 表decisions/D01–D05(初步收敛,待评审):write_stdin+ 会话表(持有 live handle,与 S003 只存 pid 的后台登记表相反);stdio[0]由ignore改pipe;模型写不是人接管/dev/tty密码提示记明示缺口;「无 pty」既是能力缺失也是安全防线同步:Epic 2 README 的 S004 行状态改为「🚧 讨论中」并接上链接;S003 outline 的「下一步」指针接到本讨论。
说明
.ts代码;prettier/eslint 仅 gatepackages/**与e2e/**的 TS,本 PR 不受影响。terminal.ts/process-registry.ts现状做一次代码核对(遵循 S003 D03-8「写决策前先看代码」)。关联 issue:ALI-70《继续推进下一期 z2a 课程》