Repository navigation
Labels
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Filing gate: ① (a product defect with a named landing point and a measured reproduction) · Source: fleet — measured by the #38838 dev (os-dev-report 7304672031, shape S11, re-measured with the child step's own approver). ⛔ Not a claim. domain:* and the queue are triage's.
维护者速读
- 出了什么事:一个节点同时分叉到一个审批和一个 subflow,而 subflow 的子流程里也有审批时,两个审批都能正常决定,但父流程在 subflow 那条分支的后续永远不会执行。
- 用户看到的:子流程审批通过了,后面本该接着做的事情没有发生,也没有报错。
- 要你做什么:无(分诊定级与路由)。
What is measured
- Through
registerFlow+ execute (same door as above): two pending requests (roota_review, childc_review) and two suspensions (roota_review, childc_review). Each decision resumes its own run; the parent completes ona_review's decision; the subflow branch's continuation aftersubnever runs. The parent's own wait on the subflow is dropped. - Not refused by the parse, by design:
subflowandmapare not judged by type (the region rule's ruling D, decision batch 🔗 Broken links detected in documentation #153 item 1, quoted inpackages/spec/src/automation/flow.zod.ts), because whether they pause depends on another flow record. So the remedy is engine-side, at run time — the same two-door shape the region rule has (packages/services/service-automation/src/region-suspension-refusal.ts: the arming gate, then a run-time refusal).
Expected
A concurrent fan-out branch whose subflow / map child pauses is refused loud at run time (and at arming, where the child is known), as the region rule's engine half does for region bodies; no branch continuation is silently lost.
Notes
- Lands in
packages/services/service-automation, which 拆分 service-automation engine.ts(12,298 行)为职责模块,只搬不改 #38667 (theengine.tssplit) holds in flight: this card waits on it. - Dedupe:
subflow concurrent branch pause continuation lost(15 hits: approvals: a node fanning out to two approval steps opens two pending requests in one run, and the second has no suspension, so deciding it never moves the run #38838 open; service-automation: a parent-id resume of amapwhose parked item run was cancelled still advances past that item #27971, QA run · automation (18/22) · 5b14b7f3 · 2026-10-19 · 15 PASS / 2 PARTIAL / 1 FAIL / 0 BLOCKED / 4 NOT-RUN #24545, approvals: arecallwhose resume strands reports it as an ordinary non-failure — norepairablediscriminator, where the identical strand throughdecidecarries one #15970 closed — amapresume, a QA run, an approvals recall: unrelated),fan-out subflow child pause parent(25: approvals: a node fanning out to two approval steps opens two pending requests in one run, and the second has no suspension, so deciding it never moves the run #38838; QA run · touched:ee9ad834 (16/174) · 8e3d4a54 · 2026-11-13 · 15 PASS / 1 PARTIAL / 0 FAIL / 0 BLOCKED / 158 NOT-RUN #33094, Screen flows: the paused screen does not say whether it is the last one, so a wizard button reads 「提交」 on every step and no step counter can be drawn #26657 closed, unrelated). No open card covers it.
Grading: area:workflow · Bug · Suggested-grade: p2 (a branch continuation silently lost) · reach: measured through registerFlow + execute.
Blocked-by: #38667
Metadata
Metadata
Assignees
Labels
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Dec 1, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: first-touch · lane grade kept:
area:workflow· Bug · p2 ·pm:blocked(Blocked-by: #38667, in flight with os-justin) ·domain:serveradded. p2 stands: the parent flow never continues after the child approval, with no error. Unlock when #38667 closes.objectstack-fleet commentedon Dec 1, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Unblock ·
pm:blocked→pm:queue· 2026-12-01T12:56Zobjectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Unlocked 2026-12-01T12:57Z:
pm:blocked→pm:queue, grade unchanged. The onlyBlocked-by:target, #38667, closed by PR #38889 (merged,8338d07029). The engine code these cards touch now lives in the facet modules underpackages/services/service-automation/src/(e.g. the run and flow-slot facets); re-measure the landing point on main before dispatch.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Same-family member folded in · 2026-12-01T15:41Z · from the #38875 dev's report 7316215626 (out-of-scope finding, class a).
Measured through registerFlow + execute on the real engine and approval service: an earlier true conditioned edge enters a
subflowwhose child parks on an approval, and a later true conditioned edge leads to a synchronous step. The child request opens and is decided, the run completes, and the later sibling never runs. This is the SEQUENTIAL twin of this card's concurrent shape: the parse cannot see it (subflow / map are not judged by type, ruling D), so PR #38970 (#38875) refuses only the static half and leaves this one here. The builder of this card covers both with one run-time mechanism and pins each with an enumerated case.Order: this card is dispatched after PR #38970 lands (both pin into
packages/plugins/plugin-approvals/src/flow-route.integration.test.tsand read the same traversal).fix(spec)!: refuse two durable pauses on concurrent branches of one f…
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Claim: PM loop round 1
Session:
session_01QSeKYnrQ7UMtHofKQVjcH2Account:
os-justinBranch:
claude/issue-38876-subflow-branch-pause-lostWorktree:
objectstack-issue-38876Domain:
domain:serverSeat:
repo:objectstack@os-justinFile surface:
packages/services/service-automation/src/(reason: the run-time refusal and its arming half, besideregion-suspension-refusal.tsand the engine facet that arms triggers; the dev names each file),packages/plugins/plugin-approvals/src/flow-route.integration.test.ts(reason: the reproduction pins, beside #38838's and #38875's),content/docs/automation/flows.mdx,packages/spec/src/migrations/entries/semantic/(reason: only if the arming half refuses a flow that registers today), the changeset (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: opus (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable — default tier),effort: highClause-②: no
Metadata-protocol: none
Responsibility: the engine's traversal (
packages/services/service-automation, objectstack) awaits a concurrent fan-out's branches underPromise.alland asubflow/mapchild's pause unwinds the branch, and a sequential earlier branch's child pause unwinds the loop (#38875's run-time twin) | the region rule's engine half (region-suspension-refusal.ts) covers region bodies only; #38838 and #38875 cover the parse-visible shapes | flow authors whose fan-out or conditioned out-edges reach a subflow/map whose child parks; measured twice through registerFlow + executeThread-read: 7316340438
Premise: holds (origin/main 4203db7, 2026-12-02T01:57Z: PRs #38871 and #38970 landed the parse halves;
subflow/mapare not judged by type (ruling D);region-suspension-refusal.tsrefuses a child pause only inside a region body)Serial constraints cleared: no in-flight claim names these paths (
check-handover --inflight, 2026-12-02T01:57Z); #38905 (the engine target-state refactor) ranks after this card by the maintainer's split ruling.7 remaining items
test(automation): pin the branch arming decline through registerFlow …
feat(spec,automation): semantic entry, docs and changeset for the bra…
chore(spec): regenerate the automation api-surface and export-origins…
chore(scripts): place the branch decline record's delete in the tenan…
fix(app-shell,i18n): a designer-table row for the suspending_subflow_…
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnRnHBkY5SFRAUFpzs
os-dev-report
{ "issue": 38876, "status": "done", "branch": "claude/issue-38876-arming-decline", "pr": "https://github.com/objectstack-ai/objectstack/pull/39144", "head": "51e71d58d3", "session": "session_01QSeKYnRnHBkY5SFRAUFpzs", "served_tier": "opus (get_session: session_context.model opus, last_served_model claude-opus-5-5; dispatch tier opus, effort high) - matches", "premise_still_valid": true, "summary": "Ruling A (7336647907) built, the arming half. Spec: concurrentPauseRefusals / sequentialPauseRefusals take a FlowPauseReading (type list, as the parse still hands FLOW_PAUSE_CAPABLE_NODE_TYPES, or a node predicate), one walk and one pass model, refusals gain shape / nodeId / branches / untaken; exported from @objectstack/spec/automation; FLOW_UNBOUND_CAUSES gains suspending_subflow_on_branch. Engine: subflow-branch-guard.ts (branchSuspendingCall asks the two spec readings with 'always-pausing type or a subflow/map whose child can suspend' via suspendingNode) and EnablementFacet.declineOntoBranchSuspendingCall beside the region decline, after it in activateFlowTrigger and describeUnboundReason, re-judged in rejudgeSubflowCallers. ADR-0087 semantic entry 19.flow-branch-suspending-subflow-not-armed, flows.mdx paragraph, changeset (Clause-② no (narrowing), Metadata-protocol narrowed, BREAKING FROM/TO), PR title with !. Corpus 0 hits over 51 flows. CI fully green on the final head including the dogfood battery.", "wiring_sites": "engine.ts (field subflowBranchDeclinedFlows; stub declineOntoBranchSuspendingCall; describeUnboundReason host; rejudgeSubflowCallers host; extensionsHost closure; flowSlots/registration/enablement host getters), engine-enablement-facet.ts (host member + body), engine-extensions-facet.ts (host member, Pick, call after the region half), subflow-guards.ts (host member, early-out, transitive re-judge both arms), flow-definitions.ts (host member, describeUnboundReason, withdrawFlow), engine-flow-slots-facet.ts (moveFlowRecords), engine-registration-facet.ts (withdrawFlowKey). engine.ts 7783 → 7808 lines (facade ceiling 7835).", "corpus": "0 hits / 51 flows judged by branchSuspendingCall: examples 38 (app-showcase 33, app-todo 4, app-crm 1; 4 carry subflow/map), docs/qa/scenarios/builds/order_to_cash.json 9, docs/qa/platform-checklist/areas/automation.json 4. No other stored flow JSON in the repo carries a subflow/map.", "tests": "service-automation full at 8eda4969c: Test Files 305 passed (305), Tests 4531 passed (4531); after the origin/main merge at 78a83a170 the shared files subflow-branch-arming-38876, flow-registration-checks, subflow-region-suspension, branch-suspension-refusal: 4 files / 111 tests passed. plugin-approvals full at 78a83a170: 147 files / 2365 tests passed (new nested describe '[#38876] the arming door': 5 declined + 10 controls). spec src/automation src/contracts src/migrations at 78a83a170: 113 files / 2603 tests passed (rest of spec suite: CI). ui at 51e71d58d: packages/i18n + app-shell previews 274 files / 3734 passed, 13 skipped. New subflow-branch-arming-38876.test.ts 14/14: concurrent subflow + map, two calls, 3 sequential shapes, re-judge armed→declined→armed, child two calls away, withdraw; controls: no child, non-suspending child, single pausing call / call taken last, region body keeps suspending_subflow_in_region, parse-refused shape refused at registerFlow. Typecheck spec / service-automation (incl. check:test-typecheck) / plugin-approvals exit 0. Ablation A (engine decline → undefined; blob 2d0f56ada0 → 5033715fa5; marker ABLATE38876A in 2 built files): unit 9 failed / 5 passed, integration -t 'arming door' 5 failed / 10 passed. Ablation B (spec pausePredicate ignores a predicate; marker ABLATE38876B in 2 built spec files): spec 3 failed / 55 passed (all parse cases green), engine 9 failed / 5 passed; first B attempt's marker was constant-folded by the bundler, preflight failed, that leg's engine reading discarded and re-run. Restores: blob == HEAD, git diff HEAD empty, rebuilt, ablation-dist-preflight --absent exit 0 for both, git status --porcelain 0 lines.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 143 families at 78a83a170, all 143 exit 0 (exit captured before any pipe; the same 143 also all exit 0 at 8eda4969c); 51e71d58d (ui-only delta) derives 146 = the 143 + node scripts/check-sdui-manifest.mjs, its --self-test, pnpm --dir ui exec vitest run scripts/, all 3 exit 0 at 51e71d58d. --ran at 51e71d58d: 'Run reconciliation - 146 derived, 146 run, 0 NOT-MEASURED, 0 UNRUN' / '146 run, 0 NOT-MEASURED (a DERIVED zero)', exit 0. First-pass non-zero, all cleared: check-tenant-audit-census exit 1 (new receiver unplaced: ledger row added), check-plugin-teardown-shape --self-test exit 3 (shallow clone: fixture commit fetched), check:skill-examples / check:dual-build-cjs-loads / check:i18n exit 3 and the cli guidance vitest exit 1 (no dist: pnpm build, 124 tasks). check-platform-checklist not owed (no export renamed or removed). PR check-runs at 51e71d58d: 67 success, 9 skipped, 0 failure - Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset success; Dogfood battery (opt-in) and shards 1-3/3 success; Temporal Conformance skipped (selector). At 78a83a170 the only red was Test UI (9/16), fixed in 51e71d58d.", "line_budget": "25 files, +875 / -33 vs merge-base 4374517d02 (tests +404 -1, generated +12); under the 3,000-line review line.", "files_changed": [ ".changeset/38876-branch-suspending-subflow-arming.md", "content/docs/automation/flows.mdx", "packages/plugins/plugin-approvals/src/flow-route.integration.test.ts", "packages/services/service-automation/src/engine-enablement-facet.ts", "packages/services/service-automation/src/engine-extensions-facet.ts", "packages/services/service-automation/src/engine-flow-slots-facet.ts", "packages/services/service-automation/src/engine-registration-facet.ts", "packages/services/service-automation/src/engine.ts", "packages/services/service-automation/src/flow-definitions.ts", "packages/services/service-automation/src/subflow-branch-arming-38876.test.ts", "packages/services/service-automation/src/subflow-branch-guard.ts", "packages/services/service-automation/src/subflow-guards.ts", "packages/spec/api-surface/automation.json", "packages/spec/export-origins/automation.json", "packages/spec/src/automation/flow-concurrent-pause.test.ts", "packages/spec/src/automation/flow-concurrent-pause.ts", "packages/spec/src/automation/index.ts", "packages/spec/src/contracts/automation-service.test.ts", "packages/spec/src/contracts/automation-service.ts", "packages/spec/src/migrations/entries/semantic/19.flow-branch-suspending-subflow-not-armed.ts", "scripts/tenant-audit-census.mjs", "ui/.changeset/38876-branch-suspending-subflow-unbound-cause.md", "ui/packages/app-shell/src/views/metadata-admin/previews/flow-problems.ts", "ui/packages/i18n/src/namespaces/studio/en.ts", "ui/packages/i18n/src/namespaces/studio/zh.ts" ], "mcp_calls": "0 GitHub MCP calls. Non-GitHub MCP: claude-code-remote get_session x1 (served tier), send_message x1 (seat hand-off line, after this comment).", "api_writes": "2 relay strokes, both as objectstack-fleet[bot]: pr_create request fw-20261202T135456Z-e2f2a1, run 46896661245 success → POST /repos/objectstack-ai/objectstack/pulls (#39144, draft; 11095 bytes sent = stored) + POST /repos/objectstack-ai/objectstack/issues/39144/assignees (os-justin, read back) + POST /repos/objectstack-ai/objectstack/issues/39144/labels (needs:dogfood-battery, read back); this report → POST /repos/objectstack-ai/objectstack/issues/38876/comments via post-stamped.mjs. git push not counted (7 pushes).", "classifier_refusals": [], "open_questions": [ { "question": "Closed-vocabulary consumers outside the dispatch surface: adding suspending_subflow_on_branch reddened Test UI (ui/packages/app-shell flow-problems.runStatus-11779.test.ts pins a designer row per contract cause in en and zh). I added the row and both strings, with a ui changeset, rather than leave the required check red. Keep it in this PR, or split it out?", "options": ["A keep: one PR carries the contract member and the UI row the pin demands (AGENTS.md post-task rule 4 shape: a spec change that breaks ui/ ships with the ui/ fix); 3 files + 1 changeset", "B split: revert the ui files here and land them first in a ui-only PR; this PR stays red on Test UI until then"], "recommendation": "A, because B makes this PR's required check depend on a second PR for a three-line follow-on of the same ruled contract change." }, { "question": "Dispatch vs os-dev on the needs:dogfood-battery label: the dispatch said to add it via the relay; os-dev's dogfood bullet says the seat attaches it and the dev does not, while its label-scope rule allows dispatch-named labels. I sent it on pr_create's labels leg (read back). The battery ran and passed on 51e71d58d.", "options": ["A treat a dispatch-named label as the seat's delegation (as done)", "B seat removes and re-attaches it under its own hand"], "recommendation": "A; no state needs changing." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: subflow-region-suspension.test.ts asserts `expect(engine.getFlow(...)).toBeDefined()` on a Promise (getFlow is async), so that line is vacuous; the new #38876 file awaits it. Pre-existing, test-only." ], "deviations": [ "File surface breach 1 (declared, not silent): scripts/tenant-audit-census.mjs +1 UNTYPED_RECEIVERS row for this.subflowBranchDeclinedFlows in engine-enablement-facet.ts, mirroring the four sibling *DeclinedFlows rows; check-tenant-audit-census reds without it and prescribes exactly this row.", "File surface breach 2 (declared): ui/packages/app-shell/.../flow-problems.ts (1 row), ui/packages/i18n/src/namespaces/studio/en.ts and zh.ts (1 string each), ui/.changeset/38876-branch-suspending-subflow-unbound-cause.md: required Test UI was red on 78a83a170 because a UI pin demands a row per FLOW_UNBOUND_CAUSES member (open_questions[0]).", "packages/spec/src/contracts/automation-service.test.ts (+1 member in the FlowUnboundCause type-identity pin): the contract file's own test, moved with the ruled member.", "PR body is stale on two points (I do not PATCH it; the seat does): What changes lacks the ui/ row and the ui changeset (breach 2); Tests/Gates cite 78a83a170 - the final head is 51e71d58d (146 families, CI 67 success / 0 failure).", "Merged origin/main (4374517d0, 8 commits incl. #39072 and #39064) via scripts/pm/os-regen-merge.sh BEFORE pr_create (pre-PR rule), no conflict; spec check:generated up to date after; nothing merged after the PR opened.", "Spec suite narrowed locally to src/automation, src/contracts, src/migrations (the directories the diff reads); full spec suite is CI's (Test Core green).", "branchMayPause, named in the dispatch as part of #39030, no longer exists on main (removed in #39030's patch round 1); the decline reads suspendingNode directly.", "The worktree was built after detaching the shared checkout and deleting its local copy of the card branch (it pointed at origin/main f037f1cc, no commits), since dev-worktree.sh refuses an existing local branch." ] }fix(spec,automation): a decision without a fallback edge is its own r…
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Decision analysis · 2026-12-02T15:35Z · decision(automation): should the arming gate also judge a branch shape held inside a called child flow, or stay one level deep? (follow-up of #38876, PR #39144). Posted under this card rather than filed as a new one: the dedupe hit is this seat's own open card (filing gate). It is put to the maintainer in this seat's session now, because option B can ride PR #39144's open fix round with no new PR.
Filing gate: ② (a decision only the maintainer can make: whether a published narrowing reaches one call level or every call level) · Source: fleet — the contract review of PR #39144, record 7350002763, ④ break attempt "The shape inside a called child". ⛔ Not a claim. This card blocks nothing: PR #39144 and #38876 proceed on Ruling A as ruled.
维护者速读
Analysis
Served-tier: CONTRACT_REVIEW_TIER
Analysed-by: a99801899ad48046d (decision-thread sub-agent of session_01QSeKYnrQ7UMtHofKQVjcH2)
1. The question in one sentence
An automation that starts on a trigger and calls a reusable sub-process is switched on without complaint even when that sub-process contains two parallel waits, and every run that reaches both waits then sends out approval requests and fails: should activation refuse it, as it now refuses the same mistake when it sits in the automation itself?
2. Background
subflow/mapwhose child can suspend is registered but not armed (unboundCause: suspending_subflow_on_branch). PR fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed #39144 builds it (open, draft, head51e71d58d3, +875 / −33, 25 files; contract review PASS with two should-fix).branchSuspendingCallreads the armed flow's own graph. It follows calls to learn whether a child can suspend (suspendingNode, any depth), but it never asks whether a child's own graph holds the shape. A parent with one clean path to a child that holds a fan-out to anapprovaland asubflowwhose child waits therefore arms. The child cannot hold the shape with two always-pausing steps (the parse refuses that in every flow, PR fix(spec)!: refuse a flow node that takes a branch which parks the run before its other out-edges #38970 and approvals: a node fanning out to two approval steps opens two pending requests in one run, and the second has no suspension, so deciding it never moves the run #38838), so the nested shape always involves a third flow.faultedge can route. Concurrent shape: either both suspensions are collected and the child fails the same way, or the child parks first, the caller parks on it, and the late branch then fails the child and every parked ancestor throughfailSuspendedRun, which nofaultedge routes. In all cases the requests have already opened and staypendinguntil swept (approvals: when the engine refuses or cancels a run parked at an approval, the request it opened stays pending and its decision answers 409 RESUME_TARGET_LOST #39032). The late watch lives in process memory: an engine restarted in that window leaves the run parked and the branch lost without a word (flows.mdx, "This check runs in the engine's memory").3. Governing text
declineOntoRegionSuspendingCalland re-judges it where subflow callers are re-judged. One traversal model, no copy." Silent on depth.subflow-region-guard.ts: "[automation: the region refusal leaves its child run uncancelled with only a warn when the suspension chain cannot be read, and a region call reached through a child's top-level call still arms #29166, seat ruling record 6576815635, option B] So the decline is one level deep BY DESIGN, not by omission … Keeping the refusal un-routable one level up would be a separate narrowing decision."FLOW_UNBOUND_CAUSESjsdoc, "on its top-level graph" (packages/spec/src/contracts/automation-service.ts), and semantic entry19.flow-branch-suspending-subflow-not-armed, surface "The TOP-LEVEL graph of every flow that declares a trigger".flow-concurrent-pause.tsstates it:subflowandmap"pause only when the child flow they name does (a different record), and are ⛔ not judged by type here".git grep -n "6576815635" origin/main -- packages/services/service-automation/src→ 2 hits,subflow-region-guard.ts:25andregion-suspension-refusal.ts:41, both about the region half.git grep -n -iE "depth|level deep" FETCH_HEAD -- packages/services/service-automation/src/subflow-branch-guard.ts→ 0 hits. No text rules the branch half's depth.4. Protocol statement
A changes no protocol (
Clause-②: no,Metadata-protocol: none). B narrows the arm-set further and adds no key, no cause, no export:Clause-②: no (narrowing),Metadata-protocol: narrowed,!title, an ADR-0087 semantic entry, contract-tier review, the dogfood battery. B+ is the same twice. C's reliable form adds a published status member for flows without a trigger:Clause-②: yes, and under the filing gate that is aFeaturecard, not an option of this one.5. Premises, each with its re-check
Fetch first:
git fetch origin pull/39144/head.git show FETCH_HEAD:packages/services/service-automation/src/subflow-branch-guard.ts | grep -c "branchSuspendingCall("→ 1 (the definition; no recursion), and line 93 readsconcurrentPauseRefusals(flow, pauses)overflows.get(name)only.git show FETCH_HEAD:packages/services/service-automation/src/subflow-branch-arming-38876.test.ts | grep -n "two calls away"→ line 162.git show FETCH_HEAD:packages/services/service-automation/src/late-branch-watch.ts | grep -n "host.failSuspendedRun"→ line 475. A synchronous one is:builtin/subflow-node.tsline 184 returnssuccess: false.git show FETCH_HEAD:packages/services/service-automation/src/subflow-retry-guard.ts | grep -n "retriedCalloutIn("→ the recursion (PR feat(automation)!: an after-save flow is not armed while a subflow it calls retries an inline call, and a durable http node with no outbox does not hold the save #33265).git show FETCH_HEAD:packages/services/service-automation/src/flow-registration-checks.ts | grep -c "flows\.get"→ 0.flow-definitions.tsline 313:if (!resolved) return undefined; // manual / screen flow — nothing to bind.gh api repos/objectstack-ai/objectstack/pulls/39144 --jq .merged→ false (2026-12-02).6. Options × real cost × workload
flows.mdx(review item S1 already owes this), and record the ruling in a docblock.domain:server· 0 new PRs (rides PR #39144's owed S1/S2 head). Precedent: PR #29329 (+118 / −0, 5 files) carried the #29166 option-B docblock the same way.rejudgeSubflowCallersalready re-offers transitive callers and already asksbranchSuspendingCall). The reason names the child that holds the shape and the calls that lead there. Region half unchanged.domain:server· 1 PR, or 0 new PRs if folded into PR #39144's owed head. No landed PR deepened an existing half, so no precedent for the delta. Upper bounds by kind: PR #39144 itself (+875 / −33, 25 files; its spec export, new cause and UI row are not repeated), PR #33265 (+676 / −107, 18 files; the chain-deep retried-call half).regionSuspendingCalldeepened the same way. Overturns seat ruling 6576815635.domain:server· B plus a second narrowing (second entry, both #29166 docblocks rewritten). No precedent; the region half itself was PR #29096 (+650 / −35, 12 files).subflow-retry-guard.tssays of the same idea "judging it at registration would depend on load order"). C2: no precedent; a new published status member, so aFeaturecard.Considered and not offered: refusing the call at run time before the child starts (no request would open, and manual starts would be covered too). It turns the over-approximate reading into a refusal of every start and has no precedent; it is a different door from the one this card asks about.
7. What each option means in business terms
8. Four axes
os-decision-facets
① Long-term soundness: B makes the branch half read what its own reader already walks and removes the published "top-level only" caveat, at the price of two halves with different depths; A keeps one depth rule and no new behaviour; B+ is uniform but overturns a recorded ruling; C1 depends on load order; readings of A and B are close.
② Business pull: zero measured — 54 stored and example flows, 6 hold a call, 0 call a flow that itself holds a call; no report; installed flows unreadable from here.
③ AI-error resistance: A fails per run after requests open, can be swallowed by an error-handler edge, and is silent in the restart window; B refuses at activation by name; B's wrong verdict is a loud, reversible "not armed".
④ Startup non-sprawl: A adds nothing; B adds one narrowing and no contract member; B+ adds two; C2 adds a published surface with no reader.
Prior rulings read: subflow,arming,suspend,branch,region → 17 hits; ADR-0039 D7; thread: none
(
node scripts/pm/check-prior-rulings.mjs --terms subflow,arming,suspend,branch,regionatorigin/mainb706ec6ed2. Of its named set only ADR-0039 was opened: TL;DR, the two-track decision and D7. It rules the limit, not the gate's depth. The others it names are off-topic by title and were not opened. This card has no thread yet; #38876's thread was read in full, 11 comments, one maintainer ruling, 7336647907.)9. Business pull, measured
At PR head
51e71d58d3, overexamples/**,docs/qa/scenarios/**anddocs/qa/platform-checklist/**:git grep -nE "type:\s*['\"](subflow|map)['\"]|\"type\":\s*\"(subflow|map)\"" FETCH_HEAD -- 'examples/**' 'docs/qa/scenarios/**' 'docs/qa/platform-checklist/**'→ 7 lines: 6 flow call nodes and one UI view (task.view.ts).git ls-tree(326 files; JSON walked for objects withnodesandedges, TypeScript split ondefineFlow(,app-todo's four plain-object flows checked by grep, 0 call literals) finds 54 named flows: examples 38,order_to_cash.json9,travel_expense.json3,automation.json4. That is the dev's 51 plustravel_expense.json.showcase_task_done_notify_owner,showcase_project_closure,showcase_release_signoff,showcase_recalc_estimates,record_payment,qasub_second_notify_caller. Their 5 targets:showcase_notify_owner,showcase_closure_signoff,showcase_one_task_signoff,showcase_recalc_task_estimate,write_payment.config.flowName), but customer-authored flows live in deployments and are not in this population.10. Recommendation
B, staged to the branch half only.
Self-check: 只看①选 B;②③④ 是否翻转:是(②零拉动、④多背一条收窄,单看会选 A;③同向 B)— 字母不改,只定分期:仅分叉这一半、区域那一半与新展示面不取、定 p3。
11. Confidence gaps
builtin/subflow-node.ts; the measured fact on automation: the region refusal leaves its child run uncancelled with only a warn when the suspension chain cannot be read, and a region call reached through a child's top-level call still arms #29166 is about the region refusal.Served-tierline states the tier this analysis was dispatched at. The transcript check (verify-review-tier.mjs) is the seat's to run before posting.12. After the ruling
In every case: the seat records the ruling on this card and on #38876, and PR #39144 does not wait.
subflow-branch-guard.tsciting the ruling, assubflow-region-guard.tscites automation: the region refusal leaves its child run uncancelled with only a warn when the suspension chain cannot be read, and a region call reached through a child's top-level call still arms #29166, on PR fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed #39144's owed S1/S2 head. S1 already makes the entry, the changeset andflows.mdxname the residual. This card closes. No new card.registerFlow+ execute: both shapes, with and without afaultedge on the caller's call node. If the parent does not arm and fail as read, the dev reports the fork and builds nothing; no quiet fallback to A. Build:branchSuspendingCallalso asks each flow the armed flow's top-level calls reach (cycle-safe, throughflowCallKey); the trap carries the holding flow and the chain; the sentence names them; cause, record and re-judge wiring unchanged. Pins: nested concurrent and sequential, depth three, re-judge when the grandchild or the child changes (armed, declined, armed), controls, one ablation. One line insubflow-region-guard.tssays why the two halves differ. Vehicle: if the ruling lands before PR fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed #39144's S1/S2 head is pushed, that head, under flows: a fan-out to an approval and a subflow whose child pauses loses the parent branch continuation (the subflow branch never resumes) #38876 (entry 19 reworded once, one battery, one review delta). Otherwise the seat files aBugcard through the filing gate with the measured reproduction,Blocked-by:PR fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed #39144,domain:server, p3, and the PR adds a sibling entry on major 19.regionSuspendingCalldeepened the same way, both automation: the region refusal leaves its child run uncancelled with only a warn when the suspension chain cannot be read, and a region call reached through a child's top-level call still arms #29166 docblocks rewritten, a second entry, and a pointer comment on automation: the region refusal leaves its child run uncancelled with only a warn when the suspension chain cannot be read, and a region call reached through a child's top-level call still arms #29166 that seat ruling 6576815635 is superseded.Featurecard for a per-flow verdict that does not depend on a trigger, and this card closes with a pointer to it.13. Related
#38876 (parent card; Ruling A 7336647907; dev report 7349469809) · PR #39144 (arming half; review 7350002763, items S1 and S2) · PR #39030 (run-time half, +2499 / −64) · #29166 and PR #29329 (region twin, seat ruling 6576815635) · #28897 and PR #29096 (region half) · PR #33265 (retried-call half) · #28840 and PR #28875 (save-notice half) · #38838, #38875 and PR #38970 (parse twins) · #39032 (requests left pending by a refused run) · #3267 and ADR-0039 (the limit).
14. Filing answers
repo:objectstack@os-justinrecords it and, for B, dispatches adomain:serverdev.needs-user-decision,area:workflow,domain:server.Dedupe:
repo:objectstack-ai/objectstack nested subflow arming suspend→ HTTP 422 as written (the search API requires a type qualifier); withis:issue→ 14 hits, withis:pr→ 10. Open and on topic: #38876 only (this seat's own in-flight card; the question is outside Ruling A, and #38876 closes when PR #39144 merges, so the decision is carried here and linked there). Closed and related: #29166, #28897, #28846, #28840.is:issue is:open label:needs-user-decision subflow→ 0.is:issue transitive arming decline child fan-out subflow untriggered→ 0.is:issue suspending_subflow_on_branch→ 1 (#38876). No open card asks this question.Grading: area:workflow · Bug · Suggested-grade: p3 (loud at run time after PR #39030; zero corpus hits) · reach: read at PR #39144's head, not measured · evidence: read.
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnRnHBkY5SFRAUFpzs
os-dev-report
{ "issue": 38876, "status": "done", "round": "fix round 1 for L2 record 7350002763 (PASS at 51e71d58d3, should-fix S1 and S2, nit N3)", "branch": "claude/issue-38876-arming-decline", "pr": "https://github.com/objectstack-ai/objectstack/pull/39144", "head": "88faa547aa", "previous_head": "51e71d58d3", "session": "session_01QSeKYnRnHBkY5SFRAUFpzs", "premise_still_valid": true, "delta": { "S1": "The wrong sentence is corrected in three places: the semantic entry's `reason`, the changeset and flows.mdx. Each now states what the gate reaches: a flow is re-judged whenever a flow its calls reach is registered, so an armed flow is un-armed when a child it calls is registered or republished with a node that suspends. Each names the residuals met only at run time: (1) a run started without a trigger (this is the arming gate); (2) the same shape inside a called child's own graph when that child has no trigger of its own (top-level graph, one level deep, as the region half's); (3) a plugin pausing type. The subflow-branch-guard.ts header carries the same correction. Not built: the one-level-deep follow-up (the seat files it).", "S2": "`ConcurrentPauseRefusal.shape` gains a third value, `decision_without_fallback`, for the `unclaimedDefault` group, so the parse's verdicts and messages are unchanged. The spec jsdoc no longer claims the fields 'say the same thing structurally'. It now says they carry the facts a caller composes from, and that the prescription is derived from `shape`, never stored. For that shape `describeBranchSuspendingCall` says the decision declares conditions but no fallback edge and that a no-match run takes every branch together. It prescribes marking one branch edge `isDefault: true` (or labelling it `default`) and does not say 'Chain'. The contract jsdoc for `suspending_subflow_on_branch` and the entry's `replacement` add the same remedy. Pins: spec (the group's shape, and the same decision with an `isDefault` fallback refuses nothing) and engine (a decision routing to a suspending-child `subflow` and a `wait` is declined with that reason, warned once; CONTROL: with the fallback marked it arms).", "N3": "The engine's sequential sentence adds 'or, where only one of the branches should run, route them through a `decision`, which takes only the first edge whose condition holds'. Pinned in the three sequential cases.", "N1_N2": "Left as is, per the seat." }, "tests": "At 88faa547aa: service-automation full 305 files / 4535 tests passed; subflow-branch-arming-38876.test.ts 15/15. plugin-approvals full 147 files / 2365 passed. spec src/automation src/contracts src/migrations 113 files / 2603 passed (flow-concurrent-pause.test.ts 58/58). Typecheck spec and service-automation (incl. check:test-typecheck) exit 0. spec check:generated: all 14 up to date (no generated path moved). Ablation C, the new shape branch: `unclaimedDefault ? 'decision_without_fallback' : 'concurrent'` made always 'concurrent' (marker ABLATE38876C, blob 88f6970d6f → 02f508f67a, in 2 built spec files). Result: spec 1 failed / 57 passed (the structured-fields case), engine 1 failed / 14 passed (the decision case). Restored: blob == HEAD, rebuilt, --absent exit 0, tree clean.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 88faa547aa: 146 families, all 146 exit 0 (exit captured before any pipe). --ran: 'Run reconciliation — 146 derived, 146 run, 0 NOT-MEASURED, 0 UNRUN', exit 0. First pass in the fresh worktree: the cli guidance vitest and `pnpm --dir ui exec vitest run scripts/` exited 1 for unbuilt workspace modules. They passed after `pnpm build` (124 tasks, 114 cached); a first build attempt hit the 590 s cap and the second completed. check:query-options-erasure 377 s. PR check-runs at 88faa547aa: 67 success, 9 skipped, 0 failure. Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset: success. Dogfood battery (opt-in): success. Temporal Conformance skipped (selector). Workflow runs: 9 success, 2 opt-in skipped. mergeable_state clean.", "line_budget": "this round: 8 files, +108 / -28 vs 51e71d58d3; PR total: 25 files, +955 / -33 vs merge-base 4374517d02", "files_changed": [ ".changeset/38876-branch-suspending-subflow-arming.md", "content/docs/automation/flows.mdx", "packages/services/service-automation/src/subflow-branch-arming-38876.test.ts", "packages/services/service-automation/src/subflow-branch-guard.ts", "packages/spec/src/automation/flow-concurrent-pause.test.ts", "packages/spec/src/automation/flow-concurrent-pause.ts", "packages/spec/src/contracts/automation-service.ts", "packages/spec/src/migrations/entries/semantic/19.flow-branch-suspending-subflow-not-armed.ts" ], "pr_body_corrections_for_the_seat": [ "What changes: add the ui/ files (ui/packages/app-shell/src/views/metadata-admin/previews/flow-problems.ts one row; ui/packages/i18n/src/namespaces/studio/en.ts and zh.ts one string each; ui/.changeset/38876-branch-suspending-subflow-unbound-cause.md) and scripts/tenant-audit-census.mjs (already listed).", "What changes, Spec bullet: `shape` is now 'concurrent' | 'decision_without_fallback' | 'sequential'; the engine sentence for the decision group prescribes marking one branch edge `isDefault: true`.", "Acceptance notes: delete the bullet saying the Studio designer table is 'Not touched here'. The table gains the row, and its pin `flow-problems.runStatus-11779.test.ts` requires it.", "Acceptance notes, the bullet 'The decision asks only what the engine holds ...': replace it with this round's S1 text. An armed caller is un-armed when a child it calls is registered or republished with a node that suspends. Run-time only: non-trigger starts, and the shape inside an untriggered child's own graph (one level deep).", "Tests / Gates: head 88faa547aa. service-automation 305 / 4535; approvals 147 / 2365; spec dirs 113 / 2603; engine file 15/15; ablation C added; 146 families all exit 0; CI 67 success / 0 failure, dogfood battery success." ], "mcp_calls": "0 GitHub MCP. Non-GitHub MCP this round: send_message ×1 (seat line, after this comment).", "api_writes": "1 relay stroke this round: this report → POST /repos/objectstack-ai/objectstack/issues/38876/comments via post-stamped.mjs. git push not counted (1 push).", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": [ "Rebuilt the worktree with git worktree add on the existing local branch at 51e71d58d (== origin), base unchanged; no origin/main merge this round (no conflict reported).", "The sequential reading's no-match pass on a `decision` without a fallback (traversalPasses pushes the whole set) keeps shape 'sequential'. S2 named the concurrent group only, and that pass's parse message has no fallback-specific prescription either." ] }objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Maintainer ruling · 2026-12-02T21:58Z · on decision analysis 7350608453 (whether the arming gate judges a branch shape held inside a called child flow).
The maintainer, verbatim, in seat repo:objectstack@os-justin's session: 「B 往下查到底(推荐)」.
Ruled B, staged to the branch half only, as analysis §12 states it:
branchSuspendingCallalso asks each flow reached by the armed flow's top-level calls, at any depth and cycle-safe (throughflowCallKey).regionSuspendingCall) stays one level deep (seat ruling 6576815635 on automation: the region refusal leaves its child run uncancelled with only a warn when the suspension chain cannot be read, and a region call reached through a child's top-level call still arms #29166 stands; B+ is not taken). C is not taken.A ruling with a premise. The dev first measures the nested shape through
registerFlow+ execute: both shapes, with and without afaultedge on the caller's call node. If the parent does not arm and fail as read, the dev reports the fork and builds nothing. There is no quiet fallback to A.Vehicle: folded into PR #39144, a new head under #38876. The S1/S2 head
88faa547aawas pushed while the PR was held for this ruling (hold on #39144). The PR is unmerged, so premise 7 holds:19.flow-branch-suspending-subflow-not-armedis reworded once (its surface no longer says "TOP-LEVEL graph" of the branch half), and theFLOW_UNBOUND_CAUSESjsdoc likewise;Declarations stay as the PR has them:
!title,Clause-②: no (narrowing),Metadata-protocol: narrowed.Pins: nested concurrent and sequential shapes; depth three; re-judge when the grandchild or the child changes (armed, declined, armed again); controls; one ablation. One line in
subflow-region-guard.tssays why the two halves differ in depth.feat(automation)!: the branch arming decline reads down the call chai…
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnRnHBkY5SFRAUFpzs
os-dev-report
{ "issue": 38876, "status": "done", "round": "fix round 2: maintainer ruling 7360068553 「B 往下查到底(推荐)」 on analysis 7350608453 §12, branch half only", "branch": "claude/issue-38876-arming-decline", "pr": "https://github.com/objectstack-ai/objectstack/pull/39144", "head": "ceee5295a1", "previous_head": "88faa547aa", "session": "session_01QSeKYnRnHBkY5SFRAUFpzs", "premise_still_valid": true, "premise_measurement": "Measured before building, at 88faa547aa, through registerFlow + execute on the real engine (scratch test, deleted, not committed). Shape: triggered parent p_parent → subflow call_c → child c_child (no trigger) → in c_child a subflow sub_g → grandchild g_hold, which parks on a timer wait. Each cell was run without and with a `fault` edge on call_c. CONCURRENT, c_child's start fans out to its own wait and to sub_g: armed=true. In both the immediate order and the late order (a 40 ms delay before the own wait), with and without the fault edge, execute answered `paused` and the parent's run then turned `failed` with 'subflow descendant failed: durable pause on concurrent branches: node 'start' …'; nothing was left parked. The fault edge does not route it. SEQUENTIAL, x1's true edge to sub_g before a true edge to s_after: armed=true. Without the fault edge execute answered success:false at once ('Node 'call_c' failed: subflow 'c_child' failed: durable pause before a later branch …'). With it, success:true, routed through the fault edge (summary: call_c failure 1). This matches analysis §2 and §12; no fork; B built.", "delta": { "B_walk": "subflow-branch-guard.ts: the old body is now ownBranchSuspendingCall, the reading of ONE flow's own top-level graph, unchanged. branchSuspendingCall walks depth-first in declaration order from the armed flow through every top-level `subflow` / `map` call (topLevelCallKeys), keyed through `flowCallKey` as a run dispatches the call, each flow read once (cycle-safe). It returns the first trap found. The trap gains `holder` (the flow whose graph holds the shape) and `through` (the call chain, both ends). Region-body calls are not followed.", "B_sentence": "describeBranchSuspendingCall opens a nested trap with: the flow it calls, 'HOLDER' (reached through 'A' → … → 'HOLDER'): its node …, for all three shapes. The decline warn says 'armed the moment the branches of HOLDER change'.", "unchanged": "Cause `suspending_subflow_on_branch`, the decline record subflowBranchDeclinedFlows, describeUnboundReason, activateFlowTrigger order and rejudgeSubflowCallers are unchanged. Re-judge on a grandchild change is confirmed: transitiveSubflowCallers re-offers the parent and the bound check asks branchSuspendingCall, which now walks. Pinned (armed → declined → armed) for a grandchild change and for a child change.", "region_half": "regionSuspendingCall untouched, one level deep. subflow-region-guard.ts gains one sentence after the #29166 paragraph on why the halves differ in depth: the branch failure can arrive after the parent has parked (un-routable, lost unsaid across an engine restart in that window), while a region refusal is always synchronous and routable.", "prose": "Reworded in place, no sibling entry. Entry 19.flow-branch-suspending-subflow-not-armed: `surface` now covers the flow's own graph AND every flow its top-level calls reach, at any depth (no 'TOP-LEVEL graph' wording), and adds that the called flow needs no trigger; `reason` drops the child-graph residual and states the measured reason for depth; `acceptanceCriteria` covers flows reached by calls, with the reason naming the holder and chain. The `FLOW_UNBOUND_CAUSES` jsdoc says 'on its top-level graph or that of any flow its top-level calls reach'. The changeset FROM line and its service-automation paragraph match. flows.mdx: the activation paragraph covers the deep reading, says a grandchild change un-arms too, and gives the region half's one-level reason. The subflow-branch-guard.ts header gains the ruling and the measurement, and its residual list is now non-trigger starts, region-body calls and plugin pausing types.", "declarations": "Unchanged: `!` title, Clause-② no (narrowing), Metadata-protocol narrowed; no new export, key or cause." }, "tests": "At ceee5295a1: service-automation full 305 files / 4544 tests passed. subflow-branch-arming-38876.test.ts 24/24; new describe 'the branch half reads down the call chain' has 9 cases: nested concurrent with and without a fault edge, nested sequential, depth three (p_parent → c_mid → d_deep), re-judge on grandchild change and on child change (each armed → declined → armed), a two-flow call cycle arms, and two CONTROLs (a child with one wait arms; a child whose loop body calls a suspending flow, with a fault edge on the parent's call, arms because the region half stays one level deep). plugin-approvals full 147 / 2365 passed (after `pnpm build`: 4 files first failed to resolve the unbuilt devDependency @objectstack/trigger-record-change in the fresh worktree). spec src/automation src/contracts src/migrations 113 / 2603 passed. Typecheck spec and service-automation (incl. check:test-typecheck) exit 0. spec check:generated: all 14 up to date. Ablation D, the deep walk: `for (const next of topLevelCallKeys(…))` changed to iterate nothing unless key === 'ABLATE38876D' (blob f3bbd6c30a → 074347b1f0; marker in 2 built files). Result: unit 6 failed / 18 passed, exactly the six nested cases; the cycle, both controls and the 15 one-level cases stay green. Restored: blob == HEAD f3bbd6c30a, `git diff HEAD` empty, rebuilt, ablation-dist-preflight --absent exit 0, tree clean.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at ceee5295a1: 146 families, all 146 exit 0 (exit captured before any pipe). --ran: 'Run reconciliation — 146 derived, 146 run, 0 NOT-MEASURED, 0 UNRUN', exit 0. `pnpm build` was owed in the fresh worktree: a first attempt hit the 590 s cap, the second ran 124 tasks, 122 cached. PR check-runs at ceee5295a1: 67 success, 9 skipped, 0 failure. Test Core, Test UI, Lint & Repo Gates, TypeScript Type Check, Check Changeset, Dogfood Regression Gate: success. Dogfood battery (opt-in) and shards 1-3/3: success. mergeable_state clean; still draft (not marked ready).", "line_budget": "this round: 8 files, +243 / -41 vs 88faa547aa; PR total: 26 files, +1157 / -33 vs merge-base 4374517d02", "files_changed": [ ".changeset/38876-branch-suspending-subflow-arming.md", "content/docs/automation/flows.mdx", "packages/services/service-automation/src/engine-enablement-facet.ts", "packages/services/service-automation/src/subflow-branch-arming-38876.test.ts", "packages/services/service-automation/src/subflow-branch-guard.ts", "packages/services/service-automation/src/subflow-region-guard.ts", "packages/spec/src/contracts/automation-service.ts", "packages/spec/src/migrations/entries/semantic/19.flow-branch-suspending-subflow-not-armed.ts" ], "pr_body_corrections_for_the_seat": [ "1. 维护者速读, first bullet: the shape is now also caught inside a subflow the flow calls, at any depth. Suggested insertion after 「如果某个分叉的两条分支都会停下来等待」: 「(包括它调用的子流程里,不论隔几层)」.", "2. What changes, Spec bullet: `shape` is 'concurrent' | 'decision_without_fallback' | 'sequential'. The engine's sentence for the decision group prescribes marking one branch edge `isDefault: true`.", "3. What changes, Engine bullet: append that `branchSuspendingCall` also reads every flow the armed flow's top-level calls reach, at any depth, cycle-safe through `flowCallKey`, by maintainer ruling 7360068553. The trap carries `holder` and `through`, and the reason names them. The region half stays one level deep, with one sentence in `subflow-region-guard.ts` saying why. Add subflow-region-guard.ts to the touched files.", "4. What changes, Migration bullet: entry `19.flow-branch-suspending-subflow-not-armed` covers the flow's own graph and every flow its calls reach (reworded in place, no sibling entry).", "5. What changes: add the ui/ files: ui/packages/app-shell/src/views/metadata-admin/previews/flow-problems.ts (one row), ui/packages/i18n/src/namespaces/studio/en.ts and zh.ts (one string each), ui/.changeset/38876-branch-suspending-subflow-unbound-cause.md.", "6. Acceptance notes: delete the bullet saying the Studio designer table is 'Not touched here'. It gains the row, and the pin flow-problems.runStatus-11779.test.ts requires it.", "7. Acceptance notes, the bullet 'The decline asks only what the engine holds …': replace it with: an armed caller is un-armed when a child or grandchild it calls is registered or republished with a node that suspends; the shape held in any flow the caller's calls reach declines the caller; run-time only: a run started without a trigger, region-body calls (region half, one level deep) and plugin pausing types.", "8. Acceptance notes: add the premise measurement. Nested concurrent answered paused, then failed the parent even with a fault edge; nested sequential failed at once, or routed through a fault edge as a success. Both armed before.", "9. Tests: head ceee5295a1. service-automation 305 files / 4544 tests; approvals 147 / 2365; spec dirs 113 / 2603; engine file 24/24 (9 deep-walk cases). Ablations: add C (decision group shape: spec 1 red, engine 1 red) and D (deep walk: engine 6 red / 18 green), each restored with a blob/diff proof.", "10. Gates: head ceee5295a1, 146 families, all exit 0, --ran 146/146. CI 67 success / 0 failure; dogfood battery success." ], "mcp_calls": "0 GitHub MCP. Non-GitHub MCP this round: send_message ×1 (seat line, after this comment).", "api_writes": "1 relay stroke this round: this report → POST /repos/objectstack-ai/objectstack/issues/38876/comments via post-stamped.mjs. git push not counted (1 push).", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": [ "No origin/main merge this round: GitHub reports the PR clean and no conflict or main-caused red appeared.", "The deep walk follows top-level `subflow` / `map` nodes of each flow whether or not they are reachable from its start. suspendingNode follows only reachable calls. An unreachable top-level call holding the shape would decline, the over-approximation side, consistent with the parse's any-path reading.", "The 'one line' in subflow-region-guard.ts is one sentence over four comment lines." ] }docs(spec,automation): the ui changeset joins the root changeset; the…
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnRnHBkY5SFRAUFpzs
os-dev-report
{ "issue": 38876, "status": "done", "round": "fix round 3: delta contract review 7362158969 at ceee5295a1 (PASS), nits N8 and N6 taken, N7 taken (one docblock), N5 left for a follow-up", "branch": "claude/issue-38876-arming-decline", "pr": "https://github.com/objectstack-ai/objectstack/pull/39144", "head": "25e0722e29", "previous_head": "ceee5295a1", "session": "session_01QSeKYnRnHBkY5SFRAUFpzs", "premise_still_valid": true, "delta": { "N8": "Confirmed against primary sources first: ui/AGENTS.md line 187 says changesets are written in the root `.changeset/`, that the root config does not read `ui/.changeset/`, and not to add new ones there; docs/releases-maintenance.md line 54 says the same. Root changesets already name `@object-ui/*` packages (e.g. .changeset/37029-list-back-scroll-key.md). Folded into the existing root changeset .changeset/38876-branch-suspending-subflow-arming.md: frontmatter gains '@object-ui/app-shell': patch and '@object-ui/i18n': patch, and the body gains one paragraph with the designer-row sentence. ui/.changeset/38876-branch-suspending-subflow-unbound-cause.md deleted. One root changeset still carries the PR's declaration lines and the one adr-0087 marker.", "N6": "Entry 19.flow-branch-suspending-subflow-not-armed `reason`: the 'met at run time only' list now reads: (1) a run started without a trigger; (2) the shape held in a flow reached only through calls inside region bodies (this reading follows top-level calls; a region-body call whose child can suspend is itself declined at arming by the region decline, one level deep); (3) a pausing node type contributed by a plugin. The changeset's 'Met only by the run-time branch refusal' list now names the same three cases. The subflow-branch-guard.ts header carried the same wrong residual; corrected to match.", "N7": "The topLevelCallKeys docblock says it follows calls reachable from the flow's start or not, and that this over-approximation is deliberate (the parse's any-path reading).", "N5": "Not taken (left for a follow-up, as the seat said)." }, "tests": "Prose and docblock only; no behaviour changed, so no test or ablation is owed (os-dev: ablate only where a tested behaviour moved). Changeset gates run locally at 25e0722e29: `node scripts/check-changeset-no-major.mjs --base origin/main --event EVENT` (event.json built from the live PR payload): exit 0, '✓ LEVEL AXIS: this PR declares clause-② no (narrowing) and metadata-protocol narrowed, and no package whose published source … it moves is graded patch'. `node scripts/check-empty-changeset.mjs --base origin/main`: exit 0 ('1 declaring changeset(s) added'). `node scripts/check-adr-0087-registration.mjs --base origin/main`: exit 0, reading the changeset as [BREAKING+bang+clause-②-narrowing+metadata-protocol-narrowed] with `registered flow-branch-suspending-subflow-not-armed`.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 25e0722e29: 146 families, all 146 exit 0 (exit captured before any pipe). --ran: 'Run reconciliation — 146 derived, 146 run, 0 NOT-MEASURED, 0 UNRUN', exit 0. `pnpm build` was owed in the rebuilt worktree: a first attempt hit the 590 s cap, the second ran 124 tasks, 123 cached. The session's worker restarted once mid-union, after 46 families were recorded. Re-reading the state showed a clean tree, head == origin, and no process left. The union resumed at family 47; nothing was re-run blind. PR check-runs at 25e0722e29: 67 success, 9 skipped, 0 failure, including Check Changeset, Lint & Repo Gates, TypeScript Type Check, Test Core, Test UI, Dogfood battery (opt-in) and its shards. mergeable_state clean; draft.", "line_budget": "this round: 4 files, +16 / -15 vs ceee5295a1 (one file deleted); PR total: 25 files, +1158 / -33 vs merge-base 4374517d02", "files_changed": [ ".changeset/38876-branch-suspending-subflow-arming.md", "packages/services/service-automation/src/subflow-branch-guard.ts", "packages/spec/src/migrations/entries/semantic/19.flow-branch-suspending-subflow-not-armed.ts", "ui/.changeset/38876-branch-suspending-subflow-unbound-cause.md (deleted)" ], "pr_body_edits": [ "Acceptance-notes bullet (N6), corrected, replacing the bullet that begins 'The decline asks only what the engine holds' (and superseding correction 7 of report 7361888966): 'The gate reads the armed flow's own top-level graph and that of every flow its top-level calls reach, at any depth. It re-judges whenever a flow those calls reach is registered, so an armed caller is un-armed when a child or grandchild is registered or republished with a node that suspends. Met only by the run-time branch refusal: a run started without a trigger; the shape held in a flow reached only through calls inside region bodies (a region-body call whose child can suspend is itself declined at arming, by the region half, one level deep); and a pausing node type a plugin registers.'", "What changes: the ui/ bullet (correction 5 of 7361888966) no longer lists ui/.changeset/38876-branch-suspending-subflow-unbound-cause.md. Instead: the root changeset carries '@object-ui/app-shell' and '@object-ui/i18n' (patch) and the designer-row sentence; the ui/.changeset file is gone. The three ui source files (flow-problems.ts one row; en.ts and zh.ts one string each) stay listed.", "Tests / Gates: head 25e0722e29; 146 families all exit 0; CI 67 success / 0 failure, dogfood battery success. Test counts are unchanged from ceee5295a1 (prose-only round).", "Corrections 1-4, 6, 8 and 9 of report 7361888966 stand as written (the 维护者速读 subflow insertion, the Spec / Engine / Migration bullets, deleting 'Not touched here', the premise measurement, and the ablations C and D)." ], "mcp_calls": "0 GitHub MCP. Non-GitHub MCP this round: send_message ×1 (seat line, after this comment).", "api_writes": "1 relay stroke this round: this report → POST /repos/objectstack-ai/objectstack/issues/38876/comments via post-stamped.mjs. git push not counted (1 push).", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": [ "The two @object-ui packages are graded patch inside the root changeset, as the deleted ui changeset graded them and the first delta review accepted. The level axis passed with them at patch. With the fixed version group the release level collapses to the group's anyway.", "No origin/main merge: GitHub reports the PR clean, with no conflict and no main-caused red." ] }