@rotorsoft/act 1.23.5 → 1.23.6

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
@@ -20,7 +20,7 @@ import {
20
20
  sleep,
21
21
  store,
22
22
  validate
23
- } from "./chunk-DORIRU2I.js";
23
+ } from "./chunk-C7H3GARW.js";
24
24
  import {
25
25
  ActorSchema,
26
26
  CausationEventSchema,
@@ -1958,7 +1958,14 @@ async function load(me, target, callback, patch_fn = bare_patch) {
1958
1958
  {
1959
1959
  stream,
1960
1960
  stream_exact: true,
1961
- ...cached ? { after: cached.event_id } : { with_snaps: true, ...asOf }
1961
+ // The snapshot resume floor is a current-state optimization: it only
1962
+ // holds when the load has no window of its own. `time_travel` already
1963
+ // captures that (any `asOf` bound set), so request `with_snaps` only for
1964
+ // a non-time-travel cold load — a bounded load full-scans real events
1965
+ // under its `asOf` filter. This is the single floor-eligibility decision
1966
+ // for the whole system; the stores apply the floor whenever asked and
1967
+ // never re-derive it (RFC 1274). The warm path resumes from `after`.
1968
+ ...cached ? { after: cached.event_id } : { ...time_travel ? {} : { with_snaps: true }, ...asOf }
1962
1969
  }
1963
1970
  );
1964
1971
  const head_is_tombstone = event?.name === TOMBSTONE_EVENT;