@rotorsoft/act 1.32.14 → 1.32.15

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.
Files changed (72) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/@types/act.d.ts +98 -152
  3. package/dist/@types/act.d.ts.map +1 -1
  4. package/dist/@types/adapters/in-memory-store.d.ts +3 -3
  5. package/dist/@types/adapters/in-memory-store.d.ts.map +1 -1
  6. package/dist/@types/builders/act-builder.d.ts +3 -3
  7. package/dist/@types/builders/act-builder.d.ts.map +1 -1
  8. package/dist/@types/builders/build-classify.d.ts +1 -1
  9. package/dist/@types/builders/builder-base.d.ts +3 -3
  10. package/dist/@types/builders/builder-utils.d.ts +1 -1
  11. package/dist/@types/builders/event-builder.d.ts +1 -1
  12. package/dist/@types/builders/merge.d.ts +1 -1
  13. package/dist/@types/builders/reaction-builder.d.ts +1 -1
  14. package/dist/@types/builders/slice-builder.d.ts +2 -2
  15. package/dist/@types/builders/state-builder.d.ts +3 -4
  16. package/dist/@types/builders/state-builder.d.ts.map +1 -1
  17. package/dist/@types/csv.d.ts +1 -1
  18. package/dist/@types/disposers.d.ts.map +1 -1
  19. package/dist/@types/internal/audit.d.ts +12 -42
  20. package/dist/@types/internal/audit.d.ts.map +1 -1
  21. package/dist/@types/internal/autoclose-policy.d.ts +3 -3
  22. package/dist/@types/internal/autoclose-reaction.d.ts +2 -2
  23. package/dist/@types/internal/autoclose-window.d.ts +1 -1
  24. package/dist/@types/internal/close-cycle.d.ts +10 -31
  25. package/dist/@types/internal/close-cycle.d.ts.map +1 -1
  26. package/dist/@types/internal/close-signal.d.ts +3 -3
  27. package/dist/@types/internal/config.d.ts +3 -3
  28. package/dist/@types/internal/config.d.ts.map +1 -1
  29. package/dist/@types/internal/correlate-cycle.d.ts +39 -86
  30. package/dist/@types/internal/correlate-cycle.d.ts.map +1 -1
  31. package/dist/@types/internal/correlator.d.ts +1 -1
  32. package/dist/@types/internal/date-reviver.d.ts +1 -1
  33. package/dist/@types/internal/defer-config.d.ts +2 -2
  34. package/dist/@types/internal/defer-signal.d.ts +2 -2
  35. package/dist/@types/internal/defer-timer.d.ts +3 -3
  36. package/dist/@types/internal/drain-cycle.d.ts +35 -82
  37. package/dist/@types/internal/drain-cycle.d.ts.map +1 -1
  38. package/dist/@types/internal/event-sourcing.d.ts +8 -19
  39. package/dist/@types/internal/event-sourcing.d.ts.map +1 -1
  40. package/dist/@types/internal/event-versions.d.ts +1 -1
  41. package/dist/@types/internal/projection-fold.d.ts +2 -2
  42. package/dist/@types/internal/report-once.d.ts +3 -3
  43. package/dist/@types/internal/sensitive.d.ts +2 -2
  44. package/dist/@types/internal/settle.d.ts +6 -19
  45. package/dist/@types/internal/settle.d.ts.map +1 -1
  46. package/dist/@types/ports.d.ts +3 -3
  47. package/dist/@types/scoped.d.ts +6 -6
  48. package/dist/@types/scoped.d.ts.map +1 -1
  49. package/dist/@types/types/action.d.ts +19 -19
  50. package/dist/@types/types/audit.d.ts +1 -1
  51. package/dist/@types/types/ports.d.ts +22 -26
  52. package/dist/@types/types/ports.d.ts.map +1 -1
  53. package/dist/@types/types/reaction.d.ts +8 -8
  54. package/dist/@types/types/registry.d.ts +1 -1
  55. package/dist/@types/types/schemas.d.ts +2 -2
  56. package/dist/@types/utils.d.ts +1 -1
  57. package/dist/{chunk-FVJFR7GH.js → chunk-JRTZGWVS.js} +1 -1
  58. package/dist/chunk-JRTZGWVS.js.map +1 -0
  59. package/dist/{chunk-JPPO3LZ3.js → chunk-PZP5ZEZ4.js} +9 -9
  60. package/dist/chunk-PZP5ZEZ4.js.map +1 -0
  61. package/dist/index.cjs +136 -358
  62. package/dist/index.cjs.map +1 -1
  63. package/dist/index.js +131 -353
  64. package/dist/index.js.map +1 -1
  65. package/dist/test/index.cjs +7 -7
  66. package/dist/test/index.cjs.map +1 -1
  67. package/dist/test/index.js +2 -2
  68. package/dist/types/index.cjs.map +1 -1
  69. package/dist/types/index.js +1 -1
  70. package/package.json +1 -1
  71. package/dist/chunk-FVJFR7GH.js.map +0 -1
  72. package/dist/chunk-JPPO3LZ3.js.map +0 -1
@@ -35,7 +35,7 @@ import type { Registry, Schema, SchemaRegister, Schemas, State } from "../types/
35
35
  */
36
36
  export declare const ALL_LANES: unique symbol;
37
37
  /**
38
- * Per-event lane fan-in (ACT-1103). For events whose every reaction
38
+ * Per-event lane fan-in. For events whose every reaction
39
39
  * has a static resolver, the value is the union of those reactions'
40
40
  * declared lanes — `do()` arms only those controllers on commit. For
41
41
  * events with at least one dynamic resolver, the value is
@@ -17,7 +17,7 @@
17
17
  * *widen* the generics (return a different instantiation), which a shared
18
18
  * signature could only express with HKT emulation, and that degrades the public
19
19
  * builder's hover and error output. That trade isn't worth deduping two
20
- * declarative signatures, so they stay declared per-builder (#1110).
20
+ * declarative signatures, so they stay declared per-builder.
21
21
  */
22
22
  import type { Actor, Committed, DeferWhen, EventRegister, IAct, ReactionOptions, ReactionResolver, Schema, Schemas, Snapshot } from "../types/index.js";
23
23
  import type { Projection } from "./projection-builder.js";
@@ -57,8 +57,8 @@ export interface BuilderBase<Self, TEvents extends Schemas, TActions extends Sch
57
57
  withProjection: <TNewEvents extends Schemas>(projection: [Exclude<keyof TNewEvents, keyof TEvents>] extends [never] ? Projection<TNewEvents> : never) => Self;
58
58
  /**
59
59
  * Begins defining a reaction. Chain `.do(...)` to run immediately, or
60
- * `.defer(when).do(...)` to hold the reaction until a schedule is due
61
- * (#1091). `.to(...)` follows `.do(...)` in both cases and, for a deferred
60
+ * `.defer(when).do(...)` to hold the reaction until a schedule is due.
61
+ * `.to(...)` follows `.do(...)` in both cases and, for a deferred
62
62
  * reaction, routes it onto its own target so the hold doesn't stall the
63
63
  * stream's other reactions.
64
64
  */
@@ -14,7 +14,7 @@
14
14
  import { type DeferSchedule } from "../internal/index.js";
15
15
  import type { Committed, EventRegister, LaneConfig, ReactionHandler, ReactionOptions, ReactionResolver, Schemas } from "../types/index.js";
16
16
  /**
17
- * Validate and register a drain lane (ACT-1103): the `"default"` name is
17
+ * Validate and register a drain lane: the `"default"` name is
18
18
  * reserved and each lane name must be unique. Mutates `lanes` in place; the
19
19
  * caller returns its own builder for chaining.
20
20
  *
@@ -55,7 +55,7 @@ export type EventTags = {
55
55
  * (`sensitive.ts`), since the write path splits whole top-level keys. A union
56
56
  * event has no top-level shape, so its variants are walked and unioned: a key
57
57
  * sensitive in any variant must be split, because the stored payload could be
58
- * that variant ([#1417](https://github.com/Rotorsoft/act-root/issues/1417)).
58
+ * that variant.
59
59
  *
60
60
  * @internal
61
61
  */
@@ -11,7 +11,7 @@ export declare function register_state(state: State<any, any, any>, states: Map<
11
11
  * (e.g., act-builder's `.withSlice()` registers the slice's states first,
12
12
  * which seeds the target events). Reactions are keyed by `handler.name`;
13
13
  * two distinct handlers sharing a name on the same event throw rather than
14
- * silently overwriting (ACT-979). Re-merging the identical reaction object
14
+ * silently overwriting. Re-merging the identical reaction object
15
15
  * is idempotent — mirrors {@link register_batch_handler}.
16
16
  */
17
17
  export declare function merge_event_register(target: Record<string, {
@@ -37,7 +37,7 @@ export type ReactionDeps<TEvents extends Schemas, TActions extends Schemas, TAct
37
37
  * Builds the per-event reaction dispatcher passed to `run_drain_cycle`.
38
38
  *
39
39
  * The triggering event is installed as ambient context around each handler
40
- * call, so `action()` resolves it as `reactingTo` (#587, #1541). Ambient
40
+ * call, so `action()` resolves it as `reactingTo`. Ambient
41
41
  * rather than bound to the `IAct` argument, so a handler that dispatches
42
42
  * through a captured `app` inherits the chain too.
43
43
  *
@@ -26,7 +26,7 @@ export type Slice<TSchemaReg extends SchemaRegister<TActions>, TEvents extends S
26
26
  readonly events: EventRegister<TEvents>;
27
27
  readonly projections: ReadonlyArray<Projection<any>>;
28
28
  /**
29
- * Drain lanes declared on this slice via `.withLane(...)` (ACT-1103).
29
+ * Drain lanes declared on this slice via `.withLane(...)`.
30
30
  * `act().withSlice(slice)` merges these into the Act's lane set so
31
31
  * `.to({lane})` is statically checked at the slice's call site against
32
32
  * the lanes the slice itself declared.
@@ -67,7 +67,7 @@ export interface SliceBuilder<TSchemaReg extends SchemaRegister<TActions>, TEven
67
67
  [K in TNewName]: TNewState;
68
68
  }, TActor, TLanes>;
69
69
  /**
70
- * Declares a drain lane on this slice (ACT-1103). Merged into the
70
+ * Declares a drain lane on this slice. Merged into the
71
71
  * parent Act's lane set by `act().withSlice(slice)`.
72
72
  */
73
73
  withLane: <const TConfig extends LaneConfig>(config: TConfig) => SliceBuilder<TSchemaReg, TEvents, TActions, TStateMap, TActor, TLanes | TConfig["name"]>;
@@ -322,8 +322,7 @@ export type ActionBuilder<TState extends Schema, TEvents extends Schemas, TActio
322
322
  * The predicate receives the full event including merged PII so it can
323
323
  * branch on the payload itself (e.g.
324
324
  * `event.data.ownerId === actor.id`). Reducers, projections, and
325
- * reactions are unaffected — they follow separate visibility rules
326
- * documented in #855.
325
+ * reactions are unaffected — they follow separate visibility rules.
327
326
  *
328
327
  * @param disclose - Predicate `(event, actor) => boolean`. `true` =
329
328
  * plaintext, `false` = `"[REDACTED]"` substitution.
@@ -357,12 +356,12 @@ export type ActionBuilder<TState extends Schema, TEvents extends Schemas, TActio
357
356
  * alternative OR path. Validated via Zod at build time; misconfiguration
358
357
  * throws before `act().build()` completes.
359
358
  *
360
- * Under the hood this compiles to a synthesized reaction (#1090) that runs
359
+ * Under the hood this compiles to a synthesized reaction that runs
361
360
  * on a per-aggregate synthetic stream: it defers to `head.created + the
362
361
  * policy's min after` while the cooldown holds and closes the stream once
363
362
  * the policy matches. There is no background sweep.
364
363
  *
365
- * **The function-predicate form was removed (#1090).** `.autocloses` no
364
+ * **The function-predicate form was removed.** `.autocloses` no
366
365
  * longer accepts `(stream, head, count) => boolean`; an opaque predicate has
367
366
  * no derivable due-time or terminal event to react to. For conditions the
368
367
  * declarative form can't express, call `app.close(...)` from your own logic.
@@ -1 +1 @@
1
- {"version":3,"file":"state-builder.d.ts","sourceRoot":"","sources":["../../../src/builders/state-builder.ts"],"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M,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;CACtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmHG;AACH,wBAAgB,KAAK,CAAC,KAAK,SAAS,MAAM,EAAE,MAAM,SAAS,MAAM,EAC/D,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,GAC/B,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAmD7B"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * `CsvFile` — a single class implementing both {@link EventSource}
5
5
  * and {@link EventSink} so a CSV file on disk can be either side of
6
- * a transfer pipeline (ACT-1128 / #788).
6
+ * a transfer pipeline.
7
7
  *
8
8
  * - As a source: streams one row at a time off a line interface;
9
9
  * the awaited per-event callback gives 1-event-in-flight
@@ -1 +1 @@
1
- {"version":3,"file":"disposers.d.ts","sourceRoot":"","sources":["../../src/disposers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI;IAAE,KAAK,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;CAAE,CAAC;AAiCvE,yEAAyE;AACzE,eAAO,MAAM,iBAAiB,QAAS,QAAQ,KAAG,IAGjD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,OAChD,OAAO,CAAC,CAAC,CAAC,OACV,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,KAChC,IAMF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,QAAa,OAAO,CAAC,IAAI,CASlD,CAAC"}
1
+ {"version":3,"file":"disposers.d.ts","sourceRoot":"","sources":["../../src/disposers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI;IAAE,KAAK,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;CAAE,CAAC;AAgCvE,yEAAyE;AACzE,eAAO,MAAM,iBAAiB,QAAS,QAAQ,KAAG,IAGjD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,OAChD,OAAO,CAAC,CAAC,CAAC,OACV,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,KAChC,IAMF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,QAAa,OAAO,CAAC,IAAI,CASlD,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * @module audit
3
3
  * @category Internal
4
4
  *
5
- * Operator-driven store audit (#723).
5
+ * Operator-driven store audit.
6
6
  *
7
7
  * Walks the connected store and yields per-category {@link AuditFinding}s.
8
8
  * Each category answers a different "what should I do with this store?"
@@ -18,46 +18,21 @@
18
18
  * - `correlation-gaps` → fix upstream correlator misconfig
19
19
  * - `clock-anomalies` → infra remediation (clock skew)
20
20
  *
21
- * ## Single-scan multiplex (efficiency contract)
21
+ * ## Single-scan multiplex
22
22
  *
23
- * Earlier draft had each category run its own `store.query(...)`,
24
- * which meant N requested categories → N table walks. Bad for large
25
- * stores. Refactored to a pass-based design: each category is a
26
- * factory that returns an {@link AuditPass} with optional per-row
27
- * callbacks (`on_event` / `on_stream` / `on_stat`) and a `finalize` hook
28
- * for any second-pass work. The dispatcher determines the UNION of
29
- * required data sources, runs each *once*, and broadcasts each row
30
- * to all interested passes. Worst case: three scans total (events,
31
- * streams, stats) regardless of how many categories the operator
32
- * requested. Most categories also share state — close-candidate and
33
- * restart-candidate both consume the same `on_stat` stream; schema,
34
- * correlation-gaps, and clock-anomalies all hang off the same
35
- * `on_event` broadcast.
23
+ * Each category is an {@link AuditPass} with optional per-row callbacks
24
+ * (`on_event` / `on_stream` / `on_stat`) and a `finalize` hook. The
25
+ * dispatcher runs each needed scan once and broadcasts rows to every pass,
26
+ * so an audit costs at most three scans however many categories run.
27
+ * Follow-up lookups happen in `finalize`.
36
28
  *
37
- * Categories that need follow-up work (snapshot-drift's per-stream
38
- * snapshot lookup, correlation-gaps' orphan-id check after collecting
39
- * ids) do that in their `finalize` hook with their own targeted store
40
- * calls — keeps the shared scan path minimal.
41
- *
42
- * Isolated from orchestration internals — `act.ts` builds the
43
- * {@link AuditDeps} bag at `.build()` time and hands it here via
44
- * a one-liner. The audit module never reaches into
45
- * `internal/{event-sourcing,drain-cycle,settle,close-cycle}.ts`; it
46
- * only reads through the deps interface and the public `Store`
47
- * surface. Same shape as `act-tck` within the workspace — a peer of
48
- * orchestration, not entangled with its private mechanics.
29
+ * Reads only the {@link AuditDeps} bag and the public `Store`; never the
30
+ * orchestration internals.
49
31
  *
50
32
  * @internal
51
33
  */
52
34
  import type { AuditCategory, AuditFinding, AuditOptions, Logger, State, Store } from "../types/index.js";
53
- /**
54
- * Snapshot of orchestrator state the audit reads. Built once at
55
- * `app.build()`; the audit treats it as immutable for the duration
56
- * of a call. The orchestrator never passes its own private maps in
57
- * directly — this bag is the abstraction boundary so a future
58
- * orchestration refactor can't accidentally entangle with audit
59
- * logic.
60
- */
35
+ /** The orchestrator state the audit reads, built once at `build()`. */
61
36
  export type AuditDeps = {
62
37
  readonly store: () => Store;
63
38
  readonly logger: Logger;
@@ -81,13 +56,8 @@ export type AuditDeps = {
81
56
  * union of required data sources (events / streams / stats), runs
82
57
  * each once, broadcasts rows, and yields per-category findings in
83
58
  * the order the categories were requested.
84
- *
85
- * Callers can `break` the iteration early — the underlying scan
86
- * loops have already completed by the time yield starts, so early
87
- * break only saves the iteration over already-collected findings.
88
- * (Per-row early termination during a scan isn't feasible without
89
- * coordination across passes; the audit is bounded by `options.query`
90
- * scoping rather than mid-scan cancellation.)
59
+ * Scans finish before the first yield; bound the work with
60
+ * `options.query`.
91
61
  */
92
62
  export declare function audit(deps: AuditDeps, categories?: AuditCategory[], options?: AuditOptions): AsyncIterable<AuditFinding>;
93
63
  //# sourceMappingURL=audit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/internal/audit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAGH,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,YAAY,EAEZ,MAAM,EAGN,KAAK,EACL,KAAK,EAGN,MAAM,mBAAmB,CAAC;AAQ3B;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACnE,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3D,8DAA8D;IAC9D,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAC;AAqDF;;;;;;;;;;;;;GAaG;AACH,wBAAuB,KAAK,CAC1B,IAAI,EAAE,SAAS,EACf,UAAU,CAAC,EAAE,aAAa,EAAE,EAC5B,OAAO,GAAE,YAAiB,GACzB,aAAa,CAAC,YAAY,CAAC,CAwE7B"}
1
+ {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/internal/audit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAGH,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,YAAY,EAEZ,MAAM,EAGN,KAAK,EACL,KAAK,EAGN,MAAM,mBAAmB,CAAC;AAQ3B,uEAAuE;AACvE,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACnE,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3D,8DAA8D;IAC9D,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAC;AAqDF;;;;;;;;GAQG;AACH,wBAAuB,KAAK,CAC1B,IAAI,EAAE,SAAS,EACf,UAAU,CAAC,EAAE,aAAa,EAAE,EAC5B,OAAO,GAAE,YAAiB,GACzB,aAAa,CAAC,YAAY,CAAC,CAiE7B"}
@@ -3,7 +3,7 @@
3
3
  * @category Internal
4
4
  *
5
5
  * Declarative close-policy options consumed by `.autocloses({...})`
6
- * (#838 / epic #802). Three optional fields cover the three
6
+ * Three optional fields cover the three
7
7
  * operational pressure points every real close policy traces back to:
8
8
  *
9
9
  * - `after` — time / compliance ("autocloses **after** N days")
@@ -93,7 +93,7 @@ declare const AutoclosePolicySchema: z.ZodObject<{
93
93
  * `or` matches. Used for safety-net backstops layered onto a
94
94
  * primary cooldown policy (e.g. *"(Resolved AND 90 days) OR reaches
95
95
  * 10k"*). Nested `or` inside `or` rejects at build time.
96
- * @property keep - Rolling-window retention (#1011), **independent** of
96
+ * @property keep - Rolling-window retention, **independent** of
97
97
  * the terminate fields: while the stream stays open, prune events
98
98
  * older than `now − keep` behind the closest safe snapshot via a
99
99
  * windowed close. Does not participate in the AND group or the `or`
@@ -136,7 +136,7 @@ export type AutoclosePolicy = z.infer<typeof AutoclosePolicySchema>;
136
136
  * the top-level `after` and the `or.after` block — or `undefined` when
137
137
  * the policy has no time component.
138
138
  *
139
- * The synthesized autoclose reaction (#1090) uses this to decide how to
139
+ * The synthesized autoclose reaction uses this to decide how to
140
140
  * wait: a policy with an `after` defers its re-check to `head.created`
141
141
  * plus this many days (the earliest its time gate could open); a policy
142
142
  * without one (`is` / `reaches` only) has no time gate, so the reaction
@@ -33,7 +33,7 @@ export declare const AUTOCLOSE_TARGET_PREFIX = "__autoclose__:";
33
33
  * time (`store()`), so the reaction is orchestrator-agnostic; the resolved
34
34
  * The reactions are synthesized once into the shared registry, so nothing
35
35
  * per-Act is captured here — the off-hours window is read from the running
36
- * Act at resolution time via the injected `read_window` (#1615).
36
+ * Act at resolution time via the injected `read_window`.
37
37
  *
38
38
  * @internal
39
39
  */
@@ -43,7 +43,7 @@ export declare function synthesize_autoclose_reactions<TSchemaReg extends Schema
43
43
  * imported: these reactions are synthesized once into the shared
44
44
  * registry and run by every Act built from that builder, so the window
45
45
  * has to be resolved per call, and `internal/` never reaches for
46
- * ambient state itself (#1615).
46
+ * ambient state itself.
47
47
  */
48
48
  read_window: () => AutocloseConfig["autocloseWindow"]): void;
49
49
  //# sourceMappingURL=autoclose-reaction.d.ts.map
@@ -36,7 +36,7 @@ export declare function in_autoclose_window(window: AutocloseConfig["autocloseWi
36
36
  * The next instant the off-hours window opens at or after `now`. The
37
37
  * synthesized autoclose reaction defers to this when a tick lands
38
38
  * outside the window — parking until the window actually opens instead
39
- * of blind-polling on a configured cadence (the pre-#1175 behavior,
39
+ * of blind-polling on a configured cadence (the old behavior,
40
40
  * where a poll interval longer than the window could oscillate around
41
41
  * it and miss it repeatedly).
42
42
  *
@@ -42,41 +42,20 @@ export type CloseCycleDeps = {
42
42
  readonly probe_page_size?: number;
43
43
  /**
44
44
  * Advance correlation to at least `until` (an event id) and return how
45
- * far it actually got (#1487).
45
+ * far it actually got.
46
46
  *
47
- * The safety probe asks each subscription whether it has unconsumed
48
- * work, which is only a fair question about events correlate has already
49
- * resolved. An event past the read cursor has raised no mark yet, so
50
- * every reader answers "caught up" about it — including a reader that
51
- * does not exist yet, because the subscription a dynamic resolver would
52
- * create is itself a product of correlating that event.
53
- *
54
- * Refusing to close is the wrong answer: the autoclose path fires *from*
55
- * the event that reaches the terminal state, so its own trigger is
56
- * routinely uncorrelated, and a retired stream gets no further commits to
57
- * retry with. So the cycle makes the precondition true instead — it
58
- * correlates the tail, then decides. Whatever remains above the cursor
59
- * afterwards is held back as pending.
47
+ * The safety probe can only judge events correlate has resolved (an
48
+ * uncorrelated event has raised no mark and may not even have created its
49
+ * subscription yet). An autoclose fires from its own, often uncorrelated,
50
+ * trigger, so the cycle correlates the tail first; anything still above
51
+ * the cursor is held back as pending.
60
52
  */
61
53
  readonly catch_up_correlation: (until: number) => Promise<number>;
62
54
  /**
63
- * Per-stream critical section (#1222). The windowed branch is
64
- * deliberately guard-free at the store level — a past cutoff makes the
65
- * boundary immutable, so a concurrent append can never race the prune.
66
- * But that assumes a *single* closer per stream. A manual
67
- * `app.close([{stream, before}])` runs `run_close_cycle` directly,
68
- * bypassing the `__autoclose__:X` lease that would otherwise exclude a
69
- * concurrent autoclose windowed close, so both closers can archive the
70
- * same prefix — a double S3 upload / double JSONL append. This runs the
71
- * given work under a process-local per-stream lock so the two closers
72
- * serialize; the second sees the already-pruned prefix and skips its
73
- * archive. The full (tombstone/restart) path takes the same lock for
74
- * every stream it closes: without it, a second full closer that arrives
75
- * while the first is archiving mistakes the first closer's tombstone for
76
- * an interrupted close, resumes it, and both archive and truncate (#1738).
77
- * Provided by the Act orchestrator (shared across `app.close` and the
78
- * drain's `on_close`); defaults to identity (no serialization) when the
79
- * cycle is exercised in isolation.
55
+ * Per-stream critical section, so two closers of one stream (a manual
56
+ * close has no drain lease to exclude an autoclose) never archive the same
57
+ * prefix, and a second full closer never mistakes the first one's
58
+ * tombstone for an interrupted close. Identity when run in isolation.
80
59
  */
81
60
  readonly with_stream_lock?: <T>(stream: string, work: () => Promise<T>) => Promise<T>;
82
61
  };
@@ -1 +1 @@
1
- {"version":3,"file":"close-cycle.d.ts","sourceRoot":"","sources":["../../../src/internal/close-cycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,MAAM,EAEN,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACnE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,oBAAoB,EAAE,CAAC,KAAK,EAAE,M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,MAAM,CAAC,CAAC;IAClE;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAC5B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KACnB,OAAO,CAAC,CAAC,CAAC,CAAC;CACjB,CAAC;AAgCF;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,WAAW,EAAE,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,WAAW,CAAC,CA0BtB"}
@@ -2,8 +2,8 @@
2
2
  * @module close-signal
3
3
  * @category Internal
4
4
  *
5
- * The control-flow signal a reaction handler throws to *close* a stream
6
- * (#1090). Like {@link "defer-signal".DeferSignal} it rides the dispatcher's
5
+ * The control-flow signal a reaction handler throws to *close* a stream.
6
+ * Like {@link "defer-signal".DeferSignal} it rides the dispatcher's
7
7
  * `try/catch`, but where a defer holds the stream for later, a close asks the
8
8
  * orchestrator to retire it: `build_handle` turns the signal into a
9
9
  * `HandleResult.close` (a {@link CloseTarget}), `run_drain_cycle` acks the
@@ -43,7 +43,7 @@ export declare class CloseSignal extends Error {
43
43
  */
44
44
  readonly at?: number;
45
45
  /**
46
- * Windowed close (#1011): prune events older than this cutoff behind
46
+ * Windowed close: prune events older than this cutoff behind
47
47
  * the closest safe snapshot instead of retiring the stream. Thrown by
48
48
  * the autoclose reaction of a `.autocloses({ keep })` state; flows
49
49
  * into {@link CloseTarget.before}. Omitted → a full close.
@@ -127,13 +127,13 @@ export declare function resolveShutdownConfig(options: ShutdownOptions | undefin
127
127
  /** Validate the scalar `ActOptions` knobs at build. Throws `ZodError`. */
128
128
  export declare function resolveActConfig(options: ActOptions | undefined): ActOptions | undefined;
129
129
  /**
130
- * @deprecated The cadence knob is derived from `autocloseWindow` now (#1175);
130
+ * @deprecated The cadence knob is derived from `autocloseWindow` now;
131
131
  * nothing consumes it. Kept for compat; removed in the next major.
132
132
  */
133
133
  export declare const DEFAULT_AUTOCLOSE_CYCLE_MINUTES = 720;
134
- /** @deprecated Dead since #1090 removed the autoclose sweep. */
134
+ /** @deprecated Unused since the autoclose sweep was removed. */
135
135
  export declare const DEFAULT_CLOSE_BATCH_SIZE = 64;
136
- /** @deprecated Dead since #1090 removed the autoclose sweep. */
136
+ /** @deprecated Unused since the autoclose sweep was removed. */
137
137
  export declare const DEFAULT_CLOSE_YIELD_MS = 0;
138
138
  /** Default IANA zone for `autocloseWindow` when the operator omits one. */
139
139
  export declare const DEFAULT_AUTOCLOSE_WINDOW_TZ = "UTC";
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/internal/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,WAAW,EACX,UAAU,EACV,eAAe,EACf,aAAa,EACb,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAsB3B,8EAA8E;AAC9E,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,cAAc,GAAG,SAAS,GAClC,cAAc,GAAG,SAAS,CAI5B;AAQD,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,iEAAiE;AACjE,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;iBAIzB,CAAC;AAEH,iCAAiC;AACjC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEnE,0EAA0E;AAC1E,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,eAAe,GACvB,cAAc,CAEhB;AAQD,QAAA,MAAM,mBAAmB;;;;;;;;;;;;iBAGvB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