footprintjs 9.46.0 → 9.47.0

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 (82) hide show
  1. package/AGENTS.md +4 -3
  2. package/CLAUDE.md +8 -8
  3. package/README.md +1 -1
  4. package/dist/advanced.js +95 -90
  5. package/dist/esm/advanced.d.ts +16 -10
  6. package/dist/esm/advanced.js +14 -9
  7. package/dist/esm/index.d.ts +4 -2
  8. package/dist/esm/index.js +5 -3
  9. package/dist/esm/lib/decide/evaluator.js +2 -2
  10. package/dist/esm/lib/decide/evidence.js +2 -2
  11. package/dist/esm/lib/engine/handlers/servedPause.js +2 -2
  12. package/dist/esm/lib/memory/EventLog.d.ts +1 -1
  13. package/dist/esm/lib/memory/EventLog.js +2 -2
  14. package/dist/esm/lib/memory/RecordFrame.d.ts +41 -6
  15. package/dist/esm/lib/memory/RecordFrame.js +36 -5
  16. package/dist/esm/lib/memory/SharedMemory.d.ts +1 -1
  17. package/dist/esm/lib/memory/SharedMemory.js +2 -2
  18. package/dist/esm/lib/memory/StageContext.d.ts +21 -14
  19. package/dist/esm/lib/memory/StageContext.js +36 -74
  20. package/dist/esm/lib/memory/borrowedMutation.d.ts +1 -1
  21. package/dist/esm/lib/memory/borrowedMutation.js +2 -2
  22. package/dist/esm/lib/memory/honesty.d.ts +4 -3
  23. package/dist/esm/lib/memory/honesty.js +5 -4
  24. package/dist/esm/lib/memory/index.d.ts +4 -2
  25. package/dist/esm/lib/memory/index.js +6 -4
  26. package/dist/esm/lib/memory/placeholders.d.ts +23 -28
  27. package/dist/esm/lib/memory/placeholders.js +24 -29
  28. package/dist/esm/lib/memory/recordCommit.d.ts +5 -3
  29. package/dist/esm/lib/memory/recordCommit.js +7 -5
  30. package/dist/esm/lib/memory/redaction.d.ts +78 -40
  31. package/dist/esm/lib/memory/redaction.js +130 -64
  32. package/dist/esm/lib/memory/runAddress.d.ts +20 -0
  33. package/dist/esm/lib/memory/runAddress.js +25 -0
  34. package/dist/esm/lib/memory/scrub.d.ts +53 -0
  35. package/dist/esm/lib/memory/scrub.js +74 -0
  36. package/dist/esm/lib/memory/utils.d.ts +3 -3
  37. package/dist/esm/lib/memory/utils.js +4 -4
  38. package/dist/esm/lib/memory/verbs.d.ts +1 -1
  39. package/dist/esm/lib/memory/verbs.js +2 -2
  40. package/dist/esm/trace.d.ts +2 -0
  41. package/dist/esm/trace.js +3 -2
  42. package/dist/esm/write.d.ts +47 -0
  43. package/dist/esm/write.js +46 -0
  44. package/dist/index.js +5 -3
  45. package/dist/lib/decide/evaluator.js +3 -3
  46. package/dist/lib/decide/evidence.js +3 -3
  47. package/dist/lib/engine/handlers/servedPause.js +3 -3
  48. package/dist/lib/memory/EventLog.js +2 -2
  49. package/dist/lib/memory/RecordFrame.js +36 -5
  50. package/dist/lib/memory/SharedMemory.js +2 -2
  51. package/dist/lib/memory/StageContext.js +42 -80
  52. package/dist/lib/memory/borrowedMutation.js +2 -2
  53. package/dist/lib/memory/honesty.js +5 -4
  54. package/dist/lib/memory/index.js +6 -4
  55. package/dist/lib/memory/placeholders.js +25 -30
  56. package/dist/lib/memory/recordCommit.js +9 -7
  57. package/dist/lib/memory/redaction.js +144 -75
  58. package/dist/lib/memory/runAddress.js +29 -0
  59. package/dist/lib/memory/scrub.js +79 -0
  60. package/dist/lib/memory/utils.js +4 -4
  61. package/dist/lib/memory/verbs.js +2 -2
  62. package/dist/trace.js +6 -4
  63. package/dist/types/advanced.d.ts +16 -10
  64. package/dist/types/index.d.ts +4 -2
  65. package/dist/types/lib/memory/EventLog.d.ts +1 -1
  66. package/dist/types/lib/memory/RecordFrame.d.ts +41 -6
  67. package/dist/types/lib/memory/SharedMemory.d.ts +1 -1
  68. package/dist/types/lib/memory/StageContext.d.ts +21 -14
  69. package/dist/types/lib/memory/borrowedMutation.d.ts +1 -1
  70. package/dist/types/lib/memory/honesty.d.ts +4 -3
  71. package/dist/types/lib/memory/index.d.ts +4 -2
  72. package/dist/types/lib/memory/placeholders.d.ts +23 -28
  73. package/dist/types/lib/memory/recordCommit.d.ts +5 -3
  74. package/dist/types/lib/memory/redaction.d.ts +78 -40
  75. package/dist/types/lib/memory/runAddress.d.ts +20 -0
  76. package/dist/types/lib/memory/scrub.d.ts +53 -0
  77. package/dist/types/lib/memory/utils.d.ts +3 -3
  78. package/dist/types/lib/memory/verbs.d.ts +1 -1
  79. package/dist/types/trace.d.ts +2 -0
  80. package/dist/types/write.d.ts +47 -0
  81. package/dist/write.js +52 -0
  82. package/package.json +15 -1
package/AGENTS.md CHANGED
@@ -10,14 +10,15 @@ This is the footprint.js library — the flowchart pattern for backend code. Sel
10
10
 
11
11
  ## Architecture — Library of Libraries
12
12
 
13
- `package.json` `exports` has six doors — import from the one that owns the symbol:
13
+ `package.json` `exports` has seven doors — import from the one that owns the symbol:
14
14
 
15
15
  | Import | What it is for |
16
16
  |---|---|
17
17
  | `footprintjs` | The main door: `flowChart`, `FlowChartExecutor`, `decide` / `select`, `narrative`, the built-in recorder classes, `interrupt`, and the public types |
18
18
  | `footprintjs/recorders` | Recorder factories — `narrative()`, `metrics()`, `debug()`, `manifest()`, `adaptive()`, `milestone()`, `windowed()` — and `CompositeRecorder` |
19
- | `footprintjs/trace` | Execution tracing: runtimeStageId helpers, commit-log queries (`findCommit`, `findLastWriter`, `causalChain`, `sliceForKey`, `stateAt`, `timeTravel`), the storage primitives (`KeyedStore`, `SequenceStore`, `BoundaryStateStore`), `topologyRecorder()` / `inOutRecorder()`, `HONESTY_CODES` |
20
- | `footprintjs/advanced` | Engine internals (`SharedMemory`, `StageContext`, `FlowchartTraverser`, `ScopeFacade`, scope providers, `SCOPE_METHOD_NAMES`, `ArrayMergeMode`) plus a small hand-picked slice of the trace helpers (`findCommit`, `findCommits`, `findLastWriter`, `parseRuntimeStageId`, `buildRuntimeStageId`) — not all of `trace` |
19
+ | `footprintjs/trace` | Execution tracing: the record's shapes (`CommitBundle`, `TraceEntry`, `MemoryPatch`), runtimeStageId helpers, commit-log queries (`findCommit`, `findLastWriter`, `applySmartMerge`, `causalChain`, `sliceForKey`, `stateAt`, `timeTravel`), the storage primitives (`KeyedStore`, `SequenceStore`, `BoundaryStateStore`), `topologyRecorder()` / `inOutRecorder()`, `HONESTY_CODES` |
20
+ | `footprintjs/write` | Writing a record yourself: the record layer the engine writes with — `SharedMemory` (the heap), `EventLog` (the log), `RecordFrame` (one step's frame) and their option types |
21
+ | `footprintjs/advanced` | Engine internals (`StageContext`, `FlowchartTraverser`, `ScopeFacade`, scope providers, `SCOPE_METHOD_NAMES`, `ArrayMergeMode`, the run policy and `RedactionRule`). Until 10.0.0 it also keeps the record names it handed out before 9.47.0 — import those from `trace` or `write`; the nine record internals among them (`TransactionBuffer`, `deepSmartMerge`, …, `redactPatch`) have no other door and leave the public surface at 10.0.0 |
21
22
  | `footprintjs/detach` | Fire-and-forget child charts and their drivers |
22
23
  | `footprintjs/zod` | Opt-in zod bridge (`defineScopeFromZod`, …) — the core never imports zod |
23
24
 
package/CLAUDE.md CHANGED
@@ -4,12 +4,12 @@
4
4
  Self-explaining flowchart engine: a fluent builder emits a static chart; one DFS pass executes it while observer channels + a commit log capture everything ("collect during traversal, never post-process"). This file maps seams and blast radius; for API description read the code/README — **trust the code** where any doc disagrees.
5
5
 
6
6
  ## Module map
7
- Entry points: `footprintjs` (public API) · `/recorders` (factories) · `/trace` (commitLog queries, stores, causalChain) · `/advanced` (engine internals) · `/detach` · `/zod` (opt-in; zod never imported by core). New public symbols are wired through the barrel that OWNS them (canonical path); `/advanced` re-exports only a small hand-picked trace subset — do not assume `export *` chaining.
7
+ Entry points: `footprintjs` (public API) · `/recorders` (factories) · `/trace` (the record's shapes `CommitBundle`/`TraceEntry`/`MemoryPatch`, commitLog queries, `applySmartMerge`, stores, causalChain) · `/write` (C5, 9.47.0: the record layer as the public writer — `RecordFrame`, `SharedMemory`, `EventLog` + option types; engine-free, `test/architecture/write-door.test.ts`) · `/advanced` (engine internals; until 10.0.0 also every record name it handed out before 9.47.0, as `keptUntil` second doors) · `/detach` · `/zod` (opt-in; zod never imported by core). New public symbols are wired through the barrel that OWNS them (canonical path) — do not assume `export *` chaining. A minor never drops a published name: a move keeps the old door until the next major (`test/architecture/published-doors.test.ts`).
8
8
 
9
9
  | src/lib/ | one job |
10
10
  |---|---|
11
11
  | capture/ | retention policies + bounded payload summarization (leaf; shared by tracking dials AND deferred-observer capture) + `valueKinds` (the ONE classifier of value kinds: `deepEqual`'s arms and what freezing seals, 9.44.2) + the shared leaves `invokeHook` (the one recorder-hook invoker both delivery tiers use), `circular` (dev-mode cycle probe), `summarizeValue` (the narrative one-liner); `lib/devMode.ts` — the dev-mode flag — is its sibling leaf (all four moved out of scope/ and recorder/ in F0: they closed the one memory ⇄ scope ⇄ recorder module cycle) |
12
- | memory/ | transactional state: SharedMemory heap, StageContext frames, `RecordFrame` (the record half of a frame, L3, C3: the address, the first-touch base, the two-tier read, the lazy buffer, the readKeys list, and the commit through `recordCommit`; StageContext composes it), TransactionBuffer staging (+ admission.ts, the admitted record's check; deltaEncoding.ts, the delta encoder's helpers), EventLog commit log — PLUS the ONE verb law (`verbs.ts`, L1: `applyVerb`, `foldRows`, `foldKey`; leaves `paths.ts` / `equality.ts` / `merge.ts`; `utils.ts` re-exports them) and trace analysis (backtrack.ts causalChain, commitLogUtils.ts) |
12
+ | memory/ | transactional state: SharedMemory heap, StageContext frames, `RecordFrame` (the record half of a frame, L3, C3: the address, the first-touch base, the two-tier read, the lazy buffer (private since C4: staged only through `write(path, value, verb, scrub?)`, which carries a redaction verdict's bytes), the readKeys list, and the commit through `recordCommit`; StageContext composes it; with `SharedMemory` and `EventLog` it is the public writer on `/write`, C5 — the engine writes through the same classes), the log's scrub (`scrub.ts`, L2: `scrubPatch` / `redactPatch`, C4), TransactionBuffer staging (+ admission.ts, the admitted record's check; deltaEncoding.ts, the delta encoder's helpers), EventLog commit log — PLUS the ONE verb law (`verbs.ts`, L1: `applyVerb`, `foldRows`, `foldKey`; leaves `paths.ts` / `equality.ts` / `merge.ts`; `utils.ts` re-exports them) and trace analysis (backtrack.ts causalChain, commitLogUtils.ts) |
13
13
  | schema/ | duck-typed validation (`.safeParse/.parse` ⇒ 'parseable') |
14
14
  | builder/ | fluent DSL → FlowChartSpec → StageNode graph; build-time StructureRecorder channel. NOT standalone: imports runner's makeRunnable (FlowChartBuilder.ts:18) |
15
15
  | scope/ | ScopeFacade per stage (tracked get/set, $emit, frozen args/env); built-in ScopeRecorders in scope/recorders/ |
@@ -24,12 +24,12 @@ Entry points: `footprintjs` (public API) · `/recorders` (factories) · `/trace`
24
24
  | observer-queue/ | pure deferred-delivery pipeline (engine imports IT, never reverse) |
25
25
  | contract/, detach/ | I/O schema normalization (OpenAPI generation belongs to runner/RunnableChart); fire-and-forget child charts (drivers passed explicitly) |
26
26
 
27
- **The fence (F0):** a file imports only its own layer or BELOW — L0 values/leaves · L1 verbs · L2 staging+commit · L3 the log as a read model + the record half of a frame (`RecordFrame`) · L4 frame+run policy · L5 scope/recorders/hooks · L6 engine · L7 builder+executor · L8 the `src/*.ts` entry barrels. The table is DATA in `scripts/layering.config.cjs` (most specific pattern wins; an unplaced file is an error, and `memory/` has no directory default because it spans L0–L4) and has three readers, none with a copy: `.eslintrc.js` (generated `import/no-restricted-paths` zones + `import/no-cycle`, src only), `npm run check:layering` (value-level cycles at module AND file level + upward RUNTIME edges; type-only imports excluded — the set equals the compiled CJS `require` graph), `test/architecture/layering.test.ts`. Three edges are named on purpose — builder → `runner/RunnableChart.ts` (`makeRunnable`), engine → `reactive/handles.ts`, scope → `detach/spawn.ts` — plus a short `TYPE_ONLY_ALLOWANCES` list (upward imports tsc erases, which the lint rule cannot tell apart); both lists are live-checked and only shrink. A new src file under an unsplit directory inherits its layer; one under `memory/` (or an exact-path entry) must be added to LAYERS — an unplaced file fails lint and the script. Public symbols have ONE canonical door each — `test/architecture/exports.test.ts` fails on any symbol two of the six `package.json` doors both hand out unless it is in `SECOND_DOORS` (28 today, in four reasoned groups; an alias counts as a door).
27
+ **The fence (F0):** a file imports only its own layer or BELOW — L0 values/leaves · L1 verbs · L2 staging+commit · L3 the log as a read model + the record half of a frame (`RecordFrame`) · L4 frame+run policy+the redaction verdict (`redaction.ts`, C4) · L5 scope/recorders/hooks · L6 engine · L7 builder+executor · L8 the `src/*.ts` entry barrels. The table is DATA in `scripts/layering.config.cjs` (most specific pattern wins; an unplaced file is an error, and `memory/` has no directory default because it spans L0–L4) and has three readers, none with a copy: `.eslintrc.js` (generated `import/no-restricted-paths` zones + `import/no-cycle`, src only), `npm run check:layering` (value-level cycles at module AND file level + upward RUNTIME edges; type-only imports excluded — the set equals the compiled CJS `require` graph), `test/architecture/layering.test.ts`. Three edges are named on purpose — builder → `runner/RunnableChart.ts` (`makeRunnable`), engine → `reactive/handles.ts`, scope → `detach/spawn.ts` — plus a short `TYPE_ONLY_ALLOWANCES` list (upward imports tsc erases, which the lint rule cannot tell apart); both lists are live-checked and only shrink. A new src file under an unsplit directory inherits its layer; one under `memory/` (or an exact-path entry) must be added to LAYERS — an unplaced file fails lint and the script. Public symbols have ONE canonical door each — `test/architecture/exports.test.ts` fails on any symbol two of the seven `package.json` doors both hand out unless it is in `SECOND_DOORS` (19 standing in three reasoned groups, plus 15 `keptUntil: '10.0.0'` old `/advanced` doors of C5's moves; an alias counts as a door).
28
28
 
29
29
  ## Core state & flow
30
- - `SharedMemory` (memory/SharedMemory.ts) — address-scoped heap: the frame's record frame hands it the address (`RecordFrame · address`; the engine decides it in `StageContext.ts · runAddress` / `useAddressOf` from the ONE L4 constant `RUN_NAMESPACE`, C2/C3); committed state is **immutable-after-swap**, COPY-ON-WRITE since 9.29.0: every write (`applyPatch` → `verbs · nextGeneration`, `setValue`/`updateValue`) copies the root + the containers on each written path and SHARES every other subtree with the previous generation, then swaps. A generation is never edited; the seed is detached once at construction. Design: docs/design/2026-10-copy-on-write-commit.md.
31
- - `StageContext` (memory/StageContext.ts:29) — per-stage frame inside a run; composes `RecordFrame` (memory/RecordFrame.ts, L3, C3: the lazy TransactionBuffer, the first-touch base, the two-tier read, readKeys, the address); `commit()` → `RecordFrame · commit` (payload, then the names) → `memory/recordCommit.ts · recordCommit` (live apply → scrub → mirror → `EventLog.record`) → onCommit → `RecordFrame · release`. `runId` is readonly (the address is decided once, 9.46.0).
32
- - `CommitBundle`/`EventLog` — one bundle per executed stage, `bundle.idx` == array position; encoding governed by `commitValues: 'full'|'delta'`.
30
+ - `SharedMemory` (memory/SharedMemory.ts) — address-scoped heap: the frame's record frame hands it the address (`RecordFrame · address`; the engine decides it in `runAddress.ts · runAddress` / `StageContext · useAddressOf` from the ONE L4 constant `runAddress.ts · RUN_NAMESPACE`, C2–C4); committed state is **immutable-after-swap**, COPY-ON-WRITE since 9.29.0: every write (`applyPatch` → `verbs · nextGeneration`, `setValue`/`updateValue`) copies the root + the containers on each written path and SHARES every other subtree with the previous generation, then swaps. A generation is never edited; the seed is detached once at construction. Design: docs/design/2026-10-copy-on-write-commit.md.
31
+ - `StageContext` (memory/StageContext.ts:29) — per-stage frame inside a run; composes `RecordFrame` (memory/RecordFrame.ts, L3, C3: the lazy TransactionBuffer, the first-touch base, the two-tier read, readKeys, the address); `commit()` → `RecordFrame · commit` (payload, then the names) → `memory/recordCommit.ts · recordCommit` (live apply → scrub → mirror → `EventLog.record`) → onCommit → `RecordFrame · release`. `runId` is readonly (the address is decided once, 9.46.0). A staged write is `StageContext · stageWrite`: `redaction.ts · decideWrite` (the verdict) → `inheritByIdentity` (an object read under a selected name keeps its rule) → `RecordFrame · write(…, scrubOf(verdict))` (its bytes) → `markStagedWrite` (the run's marks, only once the write staged; C4, 9.46.1). Each step reads the rule when it acts.
32
+ - `CommitBundle`/`EventLog` — one bundle per executed stage, `bundle.idx` == array position; encoding governed by `commitValues: 'full'|'delta'`. Canonical doors: `CommitBundle` on `/trace`, `EventLog` on `/write` (C5; also `/advanced` until 10.0.0).
33
33
  - `TraversalContext` (engine/narrative/types.ts:172) — THE per-event context (runId, runtimeStageId, parentRuntimeStageId, subflowPath, loopIteration); stamped on every FlowRecorder event.
34
34
  - `runtimeStageId` = `[subflowPath/]stageId#executionIndex`; counter shared by reference into subflow traversers → globally unique; NOT reset on resume.
35
35
  - Subflows get a fresh isolated ExecutionRuntime (SubflowExecutor.ts:119); inputMapper seeds, outputMapper merges back (arrays CONCAT unless `arrayMerge: Replace`).
@@ -54,13 +54,13 @@ Entry points: `footprintjs` (public API) · `/recorders` (factories) · `/trace`
54
54
 
55
55
  ## Change-impact map
56
56
  - **Trace verbs** (`set|merge|append|delete`, memory/types.ts:42) → ONE law, `memory/verbs.ts` (L1) — F2 deleted the three replicas. `applyVerb` is the ONLY function with an arm per verb (a fifth verb in the union stops compiling there; `TRAITS` — `isTotal` / `recordsTail` — says what a verb IS, pinned against the step), `placeVerb` puts its value or removes the key (`ABSENT`), and two loops fold it: `foldRows` folds ONE bundle's rows into a state with the clone DISCIPLINE as a parameter (`'private'` = the PUBLIC `applySmartMerge`, which keeps its 9.28.0 contract: base deep-cloned, fully detached result — 9.29.0; `'pathCopy'` = the engine's `nextGeneration` — live commit + redacted mirror — and the folds' `applySmartMergeInto` — `stateAt`, `EventLog.materialise`; `'byReference'` = `dryFold`, the admitted record's comparison fold — 9.30.0), and `foldKey` folds ONE path's rows across a log — `commitLogUtils · commitValueAt` (anchored at the last total row) and `slice/elementProvenance · arrayProvenance` (an OBSERVER of that fold: it keeps the births and has no verb switch); causalChain/findLastWriter only match paths. A bundle's merge delta is detached ONCE per bundle (`RecordedPayload`): `deepSmartMerge` dedups an array union BY REFERENCE, so the merge rows of one bundle must see the same objects (a per-row clone made `commitValueAt` double the elements — the 9.29.0 reader bug, fixed here); `foldKey` narrows that copy to its one path. **An unknown verb is REFUSED** (`UnknownVerbError`, public on `/trace`; R2) by `foldRows` (so `applySmartMerge`), `commitValueAt`, `arrayProvenance` — they used to fold it as a `merge`; `time-travel/bundles · bundleRefusal` asks the same `isVerb` and makes it a GAP instead. Pinned: the three old replicas live on as the CONTROL in test/lib/memory/property/verb-law-differential.property.test.ts (kept for the packet's lifetime). The delta encoder keeps VOCABULARY only since 9.30.0 (it picks a verb; its values come from `dryFold` of the stage's 'full' rows — `TransactionBuffer · fullRowsValue`; `replayPathVerbs`/`replayFamilyVerbs` deleted). NOT a second loop (9.22.1): `verbs.ts · supersededByNextSet` — the ONE repeated-path skip (CONSECUTIVE same-path `set` rows: only the last is applied), asked by `foldRows` before its step; its commit-side twin is the last-materialised-path memo in `toChangeOnlyPayload`. Rows are never dropped from the log; a non-consecutive skip is WRONG (a descendant op in between coerces/shells the container) — pinned by test/lib/memory/scenario/repeated-path-byte-identity.test.ts. Since 9.23.0 the clone in that memo loop (and every `structuredClone` in `toDeltaPayload`) is THE clone — the patch trees hold references until commit; no verb switch was touched.
57
- - **Write address** → ONE constant, `StageContext.ts · RUN_NAMESPACE` (L4), read by `runAddress` and `useAddressOf`; the frame's `RecordFrame` holds the address (C3). `SharedMemory` and the nested writers take the address as data and refuse a non-array; `TransactionBuffer` takes it too (C2, 9.45.0). `test/architecture/write-address.test.ts` refuses the namespace below L4, as a literal or a property (exceptions `RedactionRule · verdictOfRead` / `retainState` until C4).
57
+ - **Write address** → ONE constant, `runAddress.ts · RUN_NAMESPACE` (an L4 leaf, C4), read by `runAddress` / `useAddressOf` and by `RedactionRule · verdictOfRead` / `retainState`; the frame's `RecordFrame` holds the address (C3). `SharedMemory` and the nested writers take the address as data and refuse a non-array; `TransactionBuffer` takes it too (C2, 9.45.0). `test/architecture/write-address.test.ts` refuses the namespace below L4, as a literal or a property — no exceptions since C4.
58
58
  - **StageContext.commit / dials** → ONE owner since 9.35.0 (F5): `memory/runPolicy.ts` — a frozen `RunPolicy` (the four dials + the `RedactionRule` + the mirror flag) built ONCE by `FlowChartExecutor · createTraverser` (run AND resume), handed to `ExecutionRuntime`, held BY REFERENCE by every `StageContext` (`inheritRun` in createNext/createChild) and by its `RecordFrame` as its encoding (`useEncoding`, through `StageContext · adoptPolicy`, the one place a frame's policy changes) and passed by `SubflowExecutor · executeSubflow` to the nested runtime BEFORE the seed. A fifth dial = the policy type + its consumer. The old per-dial `use*`/`get*` and `enableRedactedMirror` were removed in 9.36.0 (no compat shims — owner ruling). `commit()`'s FIRST act (9.23.0) is `materialiseWrites` — the `writeTracking` retained form is taken there, once per key, from `_pendingWrites` (bare references + the write-time verdict); anything that reads `_stageWrites` goes through `retainedWrites()` (a non-consuming fold, so a mid-run snapshot is honest), and `discardStaged` drops the pending map with the rest.
59
59
  - **runtimeStageId format** (`#`/`/` delimiters) → ONE grammar owner since 9.37.0 (F7): `src/lib/ids/` (L0 leaf: `runtimeStageId.ts` — `parseRuntimeStageId`, `isExecutionKey`, `stageIdOf`, `subflowPathOf`, `refuseReservedId`; `branchSegment.ts` — the `~` grammar). Every parser (ScopeFacade subflow path, subflowResults dual-keying, narrative buffering, store keys) calls it; none re-derives the grammar. R5: every id door (22 at build, plus the run-time dynamic-StageNode door) refuses `#` and `/`; stage ids may contain `~`. `TraversalContext` has ONE constructor (`engine/traversalContext.ts`); `depth` = subflow nesting read off the runtimeStageId on every stamp. Brands `RuntimeStageId`/`ExecutionIndex`/`CommitIdx` on `/trace` (types only).
60
60
  - **Subflow id prefixing** → ONE prefixer since 9.37.0: `engine/graph/prefixNodeTree.ts`, used by the builder AND the traverser (eager, lazy and `parallelForEach` mounts — lazy/branch roots were unprefixed before 9.37.0, so branch ids collided); change it + stageMap key composition + resume drilling; the builder's eager mounts all go through `FlowChartBuilder · _mountSubflow` (F10). test/lib/engine/branch-segment-prefixer-equivalence.test.ts stays as a guard.
61
61
  - **Checkpoint shape** (format 2 since 9.44.0, LEAN: only what resume reads + the pause's record — no `executionTree`/`subflowResults`; size independent of run length, pinned by test/lib/pause/checkpoint-size.test.ts; 9.39–9.43 refuse format 2, so upgrade readers before writers) → `runner/checkpoint.ts · buildPauseCheckpoint` ↔ `pause/record.ts · decodeCheckpoint` (one upcaster drops v0/v1 fields) ↔ `runner/resume.ts · planResume` (validation via `pause/record.ts · decodeCheckpoint`) ↔ `ResumeEntry.plan` (the path's mounts + captures + dispatcher continuations, the `pendingPauses` queue; refused up front when unwalkable, ambiguous, or a pending record is not a sibling) ↔ `SubflowExecutor · executeSubflow` resume hop (seed from the capture in place of the mapper's values — the mapper still runs, for the args — FIRST entry only) ↔ `ChildrenExecutor · raisePauses` (fills `pendingPauses`). 9.28.0 adds ONE optional field, `pendingPauses` (present only when parallel siblings wait); the redaction law adds `redactionMarks` (names only, present only when the run marked something); every stored checkpoint enters through `pause/record.ts · decodeCheckpoint` (`checkpointVersion: 1`, one upcaster from unversioned v0 which drops the legacy `continuationStageId`, one validator, one message set; 9.39.0). Pinned: a 9.27.0 checkpoint resumes, test/lib/pause/resume-real-chart-9.27.0-checkpoints.test.ts.
62
62
  - **Committed-state writers** (copy-on-write, 9.29.0) → anything that writes into `SharedMemory`'s state, a fold's working copy or the buffer's working copy must copy before it writes: `pathOps · ownSpine` for the containers on the path, `ownedRootOf` for the root, `own`/`adopt` for what it created. An in-place edit of a container it did not create edits every generation sharing it — the counted guard stays green while the generations property fails. A new READ path through `TransactionBuffer` goes through `get` (private after the first write) unless it only compares (`peek`); a read the working copy cannot answer is served from LIVE state (`RecordFrame · read`, as on 9.28.0) after `TransactionBuffer · detachBase` gives the diff base a private copy at that path — a private copy of the value handed out instead would change live state wherever 9.28.0 let an in-place edit in (a fork child's read of a parent key). `TransactionBuffer · merge` privatises its base first: `deepSmartMerge` dedups arrays BY REFERENCE, so the identity of the base is part of the bytes.
63
- - **Redaction** (9.19.0; the law restored to owner ruling (a)) has ONE owner: `memory/redaction.ts` `RedactionRule` (verdict per user-level path: `clear | whole | fields`), carried on the run's `RunPolicy` with the four dials (F5). THE LAW: a policy covers EVERYTHING the library retains or serves — log (both encodings), mirror, stageReads/stageWrites, every recorder event inline and deferred (and the rows built from them), narrative, snapshots, diagnostics, pause payloads, boundary records, logger lines — and NEVER the live heap or the resume checkpoint. The two true exceptions are the caller's own values: the `run()` rejection and the live fork result. It selects by NAME, never by content: state by path (`verdict`); a record handed out whole (root input/output — `FlowchartTraverser.execute`; subflow seed/exit — `SubflowExecutor`; pause payload — `engine/handlers/servedPause.ts`; thrown value — `retainStageError`) by its keys at every depth plus declared `fields` under a key of that name (`retainBoundary` — one decision per PATH via `servedByPath`: copy-on-write per path, the visited set only the current path's ancestor stack, a cycle edge landing on the served copy; a path rule is exact under shared references, a key-NAME rule masks a shared node everywhere); a diagnostic entry as the record `{ [name]: value }` (`retainDiagnostic`; `policy.diagnostics` ADDS diagnostic-only selectors, the only ones that reach flow-message text); a subflow mapper's copy by TAINT (`MapperTaint`, asked by `SubflowInputMapper` for both mappers; the `parallelForEach` items selector counts selected reads via `StageContext · selectedReads` and marks `item`/`into`): a value passed under its own name keeps that name's verdict, an object by reference (or the whole handed record, as fields) keeps its source's, anything computed after a selected read is marked whole (conservative); never value equality across names. A mark is a NAME, run-wide, until the key is deleted — and a pause carries the marks (names only) to the resumed run (`FlowchartCheckpoint.redactionMarks`, checked by `pause/record.ts`). A thrown value is walked with its `cause`/`errors`; an object a mapper passes on by reference is scanned for the selected values it read (planted → fields). Name-only patterns (`needsPath` false — no `.`, lookaround, or escape/class that can match `.`) are decided per object, so the walk shares decisions per (object, targets) — linear on a DAG or a linked history; only a path-dependent pattern walks paths, and past 1,000,000 visits it serves the unvisited remainder as the placeholder (one dev-mode warning), never fails the run. Inside a stage, an OBJECT read under a selected name and written under another keeps its rule (`StageContext · stageWrite`, by identity); a primitive or a new object copied across names is selected by its own name only. `StageContext.stageWrite` is the ONE write funnel (facade writes, subflow seed, outputMapper merge-back, resume re-seed) and `getValue` retention asks the same rule; the facade asks it for read/write recorder payloads. An inert rule never enumerates a payload. `emitPatterns` is the one separate scrub (`$emit` payloads, by event name). Two placeholders, historical: log/mirror `'REDACTED'`, scope-tier `'[REDACTED]'`. See `docs/guides/scope.md` → "The one law". Capture the retained form at runtime; no second tree walk or recorder-local policy.
63
+ - **Redaction** (9.19.0; the law restored to owner ruling (a)) has ONE owner of the DECISION, `memory/redaction.ts` (L4 since C4): `RedactionRule` (verdict per user-level path: `clear | whole | fields`) and, per staged write, `decideWrite` → `inheritByIdentity` → (the record writes) → `markStagedWrite` (the marks, only once the write staged — a failed `$update` leaves no mark in `redactionMarks` or the report); the BYTES are the record's (`RecordFrame · write` registers `scrubOf(verdict)`, `memory/scrub.ts · scrubPatch` (L2) writes the log's placeholder at commit; no record file imports `redaction.ts`), carried on the run's `RunPolicy` with the four dials (F5). THE LAW: a policy covers EVERYTHING the library retains or serves — log (both encodings), mirror, stageReads/stageWrites, every recorder event inline and deferred (and the rows built from them), narrative, snapshots, diagnostics, pause payloads, boundary records, logger lines — and NEVER the live heap or the resume checkpoint. The two true exceptions are the caller's own values: the `run()` rejection and the live fork result. It selects by NAME, never by content: state by path (`verdict`); a record handed out whole (root input/output — `FlowchartTraverser.execute`; subflow seed/exit — `SubflowExecutor`; pause payload — `engine/handlers/servedPause.ts`; thrown value — `retainStageError`) by its keys at every depth plus declared `fields` under a key of that name (`retainBoundary` — one decision per PATH via `servedByPath`: copy-on-write per path, the visited set only the current path's ancestor stack, a cycle edge landing on the served copy; a path rule is exact under shared references, a key-NAME rule masks a shared node everywhere); a diagnostic entry as the record `{ [name]: value }` (`retainDiagnostic`; `policy.diagnostics` ADDS diagnostic-only selectors, the only ones that reach flow-message text); a subflow mapper's copy by TAINT (`MapperTaint`, asked by `SubflowInputMapper` for both mappers; the `parallelForEach` items selector counts selected reads via `StageContext · selectedReads` and marks `item`/`into`): a value passed under its own name keeps that name's verdict, an object by reference (or the whole handed record, as fields) keeps its source's, anything computed after a selected read is marked whole (conservative); never value equality across names. A mark is a NAME, run-wide, until the key is deleted — and a pause carries the marks (names only) to the resumed run (`FlowchartCheckpoint.redactionMarks`, checked by `pause/record.ts`). A thrown value is walked with its `cause`/`errors`; an object a mapper passes on by reference is scanned for the selected values it read (planted → fields). Name-only patterns (`needsPath` false — no `.`, lookaround, or escape/class that can match `.`) are decided per object, so the walk shares decisions per (object, targets) — linear on a DAG or a linked history; only a path-dependent pattern walks paths, and past 1,000,000 visits it serves the unvisited remainder as the placeholder (one dev-mode warning), never fails the run. Inside a stage, an OBJECT read under a selected name and written under another keeps its rule (`redaction.ts · inheritByIdentity`, by identity — decided before the write); a primitive or a new object copied across names is selected by its own name only. `StageContext.stageWrite` is the ONE write funnel (facade writes, subflow seed, outputMapper merge-back, resume re-seed) and `getValue` retention asks the same rule; the facade asks it for read/write recorder payloads. An inert rule never enumerates a payload. `emitPatterns` is the one separate scrub (`$emit` payloads, by event name). Two placeholders, historical, one per owner: log/mirror `'REDACTED'` (`placeholders.ts · LOG_PLACEHOLDER`, a record byte), scope-tier `'[REDACTED]'` (`redaction.ts · SCOPE_PLACEHOLDER`). See `docs/guides/scope.md` → "The one law". Capture the retained form at runtime; no second tree walk or recorder-local policy.
64
64
  - **Diagnostic retention** → `DiagnosticCollector` asks the current run rule before merging/storing: a named entry maps to the state key of its name (the run's keys/patterns/marks/fields, at every depth of the value), then the opt-in `RedactionPolicy.diagnostics` selectors (same path algorithm, rooted at the channel). Its internal retained-write bridge supplies legacy facade emits. Existing writers stay void. Only flow-message description/rationale are payloads (no name — diagnostic selectors only); keys/topology/timing stay present. Dynamic capture uses a per-visit engine flag, not a diagnostic bag. A redacted `logs.deciderRationale` also reaches decision explanations. Checkpoints keep retained diagnostic bags but preserve operational state; no retroactive scrub. See the scope guide's diagnostic contract.
65
65
  - **Traverser phases** → node-shape reads must use eff* overlay accessors (:646-703) or dynamic StageNode returns break; tail continuations must return ContinuationHops or stacks regrow; decider flat-dispatch must keep InvokerStamp or pause loses its invoker.
66
66
 
package/README.md CHANGED
@@ -233,7 +233,7 @@ Import one thing, ship one thing. footprintjs is built so your bundle grows only
233
233
 
234
234
  - **Dual build, true ESM.** Ships CommonJS (`require`) **and** real ECMAScript Modules (`import`) with TypeScript types. The ESM build is marked `type:module` and every internal import carries an explicit `.js` extension, so it loads as true ESM under Node, Vite, Next, Deno, and Bun — no compatibility shims.
235
235
  - **Per-file modules + `sideEffects:false`.** The dist is emitted file-by-file (never pre-bundled) and declares zero side effects, so bundlers can drop every export you don't touch.
236
- - **Subpath exports.** Pull execution tracing from `footprintjs/trace`, fire-and-forget children from `footprintjs/detach`, engine internals from `footprintjs/advanced` — each is independently tree-shakeable.
236
+ - **Subpath exports.** Pull execution tracing from `footprintjs/trace`, write a record yourself with `footprintjs/write` (the record layer the engine writes with, and nothing of the engine), fire-and-forget children from `footprintjs/detach`, engine internals from `footprintjs/advanced` — each is independently tree-shakeable.
237
237
 
238
238
  **Proven, not promised.** A CI smoke test bundles a minimal `import { flowChart } from 'footprintjs'` and asserts the recorder, detach, and trace layers are pruned — your flowchart core doesn't drag them in. See [`test/esm-packaging.test.ts`](test/esm-packaging.test.ts).
239
239
 
package/dist/advanced.js CHANGED
@@ -3,11 +3,18 @@
3
3
  * footprintjs/advanced — Low-level internals for custom execution engines and testing.
4
4
  *
5
5
  * Most users never need this. Use `footprintjs` (main) instead.
6
- * This entry point exposes `SharedMemory`, `StageContext`, `FlowchartTraverser`,
7
- * and other primitives that power the engine.
6
+ * This entry point exposes the engine's frame (`StageContext`), the traverser
7
+ * (`FlowchartTraverser`), the scope providers and the other primitives that
8
+ * power the engine. The record has doors of its own: write one with
9
+ * `footprintjs/write` (`SharedMemory`, `EventLog`, `RecordFrame`), read one
10
+ * with `footprintjs/trace` (`CommitBundle`, `applySmartMerge`, the readers).
11
+ * The record's names this door handed out before 9.47.0 stay here until
12
+ * 10.0.0, the same symbols: import those from their own door (the nine record
13
+ * internals among them have none, and leave the public surface at 10.0.0).
8
14
  *
9
15
  * ```ts
10
- * import { SharedMemory, StageContext } from 'footprintjs/advanced';
16
+ * import { StageContext } from 'footprintjs/advanced';
17
+ * import { SharedMemory } from 'footprintjs/write';
11
18
  * ```
12
19
  *
13
20
  * @module advanced
@@ -21,101 +28,99 @@
21
28
  * Import via: import { ... } from 'footprint/advanced'
22
29
  */
23
30
  Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.ChildrenExecutor = exports.applyOutputMapping = exports.NullControlFlowNarrativeGenerator = exports.isStageNodeReturn = exports.FlowchartTraverser = exports.valueBehind = exports.unwrapHandles = exports.shouldWrapWithProxy = exports.SCOPE_METHOD_NAMES = exports.joinPath = exports.isHandle = exports.createArrayProxy = exports.buildNestedPatch = exports.runPolicy = exports.DEFAULT_RUN_POLICY = exports.ExecutionRuntime = exports.registerScopeRuntime = exports.toScopeFactory = exports.resolveScopeProvider = exports.registerScopeResolver = exports.makeFactoryProvider = exports.makeClassProvider = exports.looksLikeFactory = exports.looksLikeClassCtor = exports.isSubclassOfScopeFacade = exports.attachScopeMethods = exports.ScopeFacade = exports.createProtectedScope = exports.createErrorMessage = exports.createTypedScopeFactory = exports.specToStageNode = exports.SelectorFnList = exports.DeciderList = exports.ArrayMergeMode = exports.updateValue = exports.updateNestedValue = exports.setNestedValue = exports.redactPatch = exports.pathSegments = exports.normalisePath = exports.getRunAndGlobalPaths = exports.getNestedValue = exports.deepSmartMerge = exports.applySmartMerge = exports.RedactionRule = exports.DiagnosticCollector = exports.TransactionBuffer = exports.EventLog = exports.StageContext = exports.SharedMemory = void 0;
25
- exports.zodToJsonSchema = exports.normalizeSchema = exports.evaluateFilter = exports.findLastWriter = exports.findCommits = exports.findCommit = exports.parseRuntimeStageId = exports.createExecutionCounter = exports.buildRuntimeStageId = exports.SubflowExecutor = exports.StageRunner = exports.SelectorHandler = exports.seedSubflowGlobalStore = exports.RuntimeStructureManager = exports.ResumeEntry = exports.NodeResolver = exports.getInitialScopeValues = exports.extractParentScopeValues = exports.DEFAULT_MAX_ITERATIONS = exports.DeciderHandler = exports.createSubflowHandlerDeps = exports.ContinuationResolver = exports.computeNodeType = void 0;
31
+ exports.unwrapHandles = exports.shouldWrapWithProxy = exports.SCOPE_METHOD_NAMES = exports.joinPath = exports.isHandle = exports.createArrayProxy = exports.buildNestedPatch = exports.runPolicy = exports.DEFAULT_RUN_POLICY = exports.ExecutionRuntime = exports.registerScopeRuntime = exports.toScopeFactory = exports.resolveScopeProvider = exports.registerScopeResolver = exports.makeFactoryProvider = exports.makeClassProvider = exports.looksLikeFactory = exports.looksLikeClassCtor = exports.isSubclassOfScopeFacade = exports.attachScopeMethods = exports.ScopeFacade = exports.createProtectedScope = exports.createErrorMessage = exports.createTypedScopeFactory = exports.specToStageNode = exports.SelectorFnList = exports.DeciderList = exports.ArrayMergeMode = exports.updateValue = exports.updateNestedValue = exports.setNestedValue = exports.redactPatch = exports.pathSegments = exports.normalisePath = exports.getRunAndGlobalPaths = exports.getNestedValue = exports.deepSmartMerge = exports.applySmartMerge = exports.TransactionBuffer = exports.SharedMemory = exports.EventLog = exports.findLastWriter = exports.findCommits = exports.findCommit = exports.parseRuntimeStageId = exports.createExecutionCounter = exports.buildRuntimeStageId = exports.RedactionRule = exports.DiagnosticCollector = exports.StageContext = void 0;
32
+ exports.zodToJsonSchema = exports.normalizeSchema = exports.evaluateFilter = exports.SubflowExecutor = exports.StageRunner = exports.SelectorHandler = exports.seedSubflowGlobalStore = exports.RuntimeStructureManager = exports.ResumeEntry = exports.NodeResolver = exports.getInitialScopeValues = exports.extractParentScopeValues = exports.DEFAULT_MAX_ITERATIONS = exports.DeciderHandler = exports.createSubflowHandlerDeps = exports.ContinuationResolver = exports.computeNodeType = exports.ChildrenExecutor = exports.applyOutputMapping = exports.NullControlFlowNarrativeGenerator = exports.isStageNodeReturn = exports.FlowchartTraverser = exports.valueBehind = void 0;
26
33
  var index_js_1 = require("./lib/memory/index.js");
27
- Object.defineProperty(exports, "SharedMemory", { enumerable: true, get: function () { return index_js_1.SharedMemory; } });
34
+ Object.defineProperty(exports, "StageContext", { enumerable: true, get: function () { return index_js_1.StageContext; } });
28
35
  var index_js_2 = require("./lib/memory/index.js");
29
- Object.defineProperty(exports, "StageContext", { enumerable: true, get: function () { return index_js_2.StageContext; } });
36
+ Object.defineProperty(exports, "DiagnosticCollector", { enumerable: true, get: function () { return index_js_2.DiagnosticCollector; } });
30
37
  var index_js_3 = require("./lib/memory/index.js");
31
- Object.defineProperty(exports, "EventLog", { enumerable: true, get: function () { return index_js_3.EventLog; } });
38
+ Object.defineProperty(exports, "RedactionRule", { enumerable: true, get: function () { return index_js_3.RedactionRule; } });
39
+ var runtimeStageId_js_1 = require("./lib/ids/runtimeStageId.js");
40
+ Object.defineProperty(exports, "buildRuntimeStageId", { enumerable: true, get: function () { return runtimeStageId_js_1.buildRuntimeStageId; } });
41
+ Object.defineProperty(exports, "createExecutionCounter", { enumerable: true, get: function () { return runtimeStageId_js_1.createExecutionCounter; } });
42
+ Object.defineProperty(exports, "parseRuntimeStageId", { enumerable: true, get: function () { return runtimeStageId_js_1.parseRuntimeStageId; } });
43
+ var commitLogUtils_js_1 = require("./lib/memory/commitLogUtils.js");
44
+ Object.defineProperty(exports, "findCommit", { enumerable: true, get: function () { return commitLogUtils_js_1.findCommit; } });
45
+ Object.defineProperty(exports, "findCommits", { enumerable: true, get: function () { return commitLogUtils_js_1.findCommits; } });
46
+ Object.defineProperty(exports, "findLastWriter", { enumerable: true, get: function () { return commitLogUtils_js_1.findLastWriter; } });
32
47
  var index_js_4 = require("./lib/memory/index.js");
48
+ Object.defineProperty(exports, "EventLog", { enumerable: true, get: function () { return index_js_4.EventLog; } });
49
+ Object.defineProperty(exports, "SharedMemory", { enumerable: true, get: function () { return index_js_4.SharedMemory; } });
33
50
  Object.defineProperty(exports, "TransactionBuffer", { enumerable: true, get: function () { return index_js_4.TransactionBuffer; } });
34
51
  var index_js_5 = require("./lib/memory/index.js");
35
- Object.defineProperty(exports, "DiagnosticCollector", { enumerable: true, get: function () { return index_js_5.DiagnosticCollector; } });
36
- var index_js_6 = require("./lib/memory/index.js");
37
- Object.defineProperty(exports, "RedactionRule", { enumerable: true, get: function () { return index_js_6.RedactionRule; } });
38
- var index_js_7 = require("./lib/memory/index.js");
39
- Object.defineProperty(exports, "applySmartMerge", { enumerable: true, get: function () { return index_js_7.applySmartMerge; } });
40
- Object.defineProperty(exports, "deepSmartMerge", { enumerable: true, get: function () { return index_js_7.deepSmartMerge; } });
41
- Object.defineProperty(exports, "getNestedValue", { enumerable: true, get: function () { return index_js_7.getNestedValue; } });
42
- Object.defineProperty(exports, "getRunAndGlobalPaths", { enumerable: true, get: function () { return index_js_7.getRunAndGlobalPaths; } });
43
- Object.defineProperty(exports, "normalisePath", { enumerable: true, get: function () { return index_js_7.normalisePath; } });
44
- Object.defineProperty(exports, "pathSegments", { enumerable: true, get: function () { return index_js_7.pathSegments; } });
45
- Object.defineProperty(exports, "redactPatch", { enumerable: true, get: function () { return index_js_7.redactPatch; } });
46
- Object.defineProperty(exports, "setNestedValue", { enumerable: true, get: function () { return index_js_7.setNestedValue; } });
47
- Object.defineProperty(exports, "updateNestedValue", { enumerable: true, get: function () { return index_js_7.updateNestedValue; } });
48
- Object.defineProperty(exports, "updateValue", { enumerable: true, get: function () { return index_js_7.updateValue; } });
49
- var index_js_8 = require("./lib/builder/index.js");
50
- Object.defineProperty(exports, "ArrayMergeMode", { enumerable: true, get: function () { return index_js_8.ArrayMergeMode; } });
51
- Object.defineProperty(exports, "DeciderList", { enumerable: true, get: function () { return index_js_8.DeciderList; } });
52
- Object.defineProperty(exports, "SelectorFnList", { enumerable: true, get: function () { return index_js_8.SelectorFnList; } });
53
- Object.defineProperty(exports, "specToStageNode", { enumerable: true, get: function () { return index_js_8.specToStageNode; } });
52
+ Object.defineProperty(exports, "applySmartMerge", { enumerable: true, get: function () { return index_js_5.applySmartMerge; } });
53
+ Object.defineProperty(exports, "deepSmartMerge", { enumerable: true, get: function () { return index_js_5.deepSmartMerge; } });
54
+ Object.defineProperty(exports, "getNestedValue", { enumerable: true, get: function () { return index_js_5.getNestedValue; } });
55
+ Object.defineProperty(exports, "getRunAndGlobalPaths", { enumerable: true, get: function () { return index_js_5.getRunAndGlobalPaths; } });
56
+ Object.defineProperty(exports, "normalisePath", { enumerable: true, get: function () { return index_js_5.normalisePath; } });
57
+ Object.defineProperty(exports, "pathSegments", { enumerable: true, get: function () { return index_js_5.pathSegments; } });
58
+ Object.defineProperty(exports, "redactPatch", { enumerable: true, get: function () { return index_js_5.redactPatch; } });
59
+ Object.defineProperty(exports, "setNestedValue", { enumerable: true, get: function () { return index_js_5.setNestedValue; } });
60
+ Object.defineProperty(exports, "updateNestedValue", { enumerable: true, get: function () { return index_js_5.updateNestedValue; } });
61
+ Object.defineProperty(exports, "updateValue", { enumerable: true, get: function () { return index_js_5.updateValue; } });
62
+ var index_js_6 = require("./lib/builder/index.js");
63
+ Object.defineProperty(exports, "ArrayMergeMode", { enumerable: true, get: function () { return index_js_6.ArrayMergeMode; } });
64
+ Object.defineProperty(exports, "DeciderList", { enumerable: true, get: function () { return index_js_6.DeciderList; } });
65
+ Object.defineProperty(exports, "SelectorFnList", { enumerable: true, get: function () { return index_js_6.SelectorFnList; } });
66
+ Object.defineProperty(exports, "specToStageNode", { enumerable: true, get: function () { return index_js_6.specToStageNode; } });
54
67
  var typedFlowChart_js_1 = require("./lib/builder/typedFlowChart.js");
55
68
  Object.defineProperty(exports, "createTypedScopeFactory", { enumerable: true, get: function () { return typedFlowChart_js_1.createTypedScopeFactory; } });
56
- var index_js_9 = require("./lib/scope/index.js");
57
- Object.defineProperty(exports, "createErrorMessage", { enumerable: true, get: function () { return index_js_9.createErrorMessage; } });
58
- Object.defineProperty(exports, "createProtectedScope", { enumerable: true, get: function () { return index_js_9.createProtectedScope; } });
59
- Object.defineProperty(exports, "ScopeFacade", { enumerable: true, get: function () { return index_js_9.ScopeFacade; } });
60
- var index_js_10 = require("./lib/scope/index.js");
61
- Object.defineProperty(exports, "attachScopeMethods", { enumerable: true, get: function () { return index_js_10.attachScopeMethods; } });
62
- Object.defineProperty(exports, "isSubclassOfScopeFacade", { enumerable: true, get: function () { return index_js_10.isSubclassOfScopeFacade; } });
63
- Object.defineProperty(exports, "looksLikeClassCtor", { enumerable: true, get: function () { return index_js_10.looksLikeClassCtor; } });
64
- Object.defineProperty(exports, "looksLikeFactory", { enumerable: true, get: function () { return index_js_10.looksLikeFactory; } });
65
- Object.defineProperty(exports, "makeClassProvider", { enumerable: true, get: function () { return index_js_10.makeClassProvider; } });
66
- Object.defineProperty(exports, "makeFactoryProvider", { enumerable: true, get: function () { return index_js_10.makeFactoryProvider; } });
67
- Object.defineProperty(exports, "registerScopeResolver", { enumerable: true, get: function () { return index_js_10.registerScopeResolver; } });
68
- Object.defineProperty(exports, "resolveScopeProvider", { enumerable: true, get: function () { return index_js_10.resolveScopeProvider; } });
69
- Object.defineProperty(exports, "toScopeFactory", { enumerable: true, get: function () { return index_js_10.toScopeFactory; } });
69
+ var index_js_7 = require("./lib/scope/index.js");
70
+ Object.defineProperty(exports, "createErrorMessage", { enumerable: true, get: function () { return index_js_7.createErrorMessage; } });
71
+ Object.defineProperty(exports, "createProtectedScope", { enumerable: true, get: function () { return index_js_7.createProtectedScope; } });
72
+ Object.defineProperty(exports, "ScopeFacade", { enumerable: true, get: function () { return index_js_7.ScopeFacade; } });
73
+ var index_js_8 = require("./lib/scope/index.js");
74
+ Object.defineProperty(exports, "attachScopeMethods", { enumerable: true, get: function () { return index_js_8.attachScopeMethods; } });
75
+ Object.defineProperty(exports, "isSubclassOfScopeFacade", { enumerable: true, get: function () { return index_js_8.isSubclassOfScopeFacade; } });
76
+ Object.defineProperty(exports, "looksLikeClassCtor", { enumerable: true, get: function () { return index_js_8.looksLikeClassCtor; } });
77
+ Object.defineProperty(exports, "looksLikeFactory", { enumerable: true, get: function () { return index_js_8.looksLikeFactory; } });
78
+ Object.defineProperty(exports, "makeClassProvider", { enumerable: true, get: function () { return index_js_8.makeClassProvider; } });
79
+ Object.defineProperty(exports, "makeFactoryProvider", { enumerable: true, get: function () { return index_js_8.makeFactoryProvider; } });
80
+ Object.defineProperty(exports, "registerScopeResolver", { enumerable: true, get: function () { return index_js_8.registerScopeResolver; } });
81
+ Object.defineProperty(exports, "resolveScopeProvider", { enumerable: true, get: function () { return index_js_8.resolveScopeProvider; } });
82
+ Object.defineProperty(exports, "toScopeFactory", { enumerable: true, get: function () { return index_js_8.toScopeFactory; } });
70
83
  var runtime_js_1 = require("./lib/scope/runtime.js");
71
84
  Object.defineProperty(exports, "registerScopeRuntime", { enumerable: true, get: function () { return runtime_js_1.registerScopeRuntime; } });
72
- var index_js_11 = require("./lib/runner/index.js");
73
- Object.defineProperty(exports, "ExecutionRuntime", { enumerable: true, get: function () { return index_js_11.ExecutionRuntime; } });
74
- var index_js_12 = require("./lib/memory/index.js");
75
- Object.defineProperty(exports, "DEFAULT_RUN_POLICY", { enumerable: true, get: function () { return index_js_12.DEFAULT_RUN_POLICY; } });
76
- Object.defineProperty(exports, "runPolicy", { enumerable: true, get: function () { return index_js_12.runPolicy; } });
77
- var index_js_13 = require("./lib/reactive/index.js");
78
- Object.defineProperty(exports, "buildNestedPatch", { enumerable: true, get: function () { return index_js_13.buildNestedPatch; } });
79
- Object.defineProperty(exports, "createArrayProxy", { enumerable: true, get: function () { return index_js_13.createArrayProxy; } });
80
- Object.defineProperty(exports, "isHandle", { enumerable: true, get: function () { return index_js_13.isHandle; } });
81
- Object.defineProperty(exports, "joinPath", { enumerable: true, get: function () { return index_js_13.joinPath; } });
82
- Object.defineProperty(exports, "SCOPE_METHOD_NAMES", { enumerable: true, get: function () { return index_js_13.SCOPE_METHOD_NAMES; } });
83
- Object.defineProperty(exports, "shouldWrapWithProxy", { enumerable: true, get: function () { return index_js_13.shouldWrapWithProxy; } });
84
- Object.defineProperty(exports, "unwrapHandles", { enumerable: true, get: function () { return index_js_13.unwrapHandles; } });
85
- Object.defineProperty(exports, "valueBehind", { enumerable: true, get: function () { return index_js_13.valueBehind; } });
85
+ var index_js_9 = require("./lib/runner/index.js");
86
+ Object.defineProperty(exports, "ExecutionRuntime", { enumerable: true, get: function () { return index_js_9.ExecutionRuntime; } });
87
+ var index_js_10 = require("./lib/memory/index.js");
88
+ Object.defineProperty(exports, "DEFAULT_RUN_POLICY", { enumerable: true, get: function () { return index_js_10.DEFAULT_RUN_POLICY; } });
89
+ Object.defineProperty(exports, "runPolicy", { enumerable: true, get: function () { return index_js_10.runPolicy; } });
90
+ var index_js_11 = require("./lib/reactive/index.js");
91
+ Object.defineProperty(exports, "buildNestedPatch", { enumerable: true, get: function () { return index_js_11.buildNestedPatch; } });
92
+ Object.defineProperty(exports, "createArrayProxy", { enumerable: true, get: function () { return index_js_11.createArrayProxy; } });
93
+ Object.defineProperty(exports, "isHandle", { enumerable: true, get: function () { return index_js_11.isHandle; } });
94
+ Object.defineProperty(exports, "joinPath", { enumerable: true, get: function () { return index_js_11.joinPath; } });
95
+ Object.defineProperty(exports, "SCOPE_METHOD_NAMES", { enumerable: true, get: function () { return index_js_11.SCOPE_METHOD_NAMES; } });
96
+ Object.defineProperty(exports, "shouldWrapWithProxy", { enumerable: true, get: function () { return index_js_11.shouldWrapWithProxy; } });
97
+ Object.defineProperty(exports, "unwrapHandles", { enumerable: true, get: function () { return index_js_11.unwrapHandles; } });
98
+ Object.defineProperty(exports, "valueBehind", { enumerable: true, get: function () { return index_js_11.valueBehind; } });
99
+ var index_js_12 = require("./lib/engine/index.js");
100
+ Object.defineProperty(exports, "FlowchartTraverser", { enumerable: true, get: function () { return index_js_12.FlowchartTraverser; } });
101
+ var index_js_13 = require("./lib/engine/index.js");
102
+ Object.defineProperty(exports, "isStageNodeReturn", { enumerable: true, get: function () { return index_js_13.isStageNodeReturn; } });
86
103
  var index_js_14 = require("./lib/engine/index.js");
87
- Object.defineProperty(exports, "FlowchartTraverser", { enumerable: true, get: function () { return index_js_14.FlowchartTraverser; } });
104
+ Object.defineProperty(exports, "NullControlFlowNarrativeGenerator", { enumerable: true, get: function () { return index_js_14.NullControlFlowNarrativeGenerator; } });
88
105
  var index_js_15 = require("./lib/engine/index.js");
89
- Object.defineProperty(exports, "isStageNodeReturn", { enumerable: true, get: function () { return index_js_15.isStageNodeReturn; } });
90
- var index_js_16 = require("./lib/engine/index.js");
91
- Object.defineProperty(exports, "NullControlFlowNarrativeGenerator", { enumerable: true, get: function () { return index_js_16.NullControlFlowNarrativeGenerator; } });
92
- var index_js_17 = require("./lib/engine/index.js");
93
- Object.defineProperty(exports, "applyOutputMapping", { enumerable: true, get: function () { return index_js_17.applyOutputMapping; } });
94
- Object.defineProperty(exports, "ChildrenExecutor", { enumerable: true, get: function () { return index_js_17.ChildrenExecutor; } });
95
- Object.defineProperty(exports, "computeNodeType", { enumerable: true, get: function () { return index_js_17.computeNodeType; } });
96
- Object.defineProperty(exports, "ContinuationResolver", { enumerable: true, get: function () { return index_js_17.ContinuationResolver; } });
97
- Object.defineProperty(exports, "createSubflowHandlerDeps", { enumerable: true, get: function () { return index_js_17.createSubflowHandlerDeps; } });
98
- Object.defineProperty(exports, "DeciderHandler", { enumerable: true, get: function () { return index_js_17.DeciderHandler; } });
99
- Object.defineProperty(exports, "DEFAULT_MAX_ITERATIONS", { enumerable: true, get: function () { return index_js_17.DEFAULT_MAX_ITERATIONS; } });
100
- Object.defineProperty(exports, "extractParentScopeValues", { enumerable: true, get: function () { return index_js_17.extractParentScopeValues; } });
101
- Object.defineProperty(exports, "getInitialScopeValues", { enumerable: true, get: function () { return index_js_17.getInitialScopeValues; } });
102
- Object.defineProperty(exports, "NodeResolver", { enumerable: true, get: function () { return index_js_17.NodeResolver; } });
103
- Object.defineProperty(exports, "ResumeEntry", { enumerable: true, get: function () { return index_js_17.ResumeEntry; } });
104
- Object.defineProperty(exports, "RuntimeStructureManager", { enumerable: true, get: function () { return index_js_17.RuntimeStructureManager; } });
105
- Object.defineProperty(exports, "seedSubflowGlobalStore", { enumerable: true, get: function () { return index_js_17.seedSubflowGlobalStore; } });
106
- Object.defineProperty(exports, "SelectorHandler", { enumerable: true, get: function () { return index_js_17.SelectorHandler; } });
107
- Object.defineProperty(exports, "StageRunner", { enumerable: true, get: function () { return index_js_17.StageRunner; } });
108
- Object.defineProperty(exports, "SubflowExecutor", { enumerable: true, get: function () { return index_js_17.SubflowExecutor; } });
109
- var runtimeStageId_js_1 = require("./lib/ids/runtimeStageId.js");
110
- Object.defineProperty(exports, "buildRuntimeStageId", { enumerable: true, get: function () { return runtimeStageId_js_1.buildRuntimeStageId; } });
111
- Object.defineProperty(exports, "createExecutionCounter", { enumerable: true, get: function () { return runtimeStageId_js_1.createExecutionCounter; } });
112
- Object.defineProperty(exports, "parseRuntimeStageId", { enumerable: true, get: function () { return runtimeStageId_js_1.parseRuntimeStageId; } });
113
- var commitLogUtils_js_1 = require("./lib/memory/commitLogUtils.js");
114
- Object.defineProperty(exports, "findCommit", { enumerable: true, get: function () { return commitLogUtils_js_1.findCommit; } });
115
- Object.defineProperty(exports, "findCommits", { enumerable: true, get: function () { return commitLogUtils_js_1.findCommits; } });
116
- Object.defineProperty(exports, "findLastWriter", { enumerable: true, get: function () { return commitLogUtils_js_1.findLastWriter; } });
117
- var index_js_18 = require("./lib/decide/index.js");
118
- Object.defineProperty(exports, "evaluateFilter", { enumerable: true, get: function () { return index_js_18.evaluateFilter; } });
106
+ Object.defineProperty(exports, "applyOutputMapping", { enumerable: true, get: function () { return index_js_15.applyOutputMapping; } });
107
+ Object.defineProperty(exports, "ChildrenExecutor", { enumerable: true, get: function () { return index_js_15.ChildrenExecutor; } });
108
+ Object.defineProperty(exports, "computeNodeType", { enumerable: true, get: function () { return index_js_15.computeNodeType; } });
109
+ Object.defineProperty(exports, "ContinuationResolver", { enumerable: true, get: function () { return index_js_15.ContinuationResolver; } });
110
+ Object.defineProperty(exports, "createSubflowHandlerDeps", { enumerable: true, get: function () { return index_js_15.createSubflowHandlerDeps; } });
111
+ Object.defineProperty(exports, "DeciderHandler", { enumerable: true, get: function () { return index_js_15.DeciderHandler; } });
112
+ Object.defineProperty(exports, "DEFAULT_MAX_ITERATIONS", { enumerable: true, get: function () { return index_js_15.DEFAULT_MAX_ITERATIONS; } });
113
+ Object.defineProperty(exports, "extractParentScopeValues", { enumerable: true, get: function () { return index_js_15.extractParentScopeValues; } });
114
+ Object.defineProperty(exports, "getInitialScopeValues", { enumerable: true, get: function () { return index_js_15.getInitialScopeValues; } });
115
+ Object.defineProperty(exports, "NodeResolver", { enumerable: true, get: function () { return index_js_15.NodeResolver; } });
116
+ Object.defineProperty(exports, "ResumeEntry", { enumerable: true, get: function () { return index_js_15.ResumeEntry; } });
117
+ Object.defineProperty(exports, "RuntimeStructureManager", { enumerable: true, get: function () { return index_js_15.RuntimeStructureManager; } });
118
+ Object.defineProperty(exports, "seedSubflowGlobalStore", { enumerable: true, get: function () { return index_js_15.seedSubflowGlobalStore; } });
119
+ Object.defineProperty(exports, "SelectorHandler", { enumerable: true, get: function () { return index_js_15.SelectorHandler; } });
120
+ Object.defineProperty(exports, "StageRunner", { enumerable: true, get: function () { return index_js_15.StageRunner; } });
121
+ Object.defineProperty(exports, "SubflowExecutor", { enumerable: true, get: function () { return index_js_15.SubflowExecutor; } });
122
+ var index_js_16 = require("./lib/decide/index.js");
123
+ Object.defineProperty(exports, "evaluateFilter", { enumerable: true, get: function () { return index_js_16.evaluateFilter; } });
119
124
  // ============================================================================
120
125
  // Contract — schema normalization (for custom tool emitters)
121
126
  // ============================================================================
@@ -123,7 +128,7 @@ Object.defineProperty(exports, "evaluateFilter", { enumerable: true, get: functi
123
128
  // (per-edge MCP descriptors) reuse the Zod→JSON-Schema conversion without
124
129
  // importing the runner. Gate inputs with detectSchema (main barrel): a
125
130
  // non-Zod 'parseable' schema (yup/superstruct) passes through unconverted.
126
- var index_js_19 = require("./lib/contract/index.js");
127
- Object.defineProperty(exports, "normalizeSchema", { enumerable: true, get: function () { return index_js_19.normalizeSchema; } });
128
- Object.defineProperty(exports, "zodToJsonSchema", { enumerable: true, get: function () { return index_js_19.zodToJsonSchema; } });
129
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWR2YW5jZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYWR2YW5jZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7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J5L2luZGV4LmpzJztcbmV4cG9ydCB7IERFRkFVTFRfUlVOX1BPTElDWSwgcnVuUG9saWN5IH0gZnJvbSAnLi9saWIvbWVtb3J5L2luZGV4LmpzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gUmVhY3RpdmUg4oCUIFR5cGVkU2NvcGUgaW50ZXJuYWxzIChmb3IgY3VzdG9tIHByb3h5IGltcGxlbWVudGF0aW9ucylcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgeyBSZWFjdGl2ZU9wdGlvbnMsIFJlYWN0aXZlVGFyZ2V0IH0gZnJvbSAnLi9saWIvcmVhY3RpdmUvaW5kZXguanMnO1xuZXhwb3J0IHtcbiAgYnVpbGROZXN0ZWRQYXRjaCxcbiAgY3JlYXRlQXJyYXlQcm94eSxcbiAgaXNIYW5kbGUsXG4gIGpvaW5QYXRoLFxuICBTQ09QRV9NRVRIT0RfTkFNRVMsXG4gIHNob3VsZFdyYXBXaXRoUHJveHksXG4gIHVud3JhcEhhbmRsZXMsXG4gIHZhbHVlQmVoaW5kLFxufSBmcm9tICcuL2xpYi9yZWFjdGl2ZS9pbmRleC5qcyc7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIEVuZ2luZSDigJQgREZTIGdyYXBoIHRyYXZlcnNhbCBpbnRlcm5hbHNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgeyBUcmF2ZXJzZXJPcHRpb25zIH0gZnJvbSAnLi9saWIvZW5naW5lL2luZGV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JztcbmV4cG9ydCB7IGZpbmRDb21taXQsIGZpbmRDb21taXRzLCBmaW5kTGFzdFdyaXRlciB9IGZyb20gJy4vbGliL21lbW9yeS9jb21taXRMb2dVdGlscy5qcyc7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERlY2lkZSDigJQgcHVyZSBndWFyZCBldmFsdWF0aW9uIChmb3IgY3VzdG9tIGF2YWlsYWJpbGl0eS9kZWNpc2lvbiBlbmdpbmVzKVxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gZXZhbHVhdGVGaWx0ZXIgaXMgZW5naW5lLWZyZWU6IGEgcHVyZSBmdW5jdGlvbiBvdmVyIChnZXRWYWx1ZSwgaXNSZWRhY3RlZClcbi8vIGNhbGxiYWNrcyB0aGF0IGV2YWx1YXRlcyBhIFdoZXJlRmlsdGVyIGFuZCByZXR1cm5zIHBlci1jb25kaXRpb24gZXZpZGVuY2UuXG4vLyBFeHRlcm5hbCBkcml2ZXJzIChlLmcuIGhjaWZvb3RwcmludCdzIGF2YWlsYWJsZSgpKSBldmFsdWF0ZSBlZGdlIGd1YXJkcyB3aXRoXG4vLyBpdCBvdXRzaWRlIGFueSBydW4g4oCUIG5vIHNjb3BlLCBubyBjb21taXQsIHdvcmtlci1zYWZlLlxuZXhwb3J0IHR5cGUgeyBGaWx0ZXJDb25kaXRpb24gfSBmcm9tICcuL2xpYi9kZWNpZGUvaW5kZXguanMnO1xuZXhwb3J0IHsgZXZhbHVhdGVGaWx0ZXIgfSBmcm9tICcuL2xpYi9kZWNpZGUvaW5kZXguanMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBDb250cmFjdCDigJQgc2NoZW1hIG5vcm1hbGl6YXRpb24gKGZvciBjdXN0b20gdG9vbCBlbWl0dGVycylcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIFB1cmUgY2hhcnQtbWV0YWRhdGEgaGVscGVycyBiZWhpbmQgdG9NQ1BUb29sL3RvT3BlbkFQSS4gQ3VzdG9tIGVtaXR0ZXJzXG4vLyAocGVyLWVkZ2UgTUNQIGRlc2NyaXB0b3JzKSByZXVzZSB0aGUgWm9k4oaSSlNPTi1TY2hlbWEgY29udmVyc2lvbiB3aXRob3V0XG4vLyBpbXBvcnRpbmcgdGhlIHJ1bm5lci4gR2F0ZSBpbnB1dHMgd2l0aCBkZXRlY3RTY2hlbWEgKG1haW4gYmFycmVsKTogYVxuLy8gbm9uLVpvZCAncGFyc2VhYmxlJyBzY2hlbWEgKHl1cC9zdXBlcnN0cnVjdCkgcGFzc2VzIHRocm91Z2ggdW5jb252ZXJ0ZWQuXG5leHBvcnQgeyBub3JtYWxpemVTY2hlbWEsIHpvZFRvSnNvblNjaGVtYSB9IGZyb20gJy4vbGliL2NvbnRyYWN0L2luZGV4LmpzJztcbiJdfQ==
131
+ var index_js_17 = require("./lib/contract/index.js");
132
+ Object.defineProperty(exports, "normalizeSchema", { enumerable: true, get: function () { return index_js_17.normalizeSchema; } });
133
+ Object.defineProperty(exports, "zodToJsonSchema", { enumerable: true, get: function () { return index_js_17.zodToJsonSchema; } });
134
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWR2YW5jZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYWR2YW5jZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBbUJHO0FBQ0g7Ozs7Ozs7R0FPRzs7OztBQWlC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ZSxcbn0gZnJvbSAnLi9saWIvbWVtb3J5L2luZGV4LmpzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gQnVpbGRlciDigJQgVHlwZXMgYW5kIGludGVybmFsc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgdHlwZSB7XG4gIEV4ZWNPcHRpb25zLFxuICBGbG93Q2hhcnRPcHRpb25zLFxuICBGbG93Q2hhcnRTcGVjLFxuICBJTG9nZ2VyLFxuICBTY29wZVByb3RlY3Rpb25Nb2RlLFxuICBTZXJpYWxpemVkUGlwZWxpbmVTdHJ1Y3R1cmUsXG4gIFNpbXBsaWZpZWRQYXJhbGxlbFNwZWMsXG4gIFN0YWdlRm4sXG4gIFN0YWdlTm9kZSxcbiAgU3RyZWFtQ2FsbGJhY2ssXG4gIFN0cmVhbUxpZmVjeWNsZUhhbmRsZXIsXG4gIFN0cmVhbVRva2VuSGFuZGxlcixcbiAgU3ViZmxvd01vdW50T3B0aW9ucyxcbiAgU3ViZmxvd1JlZixcbn0gZnJvbSAnLi9saWIvYnVpbGRlci9pbmRleC5qcyc7XG5leHBvcnQgeyBBcnJheU1lcmdlTW9kZSwgRGVjaWRlckxpc3QsIFNlbGVjdG9yRm5MaXN0LCBzcGVjVG9TdGFnZU5vZGUgfSBmcm9tICcuL2xpYi9idWlsZGVyL2luZGV4LmpzJztcbmV4cG9ydCB7IGNyZWF0ZVR5cGVkU2NvcGVGYWN0b3J5IH0gZnJvbSAnLi9saWIvYnVpbGRlci90eXBlZEZsb3dDaGFydC5qcyc7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIFNjb3BlIOKAlCBQ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cG9saWN5IGFuIGBFeGVjdXRpb25SdW50aW1lYCBpcyBjb25zdHJ1Y3RlZCB3aXRoIChGNSkuICovXG5leHBvcnQgdHlwZSB7IFJ1blBvbGljeSB9IGZyb20gJy4vbGliL21lbW9yeS9pbmRleC5qcyc7XG5leHBvcnQgeyBERUZBVUxUX1JVTl9QT0xJQ1ksIHJ1blBvbGljeSB9IGZyb20gJy4vbGliL21lbW9yeS9pbmRleC5qcyc7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIFJlYWN0aXZlIOKAlCBUeXBlZFNjb3BlIGludGVybmFscyAoZm9yIGN1c3RvbSBwcm94eSBpbXBsZW1lbnRhdGlvbnMpXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCB0eXBlIHsgUmVhY3RpdmVPcHRpb25zLCBSZWFjdGl2ZVRhcmdldCB9IGZyb20gJy4vbGliL3JlYWN0aXZlL2luZGV4LmpzJztcbmV4cG9ydCB7XG4gIGJ1aWxkTmVzdGVkUGF0Y2gsXG4gIGNyZWF0ZUFycmF5UHJveHksXG4gIGlzSGFuZGxlLFxuICBqb2luUGF0aCxcbiAgU0NPUEVfTUVUSE9EX05BTUVTLFxuICBzaG91bGRXcmFwV2l0aFByb3h5LFxuICB1bndyYXBIYW5kbGVzLFxuICB2YWx1ZUJlaGluZCxcbn0gZnJvbSAnLi9saWIvcmVhY3RpdmUvaW5kZXguanMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBFbmdpbmUg4oCUIERGUyBncmFwaCB0cmF2ZXJzYWwgaW50ZXJuYWxzXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09P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29udmVyc2lvbiB3aXRob3V0XG4vLyBpbXBvcnRpbmcgdGhlIHJ1bm5lci4gR2F0ZSBpbnB1dHMgd2l0aCBkZXRlY3RTY2hlbWEgKG1haW4gYmFycmVsKTogYVxuLy8gbm9uLVpvZCAncGFyc2VhYmxlJyBzY2hlbWEgKHl1cC9zdXBlcnN0cnVjdCkgcGFzc2VzIHRocm91Z2ggdW5jb252ZXJ0ZWQuXG5leHBvcnQgeyBub3JtYWxpemVTY2hlbWEsIHpvZFRvSnNvblNjaGVtYSB9IGZyb20gJy4vbGliL2NvbnRyYWN0L2luZGV4LmpzJztcbiJdfQ==
@@ -2,11 +2,18 @@
2
2
  * footprintjs/advanced — Low-level internals for custom execution engines and testing.
3
3
  *
4
4
  * Most users never need this. Use `footprintjs` (main) instead.
5
- * This entry point exposes `SharedMemory`, `StageContext`, `FlowchartTraverser`,
6
- * and other primitives that power the engine.
5
+ * This entry point exposes the engine's frame (`StageContext`), the traverser
6
+ * (`FlowchartTraverser`), the scope providers and the other primitives that
7
+ * power the engine. The record has doors of its own: write one with
8
+ * `footprintjs/write` (`SharedMemory`, `EventLog`, `RecordFrame`), read one
9
+ * with `footprintjs/trace` (`CommitBundle`, `applySmartMerge`, the readers).
10
+ * The record's names this door handed out before 9.47.0 stay here until
11
+ * 10.0.0, the same symbols: import those from their own door (the nine record
12
+ * internals among them have none, and leave the public surface at 10.0.0).
7
13
  *
8
14
  * ```ts
9
- * import { SharedMemory, StageContext } from 'footprintjs/advanced';
15
+ * import { StageContext } from 'footprintjs/advanced';
16
+ * import { SharedMemory } from 'footprintjs/write';
10
17
  * ```
11
18
  *
12
19
  * @module advanced
@@ -19,14 +26,16 @@
19
26
  *
20
27
  * Import via: import { ... } from 'footprint/advanced'
21
28
  */
22
- export type { CommitBundle, FlowControlType, FlowMessage, MemoryPatch, ReadSummaryMarker, ReadTrackingMode, RetentionPolicy, StageSnapshot, TraceEntry, UntrackedSource, WriteSummaryMarker, WriteTrackingMode, } from './lib/memory/index.js';
29
+ export type { FlowControlType, FlowMessage, ReadSummaryMarker, ReadTrackingMode, RetentionPolicy, StageSnapshot, WriteSummaryMarker, WriteTrackingMode, } from './lib/memory/index.js';
23
30
  export type { RedactionVerdict } from './lib/memory/index.js';
24
- export { SharedMemory } from './lib/memory/index.js';
25
31
  export { StageContext } from './lib/memory/index.js';
26
- export { EventLog } from './lib/memory/index.js';
27
- export { TransactionBuffer } from './lib/memory/index.js';
28
32
  export { DiagnosticCollector } from './lib/memory/index.js';
29
33
  export { RedactionRule } from './lib/memory/index.js';
34
+ export type { ExecutionCounter } from './lib/ids/runtimeStageId.js';
35
+ export { buildRuntimeStageId, createExecutionCounter, parseRuntimeStageId } from './lib/ids/runtimeStageId.js';
36
+ export { findCommit, findCommits, findLastWriter } from './lib/memory/commitLogUtils.js';
37
+ export type { CommitBundle, MemoryPatch, TraceEntry, UntrackedSource } from './lib/memory/index.js';
38
+ export { EventLog, SharedMemory, TransactionBuffer } from './lib/memory/index.js';
30
39
  export { applySmartMerge, deepSmartMerge, getNestedValue, getRunAndGlobalPaths, normalisePath, pathSegments, redactPatch, setNestedValue, updateNestedValue, updateValue, } from './lib/memory/index.js';
31
40
  export type { ExecOptions, FlowChartOptions, FlowChartSpec, ILogger, ScopeProtectionMode, SerializedPipelineStructure, SimplifiedParallelSpec, StageFn, StageNode, StreamCallback, StreamLifecycleHandler, StreamTokenHandler, SubflowMountOptions, SubflowRef, } from './lib/builder/index.js';
32
41
  export { ArrayMergeMode, DeciderList, SelectorFnList, specToStageNode } from './lib/builder/index.js';
@@ -54,9 +63,6 @@ export type { BranchResult, BranchResults, SerializedPipelineStructure as Engine
54
63
  export { NullControlFlowNarrativeGenerator } from './lib/engine/index.js';
55
64
  export type { ExecuteNodeFn, QueuedPause, ResumeHop, RunStageFn } from './lib/engine/index.js';
56
65
  export { applyOutputMapping, ChildrenExecutor, computeNodeType, ContinuationResolver, createSubflowHandlerDeps, DeciderHandler, DEFAULT_MAX_ITERATIONS, extractParentScopeValues, getInitialScopeValues, NodeResolver, ResumeEntry, RuntimeStructureManager, seedSubflowGlobalStore, SelectorHandler, StageRunner, SubflowExecutor, } from './lib/engine/index.js';
57
- export type { ExecutionCounter } from './lib/ids/runtimeStageId.js';
58
- export { buildRuntimeStageId, createExecutionCounter, parseRuntimeStageId } from './lib/ids/runtimeStageId.js';
59
- export { findCommit, findCommits, findLastWriter } from './lib/memory/commitLogUtils.js';
60
66
  export type { FilterCondition } from './lib/decide/index.js';
61
67
  export { evaluateFilter } from './lib/decide/index.js';
62
68
  export { normalizeSchema, zodToJsonSchema } from './lib/contract/index.js';