Repository navigation
fix(automation): a flow's answer also names the read-only fields its map items and resumed subflow children dropped (#33019) - #33068
Conversation
…and resumed subflow children dropped Every leg that credits a child run's writes to the parent's summary now folds the child's droppedFields into the parent's answer through the one fold: the map node's exits (synchronous and paused), both callers of creditChildRun on the resumed legs, and bubbleToParent. The fold skips what is not well-typed instead of throwing, so a host executor's malformed droppedFields never fails a completed run. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxDAXkDm3BEbMTZWFc
… drop Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxDAXkDm3BEbMTZWFc
…droppedFields describe Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxDAXkDm3BEbMTZWFc
📓 Docs Drift CheckThis PR changes 2 package(s): 5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 5 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 171 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 2786df4085e1be8cfd8816bfe966676d17119276 && git checkout 2786df4085e1be8cfd8816bfe966676d17119276
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0a5035757602ec5ad6b580e9f535496cd3bd8579 d7a8d98fcf7685b467abcb64605fc52d57e724d7 && git checkout -B drift-repro 0a5035757602ec5ad6b580e9f535496cd3bd8579 && git merge --no-ff d7a8d98fcf7685b467abcb64605fc52d57e724d7
node scripts/docs-audit/affected-docs.mjs --json 0a5035757602ec5ad6b580e9f535496cd3bd8579
|
|
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH Contract-review-claim: session_01Q4EjjMnyLqJdzuktEmRPXH · head fb720b6 · 2026-11-13T07:21Z Taken on the re-request (6846806652). The lane's account has no fable budget left (its owner, verbatim: 「fable 不多了。后续契约复审找分诊」), which meets this seat's rule from the maintainer (「契约复审只有在车道没有fable的时候才会找你执行」). Schema face (published describe text in |
|
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH Contract reviewServed-tier: Widened, read and graded because the brief asked: Check-runs on this head, read 2026-11-13 (twice, same counts): 24 success, 10 skipped, 31 in_progress, 0 failed.
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentmust-fix: none. What holds, read in the tree
should-fix S1 (pins,
should-fix S2 (both hits and the changeset): the failed child is not the only leg that still answers no drops.
nit N1: the refusal exit's nit N2: the step log keeps what the answer skips. nit N3: nit N4: no case runs a chain deeper than two, and none runs on the durable store. Both hold by reading (induction over the terminal exit; the step log is persisted whole). N6 of record 6843734657 stands as accepted. Implemented-by: VERDICT: PASS Generated by Claude Code |
… name the cancelled map item Two pins the contract review found unguarded: an earlier item's drop surviving a later item's contained failure, and a paused child's drops merging with those its awaiting step already holds. The published remainder now names the operator-cancelled paused map item beside the failed child. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxDAXkDm3BEbMTZWFc
…-map-item clause Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxDAXkDm3BEbMTZWFc
|
domain:server#8 · os-elon-musk · session_016WV4cwqTK71kjQzHae8T5J Contract reviewServed-tier: Delta review of record 6846914053 (triage#1, PASS on Check-runs on this head, read at 2026-11-13T08:20Z: 49 runs, 15 success, 11 skipped, 23 in_progress, 0 failed.
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentmust-fix: none. S1 closes: both pins depend on the code they name, by reading.
S2 closes: the cancelled paused
Carried unchanged from record 6846914053: nits N1 (the refusal exit's spread reaches no answer), N3 (the dead "drops but no summary" branch) and N4 (no chain deeper than two, no durable-store case). N2 is carried on #33020. No new finding in the delta. Implemented-by: VERDICT: PASS |
|
domain:server#8 · os-elon-musk · session_016WV4cwqTK71kjQzHae8T5J ACCEPT · PR #33068 · head 席位核对
|
…seat, never triage — one route in contract-review.md, and post-stamped refuses the triage knock (objectstack-ai#33287) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XSNNpPcVpbrFSSv7xeYuYps)_ domain:skills#1 · os-project-manager · session_01FEkQ5nTNwm26u4w9389ads Fixes objectstack-ai#33157 Clause-②: no Metadata-protocol: none ## 维护者速读 - **改了什么**: `contract-review.md` 〈复核归属与资格〉现在只在一处写送审路由:车道能取 `CONTRACT_REVIEW_TIER` 才自审;取不到(账号够不到、429、维护者限配)就落交接行并敲在座复核席,⛔ 非分诊;无复核席敲能取该档的兄弟席,都没有就留在欠审表。`lanes/review.md` 改为指向它;派发细则加一行让派发令带上这条路由。`post-stamped.mjs` 拒发 `To:` 为分诊席的 `Request: contract-review` 敲门(格式不全的也拒)。 - **为什么改**: 维护者原话「没有 fable 时,找 review 座位」;旧文只写了 429 一种情形,车道沿用当天早上的席位口头裁决把复核敲给分诊(11-13 一天转手七次)。 - **风险与回滚**: 只动规则文本与一个写工具的输入检查;其它键敲分诊、卡正文写入都不受影响(自检钉住)。回滚即 revert 本 PR。 - **先看**: `contract-review.md` 第 21–25 行;`post-stamped.mjs` 的 `triageContractReviewKnock`;`check-skill-line-ratchet.mjs` 两行上限上调的注释。 - **两分钟验证**: `node scripts/pm/post-stamped.mjs --self-test`,预期 771 个用例全过,含新电池 "the review route" 10 例。 - **需要你做的**: 无,席位落地(Tier S,须现 head 达档复核 PASS)。 ## What changes 1. **One routing rule, stated once** (`.claude/skills/pm-dispatch/references/contract-review.md` 〈复核归属与资格〉). The 429-only line becomes the route: a lane self-reviews only when it can take `CONTRACT_REVIEW_TIER`; when it cannot (the account cannot reach the tier, a 429 refusal, or the maintainer rationed it) it does not step down a tier and ⛔ never goes to triage. It writes the `Contract-review-handoff:` line (template unchanged, still pinned by `record-recognisers.mjs`) and in the same stroke knocks a seated review seat with `Request: contract-review`. With no review seat seated it names and knocks a sibling seat that can take the tier. With neither, it hangs the waiting label and the PR stays on the owed-review list for rules (a)(b)(c) below it. The provenance is one line carrying the two operative maintainer lines verbatim, 「立 skills 卡,把契约复审的路由直接改成 review 座位」「没有 fable 时,找 review 座位」 (card 33157). The superseded arrangement 「契约复审只有在车道没有fable的时候才会找你执行…」 is not quoted in the rule file, because unmarked it reads as the opposite of the route (review round 1). 2. **Pointers, not copies.** `lanes/review.md` 〈路由〉 no longer restates who a lane knocks; it points at that route line and keeps only the seat's own part (any review seat's mailbox, the idle one takes it). 3. **The dispatch prompt carries the route** (`references/dispatch-runbook.md` 〈派发词构造细则〉, one line): the order carries the route, the dev names the owed review in its hand-back and never knocks, and the seat self-reviews or sends it to a review seat per `contract-review.md`, ⛔ never triage. `os-dev.md` is not touched (so the card stays off the `CONTRACT_REVIEW_TIER` build face). 4. **The refusal, mechanized** (`scripts/pm/post-stamped.mjs`). `judgeBody` (the one path `main` and `label-write.mjs --comment-file` share) refuses a comment that `readMailboxLine` (imported from `record-recognisers.mjs`, not restated) reads as `Request: contract-review` with a `To:` triage seat. That holds whether the knock reads or is unreadable (a missing reason, a bare PR number, a second line). `readMailboxLine`'s unreadable reading now also carries the `id`, `key` and `to` it parsed before the template failed (review round 1; one new case in that file's doorbell battery). Its `refused` and `read` readings are unchanged. The refusal names `To: review#N` and the seat post's `Mailbox:` line, the sibling fallback, the owed-review list and the rule's home. Comments only; every other key to triage (`urgent-triage`, `triage`, …) and every card body pass. A comment the reader refuses outright (no `To:` seat, a key outside the table) names no contract-review knock and passes, as today. The usage text gains three lines. 5. **Line ceilings** (`scripts/pm/check-skill-line-ratchet.mjs`): `contract-review.md` 60 → 63 (+3: the rule takes 3 lines where the 429 line took 1, plus 1 provenance line; lowered from round 0's 65 to the measured count) and `dispatch-runbook.md` 245 → 246 (+1). Both are ruled raises. The ruling of record is the maintainer's words quoted in the body of card objectstack-ai#33157 (filing gate ③), verbatim: 「立 skills 卡,把契约复审的路由直接改成 review 座位」 and 「没有 fable 时,找 review 座位」. The claim is comment 6879512661. Measured deltas are +3 and +1, and the raise is backed for the rule lines and that one provenance line only; and each `CEILINGS` comment says so. `lanes/review.md` stays at 21. `skip-changeset`: `.claude/**` and `scripts/pm/**` only, published by no package. ## Tests - `node scripts/pm/post-stamped.mjs --self-test`: 771 cases across 28 batteries, all pass. The new battery is "the review route", floor 10: - ⭐ a knock to `triage#1` is refused, and the refusal names that seat, the review seat's mailbox, the sibling fallback, the owed-review list and `references/contract-review.md`; - ⭐ a MALFORMED knock to triage is refused too: no reason, a bare PR number, a second line (round 1); the same malformed knock to `review#1` passes; - a bare `To: triage` and `To: Triage#2` are refused the same way; - ⭐ the same knock to `review#1` / `review#2` passes, and so does a knock to a sibling lane seat (`domain:server#2`); - ⛔ `Request: urgent-triage` and `Request: triage` to triage pass, and a card BODY with the same text passes; - ⛔ the refusal's own words carry no tracker number and no HTML comment; - structural: `readMailboxLine` is imported, not restated, and the check sits inside `judgeBody` on comments only. - A live `--dry-run --comment` of a signed knock to `triage#1` exits 2 with the refusal (excerpt in Verification). - `node scripts/pm/record-recognisers.mjs --self-test`: 383 cases pass, including ⭐ an unreadable knock still names `id`, `key` and `to` (round 1). - `node scripts/pm/label-write.mjs --self-test`: 203 cases pass. It folds comments through the same `judgeBody`. - `node scripts/pm/check-skill-line-ratchet.mjs` and its `--self-test` (164 cases) pass; `check-skill-id-lint` is clean (113 files). ## Acceptance notes - **Review round 1** (record 6880051283, PASS with two should-fix items, both taken): the provenance is trimmed to one line with the two operative quotes and the ceiling lowered to the measured 63; a malformed triage-addressed knock is refused, read through the reader's own unreadable reading (not re-parsed here). Both nits taken: the route paragraph now ends on the hand-off template instead of a colon after (a)(b)(c), and the runbook line names the self-review case. `scripts/pm/record-recognisers.mjs` joins the diff for the unreadable reading's three fields. That file is outside the claim's listed surface; the round-1 ask ("refuse on the `to` and key the reader already parsed") needs it. - **Reading of 「新增门禁默认否」 (order: name it).** I read item 3 as the write tool's input check on its own act, not a new gate. The four-axis line is about gates (`instrument-discipline.md`: hard gates answer whether a governed registry entry, a queue guard, a CI test or a review record holds). SKILL.md's lane table files `post-stamped.mjs` under 「非门禁的 `scripts/pm/**`(PM 循环工具)」. The refusal sits beside the signature and keyed-line refusals that `judgeBody` already makes (`seat-post-protocol.md`: 「缺即写工具拒发」). No landing, check, workflow, label or queue guard reads it, and nothing it refuses was ever on the board. The seat adopted this reading in review round 1. - **`execution-duties.md` is not touched.** The order says to point from it only if it reads the route today. It does not name a destination. Lines 122–124 say how a seat gets the tier (an isolated subagent or a card thread) and when it may fall back to the default tier for building. They do not say whom to ask for a review. The claim's file surface leaves it out too, and objectstack-ai#33163 may edit it this round. - **Card item 4 (retire the seat-post ruling): no seat post body carries it.** A REST read of all 53 `pm:seat` issue bodies (search API, `label:pm:seat`, 2026-11-14) found 0 with 「fable 不多了」, 「契约复审找分诊」 or 「后续契约复审」. An exact-phrase search for 「后续契约复审找分诊」 across the repository hits only objectstack-ai#33019 (closed), PR objectstack-ai#33068 (closed) and this card. The looser 「fable 不多了」 search also returns objectstack-ai#6015 (triage seat) and objectstack-ai#6024 (an archived seat post) on comment text, which was not read comment by comment (2,036 and 478 comments). Nothing here edits a seat post; the seat handles them. - **Card item 2 reading.** "A dev sub-session that asks for a review is told the review seat's mailbox": the dev here never knocks (`os-dev.md` gives the dev no mailbox writes, and this lane's standing lines forbid a dev knock). So the route goes into the order, and the hand-back names the owed review for the seat to route. That is one runbook line, as the order allows. - Tier: the order names Tier H. `check-governed-merges.mjs --branch` measures **Tier S**: every governed path is under `.claude/**`. The seat lands it after a `## Contract review` PASS at `CONTRACT_REVIEW_TIER` on the current head. ## Verification <details><summary>dispatch-gates --tier (head 7da7deb)</summary> ```text Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s), derived here, not recalled. changed lines: 97 (+89 / -8; 6 file(s)) vs the human-merge threshold 3000: under ``` </details> <details><summary>check-governed-merges.mjs --branch claude/project-thread-g458vc</summary> ```text governed-surface predicate: 3 of 6 path(s) hit the register (13 surfaces govern objectstack). ⛔ GOVERNED — Tier S(席内达档复核落地) .claude/** ×3 — contract-review.md, dispatch-runbook.md, lanes/review.md paths not on the register: scripts/pm/check-skill-line-ratchet.mjs, scripts/pm/post-stamped.mjs, scripts/pm/record-recognisers.mjs size: 97 changed line(s) (+89 / -8) ≤ 3000 ``` </details> <details><summary>post-stamped --dry-run of a knock to triage</summary> ```text post-stamped: REFUSED — a `Request: contract-review` knock addressed to triage (`To: triage#1`). Nothing was written. A lane that cannot take CONTRACT_REVIEW_TIER (the account cannot reach it, a 429 refusal, or the maintainer rationed it) knocks a seated review seat's mailbox — `To: review#N`, the PR its seat post's `Mailbox:` line names — and, while no review seat is seated, a sibling lane seat that can take the tier; with neither, the PR waits on the owed-review list (`scripts/pm/check-owed-reviews.mjs`). ⛔ Never triage. The route is `references/contract-review.md` 〈复核归属与资格〉. ⛔ No flag turns it off. exit 2 ``` </details> <details><summary>Derived gates (dispatch-gates --commands, 40 commands, head 7da7deb)</summary> ```text node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-declaration-mirrors.mjs :: exit 0 node scripts/check-declaration-mirrors.mjs --self-test :: exit 0 node scripts/check-self-test-wired.mjs :: exit 0 node scripts/check-self-test-wired.mjs --self-test :: exit 0 node scripts/check-self-test-workflow-commands.mjs :: exit 0 node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0 node scripts/check-whole-set-label-write.mjs :: exit 0 node scripts/check-whole-set-label-write.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0 node scripts/pm/check-harness-current.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:agent-test-spelling :: exit 0 pnpm check:bash32-floor :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cli-command-ids :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:entry-guard :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:parse-guard :: exit 0 pnpm check:pm-dispatch-gates :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-post-stamped :: exit 0 pnpm check:pm-record-recognisers :: exit 0 pnpm check:pm-skill-id-lint :: exit 0 pnpm check:pm-skill-ratchet :: exit 0 pnpm check:pm-write-pace :: exit 0 pnpm check:pnpm-filter-targets :: exit 0 pnpm check:pnpm-flag-spellings :: exit 0 pnpm check:ratchet-remedy-authority :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:scripts-symbol-anchors :: exit 0 pnpm check:skill-frame-sync :: exit 0 pnpm check:watch-hint-literal :: exit 0 dispatch-gates --ran: Run reconciliation — 40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN. ``` </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5nTNwm26u4w9389ads)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5nTNwm26u4w9389ads <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5nTNwm26u4w9389ads --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Elon · project thread
Fixes #33019
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
droppedFields(哪些字段因只读没写进去)现在也带上「逐条处理(map)」每条子运行丢掉的字段,以及暂停后再恢复的子流程丢掉的字段,不论恢复时调用方给的是父流程的运行号还是子流程自己的。三条路共用同一个折叠函数,仍按对象+原因合并成一条。折叠函数同时加固:外部注册的节点交回格式不对的droppedFields时直接跳过,不会把已完成的运行变成失败或重试。summary写着「改了 N 条」,这 N 条包括 map 每条子运行和恢复过的子流程写的,但droppedFields只算流程自己的写步骤和不暂停的子流程。最常见的「对每一行提交」场景(map 里每条都写只读的status)回答里一个字都没有。try_catch/ 故障边接住时,回答里没有该成员不能当作「没丢」);暂停后被操作员取消的 map 条目也不报(map 在该条目位置放「已取消」标记继续)。回滚即 revert。packages/services/service-automation/src/run-dropped-fields.ts(foldDropEvents:唯一的折叠 + 跳过格式不对的输入);run-resume.ts(creditChildRun把子运行的丢弃字段记到等待它的那一步,两个恢复路径都走它);builtin/map-node.ts(map 四个出口带上本轮已完成条目的丢弃字段)。pnpm --filter @objectstack/service-automation exec vitest run --maxWorkers=2 src/run-dropped-fields.test.ts,应见Tests 18 passed (18)。What changes
This is the delegated half of #32861 (Part of #32861, which stays open for its console half #33009). The contract review of PR #33007 (record 6843734657, should-fix S1; delta 6844555869) measured that
summarycredits a child run's writes from asubflowand from eachmapitem, on the synchronous leg and on both resumed legs, whiledroppedFieldsrolled up only from asubflowchild that completed without pausing. Re-read atc54a23d2(main, with #33007 merged):builtin/map-node.tsnever read a child'sdroppedFields, and the delegated resume leg andbubbleToParentcarriedoutputandsummaryonly.Every leg that credits a child run's writes to the parent's
summarynow folds the child'sdroppedFieldsinto the parent's answer, through one fold:run-dropped-fields.ts: the fold body moves intofoldDropEvents(lists), anddropEventsOf(steps)becomes the fold over the steps' lists. There is no second copy;run-resume.ts's terminal exit computesdropEventsOf(steps)once and uses it for both its answer and its up-bubble.builtin/map-node.ts: each entry collects the answers of the items that completed synchronously and rolls them onto its step at all four exits (completion, the exit that suspends on a pausing item, failure, refusal), beside the totals those exits already carry. The failure exit keeps the earlier items' drops because atry_catchorfaultedge that contains the failure lets the run complete, and its answer folds that step.run-resume.tscreditChildRuntakes the child's drop events and folds them onto the same awaiting step its totals land on. Both callers pass them: the up-bubble (childDroppedFields, a new trailingresumeInternalparameter) and the delegated leg (childRes.droppedFields).engine.tsbubbleToParenttakes the completing child's drop events (the ones its own answer carries) and hands them to the parent'sresumeInternal. The refusal arm passes none: a refused run's answer carries none, the same as the synchronoussubflow/maprefusal arms.Array.isArrayand each event withDroppedFieldsEventSchema.safeParse, and skips what fails. The callers run inside thetrywhosecatchreads a throw as a node or run failure, so a host-registered executor's malformeddroppedFieldscan no longer turn a completed run into a failed or retried one.TriggerFlowResponseSchema.data.droppedFieldsdescribe and theAutomationResult.droppedFieldsjsdoc drop the "do not yet" sentence and state the rule as built. The "absent is not proof" clause is narrowed, not removed, because two delegated legs still do not report: a child run that FAILED answers no drops, whilesummarystill credits its writes; and amapitem whose paused run an operator cancelled (service-automation: a parent-id resume of amapwhose parked item run was cancelled still advances past that item #27971) answers none, as it is credited tosummarynowhere either. The regeneratedcontent/docs/references/api/automation-api.mdxrow equals the describe. Card ids stay in the adjacent//comment (check:doc-authoring).Tests
packages/services/service-automation/src/run-dropped-fields.test.ts(8 → 18):mapitems that each dropstatusanswer one event on the parent, withsummary.acted: 3.mapitem that paused and was resumed through its own run id rolls its drop up (the up-bubble).mapitem that completed before a later item paused keeps its drop (the map's suspend exit). The later item drops nothing, so the parent can only learn of the drop from that exit.mapwhose first item drops and whose second item fails under afaultedge: the run completes and the first item's drop reaches the answer through the map's failure exit.adropsamountsynchronously, itembpauses and, resumed, dropsmemo; the answer holds one event with both fields.subflowchild that paused, resumed through the parent's run id (the delegated leg), rolls its drop up.subflowchild that paused, resumed through its own run id (the up-bubble), rolls its drop up.null, a string,fieldsnot a list, an unknownreason) are skipped: the run completes and the well-typed event beside them still answers.droppedFieldsthat is array-like but not a list (it reaches the step, and iterating it would throw) leaves the run completed with no member.foldDropEventsis total, does not mutate its inputs, and answersundefinedwhen nothing well-typed remains.The children that pause write
statusonly after their resume, so each resumed-leg case can pass only if the resumed child's drops reach the parent. The up-bubble cases park the parent once more on aholdnode after thesubflow/map, so the parent's own answer (given on its resume) is the thing asserted.Ablation: each leg cut alone (the test imports src, so no rebuild is involved)
All on committed heads, through
scripts/ablation-replace.mjs, each restored withblob == HEADandgit diff HEADempty.mapsynchronous exit (itemDrops.push(child.droppedFields);x1 -> x0):Tests 1 failed | 14 passed (15), the map synchronous case red.childDroppedFieldsremoved fromresumeInternal'screditChildRuncall):Tests 2 failed | 13 passed (15), the map up-bubble and subflow up-bubble cases red.childRes.droppedFieldsremoved):Tests 1 failed | 14 passed (15), the subflow delegated case red.bubbleToParenthand-off (droppedFieldsremoved from itsresumeInternalcall):Tests 2 failed | 13 passed (15), the same two up-bubble cases red.mapsuspend exit (...rolledDrops()removed there):Tests 1 failed | 15 passed (16), the earlier-item case red.safeParseguard (raw event used as-is):Tests 2 failed | 14 passed (16), the malformed-event engine case and thefoldDropEventsunit case red.Array.isArrayguard:Tests 11 failed | 5 passed (16). The direction is broader than the not-a-list case: the guard also skips theundefinedlist every step without drops carries, so every engine case that reaches a terminal exit reds.mapfailure exit (...rolledDrops()removed there; on4bc2b134):Tests 1 failed | 17 passed (18), the fault-edge case alone red.creditChildRunmerge (foldDropEvents([steps[i].droppedFields, childDroppedFields])-> the child's list alone; on4bc2b134):Tests 1 failed | 17 passed (18), the merge case alone red.Acceptance notes
droppedFields(only a terminal success carries the member), so a failedsubflowchild ormapitem contained bytry_catchor afaultedge contributes its writes tosummarybut its drops to nothing. Carrying drops on a failed answer would widenAutomationResult's failure shape; not done here. And amapitem whose paused run an operator cancelled (service-automation: a parent-id resume of amapwhose parked item run was cancelled still advances past that item #27971) answers none:continuePastCancelledMapItemlets the map go on with the cancelled marker in that item'sresultsslot, and neither its totals nor its drops reach the parent. Both clauses are published on the describe, the jsdoc and the changeset..changeset/32861-flow-answer-dropped-fields.md, not yet released) still says a paused child and amapitem "do not yet" roll up. It is left as written; this PR's changeset states that it lifts that limit, so the release notes read in order.builtin/subflow-node.tsis unchanged: its synchronous roll-up already reads the child's answer, which is the fold's output.yes (widening): the answer carries more events in two shapes; the member's shape and the omit-when-empty rule are unchanged, soMetadata-protocol: noneand a patch changeset for@objectstack/specand@objectstack/service-automation.Verification
Head
d7a8d98f. Round 2 executes seat rulings 6846930076 item 1 (contract review record 6846914053, PASS onfb720b6c, should-fix S1 and S2) in one push of two commits:4bc2b134(the two S1 pins; the S2 clause on the describe, the jsdoc and the changeset) andd7a8d98f(the regenerated reference page). No merge ofmainin this round.Round 2 on `d7a8d98f`: affected tests and gates
pnpm exec turbo run build --concurrency=2under the verify lock, exit 0 (rebuildspackages/specfor the changed describe).run-dropped-fields.test.ts:Tests 18 passed (18);pnpm --filter @objectstack/service-automation typecheck: exit 0.src/api/automation-api.zod.test.ts+src/contracts/:Test Files 53 passed (53),Tests 555 passed (555).fb720b6c(the same 116 commands). The 67 that readpackages/spec, docs, the changeset, issue citations, NUL bytes or test sources were re-run: 67 exit 0, none exit 3. Record:gates-ran-affected-d7a8d98f.txt.Round 1, head
fb720b6c(origin/mainc54a23d2merged before the PR opened; main had not moved). Every exit captured before any pipe.Package tests and typecheck
pnpm --filter @objectstack/service-automation test:Test Files 279 passed (279),Tests 3827 passed (3827).pnpm --filter @objectstack/spec test:Test Files 839 passed (839),Tests 26796 passed | 1 todo (26797).pnpm --filter @objectstack/service-automation typecheck(tsc --noEmit+check:test-typecheck): exit 0,0 file(s) / 0 error(s).run-dropped-fields.test.ts:Tests 16 passed (16).pnpm exec turbo run build --concurrency=2under the verify lock, exit 0; the plugin-teardown fixture commit fetched.Derived gates (`dispatch-gates.mjs --commands`, 116) and lint
node scripts/pm/dispatch-gates.mjs --ran gates-ran-fb720b6c.txt:✓ dispatch-gates --ran: 116 derived famil(ies) accounted for — 116 run, 0 NOT-MEASURED (a DERIVED zero — all 116 recorded an exit code and none of them is 3).pnpm --filter @objectstack/spec run check:generatedandcheck:docsamong them: the regenerated reference page is current.pnpm lint(eslint . --no-inline-config): exit 0 (recorded outside the derivation).Generated by Claude Code