Skip to content

flows: a fan-out to an approval and a subflow whose child pauses loses the parent branch continuation (the subflow branch never resumes) #38876

Description

@objectstack-fleet

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 (root a_review, child c_review) and two suspensions (root a_review, child c_review). Each decision resumes its own run; the parent completes on a_review's decision; the subflow branch's continuation after sub never runs. The parent's own wait on the subflow is dropped.
  • Not refused by the parse, by design: subflow and map are not judged by type (the region rule's ruling D, decision batch 🔗 Broken links detected in documentation #153 item 1, quoted in packages/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

Grading: area:workflow · Bug · Suggested-grade: p2 (a branch continuation silently lost) · reach: measured through registerFlow + execute.

Blocked-by: #38667

Activity

  1. added
    bug
    priority:p2
    area:workflow
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    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:server added. p2 stands: the parent flow never continues after the child approval, with no error. Unlock when #38667 closes.

  3. added
    domain:server
    pm:blocked
    on Dec 1, 2026
  4. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Unblock · pm:blocked → pm:queue · 2026-12-01T12:56Z

  5. added
    pm:queue
    and removed
    pm:blocked
    on Dec 1, 2026
  6. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Unlocked 2026-12-01T12:57Z: pm:blocked → pm:queue, grade unchanged. The only Blocked-by: target, #38667, closed by PR #38889 (merged, 8338d07029). The engine code these cards touch now lives in the facet modules under packages/services/service-automation/src/ (e.g. the run and flow-slot facets); re-measure the landing point on main before dispatch.

  7. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    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 subflow whose 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.ts and read the same traversal).

  8. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Claim: PM loop round 1
    Session: session_01QSeKYnrQ7UMtHofKQVjcH2
    Account: os-justin
    Branch: claude/issue-38876-subflow-branch-pause-lost
    Worktree: objectstack-issue-38876
    Domain: domain:server
    Seat: repo:objectstack@os-justin
    File surface: packages/services/service-automation/src/ (reason: the run-time refusal and its arming half, beside region-suspension-refusal.ts and 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: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the engine's traversal (packages/services/service-automation, objectstack) awaits a concurrent fan-out's branches under Promise.all and a subflow/map child'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 + execute
    Thread-read: 7316340438
    Premise: holds (origin/main 4203db7, 2026-12-02T01:57Z: PRs #38871 and #38970 landed the parse halves; subflow / map are not judged by type (ruling D); region-suspension-refusal.ts refuses 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.

  9. added
    pm:dispatched
    on Dec 2, 2026
  10. 7 remaining items

  11. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    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."
     ]
    }
  12. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

    维护者速读

    • 问题:带触发器的流程调用一个子流程,而这个子流程内部"两条分支都要停下来等人"(其中一条是再去调一个会等审批的子流程)时,系统在激活时不拦,凡是两条分支都真停下来的那次触发,都会先把审批待办发出去、随后整次运行报错失败;碰到的是把并行审批封装成可复用子流程的搭建者,仓库里 54 个示例与测试流程中没有一例,真实客户环境读不到。
    • 选项:保持只查流程自己这一层——这类流程照常激活、每次触发失败并留下作废的审批待办,不需要新 PR;激活时连同它调用到的各层子流程一起查——这类流程激活不了,状态页写明是哪个子流程的哪个分叉,约 1 个 PR(赶在在审那个 PR 改稿前定,可并进去不另开);改为子流程自己发布时判定——结论会随加载先后变化,要可靠就得新增"未带触发器的流程也有健康状态"的展示,属新功能,至少 1 个 PR 且无先例。
    • 推荐:激活时连同各层子流程一起查,先只做"分叉"这一类,"循环或并行块里调用子流程"那一类维持上月席位的裁定不动;理由是你上次定下的是"激活时能看出来的,就不要等每次触发失败",这条理由不分层级。
    • 不定会怎样:在审的 PR 按"只查一层"上线,并在升级说明里写明这一限制;这类流程继续能激活、每次触发失败,个别情况下(两条分支之间服务恰好重启)有一条分支会无声丢失。

    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

    3. Governing text

    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 a Feature card, not an option of this one.

    5. Premises, each with its re-check

    Fetch first: git fetch origin pull/39144/head.

    1. The decline never asks a child's own shape. git show FETCH_HEAD:packages/services/service-automation/src/subflow-branch-guard.ts | grep -c "branchSuspendingCall(" → 1 (the definition; no recursion), and line 93 reads concurrentPauseRefusals(flow, pauses) over flows.get(name) only.
    2. The one pinned depth case is suspension reach, not shape. git show FETCH_HEAD:packages/services/service-automation/src/subflow-branch-arming-38876.test.ts | grep -n "two calls away" → line 162.
    3. A late failure is not routable. 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.ts line 184 returns success: false.
    4. One gate half already reads the whole call chain. 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).
    5. No registration check reads another flow. git show FETCH_HEAD:packages/services/service-automation/src/flow-registration-checks.ts | grep -c "flows\.get" → 0.
    6. A flow without a trigger has no status row. flow-definitions.ts line 313: if (!resolved) return undefined; // manual / screen flow — nothing to bind.
    7. 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 is unmerged. gh api repos/objectstack-ai/objectstack/pulls/39144 --jq .merged → false (2026-12-02).
    8. Business pull, measured: 0. See section 9.

    6. Options × real cost × workload

    What it does What the customer sees Workload
    A Leave the decline one level deep. Name the residual in the entry, the changeset and flows.mdx (review item S1 already owes this), and record the ruling in a docblock. The nested automation activates. Each run that reaches both waits opens requests, then fails with a named error; the requests stay pending until swept. With an error-handler edge on the calling step, some of those runs read as completed. 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.
    B The branch half also asks every flow the armed flow's top-level calls reach, at any depth, cycle-safe. Same cause, same decline record, same re-judge path (rejudgeSubflowCallers already re-offers transitive callers and already asks branchSuspendingCall). The reason names the child that holds the shape and the calls that lead there. Region half unchanged. The nested automation saves but is not switched on; the status page names the sub-process, its branching step and the fix. A parent whose sub-process only can take both waits (conditions the check cannot evaluate) is switched off too, though its runs work today. 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).
    B+ B, and the region half follows: regionSuspendingCall deepened the same way. Overturns seat ruling 6576815635. As B, plus: a parent that today routes a child's region failure through an error-handler edge and completes (measured on #29166) stops being switched on. 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).
    C The child owns the verdict when it registers. C1: refuse to register a child that holds the shape. C2: register it and flag it. C1: whether a sub-process is refused depends on whether the flow it calls was loaded before it; the same package can boot clean or refused. C2: a flag appears on the sub-process, but the parent still activates and still fails unless B is also built to read the flag. C1: no precedent (premise 5; subflow-retry-guard.ts says of the same idea "judging it at registration would depend on load order"). C2: no precedent; a new published status member, so a Feature card.

    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

    • A: the inspector signs off the building you filed for and does not open the prefabricated module inside it; the module's fault shows the first time a tenant uses it, with a clear notice on the door.
    • B: the inspector opens the modules too, so the building does not open until the fault is fixed. Buildings whose module is only suspect are kept shut as well.
    • B+: the same for a second kind of fault, where an owner may have planned for the failure with an emergency exit that works today.
    • C: the module is stamped at the factory. Either the stamp depends on which parts arrived first, or a new notice board has to be built for stamps nobody is reading yet.

    8. Four axes

    • Long-term soundness (leads). End state: ADR-0039 keeps one parking place per run for the foreseeable future, so the product promise two years out is "an automation the platform can already see will break on that limit is told so before it runs, in one rule". Salesforce Flow and Power Automate check each flow on its own at activation and leave cross-flow faults to run time; Camunda's token model, the ADR's named long-term reference, has no such limit. This platform already reads across flows at activation, its reader already walks the whole call chain to learn that a child suspends, and one half (retried call-outs) already judges a shape held deep in a child. Stopping the branch half at depth one is an implementation boundary that the entry's "TOP-LEVEL graph" wording then publishes. B removes that caveat. Its cost on this axis is real: the two "pause where the run cannot park" halves would differ in depth, for a stated reason (the region failure is always synchronous and routable; the concurrent branch failure can arrive after the parent has parked, un-routable, and has the restart window). A keeps one depth rule across both halves and adds nothing. C1 is unsound for the reason ruling D gives. The readings of A and B are close, not lopsided.
    • Business pull. Zero measured: no stored or example flow has the nested shape, and none has even the precondition (section 9). Nobody has reported it. Installed flows are outside what this repo can read.
    • Keeps AI from getting it wrong. An AI that composes a parent and a reusable sub-process gets a green activation under A and learns of the mistake only from failed runs, after approvers were notified. With an error-handler edge on the calling step the failure is swallowed and the run reads as finished; in the restart window the loss is silent. B answers at activation, by name. B's own failure mode is a working parent switched off by the over-approximate reading: loud (status row, one warning) and reversible by editing either flow.
    • Startup focus. A adds nothing to carry. B adds no key, cause, export or record, but one more narrowing in the upgrade guide (none extra if entry 19 is reworded before it ships). B+ adds a second and reopens a settled ruling. C2 adds a new published surface with no reader.

    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,region at origin/main b706ec6ed2. 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, over examples/**, docs/qa/scenarios/** and docs/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).
    • A structural scan over git ls-tree (326 files; JSON walked for objects with nodes and edges, TypeScript split on defineFlow(, app-todo's four plain-object flows checked by grep, 0 call literals) finds 54 named flows: examples 38, order_to_cash.json 9, travel_expense.json 3, automation.json 4. That is the dev's 51 plus travel_expense.json.
    • 6 flows hold a call: 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.
    • No flow is in both sets. So 0 parents, triggered or not, call a child that holds a call at all, and the nested shape needs one. 0 hits, whatever the child's branches look like.
    • The zero holds for the repo's corpus. The probe is live (it finds the 6 calls) and asks a key the contract has (config.flowName), but customer-authored flows live in deployments and are not in this population.

    10. Recommendation

    B, staged to the branch half only.

    • Reason: the maintainer's own ruling on this card's parent chose activation-time refusal over per-run failure for this exact symptom, with zero corpus hits already on the table, and its reasons do not depend on call depth. The contrary reading is a seat ruling on the twin, and its ground (a routable child failure) holds here only in part.
    • Named, as the rule requires: the first-axis readings of A and B are close and the workload differs by far more than 3× (A is 0 new PRs; B is one narrowing with a contract-tier review and a battery, unless folded). If the maintainer weighs that gap above the depth-independence of his earlier reasons, A is the coherent choice and costs nothing.
    • Zero pull sets the staging, not the letter: the region half does not follow, no status surface for flows without a trigger is added, and the work is graded p3.
    • Not A: it publishes "top-level only" as contract for a boundary that is the implementation's, and leaves the swallowed-failure and restart-window cases to run time.
    • Not B+: the region failure is always synchronous, always routable and has no restart window, so the 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 ground holds there in full; overturning it with zero pull is expansion.
    • Not C: C1's verdict depends on load order; C2 un-arms nothing by itself and needs a new published surface.

    Self-check: 只看①选 B;②③④ 是否翻转:是(②零拉动、④多背一条收窄,单看会选 A;③同向 B)— 字母不改,只定分期:仅分叉这一半、区域那一半与新展示面不取、定 p3。

    11. Confidence gaps

    1. The nested behaviour is read, not measured. Neither the contract review nor this analysis ran parent → child → grandchild. Which arm the concurrent shape takes (both suspensions collected, or a late failure) is timing; no reading here says how often each occurs.
    2. That a child's branch refusal reaches the caller's call node as a plain failed child (routable) is read from 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.
    3. The zero is the repo's corpus. No installed-base reading exists.
    4. B's size has no landed precedent. The three PRs named are bounds by kind, not estimates.
    5. The vendor comparison is from the analyst's knowledge and was not re-read for this card.
    6. How many working parents B would switch off through the over-approximate reading is unknown outside the corpus (0 inside). Review item S2 (a decision without a fallback edge gets the wrong reason and remedy) matters more at depth and should land first.
    7. Whether entry 19 may be reworded rather than joined by a sibling entry rests 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 being unmerged at the time of the ruling (premise 7).
    8. The Served-tier line 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.

    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

    Dedupe: repo:objectstack-ai/objectstack nested subflow arming suspend → HTTP 422 as written (the search API requires a type qualifier); with is:issue → 14 hits, with is: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.

  13. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    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."
     ]
    }
  14. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    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:

    A ruling with a premise. The dev first measures the nested shape through registerFlow + execute: both shapes, with and without a fault edge 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 88faa547aa was pushed while the PR was held for this ruling (hold on #39144). The PR is unmerged, so premise 7 holds:

    • entry 19.flow-branch-suspending-subflow-not-armed is reworded once (its surface no longer says "TOP-LEVEL graph" of the branch half), and the FLOW_UNBOUND_CAUSES jsdoc likewise;
    • one dogfood battery and one contract-review delta by the same reviewer;
    • no sibling card and no sibling entry.

    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.ts says why the two halves differ in depth.

  15. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    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."
     ]
    }
  16. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    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."
     ]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowbugdomain:serverpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions