Repository navigation
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 while sizing the fan-out refusal (os-dev-report 7304672031, shape S7). ⛔ Not a claim. domain:* and the queue are triage's.
维护者速读
- 出了什么事:一个普通节点有两条带条件的出边,两个条件都成立,且第一条分支走到一个会挂起的步骤(如审批)时,第二条分支永远不会执行,也没有任何报错。
- 用户看到的:流程看起来正常结束了,但本该同时触发的另一条分支被悄悄丢掉。
- 要你做什么:无(分诊定级与路由)。
What is measured
- Through
registerFlow+ execute on the real engine and approval service (the sameregisterFlowdoor a metadata save reaches; not yet driven over HTTP):x1 -[true]-> a_review,x1 -[true]-> b_review.a_reviewpauses, the suspension unwinds the edge loop,b_reviewnever opens, and aftera_review's decision the run completes withb_reviewnever run. - Mechanism (read, not yet re-measured here): conditioned out-edges of a non-decision node run one after another in
packages/services/service-automation/src/dag-traversal.ts; the engine comment there says every conditioned edge whose condition holds runs, so a later true branch is dropped whenever an earlier one pauses. An inclusive decision (mode: inclusive) takes the same sequential loop and was not measured separately.
Expected
No branch whose condition holds is silently dropped. Either the remaining true branches run (resume order made explicit), or the shape is refused loud — at publish where it is static, at run time where it is not. The builder measures and chooses, by the precedent of #38838 (PR #38871) and the region rule (#3267).
Notes
- PR fix(spec)!: refuse two durable pauses on concurrent branches of one flow fan-out #38871 refuses the concurrent (unconditional) fan-out form at publish and, by its "any path counts" reading, also refuses two conditioned branches that both reach a pausing step on a fan-out; this card is the SEQUENTIAL conditioned-edge loop of one node, which that parse rule does not cover. Re-measure on main after fix(spec)!: refuse two durable pauses on concurrent branches of one flow fan-out #38871 merges.
- Dedupe:
conditional edges pause drops sibling branch(11 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; the rest closed and unrelated, e.g. design(metadata): address behavioural metadata by package — key flows, actions, jobs and other non-object types by (package, name); re-open ADR-0028 (replaces #30806 phase 3 renames) #31527, QA run · release-18.3.0-w4-c3a (44/44) · 7fa9873f · 2026-11-02 · 41 PASS / 2 PARTIAL / 1 FAIL / 0 BLOCKED / 0 NOT-RUN #28942),inclusive decision pause later branch never runs(18: 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; os migrate meta --stored: list the stored permission sets whose View All / Modify All lost their field reach in 19 (follow-up of #36055 ruling A) #37375, security (v19 major): View All / Modify All stop voting on fields — ADR-0087 conversion addsviewAllFields: truebeside them,superuserFieldVoteandsecurity-superuser-field-mask-inertretire (step 3 of #34365, behaviour change) #36055 closed, unrelated). No open card covers it.
Grading: area:workflow · Bug · Suggested-grade: p2 (a branch silently lost, no error) · reach: measured through registerFlow + execute.
Blocked-by: #38667
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: a branch is dropped 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:55Zobjectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Unlocked 2026-12-01T12:56Z:
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
Claim: PM loop round 1
Session:
session_01QSeKYnrQ7UMtHofKQVjcH2Account:
os-justinBranch:
claude/issue-38875-conditioned-edge-pause-dropWorktree:
objectstack-issue-38875Domain:
domain:serverSeat:
repo:objectstack@os-justinFile surface:
packages/spec/src/automation/flow.zod.ts,packages/spec/src/automation/flow-concurrent-pause.tsand the tests beside them,packages/spec/src/migrations/entries/semantic/(reason: the narrowing's semantic entry, as PR #38871 keyed its own),packages/plugins/plugin-approvals/src/flow-route.integration.test.ts(reason: the reproduction pin, as on #38838),content/docs/automation/flows.mdx,packages/services/service-automation/src/dag-traversal.ts(reason: only the run-time half, if measurement shows a shape publish cannot see) (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 (narrowing)
Metadata-protocol: narrowed
Responsibility: the engine's sequential conditioned-edge loop (
packages/services/service-automation/src/dag-traversal.ts~795–811 on origin/main 8338d07, objectstack) unwinds on a pause and never returns to the later true edges | PR #38871 covers the concurrent unconditional fan-out only | flow authors whose non-decision node (or inclusive decision) has two conditioned out-edges and the first reaches a pause; measured once through registerFlow + execute, 0 shipped instances not yet countedThread-read: 7311886292
Premise: holds (origin/main 8338d07, 2026-12-01T13:21Z: the loop at
dag-traversal.ts:795–811awaits each true conditioned successor in turn; a suspension unwinds it, so later true edges are never visited)Serial constraints cleared: no in-flight claim names these paths (
check-handover --inflight, 2026-12-01T13:21Z); #38876 (same area) stays queued behind this card; #38905 ranks after both by the maintainer's split ruling.wip(spec): refuse a pausing branch taken before its siblings (#38875)
test(spec,plugin-approvals): pin the sequential pause refusal and its…
docs(spec): semantic entry, changeset and flows guide for the sequent…
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
os-dev-report
{ "issue": 38875, "status": "done", "branch": "claude/issue-38875-conditioned-edge-pause-drop", "pr": "https://github.com/objectstack-ai/objectstack/pull/38970", "session": "session_01QSeKYnrQ7UMtHofKQVjcH2", "premise_still_valid": true, "summary": "Head 6fcf88d894 (draft PR #38970, base 8338d07029). FlowSchema now refuses, beside the #38871 fan-out rule in packages/spec/src/automation/flow-concurrent-pause.ts and sharing its graph reader, pause population and any-path reading, an out-edge whose branch reaches a pausing node when the same traversal of its node would take another out-edge after it (sequentialPauseRefusals; flow.zod.ts only adds the call). The engine order it mirrors (dag-traversal.ts traverseNext, untouched): conditioned edges in declaration order (only the first on an exclusive decision), then isDefault edges when none held, then unconditional edges together; a suspend unwinds the traversal and resume never returns to the node. Measured 13 shapes through registerFlow + execute on the real engine and approval service before the rule: lost and now refused = the card (two true conditioned edges to approvals), first pauses/second sync, pause two hops down, inclusive decision, conditioned pause beside an unconditional sibling (either declaration order), exclusive decision with an unconditional sibling, isDefault pause beside an unconditional sibling; kept and accepted = pause last, exclusive decision, default beside conditioned, fault edge; subflow whose child pauses loses the later sibling at run time and is NOT judged by the parse (boundary; reported, not built). Refused at active and draft save (422 INVALID_METADATA), publish and registerFlow with a prescription (pausing branch last / chain / decision / drop mode inclusive). ADR-0087 D3 semantic entry flow-sequential-branch-durable-pause-refused, changeset minor on @objectstack/spec with both declaration lines and the registered marker, flows.mdx corrected and extended. Corpus: 0 shipped flows refused. Owed before landing: contract-tier review (published schema, narrowing, and the two widenings raised in Acceptance notes) and the dogfood battery on the final head (title carries !; the seat arms needs:dogfood-battery).", "tests": "At head 6fcf88d894: spec src/automation/flow-concurrent-pause.test.ts Tests 46 passed (46) (19 new); plugin-approvals full suite Test Files 142 passed, Tests 2265 passed (integration file 29/29, 5 new); spec + plugin-approvals typecheck exit 0; suites holding a pausing node beside an edge condition: service-automation 28 files/698, lint 11/1646, metadata-protocol 5/366, objectql 4/51, spec 13 files incl. src/migrations/1333, cli migrate-meta-engine-guidance 3, all passed. NOT MEASURED: @objectstack/spec full suite, reason: exceeded the 595 s foreground cap (exit 124); Test Core runs it. Ablation (scripts/ablation-replace.mjs, the skip-guard in sequentialPauseRefusals made to skip every edge; spec rebuilt; ablation-dist-preflight marker in 2 built files): spec file 13 failed / 33 passed (all refusals + boundary count red, all controls green); integration file 3 failed / 26 passed (active save, draft save, registerFlow red; both controls green). Restore: blob == HEAD befa0d8869, git diff HEAD empty, whole tree clean, rebuilt, preflight --absent exit 0 over 610 files, 46/46 and 29/29 again. Unfixed-direction measurement (population emptied, spec rebuilt): every refused shape registered and ran with the later branch never run.", "gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at 6fcf88d894: 122 families, all 122 exit 0 (exit codes captured before any pipe). First runs: 8 exit 3 PREREQUISITE NOT MET (5 spec gates on a dist older than the last source edit; check:skill-examples, unbuilt client SDK; check:i18n, unbuilt CLI; check:dual-build-cjs-loads, unbuilt packages) and 2 timeouts at 300 s (check-comment-mask-corpus, check:query-options-erasure), check:type-check-debt cut by the batch budget; each re-run after building the prerequisite or with a longer budget; recorded exit is the re-run's. --ran: 122 derived, 122 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. pnpm --filter @objectstack/spec check:generated: all 14 generated artifacts up to date, exit 0. CI families: PR #38970 check-runs not yet read (opened 2026-12-01T15:35Z); the seat reads them.", "line_budget": "packages/spec/src/automation/flow.zod.ts 2135 lines (over 1,000): +11/-1, the call and its comment only; the rule lives in flow-concurrent-pause.ts (465 lines). flow-route.integration.test.ts 1012 lines: new pin added as a top-level describe in the existing harness file (ruling record 6583487846). skills/** untouched.", "files_changed": [ ".changeset/38875-conditioned-edge-pause-drop.md (+20)", "content/docs/automation/flows.mdx (+35 -3)", "packages/plugins/plugin-approvals/src/flow-route.integration.test.ts (+161 -5)", "packages/spec/src/automation/flow-concurrent-pause.test.ts (+199 -3)", "packages/spec/src/automation/flow-concurrent-pause.ts (+169 -18)", "packages/spec/src/automation/flow.zod.ts (+11 -1)", "packages/spec/src/migrations/entries/semantic/19.flow-sequential-branch-durable-pause-refused.ts (+63)" ], "deviations": [ "Clause-② line: the claim (7312510992) says `Clause-②: no`, the dispatch says `no (narrowing)`; PR body and changeset carry `Clause-②: no (narrowing)` (the change refuses previously accepted flows, matches #38871 and the dispatch's dogfood note). Seat to confirm.", "Refusal is wider than the card's two-conditioned-edges shape: an unconditional sibling dropped after a conditioned or isDefault branch that parks (measured g, g2, h, k, an exclusive decision included) is refused too, by 'refuse exactly the shapes that lose'; this turns #38871's S17 read ('isDefault beside unconditional, accepted') into a refusal when the default branch parks. Raised in Acceptance notes for the contract review.", "Run-time half (subflow/map child pause on an earlier branch, measured lossy) not built, per the dispatch; static half delivered. dag-traversal.ts untouched.", "The pre-rule measurement emptied the rule's population with an in-place sed on a committed tree (restored by git checkout HEAD, rebuilt); the formal ablation used scripts/ablation-replace.mjs.", "The first closure build call outlived the 600 s tool cap (lock queue wait plus build) and the harness moved it to the background; it finished exit 0 and its VERDICT line was read before anything depended on it. No other background job was started.", "PR body opens with `Fixes #38875` (os-dev), not the seat signature line #38871's body opened with.", "No merge of origin/main: 9 commits ahead at 665dfc4d81, none touching a path of this diff, packages/spec or the traversal." ], "mcp_calls": "0", "api_writes": "2 relay strokes (POST /repos/objectstack-ai/objectstack/dispatches each, executed as objectstack-fleet[bot]): pr_create -> POST /repos/objectstack-ai/objectstack/pulls (#38970, draft) + POST /repos/objectstack-ai/objectstack/issues/38970/assignees (os-justin); this report -> POST /repos/objectstack-ai/objectstack/issues/38875/comments. git push not counted.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: measured through registerFlow + execute on the real engine and approval service (the door a metadata save reaches) · evidence: a node whose earlier conditioned edge (condition true) enters a `subflow` whose child parks on an approval, beside a later true conditioned edge to a synchronous step: the child request opens and decides, the run completes, and the later sibling never runs; the parse does not judge subflow/map by type (ruling D boundary), so a run-time refusal in dag-traversal.ts would be the remedy · carrier: #38876 (same family: a subflow branch's pause loses the rest of the parent traversal; fold this sequential member into it with an enumerated pin) · dedupe words: subflow child pause later conditioned sibling dropped; sequential branch subflow suspend unwinds", "carrier: none · noted, not filed: packages/lint/src/lint-flow-patterns.test.ts:987 guardFlow is a raw lint fixture carrying a now-refused shape (exclusive decision, conditioned edge to a screen beside an unconditional sibling), judged by the linter only, never parsed through FlowSchema; lint suite green" ] }fix(spec): judge a label-routed decision's no-match pick as the engin…
docs(spec): name every refused member, the exclusive-decision rewrite…
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
os-dev-report
{ "issue": 38875, "status": "done", "branch": "claude/issue-38875-conditioned-edge-pause-drop", "pr": "https://github.com/objectstack-ai/objectstack/pull/38970", "session": "session_01QSeKYnrQ7UMtHofKQVjcH2", "premise_still_valid": true, "summary": "Patch round 1 against L2 7317003405 (PASS, S1 and S2 open), with card #38976 folded in. New head ff5ffa51ad: 3 commits on 6fcf88d894, no merge. S1: on a decision that declares config.conditions with no non-fault edge labelled default (and no literal-true condition), traversalPasses now adds one pass holding every isDefault out-edge, which is traverseNext's own claim. Measured on the real engine and approval service at 6fcf88d894, where every shape was accepted: two isDefault edges (labelled x + unlabelled, or x + y), the first parking: the run completed after its decision and the second never ran. After the change both are refused at registerFlow. The parking edge claimed last, and a single isDefault edge, still register and run correctly. S2: there is now a pin that fails when each stated clause is removed: the whole-set pass, default before later defaults, the isDefault-claim pass, the dedupe, a decision as label source, and the condition-over-isDefault bucket. Ablation counts are under tests. N2: on an exclusive decision the prescription now says to mark the otherwise-branch isDefault: true (keep one per node), never 'route them through a decision'; the shape-k pin asserts both. N4: the S17 fixture now carries its comment. N5: the four refused members are listed in the changeset, flows.mdx and the entry's surface/replacement. N6: the 38838 changeset line 16 is corrected, declared as a DELIBERATE CORRECTION in the body. N7: the flows.mdx isDefault paragraph is rewritten. N8: the body names #38876. #38976: both publish-refusal describes now boot one kernel in beforeAll(boot, 30_000) with afterAll shutdown. Each case saves and reads its own flow name, the refusals write nothing, and the control's single row is read by no other case. All 29 cases pass. N1 and N3 are carried, as stated in the body. The seat patches the PR body from the file named in deviations. Owed before landing: a delta contract-tier record on ff5ffa51ad and the dogfood battery on the final head.", "tests": "flow-concurrent-pause.test.ts: Tests 54 passed (54), 8 new this round. @objectstack/spec local project (vitest run --project local, what pnpm test runs) at 3578d2a57e, spec sources unchanged since: Test Files 919 passed, Tests 29073 passed, 1 todo. @objectstack/plugin-approvals full at 3578d2a57e: Test Files 142 passed, Tests 2265 passed. flow-route.integration.test.ts at ff5ffa51ad: 29 passed. spec and plugin-approvals typecheck exit 0 (test layer ledger unchanged: 8 files / 321 errors / 27 signatures). S2 ablations, each through scripts/ablation-replace.mjs on flow-concurrent-pause.ts against the spec file (which imports src), each landed (anchor 1 -> 0) and restored (blob == HEAD bb1506e770, tree clean): passes.push(taken) removed: 1 failed / 53 passed; defaults.slice(i + 1) dropped: 3 / 51; isDefault-claim pass emptied: 2 / 52; dedupe disabled: 1 / 53; decision not a label picker: 10 / 44; condition+isDefault edge out of the conditioned bucket: 1 / 53. Per-case timings, verbose reporter, one run each. Before, at 3578d2a57e, booting in each case: #38838 describe 967 / 43 / 2 / 161 ms; #38875 describe 39 / 40 / 1 / 88 ms. After, at ff5ffa51ad, one kernel per describe in beforeAll: 16 / 6 / 4 / 119 ms and 6 / 6 / 1 / 47 ms.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at ff5ffa51ad: the same 122 families. All 122 were run at that head. 121 exit 0. node scripts/check-empty-changeset.mjs --base origin/main exits 1 on .changeset/38838-fanout-pause-refusal.md: the DELIBERATE CORRECTION, red by design until the seat's record confirms it. check:dual-build-cjs-loads first read exit 3 (six packages unbuilt in the rebuilt worktree); it was re-run after building them, exit 0. --ran: 122 derived, 122 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. spec check:generated: all 14 artifacts up to date. The same 122 also ran at 3578d2a57e (102 recorded before the box slowed; superseded by the ff5ffa51ad run). CI check-runs on ff5ffa51ad not read; the seat reads them.", "line_budget": "flow.zod.ts unchanged this round. flow-concurrent-pause.ts 487 lines. flow-route.integration.test.ts 1018 lines; this round only reshapes its two describes, and the pins stay in the shared harness file. skills/** untouched.", "files_changed": [ ".changeset/38838-fanout-pause-refusal.md (+1 -1, line 16, DELIBERATE CORRECTION)", ".changeset/38875-conditioned-edge-pause-drop.md (+20)", "content/docs/automation/flows.mdx (+50 -6)", "packages/plugins/plugin-approvals/src/flow-route.integration.test.ts (+172 -10)", "packages/spec/src/automation/flow-concurrent-pause.test.ts (+294 -4)", "packages/spec/src/automation/flow-concurrent-pause.ts (+191 -18)", "packages/spec/src/automation/flow.zod.ts (+11 -1)", "packages/spec/src/migrations/entries/semantic/19.flow-sequential-branch-durable-pause-refused.ts (+69)" ], "deviations": [ "PR body NOT patched by me. The full replacement body for the seat to PATCH is /tmp/claude-0/-home-user-objectstack/96353139-b75c-518e-b0e8-54f835f491d0/scratchpad/issue-38875/pr-body-r1.md (23485 bytes). Its first two lines are Fixes #38875 and Fixes #38976. It adds the S1 table, the ablation counts and the per-case timings, the DELIBERATE CORRECTION with the corrected sentence quoted, #38876 as the run-time carrier, and the carried N1/N3.", "The worktree had been removed after the first round. It was re-added with git worktree add on the existing local branch at 6fcf88d894 (== origin), and the base was pinned with --pin-base. dev-worktree.sh --resume-from refuses an existing local branch.", "The six S2 ablation runs called vitest directly through ablation-replace, not inside os-verify-lock: single-file runs of about 2 s each.", "One gate batch outlived the tool cap and the harness moved it to the background. It completed, its results were read from the ran list, and the missing families were re-run in the foreground at the final head.", "No merge of origin/main: it is 18 commits ahead. They touch packages/spec (record-lock, a new step-19 semantic entry, regenerated snapshots) but none of this diff's paths or the traversal; GitHub reports no conflict to act on." ], "mcp_calls": "0", "api_writes": "1 relay stroke this round: this report -> POST /repos/objectstack-ai/objectstack/issues/38875/comments (via post-stamped.mjs, executed as objectstack-fleet[bot]). git push not counted.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #38876 · the run-time half (shape j: a subflow/map child pause on an earlier branch drops later siblings), named in the PR body", "carrier: seat · noted, not filed (L2 observation, outside this diff): the flow-decision-unconditional-branch lint message and its test comment, and skills/objectstack-automation/references/state-machines-and-approvals.md 79-81, still describe the unconditional sibling as running 'in parallel' or every match being followed; measured (shape k), it never runs when the guarded branch parks" ] }objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Landed 2026-12-02T01:54Z: PR #38970 merged (merge commit
10955351d4; approved by the maintainer, enqueued by the seat on the user's word in session); this card closed by itsFixes. Delivered: an out-edge whose branch reaches a node that parks the run, ahead of another out-edge of the same traversal, is refused at save (draft and active), publish andregisterFlow, with a prescription — the sequential twin of #38838's fan-out rule; the engine is unchanged. Contract review PASS 7317003405 → delta PASS 7320538666; dogfood battery green; the DELIBERATE CORRECTION of.changeset/38838-fanout-pause-refusal.mdconfirmed there. Carried: the run-time half (a subflow/map child pausing on an earlier branch) is #38876; the stale "in parallel" wording in the skill and lint message is #38992, unlocked in this pass.pm:dispatchedremoved in this stroke.