@automatalabs/workflows 0.40.2 → 0.40.3

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 (2) hide show
  1. package/README.md +17 -2
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -296,7 +296,22 @@ resolves immediately; without one, the default mode still takes `default ?? true
296
296
  `headless: "abort"` aborts. Only `headless: "pause"` returns `reason: "checkpoint_required"` plus
297
297
  `checkpointContext`; resume with `checkpointReplies: { [context.callIndex]: decision }` (or a live
298
298
  `confirm`). The injected answer is journaled and replayed, so a detached run never pauses for a
299
- checkpoint unless the author opts in. `WorkflowManagerOptions` lets you set a default `agent`, `concurrency`, `cwd`, a
299
+ checkpoint unless the author opts in. `checkpointReplies` works with the default `"auto"` policy;
300
+ it does not require `resumePolicy: "positional"` or any other particular policy. The supplied JSON
301
+ decision is returned verbatim from `checkpoint()` (`kind: "confirm"` therefore normally receives a
302
+ boolean).
303
+
304
+ Resume guarantees journal/script replay integrity and checkpoint-reply targeting only. It never
305
+ assumes or guarantees that the filesystem, external systems, agent output semantics, or any other
306
+ part of the world stayed fresh between runs. If an unsafe prefix must run live, a supplied reply is
307
+ injected only when execution reaches the exact recorded checkpoint call site with the same
308
+ checkpoint identity and inputs; content-only matching is insufficient after that live prefix. A
309
+ reply that is not applied is reported in `resumeReport` and terminal summaries. Authors who want a
310
+ decision bound to changing content should interpolate that content into the checkpoint prompt so it
311
+ participates in the checkpoint's hashed replay identity and a divergence re-asks instead of
312
+ injecting.
313
+
314
+ `WorkflowManagerOptions` lets you set a default `agent`, `concurrency`, `cwd`, a
300
315
  `loadSavedWorkflow` resolver (enables nested `workflow('name')`), a custom `persistence`
301
316
  implementation, and per-agent timeout/retry defaults.
302
317
 
@@ -361,7 +376,7 @@ sources with an input-fingerprint format below 2 use the
361
376
  ≤0.23 resume hop when the ancestor run still exists in the same persistence directory; nested and deleted-run scopes stay live. Engine
362
377
  package versions are persisted and surfaced as diagnostics but never gate replay. Every new-run
363
378
  resume exposes `WorkflowReplayEligibility` on the foreground result and inspection status: strategy,
364
- predicted and observed replayable prefixes, counts, the first non-replay when known, source/current
379
+ an admission-time upper bound and the observed replayable prefix, counts, the first non-replay when known, source/current
365
380
  engine and input-format versions, non-gating runtime/environment provenance changes, and operational changes.
366
381
 
367
382
  The manager's critical initial save contains the complete inherited seed before a background
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automatalabs/workflows",
3
- "version": "0.40.2",
3
+ "version": "0.40.3",
4
4
  "license": "Apache-2.0",
5
5
  "engines": {
6
6
  "node": ">=22"
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "typebox": "1.3.2",
34
- "@automatalabs/shared-types": "0.26.1",
35
- "@automatalabs/workflow-engine": "0.29.1",
36
- "@automatalabs/acp-agents": "0.34.1"
34
+ "@automatalabs/shared-types": "0.26.2",
35
+ "@automatalabs/workflow-engine": "0.29.2",
36
+ "@automatalabs/acp-agents": "0.34.2"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "tsc -b",