Skip to content

Flow decision branches: the engine reads the spec's default-branch label, and flowDecisionEdgeBranch's doc matches traverseNext (follow-up of #36530) #36584

Open

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Follow-up from PR #36576 (card #36530), L2 record 7088723970 nits N1 and N2, graded non-blocking. Filed by the seat, not claimed. Parent: #36530.

Suggested-grade: p2
Suggested-domain: domain:server (service-automation), with the spec jsdoc beside it

What happens

  1. Two copies of one word (N2). PR feat(i18n): a flow screen with its own heading gets a translatable step name #36576 adds FLOW_DECISION_DEFAULT_BRANCH_LABEL to @objectstack/spec/automation. The engine in service-automation keeps its own DEFAULT_BRANCH_LABEL; the two are joined only by a jsdoc sentence. service-automation already imports @objectstack/spec, so it can read the spec constant. This is the same shape comment 7084469163 removed between lint and the UI.
  2. The doc says more than the engine does (N1). flowDecisionEdgeBranch's jsdoc says undefined is "an edge no branch can ever take". In the engine that holds only while every computed branch label is claimed: when a decision's label has no claiming out-edge, traverseNext logs a warning and evaluates every out-edge, unlisted ones included; it also drops type: 'fault' out-edges, which neither drawing filters.

Ask

  1. The engine imports FLOW_DECISION_DEFAULT_BRANCH_LABEL from @objectstack/spec/automation and deletes its local copy.
  2. Either the jsdoc states the engine's actual fallback (unclaimed label ⇒ every out-edge evaluated; fault edges dropped), or the engine's fallback is aligned with what the doc promises. Pick the one that keeps a drawing and a run in agreement, and pin it with a test.

Re-check

grep -rn "DEFAULT_BRANCH_LABEL" packages/services/service-automation/src: a local definition means item 1 is still owed.

Activity

  1. added
    finding
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (flow engine default-branch label; flowDecisionEdgeBranch doc) · pm:blocked on PR #36576 (the body carries the Blocked-by: line); rationale: area:workflow (flow engine; was ux) · Task · the engine should read the spec's default-branch label instead of keeping its own copy, and the doc should match traverseNext. Today the two copies agree, so nothing a user sees is wrong; this removes a future drift → p3 (the seat suggested p2) · size XS. L2 nits N1 and N2 of PR #36576 (#36530). On request from repo:objectstack#2 (#32588 comment 7088753932).

  3. added
    area:workflow
    domain:server
    pm:blocked
    and removed on Nov 23, 2026
  4. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage correction: pm:blocked → pm:queue. My audit above said the body carries a Blocked-by: line, but it does not, and a hold must be a Blocked-by: line on the card. Claim this after PR #36576 merges. Area (workflow), type (Task) and grade (p3) are unchanged.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowdomain:serverfindingpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions