Repository navigation
Labels
area:datadomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu
Filing gate: ② found in review. Source: contract reviews 7266381174 (#38618, N14–N17) and 7266979193 / 7269135624 (#38634, N23), the #37767 dev reports' stopOf note, and seat L1 7269166540. Neither #38618 (landed on the trunk) nor #38634 carries them.
Grading: area:data · Task · Suggested-grade: p2 · reach: approvals flows with a top-level fan-out (N23, stopOf) plus comment/doc accuracy and one redundant serialization · evidence: code read, not reproduced.
维护者速读
- 问题:审批"是否放弃"的判断里,有一处假设"运行日志最后一步就是运行停在的地方"。流程在顶层同时分出两条无条件分支时,这个假设不一定成立,可能把另一条分支上的后续步骤当成"已经过了审批这一步"。另外还有几处代码注释和实际行为不符,一处重复序列化。
- 影响:只影响顶层并行分支的审批流程,读代码发现,未复现。
- 做什么:先复现 fan-out 情况,能复现就修判断并加测试;注释和重复序列化顺手修正。
- 要你做什么:无。
What
- N23 +
stopOf(approvals plugin, after fix(approvals): the reconciler keeps a run as ended only with every child read, and reaches a decision in a child run (ADR-0162 item 8) #38634 lands). In a top-level fan-out (two unconditional out-edges;dag-traversal.tsruns them withPromise.all), a step on one branch can be logged after the visit that suspended the run on another. So "the last top-level step is where the run stood" (stopOfand the engine comment it follows) is a convention, not a fact. Thepassedrule, for a run in a terminal status that did not reach an end, takes "logged a later step" as going on past the step, and that later step can be on another branch. The parked-visit guard covers a paused run only. - N14. The docblock of
MAX_STEP_CHILD_RUN_IDSinpackages/services/service-automation/src/engine.tsnames "the approvals plugin's cap on the runs it reads for one approval". The cap arrives with fix(approvals): the reconciler keeps a run as ended only with every child read, and reaches a decision in a child run (ADR-0162 item 8) #38634. Check that the sentence is true once fix(approvals): the reconciler keeps a run as ended only with every child read, and reaches a decision in a child run (ADR-0162 item 8) #38634 is on the base, and that the suite ties the two numbers. - N15.
serializeStepsBoundedserializes the whole step log twice on every terminal write under the cap (pre-check and loop). Return the first result. - N16. Two stated behaviours have no case: a log still over the cap after the shed (halved, its kept steps marked), and the 28-byte band. Add a case for each.
- N17. The source comment over
childRunIdsinpackages/spec/src/automation/execution.zod.tssays a reader "can reach every run of its tree from the step log alone". After the bound and ruling 7268216330 that is false. Correct the comment; the description under it is already right.
Ask
- Item 1: reproduce a top-level fan-out where a branch logs a step after the approval's suspending visit. If it reproduces, make
passedandstopOfjudge by the branch, not by log order, and add a red-first pin. If it does not, say why, and correct the docblocks to state the convention. - Items 2–5: as listed. Item 5 touches a published spec file's comment only (no schema byte).
Not here
- The S14 bound on fix(approvals): the reconciler keeps a run as ended only with every child read, and reaches a decision in a child run (ADR-0162 item 8) #38634 (live resume past an hour) stays on fix(approvals): the reconciler keeps a run as ended only with every child read, and reaches a decision in a child run (ADR-0162 item 8) #38634.
Metadata
Metadata
Assignees
Labels
area:datadomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 30, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: lands in the approvals plugin's
passed/stopOfjudgment (item 1), with the comment and test items 2–5 inservice-automation/src/engine.tsandspec/src/automation/execution.zod.tsriding along · area:data (kept with the approvals trunk #37767, as #38674) · domain:server · Bug · p2 · pm:blocked · size S.Grade: area:data · Bug (item 1 decides it: an approval in a top-level fan-out can be judged passed on another branch's later step) · Severe if it reproduces (a stored approval outcome is wrong) · rare configuration (top-level unconditional fan-out around an approval) · read from the code, not reproduced.
Rationale: the North Star table gives p2 for Severe at rare reach, which matches the seat's suggested p2; the type moves from Task to Bug because item 1 is a shipped judgment that may be wrong, and items 2–5 alone would have been a p3 Task. If item 1 does not reproduce, the card closes on items 2–5 and that is fine at this grade. It waits on PR #38634, which brings the cap it documents (line below).
Blocked-by: #38634
objectstack-fleet commentedon Nov 30, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: unlock ·
pm:blocked→pm:queue· grade unchanged.Its only blocker, PR #38634, merged at 2026-11-30T07:15:54Z.
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ
2026-12-01T12:10Z · Parked:
pm:queue→pm:blocked(zoneosa-dataof seatrepo:objectstack@os-support-ai, area:data p1/p2 intake on the maintainer's words 「再开一个 area:data p1 p2」, 2026-12-01T11:58Z). Grade p2, size S unchanged; not claimed.Why it waits: item 1 (
passed/stopOf) lands inpackages/plugins/plugin-approvals/src/approval-service.ts(stopOfat :1930 onorigin/mainac97540).check-handover.mjs --inflight --card=38691reads OVERLAP with #38665 (claim 7310468885, seatrepo:objectstack@os-justin), which holdsapproval-service.tsandpackages/plugins/plugin-approvals/src/for the module split, and with #38667 (claim 7300673225), which holdspackages/services/service-automation/src/dir-wide (items 2–4:engine-run-log.tsMAX_STEP_CHILD_RUN_IDS,suspended-run-store.tsserializeStepsBounded). A zone never dispatches over a held claim. Serial behind both.Blocked-by: #38665
Blocked-by: #38889
For the next claimant: the card's item 2 names
engine.ts, butMAX_STEP_CHILD_RUN_IDSnow lives inpackages/services/service-automation/src/engine-run-log.ts(:56), andserializeStepsBoundedinsuspended-run-store.ts(:1283); after #38665 lands,stopOfmay have moved out ofapproval-service.ts. Re-read the tree, not this comment.objectstack-fleet commentedon Dec 1, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Unblock ·
pm:blocked→pm:queue· 2026-12-01T12:55Zobjectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhiGvpFMQX4XptMEtQ
Claim: PM loop round 2 · 2026-12-01T15:41Z · card thread of seat
repo:objectstack@os-support-ai(the card's item 5 is a non-testpackages/spec/src/**path), serial after #38659 (PR #38947, now with L1)Area: osa-data
Session:
session_01WGufzhiGvpFMQX4XptMEtQAccount:
os-support-aiBranch:
claude/issue-38691-approval-fanout-stopWorktree:
objectstack-issue-38691Domain:
domain:serverSeat:
repo:objectstack@os-support-aiFile surface:
packages/plugins/plugin-approvals/src/approval-service.ts(stopOf,childRunsOfand their docblocks, item 1; nothing else in the file),packages/services/service-automation/src/engine-run-log.ts(theMAX_STEP_CHILD_RUN_IDSdocblock, item 2; the card'sengine.tsis stale, the constant moved here),packages/services/service-automation/src/suspended-run-store.ts(serializeStepsBounded, item 3),packages/services/service-automation/src/step-child-runs.test.ts(items 2 and 4 cases),packages/spec/src/automation/execution.zod.ts(the source comment overchildRunIdsonly, item 5: no schema byte, no.describe()text), a new card-named testpackages/plugins/plugin-approvals/src/approval-fanout-stop-38691.test.ts(item 1, real engine + approval service),.changeset/38691-approval-fanout-stop.md. ⛔ Notrun-history.ts(#38674, PR #38969). Stop on breach; explain in the report.Container & model:
M,mode:thread,model: default (dispatch-gates --tier at origin/main d38006b9: "Model tier — no path-derived mandate"),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
platform code, objectstack (the approvals plugin's run-log reading, stopOf and childRunsOf, in packages/plugins/plugin-approvals) | none | an approval flow whose top-level node fans out to one pausing branch beside synchronous branches (still legal after #38838's publish refusal, which refuses two pausing branches only): if item 1 reproduces, an approval outcome read off a later step of another branch; read from the code, reproduction owedThread-read: 7311843098
Premise: holds for items 2-5 on origin/main d38006b:
MAX_STEP_CHILD_RUN_IDS(engine-run-log.ts:56) andMAX_RUNS_READ_PER_APPROVAL(approval-service.ts:1971) are both 200 and no test ties them;serializeStepsBounded(suspended-run-store.ts:1283) stringifies the whole log in its pre-check and again on the loop's first pass; the execution.zod.ts comment overchildRunIdsstill says a reader "can reach every run of its tree from the step log alone". Item 1 is the card's own reproduce-first ask: measured in this thread on the real engine before any change tostopOf/childRunsOf; if it does not reproduce, the docblocks state the convention and the PR says why. Size M, not triage's S: item 1 is a reproduction and a judgement change, not mechanical.Ruling-ref: triage 7311843098 quoting the maintainer (Warren), 2026-12-01T12:51Z, 「全部同意」: a split yields to p1/p2 work on the same files, so this card does not park on the #38665 / #38667 split surfaces.
Pre-claim lane:
packages/plugins/plugin-approvals/**,packages/services/service-automation/**⇒ domain:server (file ownership only).Pre-claim deps: PR #38634 merged 2026-11-30T07:15Z; #38889 closed (engine split steps 2-3 landed);
Blocked-by:lines on the card are cleared by triage 7311843098.Prior rulings read: ruling 7268216330 (the bounded
childRunIds, item 5's reason); seat reading 7257555103 of ruling A3 (passed); seat ruling 7258590209 (the bound and the shed mark); #38838's refusal header (flow-concurrent-pause.ts: one pausing branch beside synchronous branches is "Correct — not refused").Fold-or-serial: not folded — #38674 (
getRunterminal-row precedence inrun-history.ts) is another defect shape in another file.Serial constraints cleared:
check-handover.mjs --inflight --card=38691at d38006b reads OVERLAP only with #38674 (claim 7315040666) onpackages/services/service-automation/src/, whose clause is dir-wide for one new card-named test file only (its file surface namesrun-history.ts), and with the.changeset/*.mdglobs of #38941 #38940 #38939 #38463 #37771 (their own changesets). File-disjoint;overlap-check.mjsbefore every push, a real file collision stops and reports.fix(plugin-approvals): a terminal run is read by the steps it logged …