@cobol-ts/cobolts 0.0.13 → 0.0.16

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 (188) hide show
  1. package/README.benchmark-formats.md +52 -0
  2. package/README.benchmark-reporting.md +16 -0
  3. package/README.benchmark.md +199 -0
  4. package/README.cel.md +112 -57
  5. package/README.md +166 -19
  6. package/README.periodic-verification.md +83 -0
  7. package/dist/src/benchmark.access.spec.d.ts +1 -0
  8. package/dist/src/benchmark.access.spec.js +30 -0
  9. package/dist/src/benchmark.access.spec.js.map +1 -0
  10. package/dist/src/benchmark.aggregate.fixture.d.ts +10 -0
  11. package/dist/src/benchmark.aggregate.fixture.js +108 -0
  12. package/dist/src/benchmark.aggregate.fixture.js.map +1 -0
  13. package/dist/src/benchmark.aggregate.fixture.spec.d.ts +1 -0
  14. package/dist/src/benchmark.aggregate.fixture.spec.js +116 -0
  15. package/dist/src/benchmark.aggregate.fixture.spec.js.map +1 -0
  16. package/dist/src/benchmark.allocations.cli.spec.d.ts +1 -0
  17. package/dist/src/benchmark.allocations.cli.spec.js +60 -0
  18. package/dist/src/benchmark.allocations.cli.spec.js.map +1 -0
  19. package/dist/src/benchmark.allocations.d.ts +19 -0
  20. package/dist/src/benchmark.allocations.js +82 -0
  21. package/dist/src/benchmark.allocations.js.map +1 -0
  22. package/dist/src/benchmark.allocations.spec.d.ts +1 -0
  23. package/dist/src/benchmark.allocations.spec.js +64 -0
  24. package/dist/src/benchmark.allocations.spec.js.map +1 -0
  25. package/dist/src/benchmark.cli.functional.spec.d.ts +1 -0
  26. package/dist/src/benchmark.cli.functional.spec.js +370 -0
  27. package/dist/src/benchmark.cli.functional.spec.js.map +1 -0
  28. package/dist/src/benchmark.cli.golden.spec.d.ts +1 -0
  29. package/dist/src/benchmark.cli.golden.spec.js +194 -0
  30. package/dist/src/benchmark.cli.golden.spec.js.map +1 -0
  31. package/dist/src/benchmark.composed.execution.spec.d.ts +1 -0
  32. package/dist/src/benchmark.composed.execution.spec.js +120 -0
  33. package/dist/src/benchmark.composed.execution.spec.js.map +1 -0
  34. package/dist/src/benchmark.composed.fixture.d.ts +4 -0
  35. package/dist/src/benchmark.composed.fixture.js +77 -0
  36. package/dist/src/benchmark.composed.fixture.js.map +1 -0
  37. package/dist/src/benchmark.composed.fixture.spec.d.ts +1 -0
  38. package/dist/src/benchmark.composed.fixture.spec.js +50 -0
  39. package/dist/src/benchmark.composed.fixture.spec.js.map +1 -0
  40. package/dist/src/benchmark.composed.runner.d.ts +13 -0
  41. package/dist/src/benchmark.composed.runner.js +221 -0
  42. package/dist/src/benchmark.composed.runner.js.map +1 -0
  43. package/dist/src/benchmark.composed.two.fixture.d.ts +5 -0
  44. package/dist/src/benchmark.composed.two.fixture.js +111 -0
  45. package/dist/src/benchmark.composed.two.fixture.js.map +1 -0
  46. package/dist/src/benchmark.composed.two.spec.d.ts +1 -0
  47. package/dist/src/benchmark.composed.two.spec.js +86 -0
  48. package/dist/src/benchmark.composed.two.spec.js.map +1 -0
  49. package/dist/src/benchmark.format.cli.functional.spec.d.ts +1 -0
  50. package/dist/src/benchmark.format.cli.functional.spec.js +44 -0
  51. package/dist/src/benchmark.format.cli.functional.spec.js.map +1 -0
  52. package/dist/src/benchmark.format.composition.spec.d.ts +1 -0
  53. package/dist/src/benchmark.format.composition.spec.js +196 -0
  54. package/dist/src/benchmark.format.composition.spec.js.map +1 -0
  55. package/dist/src/benchmark.format.family.cli.functional.spec.d.ts +1 -0
  56. package/dist/src/benchmark.format.family.cli.functional.spec.js +102 -0
  57. package/dist/src/benchmark.format.family.cli.functional.spec.js.map +1 -0
  58. package/dist/src/benchmark.format.fixture.d.ts +26 -0
  59. package/dist/src/benchmark.format.fixture.js +181 -0
  60. package/dist/src/benchmark.format.fixture.js.map +1 -0
  61. package/dist/src/benchmark.format.oracle.d.ts +8 -0
  62. package/dist/src/benchmark.format.oracle.js +30 -0
  63. package/dist/src/benchmark.format.oracle.js.map +1 -0
  64. package/dist/src/benchmark.format.runner.d.ts +6 -0
  65. package/dist/src/benchmark.format.runner.js +271 -0
  66. package/dist/src/benchmark.format.runner.js.map +1 -0
  67. package/dist/src/benchmark.format.source.d.ts +6 -0
  68. package/dist/src/benchmark.format.source.js +15 -0
  69. package/dist/src/benchmark.format.source.js.map +1 -0
  70. package/dist/src/benchmark.format.spec.d.ts +1 -0
  71. package/dist/src/benchmark.format.spec.js +85 -0
  72. package/dist/src/benchmark.format.spec.js.map +1 -0
  73. package/dist/src/benchmark.format.stateful.spec.d.ts +1 -0
  74. package/dist/src/benchmark.format.stateful.spec.js +120 -0
  75. package/dist/src/benchmark.format.stateful.spec.js.map +1 -0
  76. package/dist/src/benchmark.gc.d.ts +26 -0
  77. package/dist/src/benchmark.gc.js +62 -0
  78. package/dist/src/benchmark.gc.js.map +1 -0
  79. package/dist/src/benchmark.gc.spec.d.ts +1 -0
  80. package/dist/src/benchmark.gc.spec.js +26 -0
  81. package/dist/src/benchmark.gc.spec.js.map +1 -0
  82. package/dist/src/benchmark.periodic.execution.spec.d.ts +1 -0
  83. package/dist/src/benchmark.periodic.execution.spec.js +166 -0
  84. package/dist/src/benchmark.periodic.execution.spec.js.map +1 -0
  85. package/dist/src/benchmark.periodic.fixture.d.ts +5 -0
  86. package/dist/src/benchmark.periodic.fixture.js +69 -0
  87. package/dist/src/benchmark.periodic.fixture.js.map +1 -0
  88. package/dist/src/benchmark.periodic.fixture.spec.d.ts +1 -0
  89. package/dist/src/benchmark.periodic.fixture.spec.js +96 -0
  90. package/dist/src/benchmark.periodic.fixture.spec.js.map +1 -0
  91. package/dist/src/benchmark.profile.d.ts +8 -0
  92. package/dist/src/benchmark.profile.js +62 -0
  93. package/dist/src/benchmark.profile.js.map +1 -0
  94. package/dist/src/benchmark.profile.spec.d.ts +1 -0
  95. package/dist/src/benchmark.profile.spec.js +65 -0
  96. package/dist/src/benchmark.profile.spec.js.map +1 -0
  97. package/dist/src/benchmark.report.d.ts +113 -0
  98. package/dist/src/benchmark.report.js +279 -0
  99. package/dist/src/benchmark.report.js.map +1 -0
  100. package/dist/src/benchmark.report.spec.d.ts +1 -0
  101. package/dist/src/benchmark.report.spec.js +271 -0
  102. package/dist/src/benchmark.report.spec.js.map +1 -0
  103. package/dist/src/benchmark.runner.d.ts +74 -0
  104. package/dist/src/benchmark.runner.js +371 -0
  105. package/dist/src/benchmark.runner.js.map +1 -0
  106. package/dist/src/benchmark.runner.spec.d.ts +1 -0
  107. package/dist/src/benchmark.runner.spec.js +241 -0
  108. package/dist/src/benchmark.runner.spec.js.map +1 -0
  109. package/dist/src/benchmark.strategy.spec.d.ts +1 -0
  110. package/dist/src/benchmark.strategy.spec.js +66 -0
  111. package/dist/src/benchmark.strategy.spec.js.map +1 -0
  112. package/dist/src/cel.composition.integration.spec.d.ts +1 -0
  113. package/dist/src/cel.composition.integration.spec.js +110 -0
  114. package/dist/src/cel.composition.integration.spec.js.map +1 -0
  115. package/dist/src/cel.entity.d.ts +12 -0
  116. package/dist/src/cel.entity.js +98 -0
  117. package/dist/src/cel.entity.js.map +1 -0
  118. package/dist/src/cel.entity.spec.d.ts +1 -0
  119. package/dist/src/cel.entity.spec.js +82 -0
  120. package/dist/src/cel.entity.spec.js.map +1 -0
  121. package/dist/src/cel.evaluate.cli.spec.d.ts +1 -0
  122. package/dist/src/cel.evaluate.cli.spec.js +63 -0
  123. package/dist/src/cel.evaluate.cli.spec.js.map +1 -0
  124. package/dist/src/cel.evaluate.integration.spec.d.ts +1 -0
  125. package/dist/src/cel.evaluate.integration.spec.js +128 -0
  126. package/dist/src/cel.evaluate.integration.spec.js.map +1 -0
  127. package/dist/src/cel.integration.spec.js +252 -34
  128. package/dist/src/cel.integration.spec.js.map +1 -1
  129. package/dist/src/cel.result.ownership.spec.d.ts +1 -0
  130. package/dist/src/cel.result.ownership.spec.js +52 -0
  131. package/dist/src/cel.result.ownership.spec.js.map +1 -0
  132. package/dist/src/cel.shared.execution.d.ts +20 -0
  133. package/dist/src/cel.shared.execution.js +49 -0
  134. package/dist/src/cel.shared.execution.js.map +1 -0
  135. package/dist/src/cel.stats.d.ts +5 -0
  136. package/dist/src/cel.stats.js +73 -0
  137. package/dist/src/cel.stats.js.map +1 -0
  138. package/dist/src/cel.stats.spec.d.ts +1 -0
  139. package/dist/src/cel.stats.spec.js +85 -0
  140. package/dist/src/cel.stats.spec.js.map +1 -0
  141. package/dist/src/cli.integration.spec.js +14 -2
  142. package/dist/src/cli.integration.spec.js.map +1 -1
  143. package/dist/src/cli.js +8 -0
  144. package/dist/src/cli.js.map +1 -1
  145. package/dist/src/cli.spec.js +46 -6
  146. package/dist/src/cli.spec.js.map +1 -1
  147. package/dist/src/commands/benchmark.d.ts +3 -0
  148. package/dist/src/commands/benchmark.js +300 -0
  149. package/dist/src/commands/benchmark.js.map +1 -0
  150. package/dist/src/commands/cel.d.ts +1 -1
  151. package/dist/src/commands/cel.js +38 -5
  152. package/dist/src/commands/cel.js.map +1 -1
  153. package/dist/src/commands/characteristics.d.ts +3 -0
  154. package/dist/src/commands/characteristics.js +57 -0
  155. package/dist/src/commands/characteristics.js.map +1 -0
  156. package/dist/src/commands/characteristics.spec.d.ts +1 -0
  157. package/dist/src/commands/characteristics.spec.js +109 -0
  158. package/dist/src/commands/characteristics.spec.js.map +1 -0
  159. package/dist/src/commands/config.validate.js +8 -4
  160. package/dist/src/commands/config.validate.js.map +1 -1
  161. package/dist/src/commands/extract.d.ts +14 -0
  162. package/dist/src/commands/extract.js +85 -0
  163. package/dist/src/commands/extract.js.map +1 -0
  164. package/dist/src/commands/extract.spec.d.ts +1 -0
  165. package/dist/src/commands/extract.spec.js +179 -0
  166. package/dist/src/commands/extract.spec.js.map +1 -0
  167. package/dist/src/commands/periodicity.d.ts +3 -0
  168. package/dist/src/commands/periodicity.js +11 -0
  169. package/dist/src/commands/periodicity.js.map +1 -0
  170. package/dist/src/commands/validate.all.d.ts +7 -0
  171. package/dist/src/commands/validate.all.integration.spec.d.ts +1 -0
  172. package/dist/src/commands/validate.all.integration.spec.js +43 -0
  173. package/dist/src/commands/validate.all.integration.spec.js.map +1 -0
  174. package/dist/src/commands/validate.all.js +75 -0
  175. package/dist/src/commands/validate.all.js.map +1 -0
  176. package/dist/src/commands/validate.all.spec.d.ts +1 -0
  177. package/dist/src/commands/validate.all.spec.js +70 -0
  178. package/dist/src/commands/validate.all.spec.js.map +1 -0
  179. package/dist/src/context.d.ts +37 -6
  180. package/dist/src/context.js +580 -23
  181. package/dist/src/context.js.map +1 -1
  182. package/dist/src/indexed.accumulator.d.ts +18 -0
  183. package/dist/src/indexed.accumulator.js +102 -0
  184. package/dist/src/indexed.accumulator.js.map +1 -0
  185. package/dist/src/indexed.accumulator.spec.d.ts +1 -0
  186. package/dist/src/indexed.accumulator.spec.js +74 -0
  187. package/dist/src/indexed.accumulator.spec.js.map +1 -0
  188. package/package.json +24 -11
package/README.md CHANGED
@@ -1,7 +1,21 @@
1
- # cobolts
1
+ # @cobol-ts/cobolts
2
2
 
3
3
  Commander-based CLI for inspecting configured files, generating TypeScript contracts, displaying physical data, and compiling or executing CEL dependency graphs. Code generation uses `@cobol-ts/codegen`; neither `display` nor `cel execute` requires or executes generated TypeScript.
4
4
 
5
+ ## Quick orientation
6
+
7
+ **In this README:** [Layout](#layout) · [Commands](#commands) · [Display data (no generated TypeScript)](#display-data-no-generated-typescript) · [CEL dependency graphs](#cel-dependency-graphs) · [Benchmark allocation diagnostics](#benchmark-allocation-diagnostics)
8
+
9
+ **Responsibility.** Provide the Commander CLI for configuration inspection, validation, generation, data display, graph execution and benchmarks.
10
+
11
+ **Boundary.** The CLI orchestrates the same production readers and graph executors used by library consumers; generating TypeScript is not required to display or execute records.
12
+
13
+ **Public modules.** [cli.ts](./src/cli.ts), [context.ts](./src/context.ts).
14
+
15
+ **Tests.** [benchmark.access.spec.ts](src/benchmark.access.spec.ts), [benchmark.allocations.cli.spec.ts](src/benchmark.allocations.cli.spec.ts), [benchmark.allocations.spec.ts](src/benchmark.allocations.spec.ts) (+27 more)
16
+
17
+ **Related packages.** [@cobol-ts/file-catalogue](../../config/file-catalogue/README.md) · [@cobol-ts/cel-graph-runtime](../../cel/graph-runtime/README.md).
18
+
5
19
  ## Layout
6
20
 
7
21
  ```text
@@ -25,26 +39,48 @@ Source filenames are relative to `files.root`; generated filenames are relative
25
39
 
26
40
  ## Commands
27
41
 
42
+ The normal execution model is a composition declared in `.cobolts/files.yaml`. A composition may contain only one physical source. Entity keys are declared with `key` and `keyPath` on its source; do not assume a `customerId` field exists in arbitrary input files. `generation.yaml` is needed for code generation, not CEL execution or workspace validation.
43
+
44
+ From the repository root (PowerShell):
45
+
46
+ ```powershell
47
+ # Discover and validate all projects below this directory
48
+ yarn cobolts -d benchmarks validate all
49
+ yarn cobolts -d modules/examples validate all
50
+
51
+ # Inspect the authoring-to-planned pipeline
52
+ yarn cobolts -d benchmarks/graph-10 cel graph --short
53
+ yarn cobolts -d benchmarks/graph-10 cel canonical --short
54
+ yarn cobolts -d benchmarks/graph-10 cel sorted --short
55
+ yarn cobolts -d benchmarks/graph-10 cel planned --short
56
+
57
+ # Validate and execute a composed project
58
+ yarn cobolts -d benchmarks/baseline cel validate
59
+ yarn cobolts -d benchmarks/baseline cel execute --count 1 --raw
60
+ yarn cobolts -d benchmarks/baseline cel evaluate 1 --debug
61
+
62
+ # Execute the two-file EBCDIC example
63
+ yarn cobolts -d modules/examples/example/definitions cel evaluate 1001 --debug
64
+ ```
65
+
66
+ Commands (`[ ]` marks optional arguments):
67
+
28
68
  ```text
29
- cobolts -d ./examples/example/definitions config files
30
- cobolts config files
31
- cobolts config list
32
- cobolts config names
33
- cobolts config view
34
- cobolts config validate
35
- cobolts generate all [logicalName]
36
- cobolts generate copybook [logicalName]
37
- cobolts generate projectionDefn [logicalName]
38
- cobolts generate projection [logicalName]
69
+ cobolts config files|list|names|view|validate
70
+ cobolts generate all|copybook|projectionDefn|projection [logical-name]
39
71
  cobolts display <logical-name> [--count N | --all] [--skip N] [--raw] [--input file]
40
- cobolts cel graph [--graph file]
41
- cobolts cel canonical [--graph file]
42
- cobolts cel sorted [--graph file]
72
+ cobolts cel graph|canonical|sorted|planned [--graph file] [--short]
43
73
  cobolts cel validate [logical-name] [--graph file]
44
- cobolts cel execute <logical-name> [--count N | --all] [--skip N] [--raw] [--input file] [--on-error throw|continue]
74
+ cobolts cel execute [logical-name] [--count N | --all] [--skip N] [--raw] [--on-error throw|continue]
75
+ cobolts cel evaluate <entity-id> [logical-name] [--debug] [--debug-node name]
76
+ cobolts validate all
45
77
  ```
46
78
 
47
- `-d <path>` / `--directory <path>` sets the starting directory of upward discovery (default: current working directory). `--root <directory>` remains available for compatibility. `--catalogue`, `--policy`, `--data` and `--accumulator` select alternative configuration filenames relative to `.cobolts`. The last defaults to `accumulator.yaml`; an absent default file seeds an empty accumulator, while a missing explicitly selected file is an error.
79
+ For composed projects, omit `[logical-name]` and the CLI uses `files.yaml` composition. The optional logical-name form supports the legacy single-file route. `--on-error continue` is **not supported for composed execution** until rollback semantics are implemented; `throw` remains the default. `cel evaluate` selects the configured entity key, whereas `cel execute --count 1` executes the first available record.
80
+
81
+ Benchmark projects use `yarn cobolts benchmark list` to enumerate all 21 registered fixtures, and `yarn cobolts benchmark init all --force` to regenerate them, including `graph-1000-periodic`. Generated accumulator files explicitly select safe-integer numeric customer IDs; see [README.benchmark.md](README.benchmark.md).
82
+
83
+ `-d` normally starts upward search for the nearest `.cobolts` directory. On `validate all`, it instead identifies the directory recursively scanned for projects. This command validates each project's catalogue, source files, configured data, accumulator and CEL graph. If a `generation.yaml` is present it additionally validates the generation manifest. Missing `generation.yaml` is valid for execution-only projects. `config validate` follows the same optional-policy rule, but does not validate the CEL graph. Explicit `--policy` is used for code generation.
48
84
 
49
85
  For each COBOL logical file, provide the declaration and export names under `names` in `generation.yaml`:
50
86
 
@@ -83,8 +119,119 @@ Normally stdout begins with `# <physical-filename>` followed by JSONL. `--raw` s
83
119
 
84
120
  ## CEL dependency graphs
85
121
 
86
- The separate `graph.yaml` file declares the calculations. `cel graph`, `canonical`, and `sorted` show authoring nodes, normalised dependencies, and topological generations without reading records. `cel validate` checks graph syntax, dependencies, cycles, and the required initial `acc` values; supplying a logical file additionally compiles the projected field accesses without scanning the data. `cel execute` compiles once and streams borrowed COBOL records through the graph, producing one accumulator JSON value per record.
122
+ The separate `graph.yaml` file declares the calculations. `cel graph`, `canonical`, `sorted`, and `planned` show authoring nodes, normalised dependencies, topological generations, and indexed downstream links without reading records. Add `--short` to any of the four commands for a compact dependency view. `cel validate` checks graph syntax, missing `now`/`prev` graph targets, ordering cycles, and configured accumulator seed values; supplying a logical file additionally compiles projected field accesses without scanning the data. `cel execute` compiles once and evaluates the configured composed cursor (which may include COBOL, CSV, JSONL and other configured sources), producing one accumulator JSON value per entity.
123
+
124
+ In the default `throw` mode, an evaluation error stops processing and makes the command fail with a nonzero exit code; a failed record does not produce an accumulator JSON line. For the legacy single-file executor, `continue` writes an `errors` JSON line and proceeds, retaining the previous successful accumulator. Composed execution rejects `continue` because transactional rollback is not yet supported. The physical filename header is printed only after successful graph compilation, and `--raw` omits it.
125
+
126
+ See [README.cel.md](README.cel.md) for `now`/`prev` ordering semantics, a three-node example, the difference between structural validation and runtime missing values, and accumulator limitations for partial graphs.
127
+
128
+ ## Benchmark allocation diagnostics
129
+
130
+ Use the existing `yarn cobolts` entry point from the repository root. No separate
131
+ Node command or dependency is required:
132
+
133
+ ```powershell
134
+ # Capture a V8 allocation-sampling profile of the first measured CEL pass.
135
+ yarn cobolts benchmark run graph-1000-chain -n 10000 --allocation-profile
136
+
137
+ # Summarise the profile under benchmarks/graph-1000-chain/cel.heapprofile.
138
+ yarn cobolts benchmark allocations graph-1000-chain --top 30
139
+
140
+ # Include one representative calling stack for each ranked allocation site.
141
+ yarn cobolts benchmark allocations graph-1000-chain --top 30 --stacks
87
142
 
88
- In the default `throw` mode, an evaluation error stops processing and makes the command fail with a nonzero exit code; a failed record does not produce an accumulator JSON line. In `continue` mode, the command writes an `errors` JSON line and proceeds, retaining the previous successful accumulator. The physical filename header is printed only after successful graph compilation, and `--raw` omits it.
143
+ # Select the profile from another mode or analyse an arbitrary saved profile.
144
+ yarn cobolts benchmark allocations graph-1000-chain --mode read
145
+ yarn cobolts benchmark allocations --file "C:\git\cobol-ts\benchmarks\graph-1000-chain\cel.heapprofile"
146
+ ```
147
+
148
+ The report ranks **sampled self sizes** by source location. These are neither
149
+ retained heap sizes nor exact allocation totals. In particular, the benchmark
150
+ currently includes graph preparation and compilation in each measured CEL pass;
151
+ the profile therefore contains both setup and steady-state allocations. Use
152
+ unprofiled runs for performance comparisons because sampling affects timings.
153
+
154
+ ## Named characteristic extraction
155
+
156
+ `cobolts extract <name>` reads one extraction from `.cobolts/extractions.yaml`. Source worksheet provenance is included by default; `--noSources` suppresses that field in either YAML or JSON output without affecting the join.
157
+ The `extractions` mapping can contain several named, type-tagged definitions. Currently
158
+ `type: excel` is implemented; other types (including Word) can be added later.
159
+
160
+ For the `Demo characteristics` spreadsheet, save the exported `.xlsx` in
161
+ `source/demo-characteristics.xlsx`, and configure:
162
+
163
+ ```yaml
164
+ extractions:
165
+ demo-characteristics:
166
+ type: excel
167
+ file: ../source/demo-characteristics.xlsx # relative to .cobolts
168
+ join: left # optional; full is also supported
169
+ sheets:
170
+ - name: Basic
171
+ idColumn: A
172
+ firstDataRow: 2
173
+ columns:
174
+ description: B
175
+ - name: Sheet2
176
+ idColumn: A
177
+ firstDataRow: 2
178
+ columns:
179
+ type: B
180
+ ```
181
+
182
+ Run:
183
+
184
+ ```sh
185
+ cobolts -d /path/to/project extract demo-characteristics
186
+ cobolts -d /path/to/project extract demo-characteristics --output metadata.yaml
187
+ cobolts -d /path/to/project extract demo-characteristics --format json
188
+ cobolts -d /path/to/project extract demo-characteristics --noSources
189
+ cobolts -d /path/to/project extract demo-characteristics --raw
190
+ cobolts -d /path/to/project extract demo-characteristics --raw --noSources
191
+ cobolts -d /path/to/project extract demo-characteristics --config another-extractions.yaml
192
+ ```
193
+
194
+ The initial worksheet supplies characteristic IDs and output order. Data from later
195
+ worksheets is joined on trimmed IDs; a `left` join discards and counts IDs not in
196
+ that first worksheet. `full` includes them. Duplicate IDs within a worksheet and
197
+ repeated metadata field names across worksheets fail with precise diagnostics.
198
+
199
+ Default output is YAML on stdout; `--output` writes a named file relative to the
200
+ working directory. Diagnostics go to stderr unless `--raw` suppresses the trailing extraction summary.
201
+ The output includes the source file,
202
+ sheet and row for each matched record. Extraction does not mutate experiment dossiers.
203
+
204
+ ## Characteristic metadata repository
205
+
206
+ `.cobolts/characteristics.yaml` declares a global `files` directory prefix and named
207
+ `type: yaml` metadata sources. Each source selects a dotted `path` to either a map
208
+ of characteristic IDs to unstructured metadata, or the `characteristics` list
209
+ produced by `cobolts extract`. Sources join by characteristic ID, independently of
210
+ worksheet order. Distinct metadata fields compose; conflicting values fail clearly.
211
+
212
+ ```yaml
213
+ files: .
214
+ sources:
215
+ demo:
216
+ type: yaml
217
+ file: demo-characteristics.yaml
218
+ path: characteristics
219
+ ```
220
+
221
+ ```sh
222
+ cobolts -d modules/examples/example/definitions characteristics list
223
+ cobolts -d modules/examples/example/definitions characteristics list --ids
224
+ cobolts -d modules/examples/example/definitions characteristics show C0010
225
+ cobolts -d modules/examples/example/definitions characteristics show C0010 --format json
226
+ ```
227
+
228
+ Regenerate the example metadata after exporting the Excel workbook:
229
+
230
+ ```sh
231
+ cobolts -d modules/examples/example/definitions extract demo-characteristics \
232
+ --raw --noSources --output modules/examples/example/definitions/.cobolts/demo-characteristics.yaml
233
+ ```
89
234
 
90
- See [README.cel.md](README.cel.md) for a complete example and the current CEL limitations.
235
+ A second YAML source can be added under `sources` with its own `file` and `path`;
236
+ matching IDs are merged. Both inspection commands accept `--config` to select
237
+ another metadata configuration.
@@ -0,0 +1,83 @@
1
+ # Rolling windows: end-to-end verification
2
+
3
+ The `graph-1000-periodic` project is included in `benchmark init all` and
4
+ `benchmark list`. Regenerating it with
5
+ `benchmark init graph-1000-periodic -n 10000 --force` (or `init all --force`)
6
+ writes `.cobolts/accumulator.yaml` with `customerId.field: recordId` and
7
+ `customerId.type: number`. Applying a source patch alone does not rewrite an
8
+ existing generated project.
9
+
10
+ The `graph-1000-periodic` project contains exactly 1,000 nodes: 100 daily scalar
11
+ counters, 100 monthly six-observation rings, 100 CEL `sum()` consumers, 70
12
+ ordinary consumers of those sums, and 630 input-derived scalars. The fixture
13
+ starts each customer with six active monthly values (2–7), an expired value
14
+ (1), and a nonzero daily count (30 + customer ID modulo 5).
15
+
16
+ ## Run the regression tests
17
+
18
+ From the repository root:
19
+
20
+ ```powershell
21
+ yarn jest modules/cel/graph-runtime/src/cel.graph.periodic.integration.spec.ts --runInBand
22
+ yarn jest modules/cel/graph-runtime/src/cel.graph.periodicity.spec.ts --runInBand
23
+ yarn jest modules/cel/graph-runtime/src/cel.graph.scalar.periodicity.spec.ts --runInBand
24
+ yarn jest modules/cobolts/cobolts/src/benchmark.periodic.fixture.spec.ts --runInBand
25
+ yarn jest modules/cobolts/cobolts/src/benchmark.periodic.execution.spec.ts --runInBand
26
+ yarn jest modules/cursor-loader/cursor-loader-protobuf/src/protobuf.rolling.spec.ts --runInBand
27
+ ```
28
+
29
+ The integration checks compare every window, sum, reset and dependent addition;
30
+ compare indexed and object results; verify the expired observation and physical
31
+ ring layout; recover from a persisted indexed checkpoint; and ensure that a
32
+ failed indexed transition cannot be retried against partially mutated state.
33
+ The existing Protobuf tests cover native and number-backed round trips (not a
34
+ separate Protobuf graph interpreter).
35
+
36
+ ## Run the production benchmark
37
+
38
+ The generated historical fixture is read afresh for each pass; neither the
39
+ benchmark nor `cel execute` writes an updated checkpoint into that fixture.
40
+ If the project already exists, do **not** reinitialise it unless you mean to
41
+ replace the generated data.
42
+
43
+ ```powershell
44
+ yarn cobolts benchmark run graph-1000-periodic -n 10000 --runs 5 --periodicity daily --accumulator-strategy indexed --gc
45
+ yarn cobolts benchmark run graph-1000-periodic -n 10000 --runs 5 --periodicity monthly --accumulator-strategy indexed --gc
46
+ yarn cobolts benchmark run graph-1000-no-map -n 10000 --runs 5 --accumulator-strategy indexed --gc
47
+ ```
48
+
49
+ For the per-generation diagnostic, run each period **separately**, with
50
+ `--graph-timing --timing-sample-every 100`. These timings include instrumentation
51
+ overhead and should not be compared to uninstrumented throughput. Use
52
+ `--allocation-profile` on a separate pass to write a heap sampling profile;
53
+ profiled timings are not baseline timings.
54
+
55
+ Expected state for the first customer's initial six-month history:
56
+
57
+ | Run | Daily counter | Logical monthly history | Expired | Window sum |
58
+ | --- | ---: | --- | ---: | ---: |
59
+ | Before execution | 31 | 2, 3, 4, 5, 6, 7 | 1 | 27 |
60
+ | Daily | 32 | 2, 3, 4, 5, 6, 7 | 1 | 27 |
61
+ | Monthly (from original fixture) | 0 | 3, 4, 5, 6, 7, 31 | 2 | 56 |
62
+ | Next daily (after that monthly transition) | 1 | 3, 4, 5, 6, 7, 31 | 2 | 56 |
63
+
64
+ The monthly benchmark runs **from the original fixture**, not from the result
65
+ of the preceding daily benchmark; therefore the first monthly insertion is 31,
66
+ not 32. The chronological daily-then-monthly transition is tested separately
67
+ by the integration tests.
68
+
69
+ ## Failure and lifecycle boundary
70
+
71
+ Indexed evaluation deliberately mutates the working record in place. If it
72
+ throws after advancing a ring, that record is not rolled back. The session is
73
+ invalidated and the caller must abort the job and reload from the **last
74
+ committed checkpoint**. The source historical indexed file remains unchanged;
75
+ there is no automatic checkpoint writer in these commands. Object execution
76
+ uses an independent result and copy-on-write for matching windows.
77
+
78
+ `variables.periodicity` is optional. It accepts `daily` and `monthly` at the
79
+ CLI boundary; other graph-level periodicity strings are not prohibited by the
80
+ value type. There is still no period identity or exactly-once calendar policy,
81
+ so callers must not run the same logical monthly transition twice. Specialised
82
+ incremental aggregators are also outside this work: window sums use the
83
+ existing CEL collection visitor.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const benchmark_runner_1 = require("./benchmark.runner");
4
+ describe('compiled benchmark projection access', () => {
5
+ it('uses one compiled path against successive projected records', () => {
6
+ const access = (0, benchmark_runner_1.compileProjectedFieldAccess)('statusCode');
7
+ expect(access({ statusCode: () => 'A' })).toEqual('A');
8
+ expect(access({ statusCode: () => 'B' })).toEqual('B');
9
+ expect((0, benchmark_runner_1.accessField)({ statusCode: () => 'C' }, 'statusCode')).toEqual('C');
10
+ });
11
+ it('traverses every member of a projected array without retaining a previous record', () => {
12
+ const calls = [];
13
+ const access = (0, benchmark_runner_1.compileProjectedFieldAccess)('items.amount');
14
+ const first = { items: [
15
+ { amount: () => { calls.push(12); return 12; } },
16
+ { amount: () => { calls.push(34); return 34; } }
17
+ ] };
18
+ const second = { items: [
19
+ { amount: () => { calls.push(56); return 56; } }
20
+ ] };
21
+ expect(access(first)).toBe(first.items);
22
+ expect(access(second)).toBe(second.items);
23
+ expect(calls).toEqual([12, 34, 56]);
24
+ });
25
+ it('reports the original path when a compiled path is missing', () => {
26
+ const access = (0, benchmark_runner_1.compileProjectedFieldAccess)('items.amount');
27
+ expect(() => access({ items: [{ other: () => 1 }] })).toThrow('Projected field "items.amount" is unavailable');
28
+ });
29
+ });
30
+ //# sourceMappingURL=benchmark.access.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"benchmark.access.spec.js","sourceRoot":"","sources":["../../src/benchmark.access.spec.ts"],"names":[],"mappings":";;AAAA,yDAA2E;AAE3E,QAAQ,CAAC,sCAAsC,EAAE,GAAG,EAAE;IAClD,EAAE,CAAC,6DAA6D,EAAE,GAAG,EAAE;QACnE,MAAM,MAAM,GAAG,IAAA,8CAA2B,EAAC,YAAY,CAAC,CAAA;QACxD,MAAM,CAAC,MAAM,CAAC,EAAC,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,EAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QACpD,MAAM,CAAC,MAAM,CAAC,EAAC,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,EAAC,CAA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jE,MAAM,MAAM,GAAG,IAAA,8CAA2B,EAAC,cAAc,CAAC,CAAA;QAC1D,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,CAAC,EAAC,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC,CAAC,OAAO,CACrD,+CAA+C,CAClD,CAAA;IACL,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ export declare const AGGREGATE_BENCHMARK: "graph-1000-aggregates";
2
+ /** 100 daily windows + 100 native sums + 100 monthly windows + 200 native aggregates
3
+ * + 500 CEL consumers which combine three independent aggregate results = 1000 nodes.
4
+ * Daily and monthly runs activate different parts of the same compiled graph.
5
+ */
6
+ export declare function aggregateGraphYaml(): string;
7
+ /** A committed non-empty baseline keeps benchmark results about incremental work,
8
+ * not first-use initialisation. The same file is reloaded for every measured pass.
9
+ */
10
+ export declare function generateAggregateBenchmarkProject(base: string, records: number, force?: boolean): Promise<string>;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AGGREGATE_BENCHMARK = void 0;
4
+ exports.aggregateGraphYaml = aggregateGraphYaml;
5
+ exports.generateAggregateBenchmarkProject = generateAggregateBenchmarkProject;
6
+ const promises_1 = require("node:fs/promises");
7
+ const node_path_1 = require("node:path");
8
+ const cursor_loader_benchmark_1 = require("@cobol-ts/cursor-loader-benchmark");
9
+ const cel_graph_runtime_1 = require("@cobol-ts/cel-graph-runtime");
10
+ const cursor_loader_indexed_graph_state_1 = require("@cobol-ts/cursor-loader-indexed-graph-state");
11
+ const ring_buffer_1 = require("@cobol-ts/ring-buffer");
12
+ const yaml_jsyaml_1 = require("@cobol-ts/yaml-jsyaml");
13
+ exports.AGGREGATE_BENCHMARK = 'graph-1000-aggregates';
14
+ const name = (n) => `node${String(n).padStart(4, '0')}`;
15
+ /** 100 daily windows + 100 native sums + 100 monthly windows + 200 native aggregates
16
+ * + 500 CEL consumers which combine three independent aggregate results = 1000 nodes.
17
+ * Daily and monthly runs activate different parts of the same compiled graph.
18
+ */
19
+ function aggregateGraphYaml() {
20
+ const lines = [];
21
+ for (let i = 0; i < 1000; i++) {
22
+ const id = name(i);
23
+ if (i < 100) {
24
+ lines.push(`${id}:\n type: cel\n cel: "input.itemCount"\n metadata:\n type: number\n javascriptType: number\n rollingWindow:\n periodicity: daily\n size: 7\n`);
25
+ }
26
+ else if (i < 200) {
27
+ lines.push(`${id}:\n type: aggregate\n window: ${name(i - 100)}\n operation: sum\n`);
28
+ }
29
+ else if (i < 300) {
30
+ lines.push(`${id}:\n type: cel\n cel: "now.${name(i - 100)}"\n metadata:\n type: number\n javascriptType: number\n rollingWindow:\n periodicity: monthly\n size: 6\n`);
31
+ }
32
+ else if (i < 400) {
33
+ lines.push(`${id}:\n type: aggregate\n window: ${name(i - 100)}\n operation: sum\n`);
34
+ }
35
+ else if (i < 500) {
36
+ lines.push(`${id}:\n type: aggregate\n window: ${name(i - 200)}\n operation: max\n`);
37
+ }
38
+ else {
39
+ const lane = (i - 500) % 100;
40
+ // Every consumer observes one daily and two monthly aggregate outputs.
41
+ const expression = `now.${name(100 + lane)} + now.${name(300 + lane)} + now.${name(400 + lane)}`;
42
+ lines.push(`${id}:\n type: cel\n cel: ${JSON.stringify(expression)}\n metadata:\n type: number\n javascriptType: number\n`);
43
+ }
44
+ }
45
+ return lines.join('');
46
+ }
47
+ /** A committed non-empty baseline keeps benchmark results about incremental work,
48
+ * not first-use initialisation. The same file is reloaded for every measured pass.
49
+ */
50
+ async function generateAggregateBenchmarkProject(base, records, force = false) {
51
+ if (!Number.isSafeInteger(records) || records < 1)
52
+ throw new RangeError('records must be positive');
53
+ const destination = await (0, cursor_loader_benchmark_1.generateBenchmarkProject)(base, exports.AGGREGATE_BENCHMARK, records, force);
54
+ const config = (0, node_path_1.join)(destination, '.cobolts');
55
+ const graph = aggregateGraphYaml().replace(/\binput\./g, 'input.records.');
56
+ await (0, promises_1.writeFile)((0, node_path_1.join)(config, 'graph.yaml'), graph);
57
+ const parsed = (0, cel_graph_runtime_1.parseAuthoringGraph)(graph, yaml_jsyaml_1.jsYamlParser);
58
+ if ('errors' in parsed)
59
+ throw new Error(parsed.errors.join('\n'));
60
+ const canonical = (0, cel_graph_runtime_1.canonicaliseCelGraph)(parsed.value);
61
+ if ('errors' in canonical)
62
+ throw new Error(canonical.errors.join('\n'));
63
+ const planned = (0, cel_graph_runtime_1.planCanonicalCelGraph)(canonical.value);
64
+ if ('errors' in planned)
65
+ throw new Error(planned.errors.join('\n'));
66
+ const nodes = planned.value.generations.flat();
67
+ if (nodes.length !== 1000)
68
+ throw new Error(`Expected 1000 benchmark nodes, received ${nodes.length}`);
69
+ const schema = (0, cursor_loader_indexed_graph_state_1.indexedGraphSchemaFromValueTypes)(nodes.map(node => ({ name: node.metadata.name, valueType: node.valueType,
70
+ optional: node.type === 'aggregate' && (node.operation === 'min' || node.operation === 'max') })));
71
+ await (0, promises_1.writeFile)((0, node_path_1.join)(config, 'accumulator.yaml'), 'strategy: indexed\nfile: ../data/previous-state.igs\noptional: false\nremoved: reject\ncustomerId:\n field: recordId\n type: number\ninitial: {}\n');
72
+ const original = await (0, promises_1.readFile)((0, node_path_1.join)(config, 'benchmark.yaml'), 'utf8');
73
+ await (0, promises_1.writeFile)((0, node_path_1.join)(config, 'benchmark.yaml'), original.replace('warmup: 100000', 'warmup: 1000'));
74
+ function* previous() {
75
+ for (let customer = 1; customer <= records; customer++) {
76
+ const record = (0, cursor_loader_indexed_graph_state_1.createIndexedGraphRecord)(schema.nodes.length);
77
+ record.customerId = BigInt(customer);
78
+ for (let i = 0; i < schema.nodes.length; i++) {
79
+ const { name: nodeName } = schema.nodes[i];
80
+ const n = Number(nodeName.slice(4));
81
+ if (n < 100) {
82
+ const ring = (0, ring_buffer_1.createRingBuffer)(7);
83
+ for (let day = 1; day <= 7; day++)
84
+ (0, ring_buffer_1.push)(ring, day);
85
+ record.values[i] = ring;
86
+ }
87
+ else if (n < 200)
88
+ record.values[i] = 28;
89
+ else if (n < 300) {
90
+ const ring = (0, ring_buffer_1.createRingBuffer)(6);
91
+ for (let month = 1; month <= 6; month++)
92
+ (0, ring_buffer_1.push)(ring, month * 10);
93
+ record.values[i] = ring;
94
+ }
95
+ else if (n < 400)
96
+ record.values[i] = 210;
97
+ else if (n < 500)
98
+ record.values[i] = 60;
99
+ else
100
+ record.values[i] = 298;
101
+ }
102
+ yield record;
103
+ }
104
+ }
105
+ await (0, cursor_loader_indexed_graph_state_1.writeIndexedGraphStateFile)((0, node_path_1.join)(destination, 'data', 'previous-state.igs'), schema, previous());
106
+ return (0, node_path_1.resolve)(destination);
107
+ }
108
+ //# sourceMappingURL=benchmark.aggregate.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"benchmark.aggregate.fixture.js","sourceRoot":"","sources":["../../src/benchmark.aggregate.fixture.ts"],"names":[],"mappings":";;;AAgBA,gDAsBC;AAKD,8EA6CC;AAxFD,+CAAmD;AACnD,yCAAsC;AACtC,+EAA0E;AAC1E,mEAA0G;AAC1G,mGACsD;AACtD,uDAA2D;AAC3D,uDAAkD;AAErC,QAAA,mBAAmB,GAAC,uBAAgC,CAAA;AACjE,MAAM,IAAI,GAAC,CAAC,CAAQ,EAAC,EAAE,CAAA,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAC,GAAG,CAAC,EAAE,CAAA;AAEzD;;;GAGG;AACH,SAAgB,kBAAkB;IAC9B,MAAM,KAAK,GAAU,EAAE,CAAA;IACvB,KAAI,IAAI,CAAC,GAAC,CAAC,EAAC,CAAC,GAAC,IAAI,EAAC,CAAC,EAAE,EAAC,CAAC;QACpB,MAAM,EAAE,GAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QAChB,IAAG,CAAC,GAAC,GAAG,EAAC,CAAC;YACN,KAAK,CAAC,IAAI,CAAC,GAAG,EA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B,CAAC,EAAC,MAAM,EAAC,QAAQ,EAAE,CAAC,CAAA;IACjG,OAAO,IAAA,mBAAO,EAAC,WAAW,CAAC,CAAA;AAC/B,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const promises_1 = require("node:fs/promises");
4
+ const node_os_1 = require("node:os");
5
+ const node_path_1 = require("node:path");
6
+ const cel_graph_runtime_1 = require("@cobol-ts/cel-graph-runtime");
7
+ const yaml_jsyaml_1 = require("@cobol-ts/yaml-jsyaml");
8
+ const cursor_loader_indexed_graph_state_1 = require("@cobol-ts/cursor-loader-indexed-graph-state");
9
+ const ring_buffer_1 = require("@cobol-ts/ring-buffer");
10
+ const cel_shared_execution_1 = require("./cel.shared.execution");
11
+ const benchmark_runner_1 = require("./benchmark.runner");
12
+ const benchmark_aggregate_fixture_1 = require("./benchmark.aggregate.fixture");
13
+ const name = (n) => `node${String(n).padStart(4, '0')}`;
14
+ it('builds exactly 100 daily windows, 100 daily sums, 100 monthly windows, 200 monthly aggregates and 500 combining nodes', () => {
15
+ const parsed = (0, cel_graph_runtime_1.parseAuthoringGraph)((0, benchmark_aggregate_fixture_1.aggregateGraphYaml)(), yaml_jsyaml_1.jsYamlParser);
16
+ if ('errors' in parsed)
17
+ throw new Error(parsed.errors.join('\n'));
18
+ const nodes = Object.entries(parsed.value);
19
+ expect(nodes.length).toBe(1000);
20
+ expect(nodes.map(([key]) => key)).toStrictEqual(Array.from({ length: 1000 }, (_, i) => name(i)));
21
+ for (let i = 0; i < 1000; i++) {
22
+ const node = nodes[i][1];
23
+ if (i < 100) {
24
+ expect(node.type).toBe('cel');
25
+ if (node.type === 'cel')
26
+ expect(node.metadata.rollingWindow).toStrictEqual({ periodicity: 'daily', size: 7 });
27
+ }
28
+ else if (i < 200) {
29
+ expect(node).toStrictEqual({ type: 'aggregate', window: name(i - 100), operation: 'sum' });
30
+ }
31
+ else if (i < 300) {
32
+ expect(node.type).toBe('cel');
33
+ if (node.type === 'cel')
34
+ expect(node.metadata.rollingWindow).toStrictEqual({ periodicity: 'monthly', size: 6 });
35
+ }
36
+ else if (i < 400)
37
+ expect(node).toStrictEqual({ type: 'aggregate', window: name(i - 100), operation: 'sum' });
38
+ else if (i < 500)
39
+ expect(node).toStrictEqual({ type: 'aggregate', window: name(i - 200), operation: 'max' });
40
+ else {
41
+ expect(node.type).toBe('cel');
42
+ const lane = (i - 500) % 100;
43
+ if (node.type === 'cel')
44
+ expect(node.cel).toBe(`now.${name(100 + lane)} + now.${name(300 + lane)} + now.${name(400 + lane)}`);
45
+ }
46
+ }
47
+ const canonical = (0, cel_graph_runtime_1.canonicaliseCelGraph)(parsed.value);
48
+ if ('errors' in canonical)
49
+ throw new Error(canonical.errors.join('\n'));
50
+ const planned = (0, cel_graph_runtime_1.planCanonicalCelGraph)(canonical.value);
51
+ if ('errors' in planned)
52
+ throw new Error(planned.errors.join('\n'));
53
+ expect(planned.value.generations.flat()).toHaveLength(1000);
54
+ });
55
+ it('generates a seeded 1000-node checkpoint and executes daily/monthly runs through production', async () => {
56
+ const base = await (0, promises_1.mkdtemp)((0, node_path_1.join)((0, node_os_1.tmpdir)(), 'aggregate-benchmark-'));
57
+ try {
58
+ const directory = await (0, benchmark_aggregate_fixture_1.generateAggregateBenchmarkProject)(base, 2);
59
+ expect(await (0, promises_1.readFile)((0, node_path_1.join)(directory, '.cobolts', 'graph.yaml'), 'utf8'))
60
+ .toBe((0, benchmark_aggregate_fixture_1.aggregateGraphYaml)().replace(/\binput\./g, 'input.records.'));
61
+ const filename = (0, node_path_1.join)(directory, 'data', 'previous-state.igs');
62
+ const schema = await (0, cursor_loader_indexed_graph_state_1.readIndexedGraphStateFileSchema)(filename);
63
+ expect(schema.nodes).toHaveLength(1000);
64
+ expect(schema.nodes.filter(field => field.type === 'rolling-window')).toHaveLength(200);
65
+ let seen = 0;
66
+ for await (const lease of (0, cursor_loader_indexed_graph_state_1.readIndexedGraphStateFile)(filename)) {
67
+ seen++;
68
+ const byName = new Map(schema.nodes.map((field, i) => [field.name, i]));
69
+ const state = lease.representation;
70
+ expect(state.customerId).toBe(BigInt(seen));
71
+ expect((0, ring_buffer_1.get)(state.values[byName.get('node0000')], 6)).toBe(7n);
72
+ expect(state.values[byName.get('node0100')]).toBe(28n);
73
+ expect(state.values[byName.get('node0300')]).toBe(210n);
74
+ expect(state.values[byName.get('node0400')]).toBe(60n);
75
+ expect(state.values[byName.get('node0500')]).toBe(298n);
76
+ lease.close();
77
+ }
78
+ expect(seen).toBe(2);
79
+ for (const periodicity of ['daily', 'monthly']) {
80
+ let completed = 0;
81
+ const result = await (0, cel_shared_execution_1.executeProductionCel)(directory, 2, { strategy: 'indexed', periodicity,
82
+ onIndexed: (_key, values, currentSchema) => {
83
+ const byName = new Map(currentSchema.nodes.map((field, i) => [field.name, i]));
84
+ const lookup = (n) => values[byName.get(name(n))];
85
+ const daily = lookup(0);
86
+ const monthly = lookup(200);
87
+ const dailySum = lookup(100);
88
+ const monthlySum = lookup(300);
89
+ const monthlyMax = lookup(400);
90
+ expect(daily.count).toBe(7);
91
+ expect(monthly.count).toBe(6);
92
+ if (periodicity === 'daily') {
93
+ expect(dailySum).toBe(27 + (0, ring_buffer_1.get)(daily, 6));
94
+ expect(monthlySum).toBe(210);
95
+ }
96
+ else {
97
+ expect(dailySum).toBe(28);
98
+ expect((0, ring_buffer_1.get)(monthly, 5)).toBe(28);
99
+ expect(monthlySum).toBe(228);
100
+ }
101
+ expect(monthlyMax).toBe(60);
102
+ expect(lookup(500)).toBe(dailySum + monthlySum + monthlyMax);
103
+ completed++;
104
+ } });
105
+ expect(result.records).toBe(2);
106
+ expect(completed).toBe(2);
107
+ }
108
+ const report = await (0, benchmark_runner_1.runBenchmark)({ directory, records: 2, runs: 1, periodicity: 'daily',
109
+ accumulatorStrategy: 'indexed', log: () => { } });
110
+ expect(report.passes[0].integrated?.records).toBe(2);
111
+ }
112
+ finally {
113
+ await (0, promises_1.rm)(base, { recursive: true, force: true });
114
+ }
115
+ });
116
+ //# sourceMappingURL=benchmark.aggregate.fixture.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"benchmark.aggregate.fixture.spec.js","sourceRoot":"","sources":["../../src/benchmark.aggregate.fixture.spec.ts"],"names":[],"mappings":";;AAAA,+CAAoD;AACpD,qCAA8B;AAC9B,yCAA8B;AAC9B,mEAA0G;AAC1G,uDAAkD;AAClD,mGAAqH;AACrH,uDAAyD;AACzD,iEAA2D;AAC3D,yDAA+C;AAC/C,+EAAkG;AAElG,MAAM,IAAI,GAAC,CAAC,CAAQ,EAAC,EAAE,CAAA,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAC,GAAG,CAAC,EAAE,CAAA;AAEzD,EAAE,CAAC,uHAAuH,EAAC,GAAE,EAAE;IAC3H,MAAM,MAAM,GAAC,IAAA,uCAAmB,EAAC,IAAA,gDAAkB,GAAE,EAAC,0BAAY,CAAC,CAAA;IACnE,IAAG,QAAQ,IAAI,MAAM;QAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAC/D,MAAM,KAAK,GAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IACxC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC/B,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAC,EAAE,CAAA,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,EAAC,CAAC,CAAC,EAAC,CAAC,EAAC,EAAE,CAAA,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACvF,KAAI,IAAI,CAAC,GAAC,CAAC,EAAC,CAAC,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