You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ea1c60c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .changeset/31754-flow-collision-two-packages-neither-armed.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
'@objectstack/service-automation': patch
3
3
---
4
4
5
-
fix(service-automation): the boot log's flow name collision line says neither flow is armed when two packages hold the name
5
+
fix(service-automation): the boot log's flow name collision line says no flow is armed when the engine refuses the name
6
6
7
7
Clause-②: no — log text only; what the engine arms, refuses or runs does not change.
8
8
Metadata-protocol: none
9
9
10
-
When two packages ship a flow of the same name, the enginerefuses the name at registration, naming both packages, and arms neither flow(ADR-0150 D3). The boot pull's collision warning still read "arming package 'FIRST' by package id, and shadowing 1 other definition(s). Only the armed definition dispatches." It now reads "arming neither: 2 packages hold the name, and the engine refuses a bare name more than one package holds instead of picking one (ADR-0150 D3). Neither definition dispatches; the 'failed to register flow' warning for 'NAME' names every holder. Rename one of them."
10
+
When a second package ships a flow of the same name, the engine's package-scoped resolver refuses the bare name for a caller with no package, and `registerFlow`arms neither flow, naming both packages (ADR-0150 D3). The boot pull's collision warning still read "arming package 'FIRST' by package id", "arming package 'FIRST' because a managed package's flow is sealed" or "arming the declared override …", depending on which other definitions sat beside the two packages, and its log meta named an armed contender.
11
11
12
-
Every other collision line keeps its wording byte for byte: a package beside a stored row, the declared override beside a stored row, and stored rows of a name no package ships.
12
+
The warning now asks the same resolver the engine asks. When it refuses the name, every such line reads "arming neither: the engine refuses this bare name for a caller with no package (ADR-0150 D3), so no definition dispatches; the 'failed to register flow' warning for 'NAME' names every holder. Rename one of them." ("arming none of them" for three or more definitions), and its meta carries `refused: true` and the contenders instead of `armed`/`shadowed`.
13
+
14
+
A name the resolver serves keeps its line byte for byte, and so does every line when no resolver is attached. `resolveFlowPrecedence` takes the reader as an optional fifth argument (`FlowNameRefusalReader`, exported as a type); the automation plugin passes it.
0 commit comments