model-selection-regression-decision-backlog.yaml 79 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854
  1. schemaVersion: 1
  2. backlogId: model-selection-regression-decisions
  3. title: 模型选择回归矩阵的隐含决策与契约核验清单
  4. status: planning
  5. language: zh-CN
  6. purpose: >-
  7. 将模型供应商、模型选择、思考深度、Registry、请求投影、Session、队列、远程恢复和
  8. 下游模型消费者中不能安全假设的 edge case 单独列出,供产品裁决、文档收敛、实现核验和后续剪枝使用。
  9. statusValues:
  10. undefined: "产品行为尚未足够明确,需要裁决"
  11. contract-conflict: "现有 spec、实现或既有 case 互相冲突,需要先收敛权威口径"
  12. resolved-needs-proof: "已有设计倾向或实现事实,但仍需要测试/日志/请求证据证明"
  13. pruned-by-contract: "已经由明确 invariant 剪掉;保留记录防止未来误加回"
  14. decisionRule: >-
  15. undefined 和 contract-conflict 不得直接生成会断言产品行为的 formal E2E;resolved-needs-proof
  16. 进入验证队列而不是再次向用户提问;pruned-by-contract 只能在引用 invariant 后剪枝。
  17. summary:
  18. totalEntries: 114
  19. decisionEntries: 64
  20. contractConflictEntries: 12
  21. proofEntries: 38
  22. note: "decisionEntries 只表示需要产品/契约决策的 undefined 项,不代表只有这些项需要测试。"
  23. evidenceConventions:
  24. - "newer-design: 较新的 Provider refactor interaction/selection design"
  25. - "state-space: conversation-product-state-space.md"
  26. - "protocol: conversation-product-protocol.md 或 conversation-protocol-declaration.md"
  27. - "runtime: 当前 live code 的 resolver、input-intent、ModelFactory 或 handler"
  28. - "case-catalog: conversation-session-case-catalog.md 中已有 case"
  29. - "graph: feature-boundary-planner graph;当前没有 live codegraph index 时不得伪造结果"
  30. entries:
  31. - id: DEC-001
  32. domain: selection
  33. status: undefined
  34. question: "空白新对话首次打开 picker 时,Recent 无效且 Host preferred 也无效,应显示什么?"
  35. options:
  36. [
  37. "空状态并阻止发送",
  38. "选择器显示不可用原因但允许用户进入 Provider 设置",
  39. "自动选择任意可用模型",
  40. ]
  41. recommendation: "优先空状态加明确修复入口;禁止静默选择任意模型。"
  42. evidence:
  43. [
  44. "runtime: modelSelectionRecent 只接受 selectable Recent,否则回到 Host preferred",
  45. "blocking: 首次发送无法形成 complete selection",
  46. ]
  47. blockingCases: [MSR-DRAFT-001]
  48. - id: DEC-002
  49. domain: selection
  50. status: undefined
  51. question: "Recent 记录了 provider/model,但模型后来被 disabled 时,draft 是保留意图、换 preferred,还是清空?"
  52. options: ["保留 intent 并显示 unavailable", "切到 Host preferred", "清空并要求重新选择"]
  53. recommendation: "默认保留 intent,直到用户明确改选;是否允许发送需另由 capability guard 决定。"
  54. evidence:
  55. [
  56. "newer-design: selection-state 要求已有 Session 不因不可用而静默 fallback",
  57. "runtime: Recent 只有 selectable 才作为可选初始化值",
  58. ]
  59. blockingCases: [MSR-DRAFT-003, MSR-SESSION-007]
  60. - id: DEC-003
  61. domain: selection
  62. status: undefined
  63. question: "Recent、Host preferred、provider family default 三者同时存在时,优先级是否固定为 Recent > Host preferred > family default?"
  64. options: ["固定该优先级", "按 surface 使用不同优先级", "只允许显式 Host preferred"]
  65. recommendation: "保持统一优先级;surface 如有例外必须显式声明。"
  66. evidence:
  67. [
  68. "runtime: modelSelectionRecent 的 workspace-keyed fallback chain",
  69. "docs: new-task/manual-switch resolution chain",
  70. ]
  71. blockingCases: [MSR-DRAFT-001, MSR-SURFACE-007]
  72. - id: DEC-004
  73. domain: selection
  74. status: undefined
  75. question: "用户只切换 provider、没有重新选 model 时,是否保留原 modelId 作为跨 provider 意图?"
  76. options:
  77. ["provider 改变即清空 modelId 并重新解析", "按同名模型迁移", "保留原 modelId 直到校验失败"]
  78. recommendation: "不要按字符串同名自动迁移;provider 改变后重新解析 model。"
  79. evidence:
  80. [
  81. "runtime: ModelSelection 的 providerId/modelId 是完整身份",
  82. "risk: 两个 Provider 可有同名模型",
  83. ]
  84. blockingCases: [MSR-SELECT-002, MSR-REG-002]
  85. - id: DEC-005
  86. domain: selection
  87. status: resolved-needs-proof
  88. question: "模型选择展示值能否直接用 provider/model$variant 作为跨进程和持久化值?"
  89. options:
  90. [
  91. "只能展示编码,协议使用结构化 ModelSelection",
  92. "允许字符串作为兼容格式",
  93. "所有地方统一使用展示字符串",
  94. ]
  95. recommendation: "采用第一项;需要补充 slash、colon、dollar 和空值的 round-trip 证据。"
  96. evidence:
  97. [
  98. "runtime: packages/shared/src/model-selection.ts",
  99. "newer-design: sparse intent 与 canonical submission 分离",
  100. ]
  101. blockingCases: [MSR-REG-002, MSR-REG-003]
  102. - id: DEC-006
  103. domain: selection
  104. status: undefined
  105. question: "同一次操作同时改变 provider、model、thought 时,校验失败应整体回滚还是保留部分 draft?"
  106. options:
  107. ["原子回滚到 authoritative draft", "保留可接受字段并清掉失败字段", "保留用户输入并标红"]
  108. recommendation: "commit 采用原子语义;renderer draft 是否保留未提交意图需单独定义。"
  109. evidence:
  110. [
  111. "newer-design: authoritative draft model config 与 CAS",
  112. "runtime: composer draft 具有 renderer-local reactive intent",
  113. ]
  114. blockingCases: [MSR-DRAFT-004, MSR-SESSION-002]
  115. - id: DEC-007
  116. domain: selection
  117. status: undefined
  118. question: "模型 capability 在 picker 打开后发生变化,发送时应以打开时快照还是提交时 Registry 为准?"
  119. options: ["提交时重新校验 Registry", "沿用 picker 打开时快照", "两者不一致时阻止并要求刷新"]
  120. recommendation: "提交时重新校验;若已选值失效,保留 intent 并给出可解释错误。"
  121. evidence:
  122. ["runtime: target Host Registry 是 authority", "risk: remote Registry loading/revision 变化"]
  123. blockingCases: [MSR-DRAFT-005, MSR-REG-006]
  124. - id: DEC-008
  125. domain: selection
  126. status: undefined
  127. question: "同一 modelId 的 selectable、disabled、deprecated 版本同时出现时,picker 分组和默认解析如何判定?"
  128. options:
  129. [
  130. "只把 selectable 放入默认候选,历史值单独 locked",
  131. "全部混合显示并按 revision 排序",
  132. "deprecated 自动映射新模型",
  133. ]
  134. recommendation: "候选与历史展示分离;禁止隐式 revision migration。"
  135. evidence:
  136. ["registry: model membership and enablement design", "blocking: disabled-current UI 仍有冲突"]
  137. blockingCases: [MSR-REG-005, MSR-UI-003]
  138. - id: DEC-009
  139. domain: selection
  140. status: undefined
  141. question: "model 的 default thought/variant 变化时,已有 sparse selection 的空 option 是否跟随新 default?"
  142. options:
  143. [
  144. "空 option 每次 ModelFactory 创建时解析最新 default",
  145. "首次解析后冻结到 Session",
  146. "更新 Registry 即回写 Session selection",
  147. ]
  148. recommendation: "空 option 不持久化具体 default;执行时按当前设计解析,但 explicit override 永不被覆盖。"
  149. evidence:
  150. [
  151. "newer-design: ModelSelection sparse intent, missing options resolved at ModelFactory creation",
  152. ]
  153. blockingCases: [MSR-REASON-006, MSR-SESSION-008]
  154. - id: DEC-010
  155. domain: selection
  156. status: undefined
  157. question: "用户切到跨 model 后,原先的 thought override 是否清空、迁移、还是保留并在新 model 上校验?"
  158. options: ["跨 model 清空 thought override", "保留并校验,不兼容时阻止", "按同名 thought 迁移"]
  159. recommendation: "跨 model 清空 thought override;这是当前 composer 事实,但需统一所有 surface。"
  160. evidence:
  161. [
  162. "runtime: useDraftConfigControl cross-model clears thought",
  163. "risk: Automation/Off-Peak/CLI 可能有不同路径",
  164. ]
  165. blockingCases: [MSR-REASON-007, MSR-SURFACE-009]
  166. - id: DEC-011
  167. domain: selection
  168. status: resolved-needs-proof
  169. question: "模型 menu selection 是否立即改变 Recent,还是只有 Submission accepted 才改变?"
  170. options:
  171. [
  172. "只在 accepted Submission 写 Recent",
  173. "选中 menu item 立即写 Recent",
  174. "首次真实 response 后写 Recent",
  175. ]
  176. recommendation: "只在 accepted Submission 写 Recent;需要 desktop、remote 和失败/取消路径证据。"
  177. evidence:
  178. [
  179. "newer-design: App Recent 更新点是 App accepts Submission",
  180. "runtime: SessionPane writes recent after accepted ACK",
  181. ]
  182. blockingCases: [MSR-DRAFT-006, MSR-SESSION-009]
  183. - id: DEC-012
  184. domain: selection
  185. status: resolved-needs-proof
  186. question: "Edit/Retry/Guide/Queue 从来源 Submission 复制模型选择时,是否允许用户显式选择‘使用当前模型’?"
  187. options:
  188. [
  189. "默认继承 source Submission,使用当前模型必须是显式新选择",
  190. "总是读取当前 Session",
  191. "Edit/Retry 继承而 Queue 不继承",
  192. ]
  193. recommendation: "默认继承 source Submission;未来 current-model 作为显式 SelectionSource。"
  194. evidence:
  195. [
  196. "newer-design: edit/retry inherit source Submission ModelSelection",
  197. "state-space: queue freezes model/thought Selection",
  198. ]
  199. blockingCases: [MSR-QUEUE-003, MSR-EDIT-001]
  200. - id: DEC-013
  201. domain: registry
  202. status: undefined
  203. question: "Built-in、Account、Personal 三层 Provider 同时定义同一 providerId/modelId 时,覆盖顺序和字段 merge 规则是什么?"
  204. options: ["按明确 precedence 整体覆盖", "按字段 merge", "检测冲突并隐藏该 provider"]
  205. recommendation: "provider identity 先按明确 precedence 收敛;字段 merge 只允许 schema 明确列出的字段。"
  206. evidence:
  207. [
  208. "registry: provider-and-model-configuration-overview",
  209. "runtime: ProviderConfigResolver source overlays",
  210. ]
  211. blockingCases: [MSR-REG-004, MSR-REG-007]
  212. - id: DEC-014
  213. domain: registry
  214. status: undefined
  215. question: "同一 Provider 配置存在旧 revision、当前 revision 和未知 revision 时,Registry 是否原子发布?"
  216. options:
  217. ["只发布完整且 revision 一致的 snapshot", "部分字段先发布", "回退旧 revision 并继续可用"]
  218. recommendation: "只发布完整一致 snapshot;失败时保留上一个可用 snapshot 并记录原因。"
  219. evidence:
  220. ["registry: atomic Registry publish seed case", "risk: built-in/account revision mismatch"]
  221. blockingCases: [MSR-REG-004, MSR-REG-008]
  222. - id: DEC-015
  223. domain: registry
  224. status: undefined
  225. question: "provider 配置缺失但 model membership 存在时,候选应隐藏、显示不可用、还是允许保存后等待补配置?"
  226. options: ["显示 unavailable 并阻止发送", "隐藏候选", "允许保存 selection,执行时失败"]
  227. recommendation: "保存 intent 可以允许,执行前必须 fail closed;展示态保留不可用原因。"
  228. evidence:
  229. [
  230. "registry: membership/enablement 与 complete config 分层",
  231. "runtime: target Host Registry authority",
  232. ]
  233. blockingCases: [MSR-REG-009, MSR-AUTH-004]
  234. - id: DEC-016
  235. domain: registry
  236. status: undefined
  237. question: "provider endpoint/baseURL 改变后,已创建 Active Model 是否热更新,还是只影响后续 ModelFactory?"
  238. options:
  239. [
  240. "Active Model immutable,只影响后续 model",
  241. "下一 chunk 热更新",
  242. "终止旧 model 并自动重试新 endpoint",
  243. ]
  244. recommendation: "Active Model immutable;endpoint 变更只影响未来创建,in-flight 不重写。"
  245. evidence:
  246. [
  247. "newer-design: active Model immutable; provider config changes apply to future Model creation",
  248. ]
  249. blockingCases: [MSR-REG-010, MSR-SESSION-005]
  250. - id: DEC-017
  251. domain: registry
  252. status: undefined
  253. question: "Registry loading、refresh、publish 期间,picker 应显示旧 snapshot、空状态还是 loading lock?"
  254. options: ["显示旧 snapshot 并标记 stale", "清空并锁定选择", "继续显示 loading 下的合并候选"]
  255. recommendation: "有可用旧 snapshot 时 stale-read;没有 snapshot 时阻止依赖 Registry 的提交。"
  256. evidence:
  257. [
  258. "runtime: remote Registry loading must not fallback local",
  259. "state: registry revision/readiness dimension",
  260. ]
  261. blockingCases: [MSR-REG-003, MSR-REG-011]
  262. - id: DEC-018
  263. domain: registry
  264. status: undefined
  265. question: "远端 workspace 与本地 workspace 的 provider registry 是否允许共享缓存?"
  266. options: ["按 workspaceKey 严格隔离", "同 providerId 可共享只读 facts", "按 workspacePath 共享"]
  267. recommendation: "按 workspaceKey 隔离;任何共享必须经过明确 immutable facts cache 设计。"
  268. evidence:
  269. [
  270. "AGENTS: workspaceIdentity 与 workspacePath 语义分离",
  271. "runtime: model-selection-recent key uses workspaceKey",
  272. ]
  273. blockingCases: [MSR-REMOTE-001, MSR-REMOTE-004]
  274. - id: DEC-019
  275. domain: registry
  276. status: contract-conflict
  277. question: "旧 client-config/magic_name/fallback/tombstone 路径是否仍是当前 Registry 的语义来源?"
  278. options:
  279. [
  280. "Provider Registry 是唯一当前来源,旧路径只做 migration",
  281. "旧路径与 Registry 双向兼容",
  282. "按 surface 继续分别读取",
  283. ]
  284. recommendation: "采用 Registry 单一当前来源;保留迁移兼容但禁止新 case 依赖 legacy 语义。"
  285. evidence:
  286. [
  287. "newer-design: design-v2 authority order",
  288. "planning: graph drift marks legacy references stale",
  289. ]
  290. blockingCases: [MSR-REG-012, MSR-MIGRATION-001]
  291. - id: DEC-020
  292. domain: registry
  293. status: contract-conflict
  294. question: "Provider registry 的 provider identity 是否包含 account、workspace、host 和 endpoint,而不只是 providerId?"
  295. options:
  296. [
  297. "identity 由 providerId 加 host/workspace/account scope 构成",
  298. "只用 providerId",
  299. "endpoint 变化生成新 providerId",
  300. ]
  301. recommendation: "selection identity 与 config scope 分离;跨 workspace/host 的 authority 必须带 identity。"
  302. evidence:
  303. ["AGENTS: remote workspaceIdentity 必须贯穿", "newer-design: target Host Registry authority"]
  304. blockingCases: [MSR-REG-003, MSR-REMOTE-001]
  305. - id: DEC-021
  306. domain: registry
  307. status: contract-conflict
  308. question: "Registry publish 失败时,消费者是否可以看到混合的新旧 provider/model snapshot?"
  309. options:
  310. [
  311. "禁止 partial publish,继续使用上一个 snapshot",
  312. "允许逐 provider 更新",
  313. "允许 renderer 先看到 optimistic snapshot",
  314. ]
  315. recommendation: "禁止 partial publish;renderer optimistic 只表示 intent,不得伪装成 Registry authority。"
  316. evidence:
  317. [
  318. "registry: atomic Registry publish design/case",
  319. "AGENTS: UI cannot call Repo and Host is authority",
  320. ]
  321. blockingCases: [MSR-REG-004, MSR-REG-013]
  322. - id: DEC-022
  323. domain: registry
  324. status: resolved-needs-proof
  325. question: "Provider config 与凭据更新是否只影响后续 ModelFactory,不修改已经落盘的历史 provenance?"
  326. options:
  327. [
  328. "历史 provenance immutable,未来 model 读取最新 config",
  329. "历史按 provider config 回溯重算",
  330. "更新即重跑当前任务",
  331. ]
  332. recommendation: "历史 provenance immutable;补充配置更新前后同一 Session 的 request/usage 证据。"
  333. evidence:
  334. ["newer-design: active Model immutable", "planning: provenance is a separate assertion layer"]
  335. blockingCases: [MSR-REG-010, MSR-RECOVERY-004]
  336. - id: DEC-023
  337. domain: registry
  338. status: resolved-needs-proof
  339. question: "Provider/model display label、opaque modelId、wire model name 三者不一致时,哪个进入 provenance?"
  340. options:
  341. ["保存结构化 providerId/modelId 与最终 wire name", "只保存 display label", "只保存 wire name"]
  342. recommendation: "至少保存结构化 identity 和 wire projection;展示 label 只能是派生值。"
  343. evidence:
  344. [
  345. "runtime: model selection type and adapter request projection",
  346. "risk: opaque IDs contain reserved display characters",
  347. ]
  348. blockingCases: [MSR-REG-002, MSR-REQ-004]
  349. - id: DEC-024
  350. domain: entitlement
  351. status: undefined
  352. question: "Provider 已连接但 plan entitlement 尚在 loading 时,saved selection 是否可以继续显示和排队?"
  353. options:
  354. [
  355. "保留 intent,阻止执行直到 entitlement ready",
  356. "立即 fallback preferred",
  357. "允许请求并由服务端拒绝",
  358. ]
  359. recommendation: "保留 intent,执行前 fail closed;不因暂时 loading 破坏用户选择。"
  360. evidence:
  361. [
  362. "factor: entitlement loading is separate from provider auth",
  363. "seed: MSR-AUTH-002 preserves saved selection",
  364. ]
  365. blockingCases: [MSR-AUTH-002, MSR-QUEUE-004]
  366. - id: DEC-025
  367. domain: entitlement
  368. status: undefined
  369. question: "entitlement 从允许变为拒绝时,已有 Session、queued Submission、Automation record 分别如何处理?"
  370. options:
  371. ["历史保留;未来执行阻止并提示", "全部迁移到可用 preferred", "清理所有不可用 selection"]
  372. recommendation: "历史和记录保留 intent,未来执行按 scope fail closed;自动迁移需要显式产品契约。"
  373. evidence:
  374. [
  375. "planning: Session/Automation/Off-Peak records are separate authorities",
  376. "risk: saved explicit models must not silently change",
  377. ]
  378. blockingCases: [MSR-AUTH-005, MSR-QUEUE-005, MSR-SURFACE-002]
  379. - id: DEC-026
  380. domain: entitlement
  381. status: undefined
  382. question: "模型显示可选但该 operation(如 tools、image、long context)超出 entitlement 时,校验发生在 picker 还是 request preflight?"
  383. options:
  384. [
  385. "picker 做静态能力过滤,preflight 再做最终校验",
  386. "只在 picker 过滤",
  387. "只在 network response 后处理",
  388. ]
  389. recommendation: "静态过滤加执行前 preflight 双层校验;不得把服务端拒绝当作正常 pruning。"
  390. evidence:
  391. [
  392. "planning: adapter preflight + request body",
  393. "factor: entitlement and model capability are independent dimensions",
  394. ]
  395. blockingCases: [MSR-AUTH-006, MSR-REQ-001]
  396. - id: DEC-027
  397. domain: entitlement
  398. status: undefined
  399. question: "账号切换、OAuth refresh 或 coding-plan 变更期间,当前 Active Model 是否继续完成 in-flight 请求?"
  400. options:
  401. ["in-flight 使用已绑定 auth,后续请求使用新 auth", "立即中止并重试", "共享最新 auth token"]
  402. recommendation: "请求绑定时的 auth context 不被中途改写;后续 ModelFactory 使用最新 credentials。"
  403. evidence:
  404. [
  405. "planning: request auth is execution-local and dynamic",
  406. "AGENTS: fail before network for auth failure",
  407. ]
  408. blockingCases: [MSR-AUTH-007, MSR-SESSION-010]
  409. - id: DEC-028
  410. domain: entitlement
  411. status: undefined
  412. question: "同一 provider 的个人 key、OAuth、团队代理同时可用时,选择是按 auth priority 还是按 provider config priority?"
  413. options:
  414. ["auth source 有明确 priority 并记录 provenance", "最后写入的凭据优先", "请求失败后逐个尝试"]
  415. recommendation: "禁止无界重试;选择单一 auth context 并在失败前可观测。"
  416. evidence:
  417. [
  418. "planning: provider/account/personal config are separate layers",
  419. "risk: retry can duplicate side effects",
  420. ]
  421. blockingCases: [MSR-AUTH-008, MSR-REQ-006]
  422. - id: DEC-029
  423. domain: entitlement
  424. status: undefined
  425. question: "组织 policy 禁止某模型但用户已有历史记录时,历史页面是可读、可重试、可编辑还是全部锁定?"
  426. options: ["历史可读,重试/新提交按 policy 阻止", "历史也隐藏", "历史自动迁移到允许模型"]
  427. recommendation: "读与写分离;禁止静默改变历史 provenance。"
  428. evidence:
  429. [
  430. "planning: provenance/history is immutable",
  431. "factor: policy, access, operation and recovery are separate",
  432. ]
  433. blockingCases: [MSR-AUTH-009, MSR-EDIT-002]
  434. - id: DEC-030
  435. domain: entitlement
  436. status: contract-conflict
  437. question: "模型不可用时,现有 case 中的‘fallback 到可用模型并 promote 为 last-selected’是否仍是当前契约?"
  438. options:
  439. [
  440. "保留 explicit intent,禁止 silent fallback",
  441. "保留旧 fallback 并更新 Recent",
  442. "仅新建对话 fallback,已有 Session 不 fallback",
  443. ]
  444. recommendation: "以较新的 selection-state 为准:不 silent fallback;旧 I56/I58/I61 需要标 legacy 或重写。"
  445. evidence:
  446. [
  447. "newer-design: existing Session unavailable selection preserves intent",
  448. "case-catalog: I56/I58/I61 define fallback behavior",
  449. ]
  450. blockingCases: [MSR-SESSION-007, MSR-REG-005]
  451. - id: DEC-031
  452. domain: entitlement
  453. status: resolved-needs-proof
  454. question: "entitlement 在 execution 前变更时,失败是否保证不写 Recent、Session Selection、usage 和 provenance?"
  455. options:
  456. [
  457. "admission/commit 前 fail closed,四类副作用均不写",
  458. "先写 selection 再异步失败",
  459. "fallback 后写新 provenance",
  460. ]
  461. recommendation: "失败前不产生 accepted Submission side effect;补充 failure ledger 证据。"
  462. evidence:
  463. [
  464. "newer-design: Recent and Session Selection update on accepted Submission",
  465. "planning: auth fail before network",
  466. ]
  467. blockingCases: [MSR-AUTH-005, MSR-SESSION-009]
  468. - id: DEC-032
  469. domain: entitlement
  470. status: resolved-needs-proof
  471. question: "相同 model capability 在不同账号 entitlement 下,候选签名是否仍可复用?"
  472. options:
  473. [
  474. "capability signature 可复用,entitlement 另作 access dimension",
  475. "整个候选对象按账号隔离",
  476. "只按 display label 复用",
  477. ]
  478. recommendation: "能力和访问分开建模;测试需证明剪枝没有跨账号泄漏可选状态。"
  479. evidence:
  480. [
  481. "catalog: model expansion by capability-and-wire signature",
  482. "factor: provider access profile is independent dimension",
  483. ]
  484. blockingCases: [MSR-AUTH-006, MSR-REMOTE-005]
  485. - id: DEC-033
  486. domain: reasoning
  487. status: undefined
  488. question: "thought 选项缺失、null、默认值、显式关闭四种状态是否必须区分?"
  489. options:
  490. [
  491. "区分 missing/default/explicit-off/explicit-value",
  492. "null 与 missing 等价",
  493. "只保留最终 wire 值",
  494. ]
  495. recommendation: "至少保留 sparse intent 的 missing 与 explicit-off 区别,wire 层再做 provider mapping。"
  496. evidence:
  497. [
  498. "newer-design: sparse ModelSelection intent",
  499. "factor: reasoning source and wire profile are separate",
  500. ]
  501. blockingCases: [MSR-REASON-001, MSR-REASON-008]
  502. - id: DEC-034
  503. domain: reasoning
  504. status: undefined
  505. question: "reasoning effort 与 thinking budget 同时被用户设置时,哪个是 authority?"
  506. options:
  507. [
  508. "provider-specific mapping 产生一个 canonical budget",
  509. "budget 覆盖 effort",
  510. "effort 覆盖 budget",
  511. ]
  512. recommendation: "先定义每个 provider 的 canonical mapping;不允许通用层凭字段名猜优先级。"
  513. evidence:
  514. [
  515. "planning: provider reasoning wire profile",
  516. "seed: Anthropic fixed/adaptive budget and GLM max/high",
  517. ]
  518. blockingCases: [MSR-REASON-003, MSR-REASON-009]
  519. - id: DEC-035
  520. domain: reasoning
  521. status: undefined
  522. question: "不同 provider 的同名 high/medium/low 是否代表同一产品语义,还是仅是 provider-local enum?"
  523. options:
  524. [
  525. "产品层是 intent,adapter 允许 provider-local mapping",
  526. "同名值必须 wire 完全相同",
  527. "picker 按 provider 显示独立标签",
  528. ]
  529. recommendation: "产品层保留 intent 但 provenance 必须记录最终 wire mapping;同名不等价。"
  530. evidence:
  531. [
  532. "factor: reasoning profile and provider wire profile are separate",
  533. "seed: Qwen/Kimi/MiMo and GLM mappings differ",
  534. ]
  535. blockingCases: [MSR-REASON-001, MSR-REASON-002]
  536. - id: DEC-036
  537. domain: reasoning
  538. status: undefined
  539. question: "切换到不支持 reasoning 的模型时,显式 thought 是否清空、报错还是降级为 no-think?"
  540. options: ["清空并要求确认", "自动降级 no-think", "保留并在发送时阻止"]
  541. recommendation: "跨 model 清空 draft override;已有 explicit Session intent 则保留并在 execution preflight 解释失败。"
  542. evidence:
  543. [
  544. "runtime: composer cross-model clears thought",
  545. "risk: existing Session intent must not silently mutate",
  546. ]
  547. blockingCases: [MSR-REASON-010, MSR-SESSION-008]
  548. - id: DEC-037
  549. domain: reasoning
  550. status: undefined
  551. question: "reasoning 参数是否允许和 tools、structured output、JSON mode 同时使用?"
  552. options:
  553. [
  554. "由 adapter capability matrix 明确允许/禁止",
  555. "通用层一律允许",
  556. "一旦有 reasoning 就禁用 tools/schema",
  557. ]
  558. recommendation: "按 adapter capability matrix 做 preflight;每个冲突组合必须有 wire 断言。"
  559. evidence:
  560. [
  561. "planning: modality/tool/structured output is a high-risk projection",
  562. "factor: capability cross-product",
  563. ]
  564. blockingCases: [MSR-REQ-001, MSR-REASON-011]
  565. - id: DEC-038
  566. domain: reasoning
  567. status: undefined
  568. question: "reasoning max budget 与 model max output/context budget 冲突时,截断、拒绝、还是自动压缩?"
  569. options: ["preflight 拒绝并说明预算关系", "自动 clamp 到可用上限", "先请求由 provider 截断"]
  570. recommendation: "默认拒绝隐式 clamp;若产品要 clamp,必须记录 effective value。"
  571. evidence:
  572. [
  573. "factor: context/max-output and reasoning budget are separate dimensions",
  574. "seed: Anthropic thinking budget",
  575. ]
  576. blockingCases: [MSR-REASON-003, MSR-REQ-002]
  577. - id: DEC-039
  578. domain: reasoning
  579. status: undefined
  580. question: "nothink/no-reasoning 的 wire 语义是省略字段、发送 false、发送零 budget,还是 provider-specific extra body?"
  581. options:
  582. ["按 provider wire contract 映射,默认最小请求", "统一发送 false", "统一发送 zero budget"]
  583. recommendation: "按 provider contract;不得用通用 false/zero 覆盖不支持该字段的 adapter。"
  584. evidence:
  585. ["seed: GLM-5.2 max/high/nothink", "seed: Qwen/Kimi/MiMo extra-body minimal projection"]
  586. blockingCases: [MSR-REASON-001, MSR-REQ-003]
  587. - id: DEC-040
  588. domain: reasoning
  589. status: undefined
  590. question: "provider 不支持 thought 但 UI 仍收到旧 Session thought 时,是否在 history、snapshot、usage 中保留该 intent?"
  591. options:
  592. ["保留 intent/provenance,request 不投影", "全部清掉", "投影成 provider 默认值并覆盖历史"]
  593. recommendation: "历史 intent 与本次 request projection 分开;不回写历史。"
  594. evidence:
  595. [
  596. "planning: four-layer assertions include Selection, Active Model, Request Projection, Provenance",
  597. ]
  598. blockingCases: [MSR-REASON-010, MSR-RECOVERY-005]
  599. - id: DEC-041
  600. domain: reasoning
  601. status: contract-conflict
  602. question: "现有 protocol/state-space 对 queued thought 的‘最新 Session 配置’与‘入队冻结’矛盾时,哪份是权威?"
  603. options:
  604. [
  605. "冻结完整 Submission 的 model/thought,执行时只刷新 Provider facts",
  606. "消费时读取最新 Session",
  607. "按 delivery kind 区分",
  608. ]
  609. recommendation: "采用较新的 interaction design、state-space 和 input-intent 的冻结 Submission 语义;清理旧 invariant。"
  610. evidence:
  611. [
  612. "newer-design: queue item stores complete Submission",
  613. "protocol: queuedPromptUsesLatestSessionConfig conflicts with queuedSubmissionPreservesSelection",
  614. ]
  615. blockingCases: [MSR-QUEUE-001, MSR-QUEUE-002]
  616. - id: DEC-042
  617. domain: reasoning
  618. status: resolved-needs-proof
  619. question: "reasoning wire mapping 失败时,是否保证不发送一个删减后的‘近似请求’?"
  620. options: ["preflight fail closed", "删除不兼容字段后继续", "fallback 到 model default"]
  621. recommendation: "fail closed;只有明确 adapter contract 才能做字段删除。"
  622. evidence:
  623. ["planning: adapter preflight", "factor: request projection must be independently asserted"]
  624. blockingCases: [MSR-REASON-011, MSR-REQ-003]
  625. - id: DEC-043
  626. domain: reasoning
  627. status: resolved-needs-proof
  628. question: "重新发送、retry、compact 和 title sidecar 是否复制主请求的 thought intent?"
  629. options:
  630. [
  631. "按 operation-specific policy,sidecar 可强制 no reasoning",
  632. "全部复制",
  633. "全部使用 provider default",
  634. ]
  635. recommendation: "按 operation 记录 querySource;title/Git 等 sidecar 不得污染主 Session thought。"
  636. evidence:
  637. [
  638. "planning: title sidecar forces no reasoning; Git commit has querySource-specific behavior",
  639. "factor: downstream consumers are separate surfaces",
  640. ]
  641. blockingCases: [MSR-SIDE-001, MSR-SIDE-002]
  642. - id: DEC-044
  643. domain: reasoning
  644. status: resolved-needs-proof
  645. question: "streaming 中切换 thought/model 时,当前 response、usage、reasoning trace 是否必须全部归属旧 Active Model?"
  646. options:
  647. [
  648. "in-flight 全部 immutable,切换只影响后续 Submission",
  649. "后续 chunk 使用新 model",
  650. "切换请求等待 response 完成后再 ACK",
  651. ]
  652. recommendation: "in-flight immutable;补充 chunk、usage、provenance 的同一 model 证明。"
  653. evidence: ["newer-design: active Model immutable", "seed: MSR-SESSION-005 stream model switch"]
  654. blockingCases: [MSR-SESSION-005, MSR-RECOVERY-006]
  655. - id: DEC-045
  656. domain: reasoning
  657. status: resolved-needs-proof
  658. question: "reasoning 轨迹不可用或 provider 返回非法签名时,repair/retry 是否改变原始 model/thought provenance?"
  659. options:
  660. [
  661. "repair history encoding only,model/thought provenance immutable",
  662. "retry with lower reasoning",
  663. "fallback model and mark repaired",
  664. ]
  665. recommendation: "repair 只修 canonical history/request encoding;任何 model fallback 必须是显式新 Submission。"
  666. evidence:
  667. [
  668. "seed: MSR-RECOVERY-001 unsigned reasoning repair",
  669. "planning: canonical history immutability",
  670. ]
  671. blockingCases: [MSR-RECOVERY-001, MSR-RECOVERY-007]
  672. - id: DEC-046
  673. domain: session-queue
  674. status: contract-conflict
  675. question: "busy input 入队后,消费时使用 admission 时冻结的 model/thought,还是读取最新 Session config?"
  676. options:
  677. [
  678. "冻结完整 Submission,执行时只刷新 Provider config/credentials",
  679. "消费时读取最新 Session",
  680. "desktop 与 mobile 使用不同语义",
  681. ]
  682. recommendation: "采用冻结 Submission;desktop-continuous 与 web-remote-replayable 只区分 delivery,不改变 selection 语义。"
  683. evidence:
  684. [
  685. "newer-design: Queue item stores complete Submission",
  686. "protocol: queuedPromptUsesLatestSessionConfig conflicts with queuedSubmissionPreservesSelection",
  687. ]
  688. blockingCases: [MSR-QUEUE-001, MSR-QUEUE-002]
  689. - id: DEC-047
  690. domain: session-queue
  691. status: undefined
  692. question: "用户在 queue admission 前修改 draft、点击发送后立刻再修改 draft,后一个变化能否影响已入队项?"
  693. options:
  694. [
  695. "不能,accepted Submission 是 immutable snapshot",
  696. "在执行前读取 draft",
  697. "只允许改 thought 不允许改 model",
  698. ]
  699. recommendation: "不能影响已入队项;renderer draft 只影响未来 Submission。"
  700. evidence:
  701. [
  702. "newer-design: canonical Submission at acceptance",
  703. "AGENTS: renderer keeps draft and optimistic overlay, CLI owns accepted FIFO",
  704. ]
  705. blockingCases: [MSR-QUEUE-006, MSR-DRAFT-002]
  706. - id: DEC-048
  707. domain: session-queue
  708. status: undefined
  709. question: "队列项等待期间 Provider config 变化,刷新哪些事实而不刷新哪些选择?"
  710. options:
  711. [
  712. "刷新 credentials/endpoint/revision facts,不刷新 provider/model/thought intent",
  713. "整项重新解析到 preferred",
  714. "所有字段均冻结",
  715. ]
  716. recommendation: "选择和 provider facts 分离;执行时 refresh facts,若 selection 失效则 fail closed。"
  717. evidence:
  718. [
  719. "newer-design: execution refreshes current Provider config/credentials",
  720. "planning: Active Model and Request Projection are separate layers",
  721. ]
  722. blockingCases: [MSR-QUEUE-007, MSR-REG-010]
  723. - id: DEC-049
  724. domain: session-queue
  725. status: undefined
  726. question: "队列项的显式 thought 在 provider revision 更新后不再支持,应丢弃该项、阻止执行还是自动改 default?"
  727. options: ["阻止该项并保留可重试 intent", "丢弃并记录原因", "自动改 provider default"]
  728. recommendation: "保留 intent 并阻止执行;用户明确重选后才生成新 Submission。"
  729. evidence:
  730. [
  731. "newer-design: unavailable explicit selection preserves intent",
  732. "factor: queue item stores full Submission",
  733. ]
  734. blockingCases: [MSR-QUEUE-008, MSR-REASON-010]
  735. - id: DEC-050
  736. domain: session-queue
  737. status: contract-conflict
  738. question: "Session Selection 的更新时点是 model switch ACK accepted,还是普通 Submission 被接受并开始 Loop/Guide?"
  739. options:
  740. [
  741. "普通 Submission accepted 才更新 Session Selection",
  742. "switch ACK accepted 即更新",
  743. "两者都更新但按来源区分",
  744. ]
  745. recommendation: "采用较新的 selection-state:普通 Submission accepted 才更新;switch ACK 只改变 runtime intent。"
  746. evidence:
  747. [
  748. "newer-design: Session Selection updates when ordinary Submission starts Loop or Guide",
  749. "case-catalog: I54 says switch ACK updates global recent tuple before Submission",
  750. ]
  751. blockingCases: [MSR-SESSION-009, MSR-DRAFT-006]
  752. - id: DEC-051
  753. domain: session-queue
  754. status: undefined
  755. question: "switchModelConfig 与 send 同时到达时,是否保证 send 要么看到切换前完整配置,要么看到切换后完整配置?"
  756. options:
  757. [
  758. "通过 CLI CommandInbox barrier 原子排序",
  759. "renderer timestamp 决定",
  760. "允许 send 使用混合 provider/model",
  761. ]
  762. recommendation: "必须是 CommandInbox admission order 的原子 snapshot;禁止 mixed identity。"
  763. evidence:
  764. [
  765. "AGENTS: CLI/runtime CommandInbox is one FIFO authority",
  766. "seed: MSR-SESSION-003 switch barrier and send race",
  767. ]
  768. blockingCases: [MSR-SESSION-003, MSR-QUEUE-009]
  769. - id: DEC-052
  770. domain: session-queue
  771. status: undefined
  772. question: "switch command stale/noop/duplicate 时,ACK 是否必须带 authoritative effective config,还是只返回 success/failure?"
  773. options:
  774. ["ACK 返回 authoritative config 与 revision", "只返回 boolean", "失败时强制刷新整个 snapshot"]
  775. recommendation: "ACK 应携带足够的 authoritative config/revision,避免 renderer 继续使用旧 optimistic draft。"
  776. evidence:
  777. [
  778. "runtime: V4 model-config handler and CAS",
  779. "seed: MSR-SESSION-002 noop/stale/duplicate/failed switch",
  780. ]
  781. blockingCases: [MSR-SESSION-002, MSR-SESSION-011]
  782. - id: DEC-053
  783. domain: session-queue
  784. status: undefined
  785. question: "切模 command 已 accepted 但随后首次 Submission 被拒绝时,Recent 和 Session Selection 是否回滚?"
  786. options:
  787. [
  788. "不写入或按 accepted Submission 单一 commit,不需要回滚",
  789. "先写再回滚",
  790. "保留切模结果但标记未使用",
  791. ]
  792. recommendation: "不产生 Submission side effect 就不写 Recent/Session Selection;runtime switch 是否持久化另按 command 契约。"
  793. evidence:
  794. [
  795. "newer-design: Recent/Session Selection are tied to accepted Submission",
  796. "risk: failure after switch ACK",
  797. ]
  798. blockingCases: [MSR-SESSION-009, MSR-SESSION-012]
  799. - id: DEC-054
  800. domain: session-queue
  801. status: undefined
  802. question: "Queue、Guide 和普通 send 共用 FIFO 时,Guide 的 model-step switch 是否能越过已入队普通 Submission?"
  803. options:
  804. [
  805. "严格 FIFO,不越过 accepted item",
  806. "Guide boundary 有优先级",
  807. "按当前 Session model 合并执行",
  808. ]
  809. recommendation: "保持单一 FIFO;Guide 只在自己的 model-step boundary 切换。"
  810. evidence:
  811. [
  812. "newer-design: Queue and Guide use Submission fixed selection; Guide switches at model-step boundary",
  813. "AGENTS: FIFO follows CLI serial admission order",
  814. ]
  815. blockingCases: [MSR-QUEUE-010, MSR-SURFACE-010]
  816. - id: DEC-055
  817. domain: session-queue
  818. status: undefined
  819. question: "取消、停止、超时或 provider failure 发生在 admission 与 execution 之间时,队列项是否仍保留原 model intent?"
  820. options:
  821. ["保留在 discard/failure ledger,不能重写为新 model", "删除且无记录", "自动用当前 model 重试"]
  822. recommendation: "保留可审计的原始 intent;重试必须创建显式新 Submission。"
  823. evidence: ["planning: queue facts/discard ledger", "factor: exactly-once output and provenance"]
  824. blockingCases: [MSR-QUEUE-011, MSR-RECOVERY-008]
  825. - id: DEC-056
  826. domain: session-queue
  827. status: resolved-needs-proof
  828. question: "Edit/Retry 生成的新 Submission 是否完整复制 source 的 provider/model/thought,而不是只复制 text?"
  829. options: ["完整复制 selection intent", "只复制 provider/model", "读取当前 Session config"]
  830. recommendation: "完整复制 source selection;补充 source、new submission、request 三层 provenance。"
  831. evidence:
  832. [
  833. "newer-design: Edit/Retry inherit source Submission ModelSelection",
  834. "runtime: composerSubmissionConfig freezes at click",
  835. ]
  836. blockingCases: [MSR-EDIT-001, MSR-QUEUE-003]
  837. - id: DEC-057
  838. domain: session-queue
  839. status: resolved-needs-proof
  840. question: "Queue item 从桌面 continuous 链路切到 mobile replayable 恢复时,selection snapshot 是否保持完全一致?"
  841. options:
  842. [
  843. "保持 Submission selection 一致,仅补 replay gap/snapshot",
  844. "恢复时读取最新 Session",
  845. "mobile 使用自己的 model default",
  846. ]
  847. recommendation: "保持 selection 一致;delivery 只影响恢复和事件投递,不影响模型语义。"
  848. evidence:
  849. [
  850. "AGENTS: continuous/replayable boundary",
  851. "newer-design: same CLI Session runtime and frozen Submission",
  852. ]
  853. blockingCases: [MSR-QUEUE-002, MSR-REMOTE-006]
  854. - id: DEC-058
  855. domain: session-queue
  856. status: resolved-needs-proof
  857. question: "queued Submission 执行时发现 workspace identity 不匹配,是否拒绝而不 fallback 到同 path 的 workspace?"
  858. options:
  859. ["按 workspaceKey 和 remoteSessionId 拒绝错配", "按 workspacePath 尝试匹配", "复用最近 host"]
  860. recommendation: "拒绝错配;workspacePath 仅用于执行,不得承担身份隔离。"
  861. evidence:
  862. [
  863. "AGENTS: workspaceIdentity is isolation identity, workspacePath is execution path",
  864. "remote constraint: remoteSessionId must be carried",
  865. ]
  866. blockingCases: [MSR-REMOTE-001, MSR-REMOTE-004]
  867. - id: DEC-059
  868. domain: session-queue
  869. status: resolved-needs-proof
  870. question: "同一个 accepted Submission 在 reconnect/replay 后是否可能被执行两次,导致两个 model provenance?"
  871. options:
  872. [
  873. "admission ID/idempotency 保证 exactly once admission",
  874. "允许重复但合并输出",
  875. "按最后一次 replay 执行",
  876. ]
  877. recommendation: "以 accepted Submission/admission identity 去重;重放只恢复事实,不重新 admission。"
  878. evidence:
  879. [
  880. "AGENTS: stale run/owner protection and replayable recovery",
  881. "factor: command result/idempotency dimension",
  882. ]
  883. blockingCases: [MSR-REMOTE-006, MSR-RECOVERY-008]
  884. - id: DEC-060
  885. domain: session-queue
  886. status: resolved-needs-proof
  887. question: "Session restore 遇到 Registry 尚未 ready 时,是否允许用本地 preferred 临时补齐 model?"
  888. options:
  889. [
  890. "不允许跨 Host fallback,保留 unbound intent",
  891. "允许临时本地 preferred",
  892. "等待超时后自动 fallback",
  893. ]
  894. recommendation: "不允许跨 Host fallback;等待 target Host readiness 或明确失败。"
  895. evidence:
  896. [
  897. "newer-design: cold resume preserves unavailable selection and reports unbound",
  898. "seed: MSR-REG-003 remote loading does not fallback local",
  899. ]
  900. blockingCases: [MSR-REG-003, MSR-RECOVERY-009]
  901. - id: DEC-061
  902. domain: session-queue
  903. status: undefined
  904. question: "同一 Session 的并发 Submission 是否允许使用不同 model,还是必须先完成 model switch barrier?"
  905. options:
  906. [
  907. "每个 Submission 可带独立 selection",
  908. "必须共享 Session Active Model",
  909. "只有 queue 可不同,普通 send 不可不同",
  910. ]
  911. recommendation: "以 Submission selection 为准,但明确 runtime 是否串行执行;不能靠 UI 禁止来代替协议定义。"
  912. evidence:
  913. [
  914. "newer-design: canonical Submission carries ModelSelection",
  915. "risk: active model versus submission intent",
  916. ]
  917. blockingCases: [MSR-SESSION-013, MSR-QUEUE-012]
  918. - id: DEC-062
  919. domain: session-queue
  920. status: undefined
  921. question: "compact 发生在 queued Submission 前后时,compact 使用哪个 model/thought,是否影响队列 item?"
  922. options:
  923. [
  924. "compact 是 request-local policy,不改 queued Submission",
  925. "compact 使用队列 item model",
  926. "compact 后重写队列 model",
  927. ]
  928. recommendation: "compact 不改既有 Submission;其自身 model policy 独立记录。"
  929. evidence:
  930. [
  931. "planning: Compact is a request-local downstream consumer",
  932. "factor: compact and queue are separate operations",
  933. ]
  934. blockingCases: [MSR-QUEUE-013, MSR-SIDE-003]
  935. - id: DEC-063
  936. domain: session-queue
  937. status: undefined
  938. question: "Goal、Guide 或 Automation 产生的内部 Submission 是否和用户普通 Submission 共用 Recent/Session Selection 更新规则?"
  939. options:
  940. [
  941. "内部 Submission 不污染 App Recent,按 surface record 更新",
  942. "全部更新 Recent",
  943. "全部更新 Session Selection",
  944. ]
  945. recommendation: "按 source/surface 隔离副作用;只有契约明确的普通 Chat Submission 更新 Chat Recent。"
  946. evidence:
  947. [
  948. "newer-design: Off-Peak does not write App Recent/Configured Default/Session Selection",
  949. "planning: downstream consumers have isolated persistence",
  950. ]
  951. blockingCases: [MSR-SURFACE-003, MSR-SIDE-004]
  952. - id: DEC-064
  953. domain: session-queue
  954. status: undefined
  955. question: "session switch、task restore、remote reconnect 同时发生时,model selection 的 authority 是 timeline、snapshot 还是当前 runtime?"
  956. options:
  957. [
  958. "runtime command/result 为执行 authority,snapshot/timeline 作为恢复证据",
  959. "最新 timeline row 覆盖 runtime",
  960. "renderer snapshot 覆盖 runtime",
  961. ]
  962. recommendation: "runtime 是执行 authority;恢复必须验证 snapshot revision 和 stale run。"
  963. evidence:
  964. [
  965. "AGENTS: owner/lease/stale run protection",
  966. "planning: Session runtime, Snapshot and timeline have separate roles",
  967. ]
  968. blockingCases: [MSR-RECOVERY-009, MSR-REMOTE-007]
  969. - id: DEC-065
  970. domain: product-surface
  971. status: contract-conflict
  972. question: "Automation 的 modelSelection 缺失是 follow Workspace、follow Host preferred、还是在保存时解析并固定?"
  973. options:
  974. [
  975. "缺失表示 follow Workspace,dispatch 时解析 Host preferred",
  976. "保存时固定当前 model",
  977. "每次 run 读取 Chat Session",
  978. ]
  979. recommendation: "采用 follow Workspace;显式 model 才持久化,dispatch 只读取 Automation record 和 Host facts。"
  980. evidence:
  981. [
  982. "newer-design: Automation missing modelSelection means follow Workspace",
  983. "planning: Automation record/run snapshot is separate from Chat Draft",
  984. ]
  985. blockingCases: [MSR-SURFACE-001, MSR-AUTH-010]
  986. - id: DEC-066
  987. domain: product-surface
  988. status: contract-conflict
  989. question: "Subagent 无显式 model 时,是继承 Parent Active Model、Parent Submission model,还是 Workspace preferred?"
  990. options:
  991. ["继承 Parent Active Model", "继承触发它的 Parent Submission", "使用 Workspace preferred"]
  992. recommendation: "采用 Parent Active Model;显式 child override 才打破继承,并记录 child provenance。"
  993. evidence:
  994. [
  995. "newer-design: Subagent no explicit model inherits Parent Active Model",
  996. "planning: Subagent has child runtime/timeline authority",
  997. ]
  998. blockingCases: [MSR-SURFACE-002, MSR-SUBAGENT-001]
  999. - id: DEC-067
  1000. domain: product-surface
  1001. status: contract-conflict
  1002. question: "App Recent 的写入时点是 picker selection、switch ACK accepted,还是 ordinary Submission accepted?"
  1003. options: ["ordinary Submission accepted", "switch ACK accepted", "picker selection"]
  1004. recommendation: "采用 ordinary Submission accepted;旧 I54 需要重分类或更新。"
  1005. evidence:
  1006. [
  1007. "newer-design: App Recent updates when App accepts Submission",
  1008. "case-catalog: I54 records switch ACK as earlier update point",
  1009. ]
  1010. blockingCases: [MSR-DRAFT-006, MSR-SESSION-009]
  1011. - id: DEC-068
  1012. domain: product-surface
  1013. status: undefined
  1014. question: "Off-Peak 隐藏 model 的选项失效后,编辑页应显示 record、自动修复、还是拒绝保存?"
  1015. options:
  1016. ["保留隐藏 exact model 并显示不可用状态", "打开编辑时自动切 preferred", "拒绝加载该 task"]
  1017. recommendation: "保留 record intent,保存/执行前做 entitlement 和 Registry 校验。"
  1018. evidence:
  1019. [
  1020. "planning: Off-Peak uses hidden exact model and separate task record",
  1021. "factor: Off-Peak is not ordinary Chat runtime",
  1022. ]
  1023. blockingCases: [MSR-OFF-001, MSR-AUTH-005]
  1024. - id: DEC-069
  1025. domain: product-surface
  1026. status: undefined
  1027. question: "Off-Peak execution 是否允许沿用创建时 thought,还是每次调度按最新 provider default?"
  1028. options:
  1029. [
  1030. "显式 thought 冻结,空 thought 按 dispatch-time default",
  1031. "整项在创建时完全冻结",
  1032. "整项按 dispatch-time Session config",
  1033. ]
  1034. recommendation: "沿用 sparse selection 语义:explicit 冻结,missing 在执行时解析。"
  1035. evidence:
  1036. [
  1037. "newer-design: sparse intent and ModelFactory-time default resolution",
  1038. "planning: task record and run snapshot are distinct",
  1039. ]
  1040. blockingCases: [MSR-OFF-002, MSR-REASON-006]
  1041. - id: DEC-070
  1042. domain: product-surface
  1043. status: undefined
  1044. question: "Project memory、Title sidecar 使用的 model 是否需要在 UI 中可见、可配置、可审计?"
  1045. options:
  1046. [
  1047. "至少可审计 provenance,配置按 operation policy",
  1048. "完全复用主会话选择并可见",
  1049. "完全隐藏且不记录",
  1050. ]
  1051. recommendation: "至少记录 provenance;是否暴露配置由各 operation owner 决定。"
  1052. evidence:
  1053. [
  1054. "planning: downstream consumers include Wiki, title, memory",
  1055. "factor: sidecar must not create ordinary user turn",
  1056. ]
  1057. blockingCases: [MSR-SURFACE-003, MSR-SIDE-005]
  1058. - id: DEC-071
  1059. domain: product-surface
  1060. status: undefined
  1061. question: "Git commit、Title、Goal verifier、Compact 这类 sidecar 在主 model 不支持时,是否允许独立 fallback?"
  1062. options:
  1063. [
  1064. "只按各自 explicit policy fallback,默认 fail closed",
  1065. "统一 fallback Workspace preferred",
  1066. "统一沿用主 Active Model",
  1067. ]
  1068. recommendation: "operation-specific;不得把 sidecar fallback 反向写入 Chat Session 或 Recent。"
  1069. evidence:
  1070. [
  1071. "planning: title/Git/Goal/Compact each have separate policy",
  1072. "risk: fallback can corrupt provenance",
  1073. ]
  1074. blockingCases: [MSR-SIDE-001, MSR-SIDE-002, MSR-SIDE-006]
  1075. - id: DEC-072
  1076. domain: product-surface
  1077. status: undefined
  1078. question: "Bot、TUI、CLI 的 /model、/effort、/variant 是否与 V4 ModelSelection 共享 schema 和 default chain?"
  1079. options:
  1080. [
  1081. "共享 canonical schema,surface-local adapter",
  1082. "完全独立 schema",
  1083. "CLI 作为全局 authority 覆盖 UI",
  1084. ]
  1085. recommendation: "共享 canonical type/resolver,保留 surface-local commit/persistence。"
  1086. evidence:
  1087. [
  1088. "catalog: tui is a distinct surface",
  1089. "planning: shared UI/source does not imply shared behavior",
  1090. ]
  1091. blockingCases: [MSR-SURFACE-011, MSR-CLI-001]
  1092. - id: DEC-073
  1093. domain: product-surface
  1094. status: undefined
  1095. question: "官方 MCP Coding Plan 的 provider/account facts 是否可以直接注入普通 Model Registry?"
  1096. options:
  1097. [
  1098. "只共享 auth facts,不共享普通模型 authority",
  1099. "完全复用普通 Registry",
  1100. "MCP facts 覆盖普通 provider config",
  1101. ]
  1102. recommendation: "只共享明确的 auth/access capability;MCP credential owner 不变成普通 model owner。"
  1103. evidence:
  1104. [
  1105. "planning: official MCP is a separate auth context",
  1106. "AGENTS: domain boundaries prohibit cross-domain non-types imports",
  1107. ]
  1108. blockingCases: [MSR-AUTH-011, MSR-SURFACE-012]
  1109. - id: DEC-074
  1110. domain: product-surface
  1111. status: resolved-needs-proof
  1112. question: "Automation 保存 explicit model 后,Host preferred 改变是否影响下一次 run?"
  1113. options:
  1114. [
  1115. "不影响 explicit record;只影响 follow Workspace",
  1116. "所有 Automation 跟随 preferred",
  1117. "保存时和运行时都复制一份",
  1118. ]
  1119. recommendation: "explicit record 不受 preferred 改变影响;需要 run snapshot 和 provenance 证据。"
  1120. evidence:
  1121. ["newer-design: explicit models persist; missing follows Workspace", "seed: MSR-SURFACE-001"]
  1122. blockingCases: [MSR-SURFACE-001, MSR-AUTH-010]
  1123. - id: DEC-075
  1124. domain: product-surface
  1125. status: resolved-needs-proof
  1126. question: "Subagent explicit model 是否污染 parent Session Selection、App Recent 或 parent timeline?"
  1127. options:
  1128. [
  1129. "只写 child runtime/timeline provenance",
  1130. "更新 parent Recent",
  1131. "更新 parent Session Selection",
  1132. ]
  1133. recommendation: "child authority 与 parent selection 隔离;补充 child/parent 双 provenance 断言。"
  1134. evidence:
  1135. [
  1136. "newer-design: child explicit model and parent inheritance",
  1137. "planning: child runtime/timeline is separate owner",
  1138. ]
  1139. blockingCases: [MSR-SURFACE-002, MSR-SUBAGENT-002]
  1140. - id: DEC-076
  1141. domain: product-surface
  1142. status: resolved-needs-proof
  1143. question: "Off-Peak、Wiki、Title 等内部 operation 的 model 请求失败是否能触发主 Session fallback?"
  1144. options:
  1145. [
  1146. "不能;按 operation 返回失败并保持隔离",
  1147. "可以 fallback 到主 Active Model",
  1148. "可以 fallback 但不记录",
  1149. ]
  1150. recommendation: "不能跨 operation fallback;失败和 provenance 必须局部可审计。"
  1151. evidence:
  1152. [
  1153. "newer-design: Off-Peak does not write Chat Session state",
  1154. "planning: separate downstream consumers and persistence",
  1155. ]
  1156. blockingCases: [MSR-OFF-001, MSR-SURFACE-003, MSR-SIDE-001]
  1157. - id: DEC-077
  1158. domain: remote
  1159. status: undefined
  1160. question: "mobile /remote 打开 picker 时,候选来源是 shared host snapshot、remote workspace Registry,还是 renderer 缓存?"
  1161. options:
  1162. [
  1163. "trusted shared host/target workspace Registry",
  1164. "mobile local cache",
  1165. "relay 聚合 provider facts",
  1166. ]
  1167. recommendation: "只能使用 target Host authority;relay/main 不拥有模型业务状态。"
  1168. evidence:
  1169. [
  1170. "AGENTS: mobile attaches existing shared host; relay/main only transport and attachment",
  1171. "planning: remote Registry is target-host authority",
  1172. ]
  1173. blockingCases: [MSR-REMOTE-002, MSR-REG-003]
  1174. - id: DEC-078
  1175. domain: remote
  1176. status: undefined
  1177. question: "remote picker 的 optimistic selection 在断线重连后是恢复、丢弃、还是和 snapshot 合并?"
  1178. options:
  1179. [
  1180. "只恢复 accepted Submission,未提交 draft 丢弃或本地保留",
  1181. "强制合并到 runtime",
  1182. "以 mobile draft 覆盖 host snapshot",
  1183. ]
  1184. recommendation: "accepted 与 draft 分离;replayable 只恢复已接受事实,不把草稿升级为 command。"
  1185. evidence:
  1186. [
  1187. "AGENTS: renderer keeps unsubmitted draft; replayable recovery has snapshot/gap boundary",
  1188. "planning: delivery profile is trusted host attachment",
  1189. ]
  1190. blockingCases: [MSR-REMOTE-003, MSR-REMOTE-006]
  1191. - id: DEC-079
  1192. domain: remote
  1193. status: undefined
  1194. question: "remote Session 的 provider/model 选择发生 stale revision 时,客户端应自动 refresh、重放 command 还是要求用户重选?"
  1195. options:
  1196. ["一次 authoritative refresh,仍失效则要求重选", "无限自动重放", "按本地 draft 强制覆盖"]
  1197. recommendation: "单次 refresh/retry;不能绕过 revision/CAS,也不能无限重放。"
  1198. evidence:
  1199. [
  1200. "seed: MSR-SESSION-004 provider.notInRegistry refresh/retry",
  1201. "AGENTS: stale run and owner protection",
  1202. ]
  1203. blockingCases: [MSR-REMOTE-003, MSR-SESSION-004]
  1204. - id: DEC-080
  1205. domain: remote
  1206. status: undefined
  1207. question: "同一 workspacePath 在两个远端 identity 上可达时,远控重连是否允许路径匹配?"
  1208. options:
  1209. [
  1210. "必须 workspaceIdentity + remoteSessionId 精确匹配",
  1211. "path match 后再询问用户",
  1212. "最近连接优先",
  1213. ]
  1214. recommendation: "必须精确身份匹配;路径只能用于命令 cwd 和展示。"
  1215. evidence:
  1216. [
  1217. "AGENTS: remote identity must not be replaced by workspacePath",
  1218. "planning: workspace identity dimension",
  1219. ]
  1220. blockingCases: [MSR-REMOTE-001, MSR-REMOTE-004]
  1221. - id: DEC-081
  1222. domain: remote
  1223. status: resolved-needs-proof
  1224. question: "desktop-continuous 与 web-remote-replayable 是否共享同一 accepted Submission 和 model provenance?"
  1225. options:
  1226. [
  1227. "共享业务事实,只区分 delivery/recovery",
  1228. "各端各自产生 Submission",
  1229. "mobile 恢复时重新解析 model",
  1230. ]
  1231. recommendation: "共享同一 CLI Session Runtime 和 Submission;补充跨端切换的 identity/provenance 证据。"
  1232. evidence:
  1233. [
  1234. "AGENTS: desktop continuous vs mobile replayable boundary",
  1235. "planning: same CLI Session Runtime",
  1236. ]
  1237. blockingCases: [MSR-QUEUE-002, MSR-REMOTE-006]
  1238. - id: DEC-082
  1239. domain: remote
  1240. status: resolved-needs-proof
  1241. question: "remote owner/lease 变化是否可能改变 queued Submission 的 model selection 或重新绑定 provider?"
  1242. options:
  1243. [
  1244. "owner/lease 只负责路由,不改变 selection",
  1245. "新 owner 重新解析",
  1246. "lease 变化即取消并 fallback",
  1247. ]
  1248. recommendation: "只负责 routing/stale-run protection;selection 和 provider intent 由 accepted Submission 保持。"
  1249. evidence:
  1250. [
  1251. "AGENTS: owner/lease routes commands and protects stale runs; must not delete owner checks",
  1252. "newer-design: queue freezes selection",
  1253. ]
  1254. blockingCases: [MSR-REMOTE-007, MSR-QUEUE-002]
  1255. - id: DEC-083
  1256. domain: remote
  1257. status: resolved-needs-proof
  1258. question: "replay gap 中缺少 model-switch ACK 或 provider Registry update 时,恢复应补发哪个 snapshot?"
  1259. options:
  1260. [
  1261. "按 runtime authoritative snapshot 恢复,再补 gap",
  1262. "按 renderer local event 重建",
  1263. "按 relay 缓存重建",
  1264. ]
  1265. recommendation: "runtime snapshot 是 authority;relay 只透传,不能补造模型事实。"
  1266. evidence:
  1267. [
  1268. "AGENTS: relay/main do not own Session/Task/Snapshot state",
  1269. "planning: recovery snapshot and timeline roles",
  1270. ]
  1271. blockingCases: [MSR-REMOTE-006, MSR-RECOVERY-009]
  1272. - id: DEC-084
  1273. domain: remote
  1274. status: resolved-needs-proof
  1275. question: "remote model request failure 后,replay 是否可能把错误的 fallback candidate 显示成已接受 selection?"
  1276. options:
  1277. [
  1278. "failure/replay 保留原 intent,只有 accepted new command 才改变 selection",
  1279. "展示当前 preferred",
  1280. "展示最后一次请求成功的 model",
  1281. ]
  1282. recommendation: "保留原 intent;failure ledger、snapshot 和 renderer 必须一致。"
  1283. evidence:
  1284. [
  1285. "newer-design: unavailable selection preserves intent",
  1286. "AGENTS: replayable recovery must not bypass accepted command boundary",
  1287. ]
  1288. blockingCases: [MSR-REMOTE-003, MSR-RECOVERY-009]
  1289. - id: DEC-085
  1290. domain: presentation
  1291. status: undefined
  1292. question: "模型列表很长、同名模型很多时,排序、分组、搜索和 keyboard navigation 是否影响 selection identity?"
  1293. options:
  1294. [
  1295. "展示排序纯派生,提交始终使用结构化 identity",
  1296. "排序决定默认 model",
  1297. "搜索结果可用 label 反解 model",
  1298. ]
  1299. recommendation: "展示行为不得改变 identity;搜索必须携带原始 candidate key。"
  1300. evidence:
  1301. [
  1302. "planning: shared ModelConfigSelect only shares candidate/display conventions",
  1303. "risk: two providers can have same model name",
  1304. ]
  1305. blockingCases: [MSR-REG-002, MSR-UI-004]
  1306. - id: DEC-086
  1307. domain: presentation
  1308. status: undefined
  1309. question: "disabled/unavailable 当前模型在键盘、屏幕阅读器、触摸和鼠标四种输入下是否必须有相同语义?"
  1310. options: ["统一 locked/unavailable semantics", "只保证鼠标行为", "键盘可选但鼠标不可选"]
  1311. recommendation: "统一可访问性语义;输入方式不能绕过 capability/entitlement guard。"
  1312. evidence:
  1313. [
  1314. "factor: presentation dimensions include keyboard/mouse/touch/a11y",
  1315. "blocking: disabled current model UI contract unresolved",
  1316. ]
  1317. blockingCases: [MSR-UI-003, MSR-UI-005]
  1318. - id: DEC-087
  1319. domain: presentation
  1320. status: undefined
  1321. question: "provider/model/reasoning 的 error、loading、stale、unavailable 状态是否必须分别展示,还是合并为不可用?"
  1322. options: ["至少区分 loading/stale/unavailable/error", "统一 disabled", "只显示 provider error"]
  1323. recommendation: "状态语义分开;文案可共享但不能丢失恢复动作和 authority 信息。"
  1324. evidence:
  1325. [
  1326. "planning: Registry readiness, entitlement, capability and request failure are distinct",
  1327. "factor: state dimensions",
  1328. ]
  1329. blockingCases: [MSR-REG-003, MSR-AUTH-002, MSR-UI-006]
  1330. - id: DEC-088
  1331. domain: presentation
  1332. status: undefined
  1333. question: "模型/思考深度变更的 pending optimistic overlay 在 ACK、失败、断线和 stale response 下如何清理?"
  1334. options:
  1335. ["以 command ID/revision 精确清理", "任何 snapshot 到达即清理", "超时后清理并保留本地值"]
  1336. recommendation: "按 command identity 和 authoritative revision 清理;不能由无关 snapshot 覆盖。"
  1337. evidence:
  1338. [
  1339. "AGENTS: renderer keeps pending optimistic overlay; host owner/lease is routing only",
  1340. "runtime: V4 command/CAS path",
  1341. ]
  1342. blockingCases: [MSR-UI-007, MSR-REMOTE-003]
  1343. - id: DEC-089
  1344. domain: presentation
  1345. status: undefined
  1346. question: "主题、语言、窄 viewport、移动端 bottom sheet 下,model identity 和 unavailable reason 是否必须完整可见?"
  1347. options:
  1348. [
  1349. "identity 和原因不可省略,允许响应式折叠",
  1350. "窄屏只显示 model label",
  1351. "移动端使用简化候选 identity",
  1352. ]
  1353. recommendation: "完整 identity 保留在 accessible label/detail;视觉上可折叠但不能用 label 代替 key。"
  1354. evidence:
  1355. [
  1356. "AGENTS: UI changes must support desktop/mobile, two themes and i18n",
  1357. "planning: presentation is low-weight cross dimension",
  1358. ]
  1359. blockingCases: [MSR-UI-004, MSR-REMOTE-002]
  1360. - id: DEC-090
  1361. domain: presentation
  1362. status: resolved-needs-proof
  1363. question: "model switch、Submission accepted、request projection 和最终 provenance 在 UI 与日志中是否能被关联到同一 operation ID?"
  1364. options:
  1365. [
  1366. "使用 command/submission/request/provenance correlation IDs",
  1367. "只依赖 sessionId",
  1368. "只记录最终 model label",
  1369. ]
  1370. recommendation: "使用分层 correlation ID;高频 stream 细节走 debug,生命周期结果保留 info/warn/error。"
  1371. evidence:
  1372. [
  1373. "AGENTS: service logger level rules and RPC logging middleware",
  1374. "planning: four-layer assertions and provenance",
  1375. ]
  1376. blockingCases: [MSR-OBS-001, MSR-OBS-002]
  1377. - id: DEC-091
  1378. domain: migration
  1379. status: contract-conflict
  1380. question: "早期版本或旧格式产生的历史 Session snapshot 只有 model string、没有 providerId/thought source 时,恢复应怎样补全?"
  1381. options:
  1382. [
  1383. "按明确 legacy decoder 补全并标 migration provenance",
  1384. "按当前 preferred 补全",
  1385. "拒绝恢复并要求重建",
  1386. ]
  1387. recommendation: "允许可逆 legacy decode;无法证明 identity 时保持 unbound,不静默猜 preferred。"
  1388. evidence:
  1389. [
  1390. "planning: opaque model IDs and legacy migration boundary",
  1391. "risk: old snapshots may lack structured Selection",
  1392. ]
  1393. blockingCases: [MSR-MIGRATION-002, MSR-RECOVERY-009]
  1394. - id: DEC-092
  1395. domain: migration
  1396. status: contract-conflict
  1397. question: "之前已经写入 conversation case catalog 的早期 accepted case(fallback、latest Session queue、switch ACK 写 Recent)如何处理?"
  1398. options:
  1399. [
  1400. "按 newer accepted design 重分类为 legacy/undefined 并更新",
  1401. "继续作为当前回归契约",
  1402. "两套行为都保留为兼容分支",
  1403. ]
  1404. recommendation: "旧 case 不应压过 newer accepted design;重分类后再决定兼容窗口和迁移测试。"
  1405. evidence:
  1406. [
  1407. "design-v2 README: authority order puts newer accepted design and current proof above old design",
  1408. "case-catalog: I04/I54/I56/I58/I61 conflict with newer selection-state",
  1409. ]
  1410. blockingCases: [MSR-MIGRATION-003, MSR-QUEUE-001, MSR-SESSION-007]
  1411. - id: DEC-093
  1412. domain: migration
  1413. status: resolved-needs-proof
  1414. question: "旧 persisted Recent 使用 workspacePath key 时,迁移到 workspaceIdentity key 如何避免跨远程 workspace 串数据?"
  1415. options:
  1416. [
  1417. "本地 path 可兼容迁移,远程 identity 不做模糊迁移",
  1418. "所有 path 直接迁移到 identity",
  1419. "清空所有 Recent",
  1420. ]
  1421. recommendation: "本地允许明确 fallback;远程必须按 identity/session 证明后迁移。"
  1422. evidence:
  1423. [
  1424. "runtime: modelSelectionRecent key is workspaceIdentity?.trim() || workspacePath",
  1425. "AGENTS: remote identity must not be replaced by path",
  1426. ]
  1427. blockingCases: [MSR-REMOTE-001, MSR-MIGRATION-004]
  1428. - id: DEC-094
  1429. domain: migration
  1430. status: resolved-needs-proof
  1431. question: "旧 provider config 中的 magic_name、fallback 和 tombstone 字段迁移后,是否仍能改变当前 model candidate?"
  1432. options:
  1433. [
  1434. "仅生成 migration audit,不参与新 resolver",
  1435. "继续作为隐式 fallback",
  1436. "按字段逐个兼容到新 schema",
  1437. ]
  1438. recommendation: "新 resolver 不读取旧语义;迁移工具输出 audit 并对无法映射项显式报警。"
  1439. evidence:
  1440. [
  1441. "planning: legacy paths are migration-only",
  1442. "design-v2 README: old design is lower authority than current resolver/tests",
  1443. ]
  1444. blockingCases: [MSR-MIGRATION-001, MSR-REG-012]
  1445. - id: DEC-095
  1446. domain: observability
  1447. status: resolved-needs-proof
  1448. question: "模型选择回归需要记录哪些不含 secret 的事实,才能区分 selection、Registry、auth 和 adapter projection 故障?"
  1449. options:
  1450. [
  1451. "记录 hashed identity、revision、selection source、capability、wire shape 摘要",
  1452. "记录完整 request/auth",
  1453. "只记录错误字符串",
  1454. ]
  1455. recommendation: "记录可脱敏的结构化摘要;绝不落动态凭据和完整敏感 request。"
  1456. evidence:
  1457. [
  1458. "AGENTS: logger production volume and secret boundaries",
  1459. "planning: evidence layers include request/provenance without credentials",
  1460. ]
  1461. blockingCases: [MSR-OBS-003, MSR-AUTH-007]
  1462. - id: DEC-096
  1463. domain: observability
  1464. status: resolved-needs-proof
  1465. question: "provider adapter 返回 model mismatch、reasoning mismatch 或 empty completion 时,错误分类是否影响 retry/fallback policy?"
  1466. options:
  1467. [
  1468. "分类为 projection/auth/transport/content,并分别定义 retry",
  1469. "所有 provider error 同一重试",
  1470. "所有 error fallback model",
  1471. ]
  1472. recommendation: "错误分类必须先于 retry/fallback;empty completion 不能和 auth failure 混为一类。"
  1473. evidence:
  1474. [
  1475. "seed: MSR-RECOVERY-002 empty completion retry",
  1476. "planning: adapter preflight, auth fail-before-network and exactly-once output",
  1477. ]
  1478. blockingCases: [MSR-RECOVERY-002, MSR-RECOVERY-010]
  1479. - id: DEC-097
  1480. domain: observability
  1481. status: resolved-needs-proof
  1482. question: "测试生成器的 pruning report 是否必须记录被剪掉的组合、依据的 invariant 和未覆盖的 pair/triple?"
  1483. options: ["三者都记录并可回放", "只记录保留 case", "只记录总数量"]
  1484. recommendation: "必须记录 prune reason 和 coverage gap;否则无法证明笛卡尔积剪枝安全。"
  1485. evidence:
  1486. [
  1487. "feature-boundary-planner: every prune needs named guard/invariant",
  1488. "planning: pairwise/3-wise strategy and formal-state-space handoff",
  1489. ]
  1490. blockingCases: [MSR-GEN-001, MSR-GEN-002]
  1491. - id: DEC-098
  1492. domain: config-release
  1493. status: undefined
  1494. question: "Configured Default 文件 schemaVersion 未知或 JSON/schema 损坏时,应删除、隔离 quarantine、保留并报警,还是回退 legacy?"
  1495. options:
  1496. [
  1497. "只删除确认损坏内容,未知版本先 quarantine",
  1498. "所有解析失败都删除",
  1499. "所有解析失败都回退 legacy",
  1500. ]
  1501. recommendation: "区分损坏与未来版本;避免把不可理解的新版本当成损坏数据删除。"
  1502. evidence:
  1503. [
  1504. "runtime: model-selection-config-file-codec rejects unsupported version",
  1505. "runtime: repository currently removes decode failures under file lock",
  1506. ]
  1507. blockingCases: [MSR-MIGRATION-005, MSR-REG-014]
  1508. - id: DEC-099
  1509. domain: config-release
  1510. status: resolved-needs-proof
  1511. question: "Configured Default 读取遇到锁失败、权限失败、ENOENT、解码失败时,是否必须产生不同的可观测 reason?"
  1512. options:
  1513. [
  1514. "区分 unavailable/empty/corrupt,并保持安全 fallback",
  1515. "所有失败都返回 undefined",
  1516. "失败即阻止 Registry 启动",
  1517. ]
  1518. recommendation: "区分原因;watcher/lock 不可用不能伪装成内容损坏。"
  1519. evidence:
  1520. [
  1521. "runtime: NodeModelSelectionConfigRepository catches outer IO/lock errors separately from locked decode",
  1522. "code comment: lock/read/import failure cannot prove corruption",
  1523. ]
  1524. blockingCases: [MSR-REG-014, MSR-OBS-004]
  1525. - id: DEC-100
  1526. domain: config-release
  1527. status: undefined
  1528. question: "Legacy importer 只在文件不存在时运行,还是在损坏/不支持版本时也尝试导入?"
  1529. options: ["只在明确 ENOENT 时导入", "所有读取失败都导入", "先 quarantine 再导入"]
  1530. recommendation: "默认只在 ENOENT 导入;否则可能用旧值覆盖用户明确保存的新配置。"
  1531. evidence:
  1532. [
  1533. "runtime: #readLocked invokes importLegacy only when readTextIfExists returns null",
  1534. "risk: corrupt/new config must not be silently overwritten",
  1535. ]
  1536. blockingCases: [MSR-MIGRATION-005, MSR-REG-014]
  1537. - id: DEC-101
  1538. domain: config-release
  1539. status: resolved-needs-proof
  1540. question: "Configured Default 文件 watcher 不可用时,偏好读写和 Registry 启动是否必须继续工作?"
  1541. options: ["watcher 只负责失效通知,读写继续", "watcher 失败即阻止启动", "回退内存值并停止落盘"]
  1542. recommendation: "采用非阻塞 watcher;补充 Linux/macOS/Windows 和 rename/atomic-write 事件证据。"
  1543. evidence:
  1544. [
  1545. "runtime: repository explicitly treats watcher as invalidation-only",
  1546. "AGENTS: multi-OS and async IO constraints",
  1547. ]
  1548. blockingCases: [MSR-REG-015, MSR-REMOTE-008]
  1549. - id: DEC-102
  1550. domain: config-release
  1551. status: undefined
  1552. question: "Config repository 在 read/save/watch refresh in-flight 时 dispose,promise 应完成、取消、还是 reject?"
  1553. options:
  1554. [
  1555. "已开始的 IO 完成但不再 emit,后续调用 reject",
  1556. "全部 abort",
  1557. "dispose 等待所有 watcher/IO 完成",
  1558. ]
  1559. recommendation: "定义明确的 lifecycle contract,避免 dispose 后 emit 或写入错误 workspace。"
  1560. evidence:
  1561. [
  1562. "runtime: repository has #disposed checks and watcher close but no universal abort signal",
  1563. "risk: async lifecycle affects model default visibility",
  1564. ]
  1565. blockingCases: [MSR-REG-016, MSR-REMOTE-008]
  1566. - id: DEC-103
  1567. domain: config-release
  1568. status: resolved-needs-proof
  1569. question: "Bundled 与 Active/LKG Built-in Release revision 相同但内容不同,是否信任 Bundled、保留 Active、还是阻止启动?"
  1570. options: ["信任 Bundled 并原子修复 Active", "信任 Active/LKG", "整份 release 无效并阻止启动"]
  1571. recommendation: "当前实现倾向 Bundled 作为可信基线;补充同 revision conflict 的 source、rewrite 和 Registry snapshot 证据。"
  1572. evidence:
  1573. [
  1574. "runtime: selectReleaseCandidate returns bundled on same-revision content conflict",
  1575. "code comment: Active cache invalidation must not block trusted Bundled",
  1576. ]
  1577. blockingCases: [MSR-REG-017, MSR-MIGRATION-006]
  1578. - id: DEC-104
  1579. domain: config-release
  1580. status: undefined
  1581. question: "Active/LKG revision 高于当前 Bundled revision 时,是否允许它驱动候选,还是必须等待 bundled upgrade?"
  1582. options:
  1583. [
  1584. "允许 newer valid Active/LKG,Bundled 作为 fallback",
  1585. "只信 Bundled",
  1586. "高 revision 一律视为未来版本并隔离",
  1587. ]
  1588. recommendation: "需要明确 release compatibility policy;不能只由‘取最新 revision’这一实现细节替代产品契约。"
  1589. evidence:
  1590. [
  1591. "runtime: selectReleaseCandidate chooses highest valid revision",
  1592. "risk: downgrade, forward-compatibility and offline startup",
  1593. ]
  1594. blockingCases: [MSR-REG-018, MSR-MIGRATION-006]
  1595. - id: DEC-105
  1596. domain: config-release
  1597. status: resolved-needs-proof
  1598. question: "Built-in Release 含已退出 Provider(如 builtin:zapi)时,拒绝整份 release 还是过滤单个 provider?"
  1599. options:
  1600. [
  1601. "拒绝整份 release 并回到兼容候选",
  1602. "过滤 retired provider 后发布其余内容",
  1603. "保留但全部 disabled",
  1604. ]
  1605. recommendation: "当前实现倾向拒绝整份 release;补充 remote、active、bundled 三种来源的一致证据。"
  1606. evidence:
  1607. [
  1608. "runtime: decodeZCodeBuiltinRelease rejects RETIRED_ZAPI_PROVIDER_ID",
  1609. "code comment: prevent re-publishing retired provider through Host Registry",
  1610. ]
  1611. blockingCases: [MSR-REG-019, MSR-MIGRATION-007]
  1612. - id: DEC-106
  1613. domain: config-release
  1614. status: resolved-needs-proof
  1615. question: "远端 release fetch 期间 endpointKey 变化时,旧响应是否必须丢弃且不写 Active/LKG?"
  1616. options:
  1617. [
  1618. "丢弃旧响应并释放旧 lease",
  1619. "仍写入后由新 endpoint 覆盖",
  1620. "合并两个 endpoint 的 provider facts",
  1621. ]
  1622. recommendation: "丢弃旧响应;endpoint 是 release identity 的一部分,不能合并。"
  1623. evidence:
  1624. [
  1625. "runtime: synchronizer re-resolves endpointKey after fetch and returns skipped on change",
  1626. "AGENTS: remote identity and workspace boundaries",
  1627. ]
  1628. blockingCases: [MSR-REMOTE-008, MSR-REG-018]
  1629. - id: DEC-107
  1630. domain: config-release
  1631. status: resolved-needs-proof
  1632. question: "共享 refresh control 文件损坏、schema 不支持或 lease 遗留时,是否可以在锁内重建并继续 refresh?"
  1633. options:
  1634. [
  1635. "控制文件是可重建协调事实,锁内重建",
  1636. "控制文件损坏即永久阻止",
  1637. "每个进程忽略文件并并发 refresh",
  1638. ]
  1639. recommendation: "锁内重建;网络请求不持有文件锁,继续保持单 lease。"
  1640. evidence:
  1641. [
  1642. "runtime: readControl invalid JSON/schema returns emptyControl",
  1643. "runtime: refresh uses withFileLock and releases lease after network",
  1644. ]
  1645. blockingCases: [MSR-REMOTE-008, MSR-OBS-005]
  1646. - id: DEC-108
  1647. domain: config-release
  1648. status: undefined
  1649. question: "force refresh 是否可以绕过 nextEligibleAt,是否可以抢占其他进程有效 lease?"
  1650. options: ["force 只绕过 backoff,不抢占有效 lease", "force 可以抢占", "force 永远排队等待"]
  1651. recommendation: "force 不得破坏有效 lease;否则会引入重复 fetch 和 revision race。"
  1652. evidence:
  1653. [
  1654. "runtime: refresh distinguishes leaseUntil from nextEligibleAt",
  1655. "risk: multi-process refresh and duplicate provider release requests",
  1656. ]
  1657. blockingCases: [MSR-REMOTE-008, MSR-REG-020]
  1658. - id: DEC-109
  1659. domain: config-release
  1660. status: undefined
  1661. question: "远端 fetch 返回 null(资源不存在)与网络/解析失败的处理是否不同?"
  1662. options:
  1663. [
  1664. "null 标记 missing 并保留现有 Active;异常进入 backoff",
  1665. "两者都清空 Active",
  1666. "两者都无限重试",
  1667. ]
  1668. recommendation: "missing、stale、unchanged、error 分开建模;不可因一次 fetch 失败清空可用 Registry。"
  1669. evidence:
  1670. [
  1671. "runtime: synchronizer has missing result and failureCount/backoff paths",
  1672. "factor: recovery-state and registry-state are separate dimensions",
  1673. ]
  1674. blockingCases: [MSR-REMOTE-009, MSR-REG-021]
  1675. - id: DEC-110
  1676. domain: config-release
  1677. status: resolved-needs-proof
  1678. question: "远端 release 同 revision 同内容、同 revision 不同内容、低 revision、高 revision 是否对应稳定的 updated/unchanged/stale/error 结果?"
  1679. options: ["结果严格可区分且不改变错误状态", "都视为 unchanged", "都覆盖 Active"]
  1680. recommendation: "保持结果可区分;same-revision conflict 必须 fail closed 或回到 Bundled,不可覆盖。"
  1681. evidence:
  1682. [
  1683. "runtime: applyRemoteRelease implements updated/unchanged/stale and same-revision conflict",
  1684. "tests: packages/provider-node/test/zcode-builtin-release.test.ts",
  1685. ]
  1686. blockingCases: [MSR-REG-017, MSR-REMOTE-009]
  1687. - id: DEC-111
  1688. domain: config-release
  1689. status: resolved-needs-proof
  1690. question: "atomic write、文件权限、临时文件残留、进程崩溃和多进程读写时,模型默认是否可能短暂读到半份配置?"
  1691. options: ["读者只看到完整旧/新 snapshot", "允许读到 partial 后重试", "检测 partial 后删除文件"]
  1692. recommendation: "要求完整旧/新 snapshot;补充 crash、permission 和 concurrent writer 测试。"
  1693. evidence:
  1694. [
  1695. "runtime: atomicWritePrivateTextFile plus withFileLock",
  1696. "AGENTS: file/network IO should be async and persistence boundaries explicit",
  1697. ]
  1698. blockingCases: [MSR-REG-014, MSR-REMOTE-008]
  1699. - id: DEC-112
  1700. domain: config-release
  1701. status: undefined
  1702. question: "Configured Default 为空时,文件应省略 configuredDefault、写 null、还是删除文件?"
  1703. options:
  1704. ["保留 schemaVersion 并省略 configuredDefault", "写 configuredDefault: null", "删除整个文件"]
  1705. recommendation: "当前 codec 倾向 schemaVersion + omitted field;需要确认空值与 legacy import/watch 的交互。"
  1706. evidence:
  1707. [
  1708. "runtime: encodeModelSelectionConfigFile omits configuredDefault when undefined",
  1709. "risk: empty persistence affects default chain and file watchers",
  1710. ]
  1711. blockingCases: [MSR-DRAFT-001, MSR-MIGRATION-005]
  1712. - id: DEC-113
  1713. domain: config-release
  1714. status: resolved-needs-proof
  1715. question: "外部 atomic rename/write 触发 watcher 时,Registry 是否保证只发布一次最终 snapshot,而不是 intermediate event?"
  1716. options:
  1717. ["watch event 只触发重新读取,最终 snapshot 去重", "每个 FS event 都发布", "忽略 rename 事件"]
  1718. recommendation: "重新读取并按 signature 去重;补充平台 watcher 行为证据。"
  1719. evidence:
  1720. [
  1721. "runtime: both repositories watch directory and emit file-changed; builtin source serializes watch refresh",
  1722. "risk: atomic write commonly emits multiple filesystem events",
  1723. ]
  1724. blockingCases: [MSR-REG-015, MSR-REMOTE-008]
  1725. - id: DEC-114
  1726. domain: config-release
  1727. status: undefined
  1728. question: "远端 refresh 的 endpointKey 是否必须包含 account/host/workspace scope,还是裸 endpoint URL 即可?"
  1729. options:
  1730. [
  1731. "endpointKey 包含可区分的 auth/host/workspace scope",
  1732. "只使用 URL",
  1733. "每个 workspace 单独维护但 key 仍只用 URL",
  1734. ]
  1735. recommendation: "endpoint URL 与 authority scope 分离;相同 URL 不应自动共享错误的 release lease 或缓存。"
  1736. evidence:
  1737. [
  1738. "runtime: synchronizer control file keys by endpointKey",
  1739. "AGENTS: workspaceIdentity/remoteSessionId must be carried for remote isolation",
  1740. ]
  1741. blockingCases: [MSR-REMOTE-001, MSR-REMOTE-008]