@rotorsoft/act 1.31.15 → 1.31.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  sleep,
26
26
  store,
27
27
  validate
28
- } from "./chunk-T2AT4N6B.js";
28
+ } from "./chunk-LTA7FYBC.js";
29
29
  import {
30
30
  ActorSchema,
31
31
  CausationEventSchema,
@@ -1730,14 +1730,17 @@ var CorrelateCycle = class {
1730
1730
  upgraded,
1731
1731
  correlated_at: void 0
1732
1732
  };
1733
- const held = correlated.has(resolved.target) ? entry.lane : recorded?.lane;
1734
- if (held !== void 0 && lane !== void 0 && held !== lane && priority === entry.priority)
1733
+ const seen_in_scan = correlated.has(resolved.target);
1734
+ const held_lane = (seen_in_scan ? entry.lane : recorded?.lane) ?? DEFAULT_LANE;
1735
+ const held_priority = seen_in_scan ? entry.priority : recorded?.priority;
1736
+ const resolved_lane = lane ?? DEFAULT_LANE;
1737
+ if (held_priority === priority && held_lane !== resolved_lane)
1735
1738
  report_lane_conflict(
1736
1739
  this._reported,
1737
1740
  reaction.handler.name,
1738
1741
  resolved.target,
1739
- held,
1740
- lane
1742
+ held_lane,
1743
+ resolved_lane
1741
1744
  );
1742
1745
  if (carried.priority > entry.priority) {
1743
1746
  entry.priority = carried.priority;