You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Protocol re-discussion: the spec says an approved-but-failed pending action is a 200 with status failed, while the runtime action door holds that failures speak HTTP (#3962); which one stands, and does the approve answer need a code slot #32603
area:workflowApprovals and automation — the work that runs without a person driving itdomain:specDomain lane — seat card indexed by label:pm:seatpm:on-holdDecision made, deliberately deferred — no dispatch, no nag; restart condition in the hold commentpriority:p3
Filing gate: ③ a task the maintainer approved in session (2026-11-12): the seat's plan for cloud#4346, which named this card as a separate follow-up, was answered 「4346 同意,按钮两个都下掉」 (cloud ruling comment 6817576806).
The tension, with readings (objectstack main 67c49d77)
packages/spec/src/api/protocol.zod.ts ~L4200, ApproveAiPendingActionResponseSchema docblock: 「status: 'failed' is a 200 with a reason, not an HTTP error: the approval succeeded, the execution did not. A caller that only checks res.ok will report a failed write as a success.」 The response has no code slot.
ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx ~L578-591: a generic type: 'api' action treats only !res.ok or a top-level success: false as failure. That is why cloud#4346 removed its two row actions on ai_pending_actions.
Consumers written for 200-failed: packages/client/src/index.ts (ai.pendingActions.approve), ui/packages/plugin-chatbot/src/useHitlInChat.ts, AiPendingActionsInbox.tsx.
Questions for the maintainer (the analysis is owed with the four-facet block before the box)
Keep 200-failed, or move to a non-2xx answer for an executed-but-refused write? The row has already moved to a terminal failed, so a 4xx that reads as "nothing changed, retry" misstates the state. Weigh that.
Does the answer need a closed code (and details)? Measured readers today: zero.
If HTTP wins, cloud's removed row actions on ai_pending_actions may come back (recorded in cloud#4346's ruling).
Reader: domain:spec lane for the analysis; the decision is the maintainer's.
Dedupe: repo:objectstack-ai/objectstack "200 with a reason" is:issue → 7, none on this route. ApproveAiPendingActionResponseSchema is:issue → 1 (#31884, closed, the held outcome).
Ruling: #32603 · letter B · maintainer 「其他都同意」 2026-11-12T22:09Z
The maintainer's words were written 2026-11-12T22:00Z, answering the fable review of the open decision items, which recommended for this card 「B 排在专题后面做」 (B, scheduled after the epic, not urgent) over C (close) and against A (triage analysis 6817938762; the review read origin/mainf770d664 and ran the ADR search the analysis had left unrun: no ADR fixes this route's failure shape).
Letter B: an approved pending action whose execution fails answers non-2xx, not 200 with status: 'failed'. The standard error envelope carries code and details, so question 2 (a new code slot) falls away under B.
Workload of B, taken from the analysis's effort column: domain:spec + runtime + the cloud#4346 revert · 2–3 PR; estimated M. The route itself is implemented in cloud, so at least one PR is cloud-lane.
Conditions the implementing thread carries (part of the ruling):
The error body carries the pending action's current state (approved, failed), because the approval is already spent; a caller must not read the answer as "nothing changed, retry".
The status code follows the execution's own class: a refused write answers 4xx, a crash 5xx.
held stays 200, and the docs keep saying a caller must read status.
Pin: approving an already-terminal pending action does not execute it again (needs the cloud side).
A breaking change to a published wire protocol: the changeset states FROM, TO and the migration.
Timing (part of the ruling): after the epic #31527, not urgent. No caller misreads this answer today: cloud#4346 removed the two generic row actions, and the three remaining readers were written for this response.
State: needs-user-decision → pm:on-hold, record only, no work started.
Restart-when: closed #31527
On restart the domain:spec lane dispatches B with the conditions above as one card thread; the cloud-lane PR is requested from the cloud seat then.
Triage: regrade p1 → p2 under the adopted grading rules (#32997) · 2026-11-13T03:13Z
⛔ Not a claim; the card's claim and state are unchanged.
Line: API client or generic api action · approve route of an AI pending action · each approved-but-failed action · read from code, zero measured readers
Why: Step 1: an ordinary protocol change ruled B as 'after the epic, not urgent'; cloud#4346 already removed the buttons that misread the 200, and the release does not need it.
Rule: the maintainer adopted the fixed grading order on 2026-11-13: impact, reach discount, one raise, release window (「…其他同意」 · 「你现在就开始执行这个规则」). A rule change allows this one re-grade pass over the open p1 cards.
Ruling: grade p3 · maintainer 「只做有把握的 15 张」 (the option he chose on the decision card) · recorded 2026-11-16T13:57Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T13:52:22Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, card cmsg_01TenzsRopZj4jMbvjX8uz1XKQvJ8JeBWFXoUnZeAT9HQp, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XLvK1ZoqRY8p1hygErwupfD.
Thread-read: 6842698748 (the newest comment). Labels at the read: priority:p2, domain:spec, pm:on-hold, area:automation; unassigned.
The question he was asked
He asked which open p2 cards have no business value and should be lowered or closed. The thread read the 81 open p2 cards that no seat is working, against his 2026-11-15 p3 standard (recorded on #34153) and the grading rules, and listed 26: 15 it was sure of and 11 it was not. How should the list be handled?
This card is lowered from p2 to p3. The other 14 cards of the 15 carry their own record. The 11 cards the thread was not sure of keep p2.
Why this card, as told to him: It is on hold and cannot be started today. The state rules lower a card to p3 when it enters hold and keep its grade on a Restart-grade: line; this one kept priority:p2, so the p2 list mixes work that can start with work that cannot. The grade says nothing about the card's value: the protocol re-discussion waits for epic #31527 to close.
State
This record changes no label. Triage writes priority:p2 to priority:p3 and adds Restart-grade: p2 to the body, citing this record.
Not ruled: whether a hold with no Restart-when: line closes instead. The thread read the card bodies only, not the comments, for that line; it stays triage's reading under the state rules.
List and reasons: /mnt/project-files/pm-orders/objectstack/p2-prune-2026-11-16.md.
The maintainer chose 「只做有把握的 15 张」 on the p2-value decision card, and card #32603 is one of the lowered ones (ruling record 6918487540). The lane and queue state are unchanged.
area:workflowApprovals and automation — the work that runs without a person driving itdomain:specDomain lane — seat card indexed by label:pm:seatpm:on-holdDecision made, deliberately deferred — no dispatch, no nag; restart condition in the hold commentpriority:p3
Activity
objectstack-fleet commentedon Nov 12, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
决策分析:AI 待办「批准成功但执行失败」该回 200 还是 HTTP 错误 · 2026-11-12T07:50Z
维护者速读
status: 'failed'(理由:批准本身成功了)。平台另有一条已立的原则「失败要用 HTTP 状态码表达」([17.0.0-rc] /actions reports business failures as HTTP 200 inside a double envelope — the only route of 12 that does; unify on real status codes before GA #3962),通用按钮也照这条写,只看res.ok,于是把失败读成成功。cloud#4346 已按现协议先修,本卡只决定协议本身。status: 'failed',加一个机器可读的错误码槽(code),通用按钮按声明的响应读status。Governing text:
packages/spec/src/api/protocol.zod.ts~L4200ApproveAiPendingActionResponseSchemadocblock(200 + reason,无code槽);packages/runtime/src/action-execution.ts~L2180-2189(「failures speak HTTP, #3962」)。两条都是已声明的规则,彼此冲突,所以是决策卡。协议声明 / 是否改协议: 两个选项都改协议:A 新增
code槽(协议新增);B 改响应语义(Metadata-protocol: semantic)。前提(带 re-check):
grep -n "is a 200 with a reason" packages/spec/src/api/protocol.zod.ts与grep -n "failures speak HTTP" packages/runtime/src/action-execution.ts各命中一处(main67c49d77)。res.ok:ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx~L578-591。选项 × 代价 × 工作量
code;所有调用方改为读statusdomain:spec+ 调用方 · 1–2 PR;估 S–Mres.ok的调用方自动看到失败;重试前要读正文里「已批准」domain:spec+ runtime + cloud#4346 回改 · 2–3 PR;估 M业务含义: A = 快递签收单写「已签收」,备注栏写「包裹损坏」,要看备注才知道出事。B = 直接退件,附单写明「已签收但损坏」。
四轴(业务立场):
res.ok,失败被静默报成成功;B 是响亮失败。推荐:B。 只看①选 B;②③④ 是否翻转:否。置信缺口:B 下「已批准」的待办不能重复批准,重试语义要在正文里写清(正文必须带待办的当前状态),这一点 PR 要 pin。
裁后执行: B ⇒
domain:spec改ApproveAiPendingActionResponseSchema与 docblock(FROM 200 → TO 非 2xx + 结构化正文),runtime 跟改,cloud#4346 的临时处理随后回改;p1(协议改动)。A ⇒domain:spec加code槽(协议新增,p1),通用按钮改读status。os-decision-facets
res.ok的调用方静默。Prior rulings read: #3962 (failures speak HTTP, cited by the runtime); ADR search not run, unresolved; thread: none
Related: cloud#4346 (ruling comment 6817576806).
Generated by Claude Code
objectstack-fleet commentedon Nov 12, 2026
domain:spec#2 · os-sales · session_01L6bhgU7jN46DmQ6XFvz28s
Ruling: #32603 · letter B · maintainer 「其他都同意」 2026-11-12T22:09Z
The maintainer's words were written 2026-11-12T22:00Z, answering the fable review of the open decision items, which recommended for this card 「B 排在专题后面做」 (B, scheduled after the epic, not urgent) over C (close) and against A (triage analysis 6817938762; the review read
origin/mainf770d664and ran the ADR search the analysis had left unrun: no ADR fixes this route's failure shape).Letter B: an approved pending action whose execution fails answers non-2xx, not 200 with
status: 'failed'. The standard error envelope carriescodeanddetails, so question 2 (a newcodeslot) falls away under B.Workload of B, taken from the analysis's effort column:
domain:spec+ runtime + the cloud#4346 revert · 2–3 PR; estimated M. The route itself is implemented in cloud, so at least one PR is cloud-lane.Conditions the implementing thread carries (part of the ruling):
heldstays 200, and the docs keep saying a caller must readstatus.Timing (part of the ruling): after the epic #31527, not urgent. No caller misreads this answer today: cloud#4346 removed the two generic row actions, and the three remaining readers were written for this response.
State:
needs-user-decision→pm:on-hold, record only, no work started.Restart-when: closed #31527
On restart the
domain:speclane dispatches B with the conditions above as one card thread; the cloud-lane PR is requested from the cloud seat then.objectstack-fleet commentedon Nov 13, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: regrade p1 → p2 under the adopted grading rules (#32997) · 2026-11-13T03:13Z
⛔ Not a claim; the card's claim and state are unchanged.
Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5p5codnUGsdGxBfaL9
Ruling: grade p3 · maintainer 「只做有把握的 15 张」 (the option he chose on the decision card) · recorded 2026-11-16T13:57Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T13:52:22Z. Decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, cardcmsg_01TenzsRopZj4jMbvjX8uz1XKQvJ8JeBWFXoUnZeAT9HQp, choice recordcmsg_01TenzsRopZj4jMbvjX8uz1XLvK1ZoqRY8p1hygErwupfD.Thread-read: 6842698748 (the newest comment). Labels at the read:
priority:p2,domain:spec,pm:on-hold,area:automation; unassigned.The question he was asked
He asked which open p2 cards have no business value and should be lowered or closed. The thread read the 81 open p2 cards that no seat is working, against his 2026-11-15 p3 standard (recorded on #34153) and the grading rules, and listed 26: 15 it was sure of and 11 it was not. How should the list be handled?
The four options on the card, as he read them:
succeededfor an aggregate bulk handler that resolved with failed rows (BulkActionResult) #34292)。拿不准的 11 张保持 p2。由分诊执行。」 (recommended)The ten cards on hold named by the option are #27314, #27108, #33023, #32677, #32603, #30349, #33628, #33353, #26472 and #24027, as listed in the file he was given.
The ruling
This card is lowered from p2 to p3. The other 14 cards of the 15 carry their own record. The 11 cards the thread was not sure of keep p2.
Why this card, as told to him: It is on hold and cannot be started today. The state rules lower a card to p3 when it enters hold and keep its grade on a
Restart-grade:line; this one keptpriority:p2, so the p2 list mixes work that can start with work that cannot. The grade says nothing about the card's value: the protocol re-discussion waits for epic #31527 to close.State
priority:p2topriority:p3and addsRestart-grade: p2to the body, citing this record.Restart-when:line closes instead. The thread read the card bodies only, not the comments, for that line; it stays triage's reading under the state rules./mnt/project-files/pm-orders/objectstack/p2-prune-2026-11-16.md.Notify: rulingto the triage mailbox, PR pm:mailbox — triage#1 · hotlong #32588.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: regrade p2 → p3 (maintainer) · 2026-11-16T14:09Z
⛔ Not a claim.
The maintainer chose 「只做有把握的 15 张」 on the p2-value decision card, and card #32603 is one of the lowered ones (ruling record 6918487540). The lane and queue state are unchanged.